1 2008-06-07 Bruno Haible <bruno@clisp.org>
3 * doc/posix-functions/_setjmp.texi: Explain the use of this function
5 * doc/posix-functions/_longjmp.texi: Likewise.
6 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
7 SystemV platform in this case.
9 2008-06-06 Eric Blake <ebb9@byu.net>
11 Document abort() bugs.
12 * doc/posix-functions/abort.texi (abort): Mention anomalies.
14 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
15 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
17 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
18 siglongjmp, but only as a macro.
19 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
21 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
23 Tweak documentation to cover cygwin argz bugs.
24 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
25 argz bug fix; no code change needed since no cygwin releases
26 occurred between the last fix and the bug being tested.
27 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
28 module and recently fixed cygwin bugs.
29 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
30 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
31 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
32 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
33 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
35 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
36 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
37 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
38 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
39 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
40 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
43 Avoid gcc warning on cygwin.
44 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
45 !ACL_NO_TRIVIAL]: Avoid unused variable.
47 2008-06-05 Eric Blake <ebb9@byu.net>
49 Be tolerant of UNKNOWN version in gnulib-tool test dir.
50 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
51 git-version-gen fails to come up with a version.
52 Reported by Simon Josefsson.
54 2008-06-05 Jim Meyering <meyering@redhat.com>
55 Paul Eggert <eggert@cs.ucla.edu>
57 utimens.c: work around a probable Linux kernel bug
58 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
59 appears to be a kernel bug that causes utimensat to return 280
60 instead of 0, indicating success.
62 2008-06-04 Bruno Haible <bruno@clisp.org>
64 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
67 2008-06-04 Bruno Haible <bruno@clisp.org>
69 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
70 * lib/file-has-acl.c (acl_access_nontrivial): New function.
71 (file_has_acl): Use it. Save errno afterwards.
72 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
74 2008-06-03 Bruno Haible <bruno@clisp.org>
76 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
77 draft code. Simplify #ifs.
78 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
79 Put Solaris code after POSIX-draft code. Fix comments regarding
80 Solaris 10, HP-UX. Mention Cygwin.
81 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
83 2008-06-03 Eric Blake <ebb9@byu.net>
85 Provide fallback for older kernels.
86 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
87 Provide runtime fallback if kernel lacks support.
88 Reported by Mike Frysinger.
90 2008-06-02 Bruno Haible <bruno@clisp.org>
92 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
95 2008-06-02 Bruno Haible <bruno@clisp.org>
97 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
98 * lib/copy-acl.c (qcopy_acl): Update comment.
100 2008-06-02 Bruno Haible <bruno@clisp.org>
102 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
105 2008-06-02 Bruno Haible <bruno@clisp.org>
107 * tests/test-file-has-acl.sh: Use different code for Cygwin.
108 * tests/test-set-mode-acl.sh: Likewise.
109 * tests/test-copy-acl.sh: Likewise.
110 * tests/test-copy-file.sh: Likewise.
112 2008-06-02 Bruno Haible <bruno@clisp.org>
114 * tests/test-file-has-acl.sh: Remove unused code.
116 2008-06-01 Bruno Haible <bruno@clisp.org>
118 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
119 (copy_acl): Just a wrapper around qcopy_acl that emits the error
121 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
123 2008-06-01 Bruno Haible <bruno@clisp.org>
125 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
126 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
127 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
129 * modules/acl-tests (configure.ac): Remove tests now contained in
132 2008-06-02 Jim Meyering <meyering@redhat.com>
134 announce-gen: use a better key-server host name
135 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
136 it may be more consistently reliable. Suggested by Werner Koch
137 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
139 2008-06-01 Bruno Haible <bruno@clisp.org>
141 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
142 Reported by Voroskoi Andras <voroskoi@gmail.com>.
144 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
146 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
148 2008-06-01 Bruno Haible <bruno@clisp.org>
151 * tests/test-file-has-acl.sh: New file.
152 * tests/test-file-has-acl.c: New file.
153 * tests/test-set-mode-acl.sh: New file.
154 * tests/test-set-mode-acl.c: New file.
155 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
156 * tests/test-copy-acl.c: New file.
157 * modules/acl-tests: New file, based on modules/copy-file-tests.
158 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
159 (Depends-on): Add acl-tests.
160 (configure.ac): Remove checks.
161 (Makefile.am): Don't create test-sameacls program here any more.
163 2008-06-01 Bruno Haible <bruno@clisp.org>
165 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
166 * tests/test-sameacls.c: Include progname.h.
167 (main): Invoke set_program_name. Portability fixes for MacOS X,
170 2008-06-01 Bruno Haible <bruno@clisp.org>
172 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
174 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
176 2008-06-01 Bruno Haible <bruno@clisp.org>
178 * modules/rpmatch (Depends-on): Add strdup.
180 2008-06-01 Bruno Haible <bruno@clisp.org>
182 * lib/pipe.c: Include unistd-safer.h.
183 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
184 * modules/pipe (Depends-on): Add unistd-safer.
186 2008-05-30 Simon Josefsson <simon@josefsson.org>
188 * modules/autobuild (configure.ac): Call AB_INIT.
190 2008-05-30 Simon Josefsson <simon@josefsson.org>
192 * tests/test-getaddrinfo.c: Don't print debug messages by default.
193 Suggested by Bruno Haible <bruno@clisp.org>.
195 2008-05-30 Simon Josefsson <simon@josefsson.org>
197 * tests/test-base64.c: Cast size_t to unsigned long when invoking
198 printf. Use %lu instead of %d. Reported by Bruno Haible
201 2008-05-29 Eric Blake <ebb9@byu.net>
203 Prefer new POSIX 200x interfaces over futimesat.
204 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
205 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
207 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
209 2008-05-28 Bruno Haible <bruno@clisp.org>
211 * modules/stpcpy (License): Change to LGPLv2+.
212 Requested by David Lutterkort <dlutter@redhat.com>.
214 2008-05-27 Bruno Haible <bruno@clisp.org>
216 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
218 Reported by Jose E. Marchesi <jemarch@gnu.org>.
220 2008-05-27 Bruno Haible <bruno@clisp.org>
222 * modules/iconv_open (Link): New section, from module 'iconv'.
223 * modules/striconv (Link): Likewise.
224 * modules/striconveh (Link): Likewise.
225 * modules/xstriconv (Link): Likewise.
226 * modules/unicodeio (Link): Likewise.
227 * modules/propername (Link): Likewise.
228 Reported by Jim Meyering.
230 2008-05-26 Jim Meyering <meyering@redhat.com>
232 sha256: do not artificially restrict buffer length to be < 2^32
233 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
235 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
238 avoid unaligned access errors, e.g., on sparc
239 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
240 direct access through a possibly-unaligned uint64* pointer.
241 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
242 direct access through a possibly-unaligned uint32* pointer.
243 Prompted by this patch from Tom "spot" Callaway:
244 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
246 sha512.c: fix typo in comment
247 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
249 2008-05-25 Bruno Haible <bruno@clisp.org>
251 * lib/set-mode-acl.c: Renamed from lib/acl.c.
252 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
253 (Makefile.am): Update lib_SOURCES.
255 2008-05-25 Bruno Haible <bruno@clisp.org>
257 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
259 2008-05-25 Jim Meyering <meyering@redhat.com>
261 useless-if-before-free: freed expr may have white-space differences
262 * build-aux/useless-if-before-free: Recognize cases in which the
263 freed expression differs from the tested one in embedded white
264 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
265 $1 was used, so we can't make any regexp shy. Improved tests now
268 useless-if-before-free: accept white space in the expression.
269 * build-aux/useless-if-before-free: For now, any white space
270 in the expression must be identical in the free argument.
272 useless-if-before-free: efficiency tweak
273 * build-aux/useless-if-before-free: Make the expression-matching
275 Make the *outer* regexp shy, not the expr-matching one.
277 update code-in-comment to accept cast of free arg
278 * build-aux/useless-if-before-free: Update regexp.
280 2008-05-25 Bruno Haible <bruno@clisp.org>
282 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
283 * modules/copy-file-tests (Files, Makefile.am): Update.
284 * tests/test-copy-file.c (func_test_copy): Update.
286 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
288 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
290 2008-05-23 Bruno Haible <bruno@clisp.org>
292 Improve support for ACLs on OSF/1.
293 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
294 Remove fallback for unknown flavors of ACLs.
296 2008-05-22 Bruno Haible <bruno@clisp.org>
298 Add support for ACLs on OSF/1.
299 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
301 (acl_free_text): New macro fallback.
302 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
304 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
305 acl_free_text function. Require AC_C_INLINE.
307 2008-05-22 Bruno Haible <bruno@clisp.org>
309 Make copy_acl work on MacOS X 10.5.
310 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
311 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
312 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
313 If MODE_INSIDE_ACL, don't assume that every system has the same text
314 representation for ACLs as FreeBSD.
315 * lib/copy-acl.c (copy_acl): Add support for platforms with
317 * lib/file-has-acl.c (file_has_acl): Likewise.
318 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
319 FreeBSD, MacOS X, or IRIX, respectively.
321 2008-05-22 Bruno Haible <bruno@clisp.org>
323 * lib/acl.h: Don't include <sys/acl.h>.
324 (GETACLCNT): Move fallback to lib/acl-internal.h.
325 * lib/acl-internal.h: Include <sys/acl.h> here.
326 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
328 2008-05-22 Bruno Haible <bruno@clisp.org>
330 Split off copy_acl function to separate file.
331 * lib/copy-acl.c: New file, extracted from lib/acl.c.
332 * lib/acl.c (copy_acl): Moved function to separate file.
333 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
334 * modules/acl (Files): Add lib/copy-acl.c.
335 (Makefiles.am): Augment lib_SOURCES.
337 2008-05-22 Bruno Haible <bruno@clisp.org>
339 * modules/copy-file-tests: New file.
340 * tests/test-copy-file.sh: New file.
341 * tests/test-copy-file.c: New file.
342 * tests/test-copy-file-sameacls.c: New file.
344 2008-05-22 Eric Blake <ebb9@byu.net>
347 * tests/test-memcmp.c (main): Pass NULL indirectly.
349 2008-05-21 Bruno Haible <bruno@clisp.org>
351 Add reference doc about ACLs.
352 * doc/acl-resources.txt: New file.
353 * doc/acl-cygwin.txt: New file.
355 2008-05-21 Bruno Haible <bruno@clisp.org>
357 Avoid one more warning from gcc.
358 * lib/vasnprintf.c (IF_LINT): Update comments.
359 (VASNPRINTF): Use it also for the 'prefix' array initializer.
361 2008-05-21 Jim Meyering <meyering@redhat.com>
363 avoid a warning from gcc
364 * lib/vasnprintf.c (IF_LINT): Define.
365 (scale10_round_decimal_long_double):
366 Use it to avoid a "may be used uninitialized" warning.
367 (scale10_round_decimal_double): Likewise.
369 2008-05-21 Simon Josefsson <simon@josefsson.org>
371 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
374 2008-05-20 Bruno Haible <bruno@clisp.org>
376 * tests/test-memcmp.c (main): Test also the sign of the result. Test
377 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
379 2008-05-20 Simon Josefsson <simon@josefsson.org>
381 * modules/memcmp-tests: New file.
382 * tests/test-memcmp.c: New file.
384 2008-05-19 Bruno Haible <bruno@clisp.org>
386 * modules/propername (Notice, configure.ac): Put quoted "..." into
388 * lib/propername.h: Update comments accordingly.
389 Reported by Eric Blake.
391 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
393 * modules/getpass-gnu (Depends-on): Add fseeko.
395 2008-05-19 Simon Josefsson <simon@josefsson.org>
397 * modules/base64-tests: New file.
399 2008-05-19 Bo Borgerson <gigabo@gmail.com>
401 * lib/base64.c (base64_decode_ctx): If a decode context structure
402 was passed in use it to ignore newlines. If a context structure
403 was _not_ passed in, continue to treat newlines as garbage (this
404 is the historical behavior). Formerly base64_decode.
405 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
406 takes a decode context structure.
407 * lib/base64.h (base64_decode): Macro for four-argument calls.
408 (base64_decode_alloc): Likewise.
409 * lib/base64.c (base64_decode_ctx): If a decode context structure
410 was passed in use it to ignore newlines. If a context structure
411 was _not_ passed in, continue to treat newlines as garbage (this
412 is the historical behavior). Formerly base64_decode.
413 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
414 takes a decode context structure.
415 * lib/base64.h (base64_decode): Macro for four-argument calls.
416 (base64_decode_alloc): Likewise.
418 2008-05-19 Jim Meyering <meyering@redhat.com>
420 avoid a warning from gcc
421 * lib/trim.c (IF_LINT): Define.
422 (trim2): Use it to avoid a "may be used uninitialized" warning.
425 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
427 2008-05-19 Bruno Haible <bruno@clisp.org>
429 * doc/glibc-functions/getpass.texi: Document limits of other
432 2008-05-19 Simon Josefsson <simon@josefsson.org>
433 Bruno Haible <bruno@clisp.org>
435 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
437 2008-05-18 Bruno Haible <bruno@clisp.org>
439 * modules/propername: New file, from GNU gettext.
440 * lib/propername.h: New file, from GNU gettext.
441 * lib/propername.c: New file, from GNU gettext.
442 * MODULES.html.sh (Internationalization functions): Add propername.
444 2008-05-16 Jim Meyering <meyering@redhat.com>
445 Bruno Haible <bruno@clisp.org>
447 Avoid some warnings from "gcc -Wshadow".
448 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
450 2008-05-15 Eric Blake <ebb9@byu.net>
452 Extend previous patch to cygwin 1.7.0.
453 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
454 fast implementation in cygwin >= 1.7.0.
455 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
456 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
458 2008-05-15 Bruno Haible <bruno@clisp.org>
460 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
461 implementation in glibc >= 2.9.
462 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
463 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
465 2008-05-15 Bruno Haible <bruno@clisp.org>
467 * MODULES.html.sh (Internationalization functions): Remove linebreak.
468 (Unicode string functions): Add unilbrk/*.
469 Reported by Karl Berry.
471 2008-05-15 Eric Blake <ebb9@byu.net>
473 Fix violation of <stdbool.h> replacement in regex.
474 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
475 * lib/regexec.c (re_search_internal): Likewise.
476 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
478 2008-05-15 Jim Meyering <meyering@redhat.com>
480 avoid distracting test output when git or cvs is not found
481 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
482 * tests/test-vc-list-files-git.sh: Likewise.
484 2008-05-15 Eric Blake <ebb9@byu.net>
486 Glibc finally accepted the memmem speedup code, bugzilla #5514.
487 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
489 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
490 * doc/posix-functions/strstr.texi (strstr): Likewise.
491 * lib/str-two-way.h (MAX): Sychronize with glibc.
493 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
495 * lib/regcomp.c (optimize_utf8): Add a note on why we test
497 (calc_first): Initialize constraint field.
498 (duplicate_node_closure): Use it instead of special casing ANCHORS.
500 (duplicate_node): Merge constraint field for all node types.
501 (calc_eclosure_iter): Look at constraint field for all node types.
502 * lib/regex_internal.c (create_cd_newstate): Don't look at
505 2008-05-14 Bruno Haible <bruno@clisp.org>
507 Help GCC to do better code generation.
508 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
509 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
510 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
511 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
512 Declare with attribute 'malloc' if supported.
514 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
516 use "echo STR|wc -c" rather than unportable "expr length STR"
517 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
518 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
520 2008-05-14 Jim Meyering <meyering@redhat.com>
522 use dd ibs=$n count=1 ... rather than less-portable head -c$n
523 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
524 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
525 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
528 2008-05-14 Eric Blake <ebb9@byu.net>
530 Avoid quadratic growth in gl_LIBSOURCES.
531 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
532 Suggested by Bruno Haible.
535 * modules/xmemdup0-tests: New file.
536 * tests/test-xmemdup0.c: Likewise.
538 2008-05-13 Eric Blake <ebb9@byu.net>
540 Split xmemdup0 into its own module.
541 * modules/xmemdup0: New file.
542 * lib/xmemdup0.h: Likewise.
543 * lib/xmemdup0.c: Likewise.
544 * MODULES.html.sh (Memory management functions): Add xmemdup0.
545 * lib/xalloc.h (xmemdup0): Remove.
546 * lib/xmalloc.c (xmemdup0): Likewise.
548 2008-05-13 Eric Blake <ebb9@byu.net>
549 Bruno Haible <bruno@clisp.org>
551 Reduce number of forks required during autoconf.
552 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
553 and gl_LIBSOURCES_DIR.
554 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
555 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
557 <m4_foreach_w>: Move...
558 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
560 2008-05-13 Eric Blake <ebb9@byu.net>
562 * gnulib-tool: Fix various comment typos.
564 2008-05-12 Bruno Haible <bruno@clisp.org>
566 Tailor the linebreaking algorithm.
567 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
569 2008-05-12 Bruno Haible <bruno@clisp.org>
571 Update to Unicode 5.0.0.
572 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
573 LBP_JV, LBP_JT. Redistribute values.
574 (unilbrk_table): Change size.
575 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
576 Unicode TR#14 rev. 22.
577 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
578 LBP_JV, LBP_JT. Redistribute values.
579 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
580 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
582 * lib/unilbrk/lbrkprop1.h: Regenerated.
583 * lib/unilbrk/lbrkprop2.h: Regenerated.
584 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
585 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
586 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
588 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
590 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
592 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
593 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
594 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
595 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
596 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
597 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
599 2008-05-11 Bruno Haible <bruno@clisp.org>
601 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
603 2008-05-11 Bruno Haible <bruno@clisp.org>
605 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
606 * modules/unilbrk/gen-lbrk: New file.
608 2008-05-11 Bruno Haible <bruno@clisp.org>
610 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
611 * m4/sha512.m4 (gl_SHA512): Likewise.
613 2008-05-11 Jim Meyering <meyering@redhat.com>
615 New modules: crypto/sha256, crypto/sha512 (from coreutils)
616 * modules/crypto/sha256: New file.
617 * modules/crypto/sha512: Likewise.
618 * lib/sha256.c: Likewise.
619 * lib/sha256.h: Likewise.
620 * lib/sha512.c: Likewise.
621 * lib/sha512.h: Likewise.
622 * lib/u64.h: Likewise.
623 * m4/sha256.m4: Likewise.
624 * m4/sha512.m4: Likewise.
625 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
627 2008-05-10 Bruno Haible <bruno@clisp.org>
629 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
630 (Input/Output <stdio.h>): Add xprintf.
631 (Signal handling <signal.h>): Add strsignal.
632 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
633 (Core language properties): Add func.
634 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
635 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
637 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
638 (Input/output): New section.
639 (File system functions): Add openat-die, stat-macros.
640 (Networking functions): Add sockets.
641 (Unicode string functions): Add unictype/*.
642 (Support for building libraries and executables): Add gperf.
643 (Support for building documentation): Add agpl-3.0.
646 2008-05-10 Bruno Haible <bruno@clisp.org>
648 * modules/unictype/gen-ctype: New file.
650 2008-05-10 Jim Meyering <meyering@redhat.com>
652 Make chdir-safer.c more efficient on a system with no symlinks.
653 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
654 also if ELOOP is zero. Suggested by Bruno Haible.
656 Make chdir-safer.c slightly safer.
657 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
658 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
660 Avoid compile failure on systems without ELOOP (like mingw).
661 * lib/chdir-safer.c (ELOOP): Define if not already defined.
662 Reported by Bruno Haible.
664 2008-05-10 Bruno Haible <bruno@clisp.org>
666 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
667 (is_utf8_encoding): Use a case-insensitive comparison.
668 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
671 2008-05-10 Bruno Haible <bruno@clisp.org>
673 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
674 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
675 * lib/unilbrk/ulc-common.h (iconv_string_length,
676 iconv_string_keeping_offsets): Remove declarations.
677 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
678 Don't include <iconv.h>, streq.h, xsize.h.
679 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
681 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
682 <iconv.h>, streq.h, xsize.h.
683 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
685 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
686 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
687 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
688 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
690 2008-05-10 Bruno Haible <bruno@clisp.org>
692 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
693 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
695 * modules/unilbrk/u32-width-linebreaks-tests: New file.
696 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
698 * modules/unilbrk/u16-width-linebreaks-tests: New file.
699 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
701 * modules/unilbrk/u8-width-linebreaks-tests: New file.
702 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
704 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
705 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
707 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
708 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
710 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
711 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
713 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
714 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
716 2008-05-10 Bruno Haible <bruno@clisp.org>
718 Split up 'linebreak' module.
719 * lib/unilbrk.h: New file, based on lib/linebreak.h.
720 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
721 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
723 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
724 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
725 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
727 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
729 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
731 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
732 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
733 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
735 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
737 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
739 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
741 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
743 * modules/unilbrk/base: New file.
744 * modules/unilbrk/tables: New file.
745 * modules/unilbrk/u8-possible-linebreaks: New file.
746 * modules/unilbrk/u16-possible-linebreaks: New file.
747 * modules/unilbrk/u32-possible-linebreaks: New file.
748 * modules/unilbrk/ulc-common: New file.
749 * modules/unilbrk/ulc-possible-linebreaks: New file.
750 * modules/unilbrk/u8-width-linebreaks: New file.
751 * modules/unilbrk/u16-width-linebreaks: New file.
752 * modules/unilbrk/u32-width-linebreaks: New file.
753 * modules/unilbrk/ulc-width-linebreaks: New file.
754 * lib/linebreak.h: Remove file.
755 * lib/linebreak.c: Remove file.
756 * m4/linebreak.m4: Remove file.
757 * modules/linebreak: Remove file.
758 * NEWS: Mention the changes.
760 2008-05-09 Eric Blake <ebb9@byu.net>
763 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
765 * lib/xmalloc.c (xmemdup0): New C implementation.
767 2008-05-08 Bruno Haible <bruno@clisp.org>
769 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
771 2008-05-07 Eric Blake <ebb9@byu.net>
773 Support cross-compilation of <wctype.h>.
774 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
777 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
779 * build-aux/vc-list-files: Add support for bzr.
781 2008-05-03 Jim Meyering <meyering@redhat.com>
783 avoid failed assertion with tight malloc
784 * tests/test-getndelim2.c: Correct an off-by-one assertion.
786 2008-05-03 Simon Josefsson <simon@josefsson.org>
788 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
789 are needed from arpa/inet.h.
790 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
791 Reported by Bruno Haible.
793 2008-05-02 Jim Meyering <meyering@redhat.com>
795 avoid compilation error on FreeBSD 6
796 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
798 2008-05-01 Jim Meyering <meyering@redhat.com>
800 useless-if-before-free: correct --help's exit status description
801 * build-aux/useless-if-before-free (usage): Like grep, exit 0
802 for one or more matches, etc. Reported by Bruno Haible.
804 vc-list-files: make the stand-alone gnulib test work
805 * modules/vc-list-files-tests (configure.ac):
806 Define and AC_SUBST abs_aux_dir.
807 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
808 $(abs_top_srcdir) to each script and having each of them
809 duplicate the work of setting PATH, set PATH here, using
810 the new variable, abs_aux_dir instead.
811 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
812 * tests/test-vc-list-files-git.sh: Likewise.
813 Reported by Bruno Haible.
815 2008-05-01 Bruno Haible <bruno@clisp.org>
817 * lib/getndelim2.c (getndelim2): Fix newsize computation during
818 reallocation. Rename 'done' to 'found_delimiter'.
820 2008-05-01 Jim Meyering <meyering@redhat.com>
822 vc-list-files: accommodate /bin/sh like the one from Solaris 10
823 * build-aux/vc-list-files: Use `...`, not $(...).
825 2008-04-30 Jim Meyering <meyering@redhat.com>
827 add tests for vc-list-files
828 * modules/vc-list-files-tests: New module.
829 * tests/test-vc-list-files-cvs.sh: New file.
830 * tests/test-vc-list-files-git.sh: New file.
832 avoid a warning from gcc
833 * lib/getndelim2.c (IF_LINT): Define.
834 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
836 vc-list-files: work properly with build-aux/cvsu, too
837 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
838 to all cvs-based clauses.
840 vc-list-files: work properly in the CVS+awk case, too
841 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
843 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
844 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
845 take more than one file argument, so . Add quotes, just in case $dir
846 ever contains a shell meta-character. Prompted by Soren Hansen in
847 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
849 2008-04-29 Eric Blake <ebb9@byu.net>
851 Optimize getndelim2 to use block operations when possible.
852 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
853 freadseek, and memchr2.
854 * lib/getndelim2.c (getndelim2): Use them for block reads.
856 2008-04-29 Bruno Haible <bruno@clisp.org>
858 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
859 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
860 * modules/inet_ntop (Depends-on): Add extensions.
861 * modules/inet_pton (Depends-on): Likewise.
862 Reported by Simon Josefsson.
864 2008-04-29 Jim Meyering <meyering@redhat.com>
866 When the is more than one match in a block, match all of them.
867 * build-aux/useless-if-before-free: Iterate through each block
868 until there are no more matches.
870 Fix broken useless-if-before-free script.
871 * build-aux/useless-if-before-free: Fix typo: missing "?" after
872 the expression to match cast of argument to free-like function.
874 2008-04-29 Eric Blake <ebb9@byu.net>
877 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
879 2008-04-29 Jim Meyering <meyering@redhat.com>
881 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
882 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
883 by gnulib to exist and to declare e.g., inet_ntop.
884 Don't include "inet_ntop.h", now removed.
886 * m4/arpa_inet_h.m4: Remove trailing blanks.
888 2008-04-29 Eric Blake <ebb9@byu.net>
890 Silence valgrind on safe reads beyond potential array bounds.
891 * lib/rawmemchr.valgrind: New file.
892 * lib/strchrnul.valgrind: Likewise.
893 * modules/rawmemchr (Files): Distribute new file.
894 * modules/strchrnul (Files): Likewise.
895 Suggested by Bruno Haible.
897 2008-04-29 Bruno Haible <bruno@clisp.org>
899 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
900 (inet_ntop, inet_pton): Change portability warning's wording.
901 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
902 Invoke gl_CHECK_NEXT_HEADERS.
903 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
904 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
906 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
907 * modules/arpa_inet (Description): No longer only for systems that
909 (Depends-on): Add include_next.
910 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
913 2008-04-29 Jim Meyering <meyering@redhat.com>
915 * modules/mkdir (License): Re-license as LGPLv2+.
917 2008-04-29 Bruno Haible <bruno@clisp.org>
919 * modules/rawmemchr (Maintainer): Set to Eric.
920 * modules/strchrnul (Maintainer): Likewise.
922 2008-04-29 Simon Josefsson <simon@josefsson.org>
924 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
925 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
927 * modules/arpa_inet (arpa/inet.h): Use them.
929 2008-04-28 Eric Blake <ebb9@byu.net>
932 * modules/getndelim2-tests: New file.
933 * tests/test-getndelim2.c: Likewise.
934 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
936 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
938 * MODULES.html.sh: Document new module.
940 2008-04-20 Bruno Haible <bruno@clisp.org>
942 * lib/c-stack.c (die): Use raise.
943 * modules/c-stack (Depends-on): Add raise.
945 2008-04-28 Bruno Haible <bruno@clisp.org>
947 Expect rpmatch to be declared.
948 * lib/yesno.c (rpmatch): Remove declaration.
951 * lib/stdlib.in.h (rpmatch): New declaration.
952 * lib/rpmatch.c: Include <stdlib.h> first.
953 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
954 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
955 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
957 * modules/rpmatch (Depends-on): Add stdlib, extensions.
958 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
959 (Include): Set to <stdlib.h>.
960 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
962 * NEWS: Document the change.
964 2008-04-28 Bruno Haible <bruno@clisp.org>
966 Change rpmatch to use nl_langinfo when appropriate.
967 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
969 (localized_pattern): New function/macro.
970 (try): Remove match, nomatch arguments. Copy the pattern into safe
971 memory before caching it.
972 (rpmatch): Use localized_pattern. Add translator comments.
973 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
974 Suggested by Eric Blake.
975 * modules/rpmatch (Depends-on): Add stdbool.
977 2008-04-28 Eric Blake <ebb9@byu.net>
979 Add rawmemchr module, matching glibc.
980 * modules/string (Makefile.am): New indicator.
981 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
982 * lib/string.in.h (rawmemchr): Declare when appropriate.
983 * modules/rawmemchr: New file.
984 * m4/rawmemchr.m4: Likewise.
985 * lib/rawmemchr.c: Likewise.
986 * modules/rawmemchr-tests: Likewise.
987 * tests/test-rawmemchr.c: Likewise.
988 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
990 * modules/strchrnul (Depends-on): Add rawmemchr.
991 * lib/strchrnul.c (strchrnul): Optimize a corner case.
994 * tests/test-strchrnul.c: Reindent.
995 * lib/strchrnul.c: Likewise.
997 Optimize and test strchrnul.
998 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
999 * modules/strchrnul-tests: New file.
1000 * tests/test-strchrnul.c: Likewise.
1002 Remove intprops dependency.
1003 * modules/memchr (Depends-on): Remove intprops.
1004 * modules/memrchr (Depends-on): Likewise.
1005 * modules/memchr2 (Depends-on): Likewise.
1006 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
1007 * lib/memrchr.c (__memrchr): Likewise.
1008 * lib/memrchr2.c (memchr2): Likewise.
1009 Reported by Simon Josefsson.
1011 2008-04-28 Simon Josefsson <simon@josefsson.org>
1013 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
1014 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1016 2008-04-28 Simon Josefsson <simon@josefsson.org>
1018 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
1020 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
1022 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
1024 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
1026 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
1028 * m4/inet_pton.m4: Don't check for header files.
1030 * m4/inet_ntop.m4: Don't check for header files.
1032 2008-04-28 Simon Josefsson <simon@josefsson.org>
1034 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
1035 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
1036 trigger for cygwin).
1037 Reported by Bruno Haible <bruno@clisp.org>.
1039 2008-04-28 Bruno Haible <bruno@clisp.org>
1041 * doc/posix-functions/strdup.texi: Mention mingw problem.
1043 2008-04-27 Bruno Haible <bruno@clisp.org>
1045 * modules/stat-time-tests (Depends-on): Add sleep.
1046 * tests/test-stat-time.c (force_unlink): New function.
1048 (test_mtime): Remove the ctime related tests.
1049 (test_ctime): New function, containing the ctime related tests.
1050 (main): Call test_ctime, except on native Windows platforms.
1052 2008-04-27 Bruno Haible <bruno@clisp.org>
1054 * lib/rpmatch.c (rpmatch): Add some comments.
1055 Reported by James Youngman <jay@gnu.org>.
1057 2008-04-27 Bruno Haible <bruno@clisp.org>
1059 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
1062 2008-04-27 Bruno Haible <bruno@clisp.org>
1064 Make test-yesno.sh work on mingw.
1065 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
1066 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
1067 (main): Set stdin to binary mode.
1068 * modules/yesno-tests (Depends-on): Add binary-io.
1070 2008-04-27 Bruno Haible <bruno@clisp.org>
1072 Fix 'isfinite' on x86, x86_64, ia64 platforms.
1073 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
1074 argument that lie outside the IEEE 854 domain.
1075 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
1076 (gl_ISFINITE): Use it.
1077 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
1079 2008-04-27 Bruno Haible <bruno@clisp.org>
1081 Allow local renaming in config.h.
1082 * lib/memrchr.c (memrchr): Don't undefine outside libc.
1084 2008-04-27 Bruno Haible <bruno@clisp.org>
1086 * lib/memchr.c (__memchr): Change type of 'i'.
1087 * lib/memchr2.c (memchr2): Likewise.
1089 2008-04-26 Eric Blake <ebb9@byu.net>
1090 and Bruno Haible <bruno@clisp.org>
1092 Optimize and test memrchr.
1093 * modules/memrchr (Depends-on): Add intprops.
1094 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
1095 * modules/memrchr-tests: New file.
1096 * tests/test-memrchr.c: New file.
1098 2008-04-26 Bruno Haible <bruno@clisp.org>
1100 Add tentative support for DragonFly BSD.
1101 * lib/stdio-impl.h: Add macros for DragonFly BSD.
1102 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
1104 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
1105 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
1106 * lib/fpurge.c (fpurge): Likewise.
1107 * lib/freadable.c (freaadable): Likewise.
1108 * lib/freadahead.c (freadahead): Likewise.
1109 * lib/freading.c (freading): Likewise.
1110 * lib/freadptr.c (freadptr): Likewise.
1111 * lib/freadseek.c (freadptrinc): Likewise.
1112 * lib/fseeko.c (fseeko): Likewise.
1113 * lib/fseterr.c (fseterr): Likewise.
1114 * lib/fwritable.c (fwritable): Likewise.
1115 * lib/fwriting.c (fwriting): Likewise.
1117 2008-04-26 Bruno Haible <bruno@clisp.org>
1119 * lib/stdio-impl.h: New file.
1120 * lib/fbufmode.c: Include stdio-impl.h.
1121 (fbufmode): Use fp_, remove redundant #defines.
1122 * lib/fflush.c: Include stdio-impl.h.
1123 (clear_ungetc_buffer): Remove redundant #defines.
1124 * lib/fpurge.c: Include stdio-impl.h.
1125 (fpurge): Remove redundant #defines.
1126 * lib/freadable.c: Include stdio-impl.h.
1127 (freadable): Remove redundant #defines.
1128 * lib/freadahead.c: Include stdio-impl.h.
1129 (freadahead): Remove redundant #defines.
1130 * lib/freading.c: Include stdio-impl.h.
1131 (freading): Remove redundant #defines.
1132 * lib/freadptr.c: Include stdio-impl.h.
1133 (freadptr): Remove redundant #defines.
1134 * lib/freadseek.c: Include stdio-impl.h.
1135 (freadptrinc): Remove redundant #defines.
1136 * lib/fseeko.c: Include stdio-impl.h.
1137 (rpl_fseeko): Remove redundant #defines.
1138 * lib/fseterr.c: Include stdio-impl.h.
1139 (fseterr): Remove redundant #defines.
1140 * lib/fwritable.c: Include stdio-impl.h.
1141 (fwritable: Remove redundant #defines.
1142 * lib/fwriting.c: Include stdio-impl.h.
1143 (fwriting): Remove redundant #defines.
1144 * modules/fbufmode (Files): Add lib/stdio-impl.h.
1145 * modules/fflush (Files): Likewise.
1146 * modules/fpurge (Files): Likewise.
1147 * modules/freadable (Files): Likewise.
1148 * modules/freadahead (Files): Likewise.
1149 * modules/freading (Files): Likewise.
1150 * modules/freadptr (Files): Likewise.
1151 * modules/freadseek (Files): Likewise.
1152 * modules/fseeko (Files): Likewise.
1153 * modules/fseterr (Files): Likewise.
1154 * modules/fwritable (Files): Likewise.
1155 * modules/fwriting (Files): Likewise.
1157 2008-04-26 Bruno Haible <bruno@clisp.org>
1159 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
1160 restore_seek_optimization, update_fpos_cache): New functions, extracted
1162 (rpl_fflush): Use them.
1163 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
1164 (gl_REPLACE_FFLUSH): Use it.
1166 2008-04-26 Bruno Haible <bruno@clisp.org>
1168 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
1170 * tests/test-xstrtoimax.sh: Likewise.
1171 * tests/test-xstrtoumax.sh: Likewise.
1172 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1174 2008-04-26 Bruno Haible <bruno@clisp.org>
1176 * modules/memchr-tests: New file.
1177 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
1179 2008-04-26 Eric Blake <ebb9@byu.net>
1180 Bruno Haible <bruno@clisp.org>
1182 * lib/memchr.c: Include intprops.h.
1183 (__memchr): Optimize parallel detection of matching bytes. Rename local
1184 variables. Add explanatory comments.
1186 2008-04-26 Bruno Haible <bruno@clisp.org>
1188 Fix module 'memchr', broken since 2000-10-28.
1189 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
1191 2008-04-26 Bruno Haible <bruno@clisp.org>
1193 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
1196 2008-04-25 Eric Blake <ebb9@byu.net>
1198 Use native fstatat on cygwin 1.7.0.
1199 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
1202 2008-04-23 Eric Blake <ebb9@byu.net>
1204 Improve memchr2 performance.
1205 * lib/memchr2.c (memchr2): Further optimize parallel detection of
1207 * modules/memchr2 (Depends-on): Use intprops.h.
1209 2008-04-23 Simon Josefsson <simon@josefsson.org>
1211 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
1212 an inline function instead of a CPP macro. Patch by Ben Pfaff
1213 <blp@cs.stanford.edu>.
1215 2008-04-23 Simon Josefsson <simon@josefsson.org>
1217 * lib/arpa_inet.in.h: New file.
1219 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
1220 (Makefile.am): Sed in substitute header file.
1222 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
1223 gl_ARPA_INET_MODULE_INDICATOR. Use them.
1225 * modules/inet_ntop (configure.ac): Use
1226 gl_ARPA_INET_MODULE_INDICATOR.
1228 * modules/inet_pton (configure.ac): Use
1229 gl_ARPA_INET_MODULE_INDICATOR.
1231 2008-04-22 Jim Meyering <meyering@redhat.com>
1233 * modules/verify (License): Re-license as LGPLv2+.
1235 2008-04-22 Simon Josefsson <simon@josefsson.org>
1237 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
1238 parameter to void* as per POSIX standard (MinGW uses char*).
1240 2008-04-21 Bruno Haible <bruno@clisp.org>
1242 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
1243 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
1244 Define to replacements if REPLACE_ISWCNTRL is 1.
1245 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
1246 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
1247 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
1248 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
1250 * doc/posix-functions/iswalpha.texi: Likewise.
1251 * doc/posix-functions/iswblank.texi: Likewise.
1252 * doc/posix-functions/iswcntrl.texi: Likewise.
1253 * doc/posix-functions/iswdigit.texi: Likewise.
1254 * doc/posix-functions/iswgraph.texi: Likewise.
1255 * doc/posix-functions/iswlower.texi: Likewise.
1256 * doc/posix-functions/iswprint.texi: Likewise.
1257 * doc/posix-functions/iswpunct.texi: Likewise.
1258 * doc/posix-functions/iswspace.texi: Likewise.
1259 * doc/posix-functions/iswupper.texi: Likewise.
1260 * doc/posix-functions/iswxdigit.texi: Likewise.
1261 Reported by Alain Guibert.
1263 2008-04-21 Bruno Haible <bruno@clisp.org>
1265 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
1266 Patch by Alain Guibert.
1268 2008-04-21 Bruno Haible <bruno@clisp.org>
1270 Fix test failures on mingw.
1271 * tests/test-xstrtol.c (print_no_progname): New function.
1272 (main): Install it in error_print_progname hook.
1273 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
1274 * tests/test-xstrtoimax.sh: Likewise.
1275 * tests/test-xstrtoumax.sh: Likewise.
1277 2008-04-21 Bruno Haible <bruno@clisp.org>
1279 Fix test failure on mingw.
1280 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
1282 2008-04-21 Bruno Haible <bruno@clisp.org>
1284 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
1285 Actually assign a value.
1287 2008-04-20 Bruno Haible <bruno@clisp.org>
1289 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
1291 * lib/canonicalize.c (canonicalize_file_name): Elide if the
1292 'canonicalize-lgpl' module is also used.
1293 * lib/canonicalize-lgpl.c: Undo last change.
1294 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
1296 2008-04-20 Bruno Haible <bruno@clisp.org>
1298 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
1299 config.h. Provide _mkdir based fallback for mingw.
1300 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
1301 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
1302 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
1303 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
1304 rather than defining mkdir in config.h.
1305 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
1306 (gl_SYS_STAT_H_DEFAULTS): New macro.
1307 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
1309 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
1310 HAVE_DECL_MKDIR and HAVE_IO_H.
1312 2008-04-20 Bruno Haible <bruno@clisp.org>
1314 * lib/isapipe.c: Port to native Windows platforms.
1316 2008-04-20 Bruno Haible <bruno@clisp.org>
1318 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
1320 2008-04-21 Eric Blake <ebb9@byu.net>
1322 Work around preprocessors that don't handle UINTMAX_MAX.
1323 * lib/memchr2.c (memchr2): Avoid embedded #if.
1324 Reported by Alain Guibert, fix suggested by Bruno Haible.
1326 2008-04-21 Simon Josefsson <simon@josefsson.org>
1328 * doc/posix-functions/strftime.texi (strftime): Explain better
1329 Windows incompatibility. Suggested by Micah Cowan
1332 2008-04-20 Bruno Haible <bruno@clisp.org>
1334 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
1337 2008-04-20 Bruno Haible <bruno@clisp.org>
1339 Fix test failure on platforms with non-GNU iconv.
1340 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
1341 (U_TO_U8): Use it, rather than u16_to_u8.
1342 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
1343 units at the end of the input string.
1344 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
1346 2008-04-20 Bruno Haible <bruno@clisp.org>
1348 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
1349 when the resulting length is 0.
1350 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
1352 2008-04-20 Bruno Haible <bruno@clisp.org>
1354 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
1356 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
1358 2008-04-20 Bruno Haible <bruno@clisp.org>
1360 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
1361 * modules/tsearch-tests (configure.ac): Test for initstate function.
1363 2008-04-20 Bruno Haible <bruno@clisp.org>
1365 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
1366 for nlink_t if missing.
1367 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
1369 2008-04-19 Bruno Haible <bruno@clisp.org>
1371 Work around snprintf bug on Linux libc5.
1372 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
1373 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
1375 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1376 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
1378 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
1379 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
1380 * modules/snprintf (Files): Add m4/printf.m4.
1381 * modules/vsnprintf (Files): Likewise.
1382 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
1383 * doc/posix-functions/vsnprintf.texi: Likewise.
1385 2008-04-19 Bruno Haible <bruno@clisp.org>
1387 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
1388 from 0.0058 to less than 10^-7.
1390 2008-04-19 Bruno Haible <bruno@clisp.org>
1392 Fix rounding when a precision is given.
1393 * lib/vasnprintf.c (is_borderline): New function.
1394 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
1396 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
1398 * tests/test-vasprintf-posix.c (test_function): Likewise.
1399 * tests/test-snprintf-posix.h (test_function): Likewise.
1400 * tests/test-sprintf-posix.h (test_function): Likewise.
1401 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
1402 * tests/test-printf-posix.h (test_function): Likewise.
1403 * tests/test-printf-posix.output: Update.
1404 Reported by John Darrington <john@darrington.wattle.id.au> via
1405 Ben Pfaff <blp@cs.stanford.edu>.
1407 2008-04-18 Simon Josefsson <simon@josefsson.org>
1409 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
1410 Suggested by Bruno Haible <bruno@clisp.org>.
1412 2008-04-17 Bruno Haible <bruno@clisp.org>
1414 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
1415 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
1417 Patch by Bruce Merry <bmerry@gmail.com>.
1419 2008-04-17 Simon Josefsson <simon@josefsson.org>
1421 * doc/posix-functions/strftime.texi (strftime): Mention that %e
1422 doesn't work under Windows.
1424 2008-04-16 Bruno Haible <bruno@clisp.org>
1426 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
1428 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
1429 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
1430 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
1431 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
1432 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
1433 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
1434 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
1436 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
1437 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
1438 Northern Sotho, Uighur.
1440 2008-04-16 Bruno Haible <bruno@clisp.org>
1442 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
1443 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
1444 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
1445 Reported by Daniel Bergström <daniel@octocode.com>.
1447 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
1448 Bruno Haible <bruno@clisp.org>
1450 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
1452 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
1453 New functions, mostly extracted from gl_locale_name_default.
1454 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
1456 2008-04-16 Eric Blake <ebb9@byu.net>
1458 Adjust strtod detection to catch glibc 2.7 bug.
1459 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
1460 Reported by John Gatewood Ham.
1462 2008-04-16 Bruno Haible <bruno@clisp.org>
1464 Add tentative support for Linux libc5.
1465 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
1466 * lib/fpurge.c (fpurge): Likewise.
1467 * lib/freadable.c (freadable): Likewise.
1468 * lib/freadahead.c (freadahead): Likewise.
1469 * lib/freading.c (freading): Likewise.
1470 * lib/freadptr.c (freadptr): Likewise.
1471 * lib/freadseek.c (freadptrinc): Likewise.
1472 * lib/fseeko.c (rpl_fseeko): Likewise.
1473 * lib/fseterr.c (fseterr): Likewise.
1474 * lib/fwritable.c (fwritable): Likewise.
1475 * lib/fwriting.c (fwriting): Likewise.
1476 Reported by Alain Guibert <alguibert+bts@free.fr>.
1478 2008-04-15 Bruno Haible <bruno@clisp.org>
1480 * modules/mathl (configure.ac): Define module indicator.
1482 2008-04-15 Bruno Haible <bruno@clisp.org>
1484 * lib/logl.c (logl): Remove unused variables.
1486 2008-04-15 Bruno Haible <bruno@clisp.org>
1488 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
1491 2008-04-15 Bruno Haible <bruno@clisp.org>
1493 * lib/trim.c (trim2): Fix argument of isspace() macro.
1495 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
1497 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
1499 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
1501 2008-04-14 Bruno Haible <bruno@clisp.org>
1503 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
1504 AC_LANG_PROGRAM argument.
1505 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
1506 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
1507 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
1508 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1509 * m4/math_h.m4 (gl_MATH_H): Likewise.
1510 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
1511 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
1512 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
1513 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
1514 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
1515 * m4/regex.m4 (gl_REGEX): Likewise.
1516 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
1517 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
1518 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1519 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
1520 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
1521 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
1522 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1523 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1525 2008-04-14 Jim Meyering <meyering@redhat.com>
1527 test-strtod: fix typos: s/abs/fabs/
1528 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
1530 2008-04-13 Bruno Haible <bruno@clisp.org>
1532 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
1533 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
1534 module is also used and while not building the reloc-wrapper.
1536 2008-04-13 Bruno Haible <bruno@clisp.org>
1538 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
1540 2008-04-13 Bruno Haible <bruno@clisp.org>
1542 Fix AIX compilation failure introduced on 2008-04-02.
1543 * tests/test-frexp.c (exp): Undefine before redefining.
1544 * tests/test-frexpl.c (exp): Likewise.
1546 2008-04-13 Bruno Haible <bruno@clisp.org>
1548 Work around a HP-UX stdio bug.
1549 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
1550 * tests/test-ftello.c (main): Likewise.
1551 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
1552 * doc/posix-functions/ftello.texi: Likewise.
1554 2008-04-13 Bruno Haible <bruno@clisp.org>
1556 Make test-signbit pass on HP-UX/hppa.
1557 * tests/test-signbit.c (minus_zerol): New variable.
1558 (test_signbitl): Use it.
1560 2008-04-13 Bruno Haible <bruno@clisp.org>
1562 Make truncl work on OSF/1 4.0.
1563 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
1564 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
1565 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
1566 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
1568 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
1570 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
1572 2008-04-13 Bruno Haible <bruno@clisp.org>
1574 * lib/unictype.h: Remove trailing comma from enumeration definitions.
1576 2008-04-13 Bruno Haible <bruno@clisp.org>
1578 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
1579 expression, so as to avoid HP-UX 11 cc compiler bug.
1581 2008-04-13 Bruno Haible <bruno@clisp.org>
1583 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
1585 2008-04-13 Bruno Haible <bruno@clisp.org>
1587 * lib/git-merge-changelog.c: Remove empty declaration outside of
1590 2008-04-13 Bruno Haible <bruno@clisp.org>
1592 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
1594 2008-04-13 Bruno Haible <bruno@clisp.org>
1596 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
1597 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
1598 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
1599 also if it exists but lacks definitions of the SHUT_* macros.
1600 * modules/sys_socket (Description): Update.
1601 Reported by Elbert Pol <e.pol@chello.nl>.
1603 2008-04-13 Bruno Haible <bruno@clisp.org>
1605 * lib/localcharset.c (OS2): Don't redefine if already defined.
1606 Reported by Elbert Pol <e.pol@chello.nl>.
1608 2008-04-13 Bruno Haible <bruno@clisp.org>
1610 * lib/binary-io.h [__EMX__]: Include <io.h>.
1611 Reported by Elbert Pol <e.pol@chello.nl>.
1613 2008-04-12 Bruno Haible <bruno@clisp.org>
1615 * lib/fpucw.h: Enable the definitions also for x86_64.
1616 Needed for NetBSD/x86_64.
1617 Reported by Thomas Klausner <tk@giga.or.at>.
1619 2008-04-12 Bruno Haible <bruno@clisp.org>
1621 * tests/test-strtod.c: Include isnand.h.
1622 (main): Use isnand instead of isnan.
1623 Reported by Jim Meyering.
1625 2008-04-12 Bruno Haible <bruno@clisp.org>
1627 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
1628 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
1630 2008-04-12 Jim Meyering <meyering@redhat.com>
1632 * m4/math_h.m4 (gl_MATH_H): Fix typos.
1634 2008-04-12 Bruno Haible <bruno@clisp.org>
1636 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
1637 Reported by Elbert Pol <e.pol@chello.nl>.
1639 2008-04-12 Eric Blake <ebb9@byu.net>
1641 Work around Solaris 10 math.h bug.
1642 * m4/math_h.m4 (gl_MATH_H): Check for bug.
1643 (gl_MATH_H_DEFAULTS): Set up default.
1644 * modules/math (Makefile.am): Replace new indicators.
1645 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
1646 * tests/test-math.c (main): Test this.
1647 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
1648 * doc/posix-headers/math.texi (math.h): Mention bug.
1649 Reported by Nelson H. F. Beebe and Jim Meyering.
1651 2008-04-11 Bruno Haible <bruno@clisp.org>
1653 Adapt to future versions of Apple GCC.
1654 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
1655 Reported by Peter O'Gorman <peter@pogma.com>.
1657 2008-04-11 Bruno Haible <bruno@clisp.org>
1659 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
1661 2008-04-11 Bruno Haible <bruno@clisp.org>
1663 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
1665 * modules/getaddrinfo-tests (Makefile.am): Define
1666 test_getaddrinfo_LDADD.
1668 2008-04-11 Bruno Haible <bruno@clisp.org>
1670 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
1671 (init): Fix syntax error.
1672 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
1675 2008-04-11 Bruno Haible <bruno@clisp.org>
1677 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
1678 * modules/glob (Depends-on): Add stdbool.
1680 2008-04-11 Bruno Haible <bruno@clisp.org>
1682 * lib/trim.c: Include <string.h>.
1684 2008-04-11 Eric Blake <ebb9@byu.net>
1686 Avoid compile failure on OS/2.
1687 * lib/regex_internal.h (internal_function): Disable optimization
1688 on OS/2 (__EMX__), where it caused compiler error.
1689 Reported by Elbert Pol.
1691 2008-04-11 Bruno Haible <bruno@clisp.org>
1693 Flush the standard error stream before aborting. Needed on mingw.
1694 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
1695 * tests/test-array_list.c (ASSERT): Likewise.
1696 * tests/test-array_oset.c (ASSERT): Likewise.
1697 * tests/test-avltree_list.c (ASSERT): Likewise.
1698 * tests/test-avltree_oset.c (ASSERT): Likewise.
1699 * tests/test-avltreehash_list.c (ASSERT): Likewise.
1700 * tests/test-binary-io.c (ASSERT): Likewise.
1701 * tests/test-byteswap.c (ASSERT): Likewise.
1702 * tests/test-c-ctype.c (ASSERT): Likewise.
1703 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
1704 * tests/test-c-strcasestr.c (ASSERT): Likewise.
1705 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
1706 * tests/test-c-strstr.c (ASSERT): Likewise.
1707 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
1708 * tests/test-canonicalize.c (ASSERT): Likewise.
1709 * tests/test-carray_list.c (ASSERT): Likewise.
1710 * tests/test-ceilf1.c (ASSERT): Likewise.
1711 * tests/test-ceilf2.c (ASSERT): Likewise.
1712 * tests/test-ceill.c (ASSERT): Likewise.
1713 * tests/test-count-one-bits.c (ASSERT): Likewise.
1714 * tests/test-fbufmode.c (ASSERT): Likewise.
1715 * tests/test-fflush2.c (ASSERT): Likewise.
1716 * tests/test-floorf1.c (ASSERT): Likewise.
1717 * tests/test-floorf2.c (ASSERT): Likewise.
1718 * tests/test-floorl.c (ASSERT): Likewise.
1719 * tests/test-fopen.c (ASSERT): Likewise.
1720 * tests/test-fpending.c (ASSERT): Likewise.
1721 * tests/test-fprintf-posix.c (ASSERT): Likewise.
1722 * tests/test-fpurge.c (ASSERT): Likewise.
1723 * tests/test-freadable.c (ASSERT): Likewise.
1724 * tests/test-freadahead.c (ASSERT): Likewise.
1725 * tests/test-freading.c (ASSERT): Likewise.
1726 * tests/test-freadptr.c (ASSERT): Likewise.
1727 * tests/test-freadptr2.c (ASSERT): Likewise.
1728 * tests/test-freadseek.c (ASSERT): Likewise.
1729 * tests/test-freopen.c (ASSERT): Likewise.
1730 * tests/test-frexp.c (ASSERT): Likewise.
1731 * tests/test-frexpl.c (ASSERT): Likewise.
1732 * tests/test-fseek.c (ASSERT): Likewise.
1733 * tests/test-fseeko.c (ASSERT): Likewise.
1734 * tests/test-fstrcmp.c (ASSERT): Likewise.
1735 * tests/test-ftell.c (ASSERT): Likewise.
1736 * tests/test-ftello.c (ASSERT): Likewise.
1737 * tests/test-func.c (ASSERT): Likewise.
1738 * tests/test-fwritable.c (ASSERT): Likewise.
1739 * tests/test-fwriting.c (ASSERT): Likewise.
1740 * tests/test-getdelim.c (ASSERT): Likewise.
1741 * tests/test-getline.c (ASSERT): Likewise.
1742 * tests/test-i-ring.c (ASSERT): Likewise.
1743 * tests/test-iconv-utf.c (ASSERT): Likewise.
1744 * tests/test-iconv.c (ASSERT): Likewise.
1745 * tests/test-isfinite.c (ASSERT): Likewise.
1746 * tests/test-isnand.c (ASSERT): Likewise.
1747 * tests/test-isnanf.c (ASSERT): Likewise.
1748 * tests/test-isnanl.h (ASSERT): Likewise.
1749 * tests/test-ldexpl.c (ASSERT): Likewise.
1750 * tests/test-linked_list.c (ASSERT): Likewise.
1751 * tests/test-linkedhash_list.c (ASSERT): Likewise.
1752 * tests/test-localename.c (ASSERT): Likewise.
1753 * tests/test-lseek.c (ASSERT): Likewise.
1754 * tests/test-mbscasecmp.c (ASSERT): Likewise.
1755 * tests/test-mbscasestr1.c (ASSERT): Likewise.
1756 * tests/test-mbscasestr2.c (ASSERT): Likewise.
1757 * tests/test-mbscasestr3.c (ASSERT): Likewise.
1758 * tests/test-mbscasestr4.c (ASSERT): Likewise.
1759 * tests/test-mbschr.c (ASSERT): Likewise.
1760 * tests/test-mbscspn.c (ASSERT): Likewise.
1761 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
1762 * tests/test-mbspbrk.c (ASSERT): Likewise.
1763 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
1764 * tests/test-mbsrchr.c (ASSERT): Likewise.
1765 * tests/test-mbsspn.c (ASSERT): Likewise.
1766 * tests/test-mbsstr1.c (ASSERT): Likewise.
1767 * tests/test-mbsstr2.c (ASSERT): Likewise.
1768 * tests/test-mbsstr3.c (ASSERT): Likewise.
1769 * tests/test-memchr2.c (ASSERT): Likewise.
1770 * tests/test-memmem.c (ASSERT): Likewise.
1771 * tests/test-open.c (ASSERT): Likewise.
1772 * tests/test-printf-frexp.c (ASSERT): Likewise.
1773 * tests/test-printf-frexpl.c (ASSERT): Likewise.
1774 * tests/test-printf-posix.c (ASSERT): Likewise.
1775 * tests/test-quotearg.c (ASSERT): Likewise.
1776 * tests/test-rbtree_list.c (ASSERT): Likewise.
1777 * tests/test-rbtree_oset.c (ASSERT): Likewise.
1778 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
1779 * tests/test-round1.c (ASSERT): Likewise.
1780 * tests/test-roundf1.c (ASSERT): Likewise.
1781 * tests/test-roundl.c (ASSERT): Likewise.
1782 * tests/test-signbit.c (ASSERT): Likewise.
1783 * tests/test-sleep.c (ASSERT): Likewise.
1784 * tests/test-snprintf-posix.c (ASSERT): Likewise.
1785 * tests/test-snprintf.c (ASSERT): Likewise.
1786 * tests/test-sprintf-posix.c (ASSERT): Likewise.
1787 * tests/test-stat-time.c (ASSERT): Likewise.
1788 * tests/test-strcasestr.c (ASSERT): Likewise.
1789 * tests/test-strerror.c (ASSERT): Likewise.
1790 * tests/test-striconv.c (ASSERT): Likewise.
1791 * tests/test-striconveh.c (ASSERT): Likewise.
1792 * tests/test-striconveha.c (ASSERT): Likewise.
1793 * tests/test-strsignal.c (ASSERT): Likewise.
1794 * tests/test-strstr.c (ASSERT): Likewise.
1795 * tests/test-strtod.c (ASSERT): Likewise.
1796 * tests/test-trunc1.c (ASSERT): Likewise.
1797 * tests/test-trunc2.c (ASSERT): Likewise.
1798 * tests/test-truncf1.c (ASSERT): Likewise.
1799 * tests/test-truncf2.c (ASSERT): Likewise.
1800 * tests/test-truncl.c (ASSERT): Likewise.
1801 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
1802 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
1803 * tests/test-vasnprintf.c (ASSERT): Likewise.
1804 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
1805 * tests/test-vasprintf.c (ASSERT): Likewise.
1806 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
1807 * tests/test-vprintf-posix.c (ASSERT): Likewise.
1808 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
1809 * tests/test-vsnprintf.c (ASSERT): Likewise.
1810 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
1811 * tests/test-wcwidth.c (ASSERT): Likewise.
1812 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
1813 * tests/test-xprintf-posix.c (ASSERT): Likewise.
1814 * tests/test-xvasprintf.c (ASSERT): Likewise.
1815 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
1816 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
1817 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
1818 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
1819 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
1820 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
1821 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
1822 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
1823 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
1824 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
1825 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
1826 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
1827 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
1828 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
1829 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
1830 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
1831 * tests/unictype/test-block_list.c (ASSERT): Likewise.
1832 * tests/unictype/test-block_of.c (ASSERT): Likewise.
1833 * tests/unictype/test-block_test.c (ASSERT): Likewise.
1834 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
1835 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
1836 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
1837 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
1838 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
1839 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
1840 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
1841 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
1842 * tests/unictype/test-combining.c (ASSERT): Likewise.
1843 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
1844 * tests/unictype/test-digit.c (ASSERT): Likewise.
1845 * tests/unictype/test-mirror.c (ASSERT): Likewise.
1846 * tests/unictype/test-numeric.c (ASSERT): Likewise.
1847 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
1848 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
1849 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
1850 * tests/unictype/test-scripts.c (ASSERT): Likewise.
1851 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
1852 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
1853 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
1854 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
1855 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
1856 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
1857 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
1858 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
1859 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
1860 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
1861 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
1862 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
1863 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
1864 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
1865 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
1866 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
1867 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
1868 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
1869 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
1870 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
1871 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
1872 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
1873 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
1874 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
1875 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
1876 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
1877 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
1878 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
1879 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
1880 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
1881 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
1882 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
1883 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
1884 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
1885 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
1886 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
1887 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
1888 Reported by Eric Blake.
1890 2008-04-11 Bruno Haible <bruno@clisp.org>
1892 * lib/wchar.in.h: Tweak comment.
1894 2008-04-11 Bruno Haible <bruno@clisp.org>
1896 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
1897 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
1899 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
1901 2008-04-11 Bruno Haible <bruno@clisp.org>
1903 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
1905 2008-04-11 Simon Josefsson <simon@josefsson.org>
1907 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
1908 of attempting to use non-existing /dev/*random. Based on patch
1909 from Adam Strzelecki <ono@java.pl> in
1910 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
1912 2008-04-08 Bruno Haible <bruno@clisp.org>
1914 Add tentative support for emx+gcc.
1915 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
1916 * lib/fpurge.c (fpurge): Likewise.
1917 * lib/freadable.c (freadable): Likewise.
1918 * lib/freadahead.c (freadahead): Likewise.
1919 * lib/freading.c (freading): Likewise.
1920 * lib/freadptr.c (freadptr): Likewise.
1921 * lib/freadseek.c (freadptrinc): Likewise.
1922 * lib/fseeko.c (rpl_fseeko): Likewise.
1923 * lib/fseterr.c (fseterr): Likewise.
1924 * lib/fwritable.c (fwritable): Likewise.
1925 * lib/fwriting.c (fwriting): Likewise.
1926 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
1928 2008-04-09 Eric Blake <ebb9@byu.net>
1930 Avoid some autoconf warnings.
1931 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
1932 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
1933 * m4/afs.m4 (gl_AFS): Likewise.
1934 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
1935 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
1936 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
1937 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
1938 (gl_INTEGER_TYPE_SUFFIX): Likewise.
1939 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
1940 (AC_CHECK_DECLS_ONCE): Likewise.
1942 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
1943 gnulib-tool requires autoconf 2.59 or better.
1944 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
1946 2008-04-08 Eric Blake <ebb9@byu.net>
1948 Use 'git describe --match' if present (added in git 1.5.5).
1949 * build-aux/git-version-gen: Limit result to tags that match 'v*'
1952 2008-04-08 Bruno Haible <bruno@clisp.org>
1954 Add tentative support for OpenServer.
1955 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
1957 * lib/fpurge.c (fpurge): Likewise.
1958 * lib/freadable.c (freadable): Likewise.
1959 * lib/freadahead.c (freadahead): Likewise.
1960 * lib/freading.c (freading): Likewise.
1961 * lib/freadptr.c (freadptr): Likewise.
1962 * lib/freadseek.c (freadptrinc): Likewise.
1963 * lib/fseeko.c (rpl_fseeko): Likewise.
1964 * lib/fseterr.c (fseterr): Likewise.
1965 * lib/fwritable.c (fwritable): Likewise.
1966 * lib/fwriting.c (fwriting): Likewise.
1967 Reported by Roger Cornelius <rac@tenzing.org> and
1968 Brian K. White <brian@aljex.com>.
1970 2008-04-06 Jim Meyering <meyering@redhat.com>
1972 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
1974 2008-04-06 Bruno Haible <bruno@clisp.org>
1976 Avoid possible error with non-ASCII bytes in UTF-8 locales.
1977 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
1978 * tests/test-printf-posix.sh: Likewise.
1979 * tests/test-vfprintf-posix.sh: Likewise.
1980 * tests/test-vprintf-posix.sh: Likewise.
1981 * tests/test-xprintf-posix.sh: Likewise.
1983 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1985 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
1986 hide error from 'ls', needed on OS/2.
1987 Report by Elbert Pol <elbert.pol@gmail.com>.
1989 2008-04-04 Eric Blake <ebb9@byu.net>
1991 Make test-fseeko.c failures meaningful.
1992 * tests/test-fseeko.c: Print line number on failure.
1993 * tests/test-fseek.c: Likewise.
1994 Reported by Nelson H. F. Beebe.
1996 Improve strtod bug detection check.
1997 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
1998 required for Solaris 10.
1999 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
2001 2008-04-04 Bruno Haible <bruno@clisp.org>
2003 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
2006 2008-04-03 Eric Blake <ebb9@byu.net>
2008 Ensure sane .version contents.
2009 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
2011 * build-aux/git-version-gen: Improve documentation.
2013 Make GNU make output nicer.
2014 * top/GNUmakefile [!_have-Makefile]: Add dependency on
2015 MAKECMDGOALS to enforce message for all command line targets. Set
2016 srcdir for use in maint.mk.
2018 Another maintainer tweak.
2019 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
2020 a target that regenerates version.
2022 2008-04-03 Jim Meyering <meyering@redhat.com>
2024 vc-list-files: don't cause coreutils "make po-check" failure
2025 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
2027 2008-04-03 Eric Blake <ebb9@byu.net>
2029 Allow VPATH usage of vc-list-files.
2030 * build-aux/vc-list-files (scriptversion): Add timestamp.
2031 (options): Add --help, --version, -C.
2032 (CVS): Support installed cvsu.
2034 2008-04-02 Bruno Haible <bruno@clisp.org>
2036 Avoid some "statement with no effect" warnings from gcc.
2037 * tests/test-wctype.c (main): Explicitly ignore unused values.
2038 Reported by Jim Meyering.
2040 2008-04-02 Jim Meyering <meyering@redhat.com>
2042 Avoid some warnings from "gcc -Wshadow".
2043 * tests/test-frexp.c (exp): Define to a different identifier.
2044 * tests/test-frexpl.c (exp): Likewise.
2046 2008-04-03 Jim Meyering <meyering@redhat.com>
2048 bootstrap: remove dangling *.[ch] symlinks from lib
2049 * build-aux/bootstrap [dangling symlink removal]: Move find's
2050 -depth option to precede all others, to avoid a warning.
2051 Remove *.[ch] files too, and from "$source_base" (usually lib/).
2053 2008-04-02 Bruno Haible <bruno@clisp.org>
2055 Avoid some warnings from "gcc -Wshadow".
2056 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
2057 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
2058 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
2059 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
2060 Reported by Jim Meyering.
2062 2008-04-01 Bruno Haible <bruno@clisp.org>
2064 Fix test to work on IRIX 6.5 with cc.
2065 * tests/test-math.c (numeric_equal): New function.
2068 2008-04-01 Bruno Haible <bruno@clisp.org>
2070 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
2072 2008-04-01 Bruno Haible <bruno@clisp.org>
2074 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
2075 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
2076 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
2077 (Depends-on): Remove math.
2079 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
2080 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
2081 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
2082 (Depends-on): Remove math.
2084 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
2085 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
2086 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
2087 (Depends-on): Remove math.
2088 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
2089 (Depends-on): Remove math.
2091 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
2092 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
2093 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
2094 (Depends-on): Remove math.
2095 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
2096 (Depends-on): Remove math.
2098 * tests/test-round1.c: Include nan.h.
2099 (main): Use NaNd instead of NAN.
2100 * modules/round-tests (Files): Add tests/nan.h.
2102 * tests/test-trunc1.c: Include nan.h.
2103 (main): Use NaNd instead of NAN.
2104 * modules/trunc-tests (Files): Add tests/nan.h.
2106 * tests/test-roundf1.c: Include nan.h.
2107 (main): Use NaNf instead of NAN.
2108 * modules/roundf-tests (Files): Add tests/nan.h.
2110 * tests/test-truncf1.c: Include nan.h.
2111 (main): Use NaNf instead of NAN.
2112 * modules/truncf-tests (Files): Add tests/nan.h.
2114 * tests/test-ceilf1.c: Include nan.h.
2115 (main): Use NaNf instead of NAN.
2116 * modules/ceilf-tests (Files): Add tests/nan.h.
2118 * tests/test-floorf1.c: Include nan.h.
2119 (main): Use NaNf instead of NAN.
2120 * modules/floorf-tests (Files): Add tests/nan.h.
2122 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
2123 (main): Use NaNf instead of NAN.
2124 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
2126 * tests/test-isnand.c: Include nan.h instead of <math.h>.
2127 (main): Use NaNd instead of NAN.
2128 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
2130 * tests/test-frexp.c: Include nan.h.
2131 (main): Use NaNd instead of NAN.
2132 * modules/frexp-tests (Files): Add tests/nan.h.
2134 * lib/isnan.c: Don't include <math.h>.
2135 (FUNC): Don't use NAN macro.
2136 * modules/isnand-nolibm (Depends-on): Remove math.
2137 * modules/isnanf-nolibm (Depends-on): Remove math.
2138 * modules/isnanl (Depends-on): Remove math.
2139 * modules/isnanl-nolibm (Depends-on): Remove math.
2141 * tests/nan.h: New file.
2143 2008-04-01 Eric Blake <ebb9@byu.net>
2146 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
2147 values to be the right type.
2149 For now, cater to gnulib strtod inaccuracies.
2150 * tests/test-strtod.c (main): Allow 1-ulp error on expected
2151 fractional results. While not as nice from a QoI perspective, it
2152 is a quicker patch than correctly implementing decimal to binary
2155 2008-03-31 Eric Blake <ebb9@byu.net>
2157 Guarantee a definition of NAN.
2158 * lib/math.in.h (NAN): Define if missing.
2159 * tests/test-math.c (main): Test it.
2160 * doc/posix-headers/math.texi (math.h): Document this.
2161 * lib/isnan.c (rpl_isnand): Use it.
2162 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
2163 * tests/test-floorf1.c (NaN): Likewise.
2164 * tests/test-frexp.c (NaN): Likewise.
2165 * tests/test-isnand.c (NaN): Likewise.
2166 * tests/test-isnanf.c (NaN): Likewise.
2167 * tests/test-round1.c (NaN): Likewise.
2168 * tests/test-roundf1.c (NaN): Likewise.
2169 * tests/test-snprintf-posix.h (NaN): Likewise.
2170 * tests/test-sprintf-posix.h (NaN): Likewise.
2171 * tests/test-trunc1.c (NaN): Likewise.
2172 * tests/test-truncf1.c (NaN): Likewise.
2173 * tests/test-vasnprintf-posix.c (NaN): Likewise.
2174 * tests/test-vasprintf-posix.c (NaN): Likewise.
2175 * modules/isnand-nolibm (Depends-on): Add math.
2176 * modules/isnanf-nolibm (Depends-on): Likewise.
2177 * modules/isnanl (Depends-on): Likewise.
2178 * modules/isnanl-nolibm (Depends-on): Likewise.
2179 * modules/snprintf-posix-tests (Depends-on): Likewise.
2180 * modules/sprintf-posix-tests (Depends-on): Likewise.
2181 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
2182 * modules/vsprintf-posix-tests (Depends-on): Likewise.
2183 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
2184 * modules/vasprintf-posix-tests (Depends-on): Likewise.
2186 2008-03-31 Bruno Haible <bruno@clisp.org>
2188 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
2189 * doc/posix-functions/strtod.texi: Likewise.
2191 2008-03-31 Bruno Haible <bruno@clisp.org>
2193 * tests/test-strtod.c (main): Don't use C99 syntax.
2195 2008-03-31 Bruno Haible <bruno@clisp.org>
2197 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
2198 Reported by Eric Blake.
2200 2008-03-31 Jim Meyering <meyering@redhat.com>
2202 Don't compare actual signbit return values.
2203 * tests/test-strtod.c (main): Rather, compare only their
2204 zero/non-zero nature.
2206 2008-03-31 Eric Blake <ebb9@byu.net>
2208 More strtod documentation.
2209 * doc/posix-functions/strtod.texi (strtod): Interpret more test
2210 failures as distinct bugs.
2212 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
2214 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
2215 Problem reported by Erik Benada in
2216 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
2218 2008-03-30 Bruno Haible <bruno@clisp.org>
2220 * tests/test-strtod.c: Add comments about which assertion fails on which
2222 * doc/posix-functions/strtod.texi: Add info about many more platforms.
2224 2008-03-30 Eric Blake <ebb9@byu.net>
2226 Test signbit behavior on zeros.
2227 * tests/test-signbit.c (test_signbitf): Add tests for zero.
2228 (test_signbitd, test_signbitl): Likewise.
2230 More strtod touchups.
2231 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
2232 sign of negative underflow, for now. Use .5, not .1.
2233 * doc/posix-functions/strtod.texi (strtod): Mention these
2235 Reported by Jim Meyering.
2237 2008-03-30 Bruno Haible <bruno@clisp.org>
2239 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
2240 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
2242 2008-03-30 Bruno Haible <bruno@clisp.org>
2244 Avoid failure when attempting to return empty iconv results on some
2246 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
2247 allocation, don't report ENOMEM when the resulting string is empty.
2249 2008-03-30 Bruno Haible <bruno@clisp.org>
2252 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
2253 Don't consider the width for tmp_length. Check count against tmp_length
2254 before doing the padding. Ensure enough allocation during padding.
2256 2008-03-30 Eric Blake <ebb9@byu.net>
2259 * lib/strtod.c (strtod): Avoid compiler warnings.
2260 Reported by Jim Meyering.
2262 2008-03-30 Bruno Haible <bruno@clisp.org>
2264 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
2265 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
2266 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
2267 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
2268 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
2269 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
2270 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
2271 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
2273 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
2274 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
2275 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
2276 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
2277 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
2278 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
2279 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
2280 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
2282 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
2283 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
2284 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
2285 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
2286 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
2287 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
2288 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
2289 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
2291 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
2292 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
2294 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
2295 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
2297 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
2298 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
2300 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
2301 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
2302 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
2304 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
2305 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
2306 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
2308 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
2309 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
2310 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
2312 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
2313 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
2314 * modules/vasprintf (Depends-on): Add EOVERFLOW.
2316 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
2317 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
2318 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
2319 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
2320 (Depends-on): Add EOVERFLOW.
2321 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
2322 (Depends-on): Add EOVERFLOW.
2323 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
2324 (Depends-on): Add EOVERFLOW.
2325 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
2326 (Depends-on): Add EOVERFLOW.
2327 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
2328 (Depends-on): Add EOVERFLOW.
2329 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
2330 (Depends-on): Add EOVERFLOW.
2331 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
2332 (Depends-on): Add EOVERFLOW.
2333 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
2334 (Depends-on): Add EOVERFLOW.
2336 * lib/sprintf.c (EOVERFLOW): Remove fallback.
2337 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
2338 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
2340 * lib/snprintf.c (EOVERFLOW): Remove fallback.
2341 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
2342 * modules/snprintf (Depends-on): Add EOVERFLOW.
2344 * lib/poll.c (EOVERFLOW): Remove fallback.
2345 * modules/poll (Depends-on): Add EOVERFLOW.
2347 * lib/getugroups.c (EOVERFLOW): Remove fallback.
2348 * modules/getugroups (Depends-on): Add EOVERFLOW.
2350 * lib/getdelim.c (EOVERFLOW): Remove fallback.
2351 * modules/getdelim (Depends-on): Add EOVERFLOW.
2353 * lib/ftell.c (EOVERFLOW): Remove fallback.
2354 * modules/ftell (Depends-on): Add EOVERFLOW.
2356 * lib/fprintf.c (EOVERFLOW): Remove fallback.
2357 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
2358 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
2360 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
2362 * modules/EOVERFLOW-tests: New file.
2363 * tests/test-EOVERFLOW.c: New file.
2365 * modules/EOVERFLOW: New file.
2366 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
2368 2008-03-30 Bruno Haible <bruno@clisp.org>
2370 Fix bug introduced on 2007-06-10.
2371 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
2372 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
2374 2008-03-30 Bruno Haible <bruno@clisp.org>
2376 Improve freadseek's efficiency after ungetc.
2377 * lib/freadseek.c: Include freadahead.h.
2378 (freadptrinc): New function, extracted from freadseek.
2379 (freadseek): Use it in a loop. Use freadahead to determine the number
2381 * modules/freadseek (Depends-on): Add freadahead.
2382 (configure.ac): Require AC_C_INLINE.
2384 2008-03-30 Bruno Haible <bruno@clisp.org>
2386 * lib/freadseek.c (freadseek): Don't ignore the return value of
2389 2008-03-29 Eric Blake <ebb9@byu.net>
2391 Add hex float support.
2392 * modules/strtod (Depends-on): Add c-ctype.
2393 (Link): Mention POW_LIB.
2394 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
2395 whitespace between 'e' and exponent.
2396 * tests/test-strtod.c (main): Enable hex float tests.
2397 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
2400 Document various strtod bugs, with some fixes.
2401 * doc/posix-functions/strtod.texi (strtod): Document bugs with
2402 "-0x", "inf", "nan", and hex constants.
2403 * doc/posix-functions/atof.texi (atof): Likewise.
2404 * modules/stdlib (Makefile.am): Support strtod.
2405 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
2406 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
2407 detect additional strtod bugs.
2408 * lib/stdlib.in.h (rpl_strtod): Add declarations.
2409 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
2410 bool where appropriate. Parse 'inf' and 'nan'.
2411 * tests/test-strtod.c: New file.
2412 * modules/strtod (Depends-on): Add stdbool, stdlib.
2413 (configure.ac): Turn on module indicator.
2414 * modules/strtod-tests: New module.
2416 2008-03-29 Eric Blake <ebb9@byu.net>
2419 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
2420 * modules/ftell-tests (Depends-on): Add binary-io.
2421 * modules/ftello-tests (Depends-on): Likewise.
2422 * tests/test-ftell.c (main): Enhance test to cover behavior after
2423 ungetc. Enforce binary mode.
2424 * tests/test-ftello.c (main): Likewise.
2426 Pass test-freadseek on cygwin.
2427 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
2428 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
2431 * tests/test-fflush2.c (main): Fix typo.
2433 2008-03-29 Bruno Haible <bruno@clisp.org>
2435 * tests/test-fflush2.c (main): Temporarily disable the contents of
2437 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
2438 Reported by Eric Blake.
2440 2008-03-28 Simon Josefsson <simon@josefsson.org>
2442 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
2443 (GC_SHA224_DIGEST_SIZE): Add.
2445 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
2446 (gc_hash_digest_length): Likewise.
2447 (gc_hash_buffer): Likewise.
2449 2008-03-25 Bruno Haible <bruno@clisp.org>
2451 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
2452 detail which gettext release to use.
2453 Reported by Simon Josefsson.
2455 2008-03-26 Jim Meyering <meyering@redhat.com>
2457 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
2458 * modules/gnumakefile (clean-GNUmakefile): Also, use
2459 test ... && ... || : syntax rather than if-then ... fi.
2461 gnumakefile: Don't double-quote-expand $(VPATH) value.
2462 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
2464 2008-03-24 Eric Blake <ebb9@byu.net>
2466 Alter GNUmakefile to install into top directory.
2467 * modules/maintainer-makefile: Split, and add dependency...
2468 * modules/gnumakefile: to this new module.
2469 * build-aux/GNUmakefile: Move...
2470 * top/GNUmakefile: ...here.
2471 * build-aux/maint.mk: Move...
2472 * top/maint.mk: ...here.
2473 * MODULES.html.sh (Support for maintaining...): Document new
2476 2008-03-23 Bruno Haible <bruno@clisp.org>
2478 * gnulib-tool: New options --vc-files, --no-vc-files.
2479 (func_usage): Document them.
2480 (vc_files): New variable.
2481 (func_import): Consider vc_files.
2482 (func_create_testdir): Set vc_files to empty.
2483 Suggested by Jim Meyering and Karl Berry.
2485 2008-03-23 Bruno Haible <bruno@clisp.org>
2487 Fix regex compilation error on HP-UX 11.
2488 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
2489 * modules/regex (Files): Add m4/mbstate_t.m4.
2490 Reported by Ton Voon <ton.voon@altinity.com>.
2492 2008-03-23 Bruno Haible <bruno@clisp.org>
2494 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
2496 2008-03-23 Eric Blake <ebb9@byu.net>
2497 Bruno Haible <bruno@clisp.org>
2499 Install files from top/ in the destination directory.
2500 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
2501 augmentation also for the files from top/.
2502 (func_import, func_create_testdir): Rewrite file names:
2503 top/filename -> filename.
2505 2008-03-23 Bruno Haible <bruno@clisp.org>
2507 Tweak "gnulib --version" output.
2508 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
2510 2008-03-23 Bruno Haible <bruno@clisp.org>
2512 Tweak "gnulib --version" output.
2513 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
2514 rather than contents of ChangeLog, when possible.
2516 2008-03-21 Eric Blake <ebb9@byu.net>
2518 More --version tweaks.
2519 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
2520 date of last ChangeLog entry.
2522 2008-03-21 Jim Meyering <meyering@redhat.com>
2524 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
2526 2008-03-20 Eric Blake <ebb9@byu.net>
2529 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
2531 2008-03-20 Simon Josefsson <simon@josefsson.org>
2533 * build-aux/GNUmakefile: Make git-version-gen optional. Add
2534 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
2536 2008-03-20 Eric Blake <ebb9@byu.net>
2538 Sync GNUmakefile with coreutils.
2539 * build-aux/GNUmakefile (have-Makefile): Rename...
2540 (_have-Makefile): ...to this, for namespace consideration.
2541 (GNUmakefile.cfg): Include, if present.
2542 (_autoreconf): Define a default.
2543 (_is-dist-target): New rule for rebuilds to pick up intra-release
2545 (maint-cfg.mk): Rename...
2546 (cfg.mk): ...to this.
2548 2008-03-18 Jim Meyering <meyering@redhat.com>
2550 New script and module: mktempd
2551 * MODULES.html.sh (maint+release support): Add mktempd.
2552 * build-aux/mktempd: New file.
2553 * modules/mktempd: New file.
2555 2008-03-15 Jim Meyering <meyering@redhat.com>
2558 * lib/sha1.c, lib/md5.c: 63 != ~63.
2559 Reported by Andreas Schwab.
2561 sha1.c, md5.c: Hoist a redundant expression.
2562 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
2563 "ctx->buflen" only once, before calling *_process_block.
2564 * lib/md5.c (md5_process_bytes): Likewise.
2566 2008-03-14 Eric Blake <ebb9@byu.net>
2568 Bump copyright year in files generated by gnulib-tool.
2569 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
2570 gnulib-tool, rather than hard-coding it.
2572 Fix 'gnulib-tool --version' output to work with git.
2573 * gnulib-tool (func_gnulib_dir): New function, extracted from...
2575 (func_version): Use it to invoke git-version-gen, rather than
2576 relying on CVS keyword expansion. Modernize wording.
2577 (cvsdatestamp, last_checkin_date, version): Kill unused
2580 2008-03-12 Jim Meyering <meyering@redhat.com>
2582 Recognize optional cast of the argument to free.
2583 * build-aux/useless-if-before-free: Update regexps.
2585 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
2587 2008-03-11 Bruno Haible <bruno@clisp.org>
2589 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
2590 by a single package.
2591 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
2592 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
2593 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
2594 Reported by Sam Steingold <sds@gnu.org>.
2596 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
2598 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
2601 2008-03-11 Bruno Haible <bruno@clisp.org>
2603 Avoid conflicts between local macro definitions.
2604 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
2605 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
2607 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
2608 Bruno Haible <bruno@clisp.org>
2610 Make va_copy work with some version of xlc on AIX 5.1.
2611 * lib/stdarg.in.h: New file.
2612 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
2613 On AIX, use a <stdarg.h> file substitute.
2614 * modules/stdarg (Files): Add lib/stdarg.in.h.
2615 (Depends-on): Add include_next.
2616 (Makefile.am): Build a stdarg.h substitute if requested.
2617 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
2619 2008-03-10 Bruno Haible <bruno@clisp.org>
2621 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
2622 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
2623 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
2625 2008-03-10 Bruno Haible <bruno@clisp.org>
2627 * modules/stdlib (Depends-on): Add include_next, remove
2630 2008-03-09 Bruno Haible <bruno@clisp.org>
2632 * lib/freadahead.h (freadahead): Document more precisely.
2633 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
2634 the sum of both buffer sizes.
2635 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
2636 * NEWS: Document the change.
2638 2008-03-09 Bruno Haible <bruno@clisp.org>
2640 Extend freadptr to return also the buffer size.
2641 * lib/freadptr.h (freadptr): Add sizep argument.
2642 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
2643 (freadptr): Add sizep argument. Determine buffer size like freadahead
2645 * tests/test-freadptr.c: Don't include freadahead.h.
2646 (main): Adapt for new calling convention of freadptr.
2647 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
2648 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
2649 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
2650 tests/test-freadptr2.sh.
2651 (Depends): Remove freadahead.
2652 (TESTS): Add test-freadptr2.sh.
2653 (check_PROGRAMS): Add test-freadptr2.
2655 2008-03-09 Bruno Haible <bruno@clisp.org>
2657 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
2658 Report and solution by Simon Josefsson.
2660 2008-03-06 Bruno Haible <bruno@clisp.org>
2662 Make fflush after ungetc work on BSD platforms.
2663 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
2664 * tests/test-fflush2.c: New file.
2665 * tests/test-fflush2.sh: New file.
2666 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
2667 tests/test-fflush2.c.
2668 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
2669 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
2671 2008-03-06 Eric Blake <ebb9@byu.net>
2673 Likewise for ftello.
2674 * modules/ftello (Dependencies): Add extensions.
2675 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
2677 2008-03-06 Bruno Haible <bruno@clisp.org>
2679 * modules/fseeko (Dependencies): Add extensions.
2680 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
2681 Needed on glibc systems.
2683 2008-03-06 Bruno Haible <bruno@clisp.org>
2685 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
2687 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
2689 2008-03-06 Bruno Haible <bruno@clisp.org>
2691 * users.txt: Add libgnupdf.
2693 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
2695 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
2696 (Header File Substitutes, Function Substitutes,
2697 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
2698 (Build robot for gnulib): Fix typo.
2700 2008-03-06 Bruno Haible <bruno@clisp.org>
2702 * doc/gnulib-tool.texi (VCS Issues): Small updates.
2703 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
2705 2008-03-06 Bruno Haible <bruno@clisp.org>
2707 * doc/func.texi: New file, extracted from doc/gnulib.texi.
2708 * doc/gnulib.texi: Include it.
2710 2008-03-06 Simon Josefsson <simon@josefsson.org>
2712 * modules/func (License): Change license to unlimited; there was
2713 no LGPL parts in the module anyway.
2715 2008-03-06 Simon Josefsson <simon@josefsson.org>
2717 * modules/__func__: Renamed to modules/func.
2718 * modules/__func__-tests: Renamed to modules/func-tests.
2719 * tests/test-__func__.c: Renamed to tests/test-func.c.
2720 * m4/__func__.m4: Renamed to m4/func.m4.
2721 * doc/gnulib.texi (__func__): Section renamed to func.
2722 Suggested by Eric Blake <ebb9@byu.net>.
2724 2008-03-06 Simon Josefsson <simon@josefsson.org>
2726 * doc/gnulib.texi (__func__): Use C99 terminology when talking
2727 about __func__. Make example self-contained. Suggested by Eric
2728 Blake <ebb9@byu.net>.
2730 * tests/test-__func__.c (main): Avoid extraneous () around __func.
2731 Suggested by Eric Blake <ebb9@byu.net>.
2733 2008-03-06 Simon Josefsson <simon@josefsson.org>
2735 * modules/__func__: New file.
2736 * modules/__func__-tests: New file.
2737 * tests/test-__func__.c: New file.
2738 * m4/__func__.m4: New file.
2739 * doc/gnulib.texi (__func__): Document __func__ module.
2741 2008-03-05 Simon Josefsson <simon@josefsson.org>
2743 * modules/byteswap (License): Re-license as LGPLv2+.
2745 2008-03-05 Simon Josefsson <simon@josefsson.org>
2747 * doc/Makefile: Add pdf target.
2749 2008-03-05 Simon Josefsson <simon@josefsson.org>
2751 * modules/inline (License): Use 'unlimited', since there are only
2752 *.m4 files in this module.
2754 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
2755 Bruno Haible <bruno@clisp.org>
2757 Add support for HP C 7.1 on OpenVMS 8.3.
2758 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
2760 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
2762 Update VMS specifics.
2763 * lib/getopt.c [VMS]: Remove include of unixlib.h.
2765 2008-03-02 Jim Meyering <meyering@redhat.com>
2767 Remove the last dependency on the "free" module.
2768 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
2769 Reported by Bob Proulx.
2771 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
2773 Remove useless "if" tests before free. Deprecate "free" module.
2774 * doc/posix-functions/free.texi: Mention that this
2775 module is no longer useful.
2776 * modules/free (Notice): Say this module is obsolete.
2777 * modules/readutmp (Depends-on): Remove free.
2778 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
2779 * lib/putenv.c (putenv): Likewise.
2780 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
2781 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
2782 * tests/test-c-strcasestr.c (main): Likewise.
2783 * tests/test-c-strstr.c (main): Likewise.
2784 * tests/test-mbscasestr1.c (main): Likewise.
2785 * tests/test-mbscasestr2.c (main): Likewise.
2786 * tests/test-mbsstr1.c (main): Likewise.
2787 * tests/test-mbsstr2.c (main): Likewise.
2788 * tests/test-memmem.c (main): Likewise.
2789 * tests/test-strcasestr.c (main): Likewise.
2790 * tests/test-striconv.c (main): Likewise.
2791 * tests/test-striconveh.c (main): Likewise.
2792 * tests/test-striconveha.c (main): Likewise.
2793 * tests/test-strstr.c (main): Likewise.
2795 * build-aux/git-version-gen: Adjust a comment and the Usage string.
2797 bootstrap: sync from coreutils again
2798 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
2800 2008-03-01 Jim Meyering <meyering@redhat.com>
2802 bootstrap: sync from coreutils
2803 * build-aux/bootstrap (update_po_files): Copy a .po file into place
2804 also when the target doesn't exist.
2806 2008-03-01 Eric Blake <ebb9@byu.net>
2808 Fix bugs in last patch.
2809 * lib/memchr2.c (memchr2): Fix typo.
2810 * tests/test-memchr2.c: Test previous bug, and don't use GNU
2812 Reported by Bruce Korb.
2814 New module 'memchr2'.
2815 * modules/memchr2: New file.
2816 * modules/memchr2-tests: Likewise.
2817 * lib/memchr2.h: Likewise.
2818 * lib/memchr2.c: Likewise, based on memchr.c.
2819 * tests/test-memchr2.c: New test.
2820 * MODULES.html.sh (String handling): Add memchr2.
2822 2008-02-29 Bruno Haible <bruno@clisp.org>
2824 * modules/freadseek-tests: New file.
2825 * tests/test-freadseek.sh: New file.
2826 * tests/test-freadseek.c: New file.
2828 New module 'freadseek'.
2829 * modules/freadseek: New file.
2830 * lib/freadseek.h: New file.
2831 * lib/freadseek.c: New file.
2832 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
2834 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
2836 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
2839 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
2840 program_invocation_name and program_invocation_short_name are
2843 2008-02-28 Bruno Haible <bruno@clisp.org>
2845 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
2846 * tests/test-freadptr.sh: Also test non-seekable stdin.
2848 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
2850 * build-aux/bootstrap (source_base, m4_base)
2851 (doc_base, tests_base): New variables.
2852 (gnulib_tool_options): Do not hardcode base directories, use
2853 the above variables instead.
2855 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
2857 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
2859 2008-02-28 Bruno Haible <bruno@clisp.org>
2861 * modules/freadptr-tests: New file.
2862 * tests/test-freadptr.sh: New file.
2863 * tests/test-freadptr.c: New file.
2865 New module 'freadptr'.
2866 * modules/freadptr: New file.
2867 * lib/freadptr.h: New file.
2868 * lib/freadptr.c: New file.
2869 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
2871 2008-02-26 Karl Berry <karl@freefriends.org>
2874 * libltdl/argz.c (argz_add, argz_count): New functions.
2875 * libltdl/argz.in.h: Declare them.
2876 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
2878 2008-02-22 Bruno Haible <bruno@clisp.org>
2880 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
2881 is a pointer type. Needed for HP-UX 10.
2882 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
2883 * doc/posix-functions/gmtime_r.texi: Likewise.
2884 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
2886 2008-02-24 Bruno Haible <bruno@clisp.org>
2888 * modules/environ-tests: New file.
2889 * tests/test-environ.c: New file.
2891 New module 'environ'.
2892 * modules/environ: New file.
2893 * lib/unistd.in.h (environ): New declaration.
2894 * m4/environ.m4: New file.
2895 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
2897 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
2899 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
2901 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
2902 wrong claim that 'environ' is missing on some systems.
2903 * modules/execute (Depends-on): Add environ.
2904 * lib/execute.c (environ): Remove fallback declaration.
2905 * modules/pipe (Depends-on): Add environ.
2906 * lib/pipe.c (environ): Remove fallback declaration.
2907 * modules/setenv (Depends-on): Add environ.
2908 * lib/setenv.c (environ): Remove fallback declaration.
2909 * modules/unsetenv (Depends-on): Add environ.
2910 * lib/unsetenv.c (environ): Remove fallback declaration.
2911 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
2913 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
2914 (gl_PREREQ_UNSETENV): Likewise.
2916 2008-02-24 Bruno Haible <bruno@clisp.org>
2918 * doc/posix-functions/environ.texi: Document the MacOS X problem.
2920 2008-02-20 Bob Proulx <bob@proulx.com>
2922 Enable use of older two part flavor 'git describe'.
2923 * build-aux/git-version-gen: If using the older two part flavor of
2924 git version then recreate the third part now present in the
2925 newer three part flavor of git describe.
2927 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
2929 * lib/fts.c (fts_build): Typo correction to comment.
2931 2008-02-17 Bruno Haible <bruno@clisp.org>
2933 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
2934 generating no-op conflicts.
2936 2008-02-17 Bruno Haible <bruno@clisp.org>
2939 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
2940 result_entries, rather than an index-based loop.
2942 2008-02-17 Bruno Haible <bruno@clisp.org>
2945 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
2947 (entry_create): New function.
2948 (entry_hashcode): Use the cached hashcode if possible.
2949 (read_changelog_file, try_split_merged_entry): Use entry_create.
2951 2008-02-17 Bruno Haible <bruno@clisp.org>
2953 Speed up from O(n^2) to O(n) for long ChangeLog files.
2954 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
2955 (read_changelog_file): Change implementation of entries_reversed list
2957 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
2959 2008-02-17 Bruno Haible <bruno@clisp.org>
2961 New option --split-merged-entry.
2962 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
2963 (find_paragraph_end, try_split_merged_entry): New functions.
2964 (long_options): Add option --split-merged-entry.
2965 (usage): Document option --split-merged-entry.
2966 (main): Implement option --split-merged-entry.
2967 Reported by Eric Blake.
2969 2008-02-17 Bruno Haible <bruno@clisp.org>
2971 * lib/git-merge-changelog.c: Include c-strstr.h.
2972 (main): Support the "git pull --rebase" situation.
2973 * modules/git-merge-changelog (Depends-on): Add c-strstr.
2974 Reported by Eric Blake.
2976 2008-02-16 Eric Blake <ebb9@byu.net>
2978 Avoid doubling \ in common case of "c-maybe" quoting style.
2979 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
2980 eliding outer quotes.
2981 * lib/quotearg.h: Document this.
2982 * tests/test-quotearg.c (result_strings, inputs, results_g)
2983 (flag_results, locale_results): Test it by adding a new string to
2985 (compare_strings): Test new string.
2987 2008-02-13 Eric Blake <ebb9@byu.net>
2989 Avoid trigraph quoting in default output.
2990 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
2991 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
2992 unless explicitly requested.
2993 * tests/test-quotearg.c (flag_results, main): Add additional tests.
2995 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
2997 Don't rely on signed integer overflowing to negative value.
2998 * lib/getugroups.c (getugroups): Include <limits.h>.
2999 Instead, compare against INT_MAX, and increment only if the test passes.
3001 2008-02-13 Jim Meyering <meyering@redhat.com>
3002 and Eric Blake <ebb9@byu.net>
3004 Avoid shadowing warning and compile errors on Linux.
3005 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
3006 forwarding macros on Linux.
3007 (dcgettext): Define a stub, for Linux.
3008 (results_g, main): Avoid warnings.
3010 2008-02-12 Eric Blake <ebb9@byu.net>
3012 Silence warning in last patch.
3013 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
3015 Quotearg part 4: add tests, fix c-maybe colon quoting.
3016 * lib/quotearg.h: Improve documentation.
3017 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
3018 escapes when adding outer quotes. When quoting trigraphs, use
3019 valid C notation. When quoting NUL, omit extra characters if next
3020 character is not digit. Alter prototype.
3021 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
3023 * modules/quotearg-tests: New module.
3024 * tests/test-quotearg.c: New test.
3026 2008-02-07 Eric Blake <ebb9@byu.net>
3028 Quotearg part 3: add flag to control outer quote elision.
3029 * lib/quotearg.h (c_maybe_quoting_style): New style.
3030 (enum quoting_flags): Better documentation of flags.
3031 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
3033 (quotearg_buffer_restyled): Handle new flag to elide outer
3036 Quotearg part 2: add flag that can control NUL elision.
3037 * lib/quotearg.h (set_quoting_flags): New prototype.
3038 * lib/quotearg.c (struct quoting_options): Add flag field.
3039 (set_quoting_flags): New function.
3040 (quotearg_buffer_restyled): Add flags parameter.
3041 (quotearg_alloc_mem): Set the flag if length cannot be returned.
3042 (quotearg_n_options): Set the flag, since length cannot be
3044 (quoting_options_from_style): Default flags correctly.
3046 Quotearg part 1: more wrappers, restore quotearg_char state.
3047 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
3048 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
3049 (quotearg_colon_mem): New wrappers.
3050 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
3051 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
3053 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
3054 (quotearg_colon_mem): New functions.
3056 2008-02-11 Bruno Haible <bruno@clisp.org>
3058 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
3059 library in the current directory: it does not work with parallel make.
3060 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3062 2008-02-11 Bruno Haible <bruno@clisp.org>
3064 * .gitattributes: New file.
3066 2008-02-11 Jim Meyering <meyering@redhat.com>
3068 useless-if-before-free: Fix reversed exit values.
3069 * build-aux/useless-if-before-free: Use correct values
3070 for EXIT_MATCH and EXIT_NO_MATCH.
3072 * build-aux/useless-if-before-free: Close stdout carefully.
3074 2008-02-10 Bruno Haible <bruno@clisp.org>
3076 New module 'git-merge-changelog'.
3077 * modules/git-merge-changelog: New file.
3078 * lib/git-merge-changelog.c: New file.
3080 2008-02-10 Jim Meyering <meyering@redhat.com>
3082 useless-if-before-free: New option: --list (-l).
3084 useless-if-before-free: Don't exit immediately upon open failure.
3085 * build-aux/useless-if-before-free: Exit 2 for errors.
3086 Upon failure to open a file, don't exit immediately.
3087 Rather, just warn and continue with any remaining files.
3089 2008-02-10 Bruno Haible <bruno@clisp.org>
3091 New abstract list operation 'node_set_value'.
3092 * lib/gl_list.h (gl_list_node_set_value): New function.
3093 (struct gl_list_implementation): New field node_set_value.
3094 * lib/gl_list.c (gl_list_node_set_value): New function.
3095 * lib/gl_array_list.c (gl_array_node_set_value): New function.
3096 (gl_array_list_implementation): Update.
3097 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
3098 (gl_carray_list_implementation): Update.
3099 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
3100 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
3101 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
3102 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
3103 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
3104 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
3105 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
3107 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
3108 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
3109 (gl_sublist_list_implementation): Update.
3111 2008-02-10 Bruno Haible <bruno@clisp.org>
3113 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
3114 Needed when ELEMENT is #defined to 'some_type *'.
3116 2008-02-10 Jim Meyering <meyering@redhat.com>
3118 New script and module: useless-if-before-free
3119 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
3120 * build-aux/useless-if-before-free: New file.
3121 * modules/useless-if-before-free: New file.
3123 * build-aux/gitlog-to-changelog: Use committer date, not author date.
3125 xstrtol_error: Fix typo.
3126 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
3127 s/exit_failure/exit_status/.
3129 2008-02-09 Jim Meyering <meyering@redhat.com>
3131 New script and module: gitlog-to-changelog
3132 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
3133 * modules/gitlog-to-changelog: New file.
3134 * build-aux/gitlog-to-changelog: New file.
3136 2008-02-08 Jim Meyering <meyering@redhat.com>
3138 Avoid two "parameter unused" warnings.
3139 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
3142 Use "git COMMAND", not "git-COMMAND".
3143 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
3144 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
3145 * build-aux/git-version-gen: Use "git status", not "git-status".
3147 2008-02-07 Bruno Haible <bruno@clisp.org>
3149 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
3150 Avoids a crash on Windows Vista.
3151 Reported by Adam Strzelecki <ono@java.pl> via
3152 Simon Josefsson <simon@josefsson.org>.
3154 2008-02-06 Bruno Haible <bruno@clisp.org>
3156 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
3157 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
3158 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
3159 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
3160 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
3161 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
3162 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
3163 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
3164 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
3165 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3166 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3167 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3168 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3169 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3170 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3171 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
3173 * tests/test-snprintf-posix.h (test_function): Likewise.
3174 * tests/test-sprintf-posix.h (test_function): Likewise.
3175 * tests/test-vasprintf-posix.c (test_function): Likewise.
3176 * doc/posix-functions/fprintf.texi: Update.
3177 * doc/posix-functions/printf.texi: Update.
3178 * doc/posix-functions/snprintf.texi: Update.
3179 * doc/posix-functions/sprintf.texi: Update.
3180 * doc/posix-functions/vfprintf.texi: Update.
3181 * doc/posix-functions/vprintf.texi: Update.
3182 * doc/posix-functions/vsnprintf.texi: Update.
3183 * doc/posix-functions/vsprintf.texi: Update.
3184 Reported by Peter Fales <psfales@alcatel-lucent.com>.
3186 2008-02-06 Bruno Haible <bruno@clisp.org>
3188 Fix bug introduced on 2008-01-26.
3189 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
3191 2008-02-06 Bruno Haible <bruno@clisp.org>
3193 Fix bug introduced on 2007-06-10.
3194 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
3195 !NEED_PRINTF_FLAG_ZERO.
3197 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
3199 getloadavg: use libperfstat on AIX5
3200 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
3202 2008-02-03 Bruno Haible <bruno@clisp.org>
3204 * lib/diffseq.h: Add comments about required #includes.
3205 Reported by Michael Biggs <gnulib@doubleplum.net>.
3207 2008-02-01 Bruno Haible <bruno@clisp.org>
3209 * users.txt: Add gnuit.
3211 2008-01-31 Bruno Haible <bruno@clisp.org>
3213 * lib/md4.c (set_uint32): Mark as inline.
3214 * lib/md5.c (set_uint32): Likewise.
3215 * lib/sha1.c (set_uint32): Likewise.
3216 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
3217 * m4/md5.m4 (gl_MD5): Likewise.
3218 * m4/sha1.m4 (gl_SHA1): Likewise.
3220 2008-01-31 Jim Meyering <meyering@redhat.com>
3222 Use "sizeof VAR", rather than a literal "4".
3223 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
3224 * lib/md4.c (md4_read_ctx): Likewise.
3225 * lib/sha1.c (sha1_read_ctx): Likewise.
3227 2008-01-31 Simon Josefsson <simon@josefsson.org>
3229 * tests/test-sha1.c: New file, based on test-md5.c.
3231 * modules/crypto/sha1-tests: New file.
3233 2008-01-31 Simon Josefsson <simon@josefsson.org>
3235 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
3237 2008-01-31 Jim Meyering <meyering@redhat.com>
3239 Prefer "sizeof v" over the equivalent "4".
3240 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
3241 * lib/md5.c (set_uint32): Likewise.
3242 * lib/sha1.c (set_uint32): Likewise.
3244 2008-01-31 Simon Josefsson <simon@josefsson.org>
3246 * lib/sha1.c (set_uint32): Mark function as static.
3248 2008-01-31 Simon Josefsson <simon@josefsson.org>
3250 md2: clarify comments to say that alignment is not required.
3251 * lib/md2.h: Remove warning about alignment in comment.
3252 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
3253 never been required.
3255 2008-01-31 Simon Josefsson <simon@josefsson.org>
3257 md4: adapt alignment constraint fix from sha1.
3258 * lib/md4.c (set_uint32): New function, from sha1.c
3259 (md4_read_ctx): Use it.
3260 (md4_finish_ctx): Doc fix.
3261 * lib/md4.h: Doc fix.
3263 2008-01-31 Simon Josefsson <simon@josefsson.org>
3265 md5: adapt alignment constraint fix from sha1.
3266 * lib/md5.c (set_uint32): New function, from sha1.c
3267 (md5_read_ctx): Use it.
3268 (md5_finish_ctx): Doc fix.
3269 * lib/md5.h: Doc fix.
3271 2008-01-30 Peter Palfrader <weasel@debian.org>
3273 sha1: remove the result buffer alignment constraint
3274 * lib/sha1.c (set_uint32): New function.
3275 (sha1_read_ctx): Rewrite to remove the result buffer alignment
3277 (sha1_finish_ctx): Remove comment warning about alignment constraint.
3278 * lib/sha1.h: Likewise.
3280 2008-01-30 Andreas Schwab <schwab@suse.de>
3281 Bruno Haible <bruno@clisp.org>
3283 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
3284 correct definition of LDBL_MIN_EXP.
3286 2008-01-30 Karl Berry <karl@gnu.org>
3288 * config/srclist-update: try to preserve x bit on updates.
3289 * config/srclistvars.sh: update for karl.
3291 2008-01-29 Jim Meyering <meyering@redhat.com>
3293 vasnprintf.c: Avoid warning about unused label
3294 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
3295 "overflow" label definition and associated code with the
3296 same cpp condition that guards the sole use of that label.
3298 2008-01-26 Bruno Haible <bruno@clisp.org>
3300 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
3301 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
3302 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
3303 * lib/isnanl-nolibm.h (isnanl): Likewise.
3304 Reported by Paul Eggert <eggert@cs.ucla.edu>.
3306 2008-01-26 Bruno Haible <bruno@clisp.org>
3308 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
3309 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
3311 2008-01-26 Bruno Haible <bruno@clisp.org>
3313 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
3314 GCC >= 4.0 built-in.
3315 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
3317 2008-01-26 Bruno Haible <bruno@clisp.org>
3319 Rename isnan, applicable to 'double' only, to isnand.
3320 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
3321 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
3322 (configure.ac): Update.
3323 (Include): Replace "isnan.h" with "isnand.h".
3324 * m4/isnand.m4: Renamed from m4/isnan.m4.
3325 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
3326 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
3328 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
3329 instead of HAVE_ISNAN_IN_LIBC.
3330 (isnand): Renamed from isnan.
3331 * lib/isnand.c: New file.
3332 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
3333 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
3334 (Makefile.am): Update.
3335 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
3336 Include isnand.h instead of isnan.h.
3337 (main): Test isnand instead of isnan.
3338 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
3340 * modules/frexp (Depends-on): Likewise.
3341 * modules/frexp-tests (Depends-on): Likewise.
3342 * modules/frexp-nolibm (Depends-on): Likewise.
3343 * modules/frexp-nolibm-tests (Depends-on): Likewise.
3344 * modules/isfinite (Depends-on): Likewise.
3345 * modules/round-tests (Depends-on): Likewise.
3346 * modules/signbit (Depends-on): Likewise.
3347 * modules/signbit-tests (Depends-on): Likewise.
3348 * modules/snprintf-posix (Depends-on): Likewise.
3349 * modules/sprintf-posix (Depends-on): Likewise.
3350 * modules/trunc-tests (Depends-on): Likewise.
3351 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
3352 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3353 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3354 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3355 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3356 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3357 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3358 * modules/vasnprintf-posix (Depends-on): Likewise.
3359 * modules/vasprintf-posix (Depends-on): Likewise.
3360 * modules/vfprintf-posix (Depends-on): Likewise.
3361 * modules/vsnprintf-posix (Depends-on): Likewise.
3362 * modules/vsprintf-posix (Depends-on): Likewise.
3363 * lib/frexp.c: Include isnand.h instead of isnan.h.
3364 (ISNAN): Set to isnand instead of isnan.
3365 * lib/isfinite.c: Include isnand.h instead of isnan.h.
3366 (gl_isfinited): Use isnand instead of isnan.
3367 * lib/signbitd.c: Include isnand.h instead of isnan.h.
3368 (gl_signbitd): Use isnand instead of isnan.
3369 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
3370 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
3371 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
3372 (main): Use isnand instead of isnan.
3373 * tests/test-round1.c: Include isnand.h.
3374 (main): Use isnand instead of isnan.
3375 * tests/test-round2.c: Include isnand.h instead of isnan.h.
3376 (ISNAN): Set to isnand instead of isnan.
3377 * tests/test-trunc1.c: Include isnand.h.
3378 (main): Use isnand instead of isnan.
3379 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
3380 (equal): Use isnand instead of isnan.
3381 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
3383 * NEWS: Mention the change.
3385 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
3386 Bruno Haible <bruno@clisp.org>
3388 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
3389 the GCC builtins for signbits are present and set
3390 REPLACE_SIGNBIT_USING_GCC if so.
3391 * lib/math.in.h (signbit): Define using GCC builtins if
3392 REPLACE_SIGNBIT_USING_GCC is set.
3393 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
3394 REPLACE_SIGNBIT_USING_GCC.
3395 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
3397 2008-01-25 Jim Meyering <meyering@redhat.com>
3399 Prefer <config.h> over "config.h". See autoconf doc for explanation.
3400 * lib/poll.c: Include <config.h>, not "config.h".
3401 * tests/test-getaddrinfo.c: Likewise.
3403 2008-01-25 Simon Josefsson <simon@josefsson.org>
3405 * modules/sockets-tests: New file.
3407 2008-01-24 Simon Josefsson <simon@josefsson.org>
3409 * modules/sockets: New module, can be used to call WSA_Startup and
3410 WSA_Cleanup when needed.
3412 * lib/sockets.h, lib/sockets.c: New files.
3414 * m4/sockets.m4: New file.
3416 * tests/test-sockets.c: New file.
3418 2008-01-19 Bruno Haible <bruno@clisp.org>
3420 * doc/posix-headers: Renamed from doc/headers.
3421 * doc/posix-functions: Renamed from doc/functions.
3422 * doc/gnulib.texi: Update.
3424 2008-01-19 Bruno Haible <bruno@clisp.org>
3426 * doc/glibc-functions/strcasestr.texi: Include contents of
3427 doc/functions/strcasestr.texi, fixing the list of platforms.
3428 * doc/functions/strcasestr.texi: Remove file.
3430 2008-01-19 Bruno Haible <bruno@clisp.org>
3432 * doc/glibc-functions/memmem.texi: Include contents of
3433 doc/functions/memmem.texi.
3434 * doc/functions/memmem.texi: Remove file.
3436 2008-01-18 Bruno Haible <bruno@clisp.org>
3438 * doc/glibc-functions/*.texi: New files.
3439 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
3440 to use the new files.
3442 2008-01-17 Bruno Haible <bruno@clisp.org>
3444 * tests/test-gethostname.c (main): Fix printf statement.
3446 2008-01-17 Simon Josefsson <simon@josefsson.org>
3448 * modules/gethostname-tests: New file.
3450 * tests/test-gethostname.c: New file.
3452 2008-01-17 Simon Josefsson <simon@josefsson.org>
3454 * lib/gethostname.c: Include string.h unconditionally, strncpy is
3455 used by the UNAME case. Reported by Bruno Haible
3458 2008-01-17 Eric Blake <ebb9@byu.net>
3460 Convert c-strcasestr to be more efficient.
3461 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
3462 (Depends-on): Add c-strcase, remove malloca, strnlen.
3463 * tests/test-c-strcasestr.c (main): Enhance test.
3464 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
3466 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
3468 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
3469 Use it in creating po/Makevars.
3471 2008-01-15 Simon Josefsson <simon@josefsson.org>
3473 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
3474 Applications that requires it should initialize libgcrypt
3477 2008-01-16 Simon Josefsson <simon@josefsson.org>
3479 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
3481 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
3483 Fix problem with getdate on mingw32 reported by Simon Josefsson
3484 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
3485 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
3486 tzname", when deciding whether to declare tzname.
3487 * lib/strftime.c (tzname): Likewise.
3489 2008-01-15 Bruno Haible <bruno@clisp.org>
3491 Work around a MacOS X 10.5 bug in frexpl().
3492 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
3493 * doc/functions/frexpl.texi: Document the bug.
3494 Reported by Elias Pipping <pipping@gentoo.org>.
3496 2008-01-14 Eric Blake <ebb9@byu.net>
3498 Touch up previous patch.
3499 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
3500 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
3502 Convert strcasestr module to use Two-Way algorithm.
3503 * modules/strcasestr-simple: New module, based on the old
3504 strcasestr, but with Two-Way rather than KMP.
3505 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
3506 * lib/string.in.h (rpl_strcasestr): Declare.
3507 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
3509 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
3510 * modules/string (Makefile.am): Support strcasestr.
3511 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
3512 * modules/strcasestr-tests (Depends-on): Check for alarm.
3513 * tests/test-strcasestr.c: Augment test.
3514 * lib/str-two-way.h: Clean up stray macro.
3515 * NEWS: Document new module.
3516 * MODULES.html.sh (string handling): Likewise.
3517 * doc/functions/strcasestr.texi: New file.
3518 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
3519 here, since it is not a POSIX function.
3521 2008-01-14 Colin Watson <cjwatson@debian.org>
3522 Bruno Haible <bruno@clisp.org>
3524 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
3525 works fine; if not, set REPLACE_STRSIGNAL.
3526 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
3527 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3529 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
3530 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
3531 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
3533 2008-01-14 Bruno Haible <bruno@clisp.org>
3535 * modules/strsignal (Include): Change to <string.h>.
3537 2008-01-14 Colin Watson <cjwatson@debian.org>
3539 * modules/argp (Notice): Add a notice recommending to change
3541 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
3543 2008-01-13 Colin Watson <cjwatson@debian.org>
3545 * modules/strsignal-tests: New file.
3546 * tests/test-strsignal.c: New file.
3548 * lib/strsignal.c: New file, from glibc with modifications.
3549 * lib/siglist.h: New file, from glibc with modifications.
3550 * lib/string.in.h (strsignal): New declaration.
3551 * m4/strsignal.m4: New file.
3552 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3553 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
3554 * modules/strsignal: New file.
3555 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
3556 HAVE_DECL_STRSIGNAL.
3558 2008-01-13 Bruno Haible <bruno@clisp.org>
3560 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
3561 locale encoding is not ASCII. Needed for OpenBSD 4.0.
3562 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3563 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3565 2008-01-13 Bruno Haible <bruno@clisp.org>
3567 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
3568 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
3569 * lib/argp.h (__attribute__): Likewise.
3570 * lib/c-stack.c (__attribute__): Likewise.
3571 * lib/error.h (__attribute__): Likewise.
3572 * lib/fts.c (__attribute__): Likewise.
3573 * lib/openat.h (__attribute__): Likewise.
3574 * lib/stdio.in.h (__attribute__): Likewise.
3575 * lib/string.in.h (__attribute__): Likewise.
3576 * lib/utimens.c (__attribute__): Likewise.
3577 * lib/vasnprintf.h (__attribute__): Likewise.
3578 * lib/xalloc.h (__attribute__): Likewise.
3579 * lib/xprintf.h (__attribute__): Likewise.
3580 * lib/xstrtol.h (__attribute__): Likewise.
3581 * lib/xvasprintf.h (__attribute__): Likewise.
3583 2008-01-12 Bruno Haible <bruno@clisp.org>
3585 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
3586 * doc/glibc-headers/a.out.texi: New file.
3587 * doc/glibc-headers/aliases.texi: New file.
3588 * doc/glibc-headers/alloca.texi: New file.
3589 * doc/glibc-headers/ar.texi: New file.
3590 * doc/glibc-headers/argp.texi: New file.
3591 * doc/glibc-headers/argz.texi: New file.
3592 * doc/glibc-headers/byteswap.texi: New file.
3593 * doc/glibc-headers/crypt.texi: New file.
3594 * doc/glibc-headers/endian.texi: New file.
3595 * doc/glibc-headers/envz.texi: New file.
3596 * doc/glibc-headers/err.texi: New file.
3597 * doc/glibc-headers/error.texi: New file.
3598 * doc/glibc-headers/execinfo.texi: New file.
3599 * doc/glibc-headers/fpu_control.texi: New file.
3600 * doc/glibc-headers/fstab.texi: New file.
3601 * doc/glibc-headers/fts.texi: New file.
3602 * doc/glibc-headers/getopt.texi: New file.
3603 * doc/glibc-headers/ieee754.texi: New file.
3604 * doc/glibc-headers/ifaddrs.texi: New file.
3605 * doc/glibc-headers/libintl.texi: New file.
3606 * doc/glibc-headers/mcheck.texi: New file.
3607 * doc/glibc-headers/mntent.texi: New file.
3608 * doc/glibc-headers/obstack.texi: New file.
3609 * doc/glibc-headers/paths.texi: New file.
3610 * doc/glibc-headers/printf.texi: New file.
3611 * doc/glibc-headers/pty.texi: New file.
3612 * doc/glibc-headers/resolv.texi: New file.
3613 * doc/glibc-headers/shadow.texi: New file.
3614 * doc/glibc-headers/sysexits.texi: New file.
3615 * doc/glibc-headers/ttyent.texi: New file.
3617 2008-01-12 Jim Meyering <meyering@redhat.com>
3619 announce-gen: emit Gnulib's git-based version string.
3620 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
3621 New option --gnulib-version=V, where V is expected to be
3622 the output of running git describe in the gnulib directory.
3623 (get_tool_versions): Request feedback on xdelta. I suspect it's
3624 not useful, and plan to stop publishing an xdelta file with each
3627 * build-aux/announce-gen: Also check for lzma-compressed files.
3629 2008-01-11 Bruno Haible <bruno@clisp.org>
3631 * tests/test-memmem.c (main): Increase maximum allowed time.
3632 * tests/test-strstr.c (main): Likewise.
3634 2008-01-11 Bruno Haible <bruno@clisp.org>
3636 * doc/functions/memmem.texi: Add more precisions about platforms.
3637 * doc/functions/strstr.texi: Likewise.
3639 2008-01-10 Eric Blake <ebb9@byu.net>
3641 * m4/strstr.m4: Delete cruft from copy-n-paste.
3642 Reported by Bruno Haible.
3644 2008-01-10 Bruno Haible <bruno@clisp.org>
3646 Make c-strstr rely on strstr.
3647 * lib/c-strstr.c: Don't include str-kmp.h.
3648 (c_strstr): Define in terms of strstr.
3649 * modules/c-strstr (Files): Remove lib/str-kmp.h.
3650 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
3652 2008-01-10 Bruno Haible <bruno@clisp.org>
3654 * doc/gnulib.texi (String Functions in C Locale): New section.
3655 * doc/c-ctype.texi: New file.
3656 * doc/c-strcase.texi: New file.
3657 * doc/c-strcaseeq.texi: New file.
3658 * doc/c-strcasestr.texi: New file.
3659 * doc/c-strstr.texi: New file.
3660 * doc/c-strtod.texi: New file.
3661 * doc/c-strtold.texi: New file.
3663 2008-01-10 Eric Blake <ebb9@byu.net>
3665 * lib/relocatable.h: Fix a comment.
3667 2008-01-10 Eric Blake <ebb9@byu.net>
3669 Share two-way algorithm.
3670 * lib/str-two-way.h: New file, merged from...
3671 * lib/memmem.c: ...here...
3672 * lib/strstr.c: ...and here.
3673 * modules/memmem (Files): Use it.
3674 * modules/strstr (Files): Likewise.
3676 Avoid quadratic strstr implementations.
3677 * lib/strstr.c: New file.
3678 * m4/strstr.m4: Likewise.
3679 * modules/strstr: Likewise.
3680 * modules/strstr-tests: Likewise.
3681 * tests/test-strstr.c: Likewise.
3682 * lib/string.in.h (rpl_strstr): Declare.
3683 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
3684 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
3685 * modules/string (Makefile.am): Likewise.
3686 * MODULES.html.sh (string handling): Mention new module.
3687 * doc/functions/strstr.texi (strstr): Document the bug.
3689 2008-01-10 Bruno Haible <bruno@clisp.org>
3691 * lib/relocatable.h (relocate): State whether result is freshly
3693 * lib/relocatable.c (relocate): Return a freshly allocated string
3694 instead of a pointer to a privately held string.
3695 Reported by Sylvain Beucler <beuc@gnu.org>.
3697 2008-01-10 Colin Watson <cjwatson@debian.org>
3699 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
3702 2008-01-09 Bruno Haible <bruno@clisp.org>
3704 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
3706 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
3707 if it's only a guess.
3708 * modules/memmem: Simplify by depending on memmem-simple.
3710 2008-01-09 Bruno Haible <bruno@clisp.org>
3712 Work around OpenBSD 4.0 tdelete() bug.
3713 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
3714 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
3715 macros and don't redefine the enum values.
3716 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
3717 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
3718 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
3720 2008-01-09 Bruno Haible <bruno@clisp.org>
3722 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
3723 (main): Don't perform the tests if setlocale did not install a UTF-8
3724 locale. Needed on OpenBSD 4.0.
3725 * modules/wcwidth-tests (Depends-on): Add localcharset.
3727 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
3729 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
3730 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
3731 * NEWS: announce this.
3732 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
3734 2008-01-09 Simon Josefsson <simon@josefsson.org>
3735 and Eric Blake <ebb9@byu.net>
3737 Add memmem-simple module.
3738 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
3739 (gl_FUNC_MEMMEM): Separate performance from presence checks.
3740 * modules/memmem-simple: New file.
3741 * modules/memmem (Description): Tweak.
3742 * MODULES.html.sh (string handling): Mention new module.
3743 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
3744 addressed by memmem-simple.
3745 * NEWS: Document the difference.
3747 2008-01-09 Eric Blake <ebb9@byu.net>
3749 Give gcc some memmem optimization hints.
3750 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
3751 (strcasestr): Declare as pure.
3752 * modules/memmem (Maintainer): Claim my implementation.
3754 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3756 Support AIX 6.1 and higher.
3757 * build-aux/config.libpath: Likewise.
3758 * build-aux/config.rpath: Likewise.
3760 2008-01-08 Jim Meyering <meyering@redhat.com>
3761 Bruno Haible <bruno@clisp.org>
3763 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
3764 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
3765 Reported by Peter Fales in
3766 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
3768 2008-01-08 Bruno Haible <bruno@clisp.org>
3770 * modules/unictype/category-of (Depends-on): Add
3771 unictype/category-none.
3772 * modules/unictype/category-and-tests (Depends-on): Add
3773 unictype/category-{L,N,Lu,Nd}.
3774 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
3775 * modules/unictype/category-or-tests (Depends-on): Add
3776 unictype/category-{L,N}.
3777 * modules/unictype/category-name-tests (Depends-on): Add
3778 unictype/category-{Z,Nl}.
3779 Reported by Simon Josefsson.
3781 2008-01-08 Bruno Haible <bruno@clisp.org>
3783 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
3785 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
3786 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
3787 Reported by Peter Miller <millerp@canb.auug.org.au>.
3789 2008-01-08 Eric Blake <ebb9@byu.net>
3791 Rewrite memmem to guarantee linear complexity without malloc.
3792 * lib/memmem.c (memmem): Use Two-Way rather than
3793 Knuth-Morris-Pratt, to allow O(1) space usage.
3794 (critical_factorization, two_way_short_needle)
3795 (two_way_long_needle): New functions.
3796 (knuth_morris_pratt): Delete.
3797 * modules/memmem (Depends-on): No longer need malloca or stdbool.
3799 * tests/test-memmem.c (main): Add tests for periodic needle and
3800 sublinear performance.
3801 * doc/functions/memmem.texi (memmem): Document other deficiencies
3802 in cygwin and older glibc.
3804 2008-01-08 Bruno Haible <bruno@clisp.org>
3806 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
3809 2008-01-08 Mike Frysinger <vapier@gentoo.org>
3811 Add a configure time option: --disable-acl.
3812 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
3815 2008-01-06 Simon Josefsson <simon@josefsson.org>
3817 * tests/test-localename.c: Don't include obsolete "setenv.h".
3819 * modules/localename-tests (Depends-on): Need unsetenv.
3821 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3823 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
3825 2008-01-06 Colin Watson <cjwatson@debian.org>
3827 * users.txt: Add man-db.
3829 2008-01-07 Bruno Haible <bruno@clisp.org>
3831 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
3832 previous section name.
3834 2008-01-07 Bruno Haible <bruno@clisp.org>
3836 * lib/progname.c (set_program_name): Don't strip off a leading
3837 "lt-" prefix outside a .libs directory.
3838 Suggested by Paul Eggert.
3840 2008-01-01 Sylvain Beucler <beuc@gnu.org>
3841 Bruno Haible <bruno@clisp.org>
3843 Improve memory cleanup in 'relocatable' module.
3844 * lib/relocatable.h (compute_curr_prefix): Change return type to
3846 * lib/relocatable.c (compute_curr_prefix): Change return type to
3847 'char *'. Free curr_installdir after use.
3848 (relocate): Free curr_prefix_better after use.
3849 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
3851 2008-01-01 Bruno Haible <bruno@clisp.org>
3853 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
3854 failure on older glibc systems.
3855 Reported by Peter Fales <psfales@alcatel-lucent.com>.
3857 2008-01-05 Eric Blake <ebb9@byu.net>
3859 Avoid quadratic system memmem.
3860 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
3861 Reported by Ralf Wildenhues.
3863 Fix memmem test for mingw.
3864 * modules/memmem-tests (configure.ac): Check for alarm.
3865 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
3867 * doc/functions/memmem.texi: New file.
3868 * doc/gnulib.texi (Function Substitutes): Add memmem.
3869 Reported by Bruno Haible.
3871 2008-01-04 Bruno Haible <bruno@clisp.org>
3873 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
3874 Require gl_HEADER_STRINGS_H_DEFAULTS, not
3875 gl_HEADER_STRING_H_DEFAULTS.
3877 2008-01-04 Eric Blake <ebb9@byu.net>
3879 Shorten duration of memmem test.
3880 * tests/test-memmem.c (main): Use alarm to declare failure if test
3882 Reported by Ralf Wildenhues.
3884 2007-12-21 Simon Josefsson <simon@josefsson.org>
3886 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
3887 string, needed by strerror.
3889 2008-01-03 Colin Watson <cjwatson@debian.org>
3890 Bruno Haible <bruno@clisp.org>
3892 * doc/gnulib-tool.texi (Localization): New section.
3894 2008-01-02 Bruno Haible <bruno@clisp.org>
3896 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
3897 variables to 'unsigned char *' type.
3898 Reported by Paul Eggert.
3900 2008-01-02 Jim Meyering <jim@meyering.net>
3902 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
3904 2007-12-31 Jim Meyering <jim@meyering.net>
3906 Avoid use of private FTS type name.
3907 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
3909 2007-12-30 Karl Berry <karl@gnu.org>
3911 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
3912 work around defect in Texinfo and/or the standalone Info browser.
3914 2007-12-30 Bruno Haible <bruno@clisp.org>
3916 Unify 5 copies of the KMP code.
3917 * lib/str-kmp.h: New file.
3918 * lib/c-strcasestr.c: Include str-kmp.h.
3919 (knuth_morris_pratt): Remove function.
3920 (c_strcasestr): Update.
3921 * lib/c-strstr.c: Include str-kmp.h.
3922 (knuth_morris_pratt): Remove function.
3923 (c_strcasestr): Update.
3924 * lib/mbscasestr.c: Include str-kmp.h.
3925 (knuth_morris_pratt_unibyte): Remove function.
3926 * lib/mbsstr.c: Include str-kmp.h.
3927 (knuth_morris_pratt_unibyte): Remove function.
3928 * lib/strcasestr.c: Include str-kmp.h.
3929 (knuth_morris_pratt): Remove function.
3930 (strcasestr): Update.
3931 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
3932 * modules/c-strstr (Files): Likewise.
3933 * modules/mbscasestr (Files): Likewise.
3934 * modules/mbsstr (Files): Likewise.
3935 * modules/strcasestr (Files): Likewise.
3936 Suggested by Paul Eggert.
3938 2007-12-30 Bruno Haible <bruno@clisp.org>
3940 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
3943 2007-12-30 Bruno Haible <bruno@clisp.org>
3945 * lib/xmalloca.h: Include xalloc.h.
3946 (xnmalloca): New macro.
3948 2007-12-30 Bruno Haible <bruno@clisp.org>
3950 * lib/malloca.h (nmalloca): New macro.
3951 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
3952 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
3953 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
3954 knuth_morris_pratt_multibyte): Likewise.
3955 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
3956 knuth_morris_pratt_multibyte): Likewise.
3957 * lib/memmem.c (knuth_morris_pratt): Likewise.
3958 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
3960 2007-12-25 Bruno Haible <bruno@clisp.org>
3962 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
3963 * lib/glob.c: Don't include openat.h.
3964 (link_exists2_p): Add back the code that deals with the
3965 !GLOB_ALTDIRFUNC case.
3966 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
3967 let it do the filename concatenation.
3968 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
3969 * modules/glob (Depends-on): Remove openat.
3971 2007-12-31 Bruno Haible <bruno@clisp.org>
3973 * modules/dirfd (License): Change to LGPLv2+.
3974 Approved by Jim Meyering.
3976 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
3978 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
3979 when multiplying M by sizeof (size_t).
3981 2007-12-10 Martin Lambers <marlam@marlam.de>
3983 Override getpagesize on mingw.
3984 * lib/getpagesize.c: New file.
3985 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
3986 * modules/getpagesize (Files): Add lib/getpagesize.c.
3987 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
3988 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3989 REPLACE_GETPAGESIZE.
3990 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
3992 2007-12-25 Bruno Haible <bruno@clisp.org>
3994 * modules/localcharset (Notice): New field.
3995 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
3996 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
3998 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
3999 Bruno Haible <bruno@clisp.org>
4001 Avoid using the syntax symbol() in formatted documentation.
4002 * MODULES.html.sh (func_module): When replacing symbol() with a
4003 hyperlink, remove the parentheses. Show an error if some remain.
4004 Recognize and render the '...' syntax.
4005 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
4006 Rework. Add paragraph about GCC's inlining.
4007 * doc/alloca.texi: Likewise.
4008 * doc/error.texi: Remove parentheses from symbol reference.
4009 * doc/gnulib-intro.texi: Likewise.
4010 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
4011 * modules/fnmatch (Description): Reword to say "the ... function".
4012 * modules/full-read (Description): Likewise.
4013 * modules/full-write (Description): Likewise.
4014 * modules/safe-read (Description): Likewise.
4015 * modules/safe-write (Description): Likewise.
4016 * modules/strchrnul (Description): Likewise.
4017 * modules/trim (Description): Likewise.
4018 * modules/error (Description): Remove parentheses from symbol
4020 * modules/verror (Description): Likewise.
4021 Reported by Karl Berry.
4023 2007-12-25 Bruno Haible <bruno@clisp.org>
4025 Fixup after 2007-10-16 commit.
4026 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
4028 2007-12-24 Bruno Haible <bruno@clisp.org>
4030 Make --enable-relocatable work with DESTDIR.
4031 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
4032 to compute installdir from destprog.
4033 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
4034 also set the RELOC_DESTDIR variable.
4035 Reported by Левашев Иван <octagram@bluebottle.com>.
4037 2007-12-24 Bruno Haible <bruno@clisp.org>
4039 Fix link error due to xalloc_die().
4040 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
4042 * lib/relocwrapper.c: Update comments.
4043 * build-aux/install-reloc: Remove xreadlink.c from file list.
4044 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
4046 Reported by Левашев Иван <octagram@bluebottle.com>.
4048 2007-12-24 Bruno Haible <bruno@clisp.org>
4050 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
4051 * lib/setenv.h: Remove file.
4052 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
4054 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
4055 (Depends-on): Add stdlib.
4056 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
4058 (Include): Replace setenv.h with <stdlib.h>.
4059 * modules/unsetenv: New file.
4060 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
4061 * lib/unsetenv.c: Include <stdlib.h> first.
4062 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
4063 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
4064 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
4065 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
4066 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
4067 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
4068 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
4069 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
4070 * doc/functions/unsetenv.texi: Update.
4071 * modules/xsetenv (Depends-on): Add unsetenv.
4072 * modules/getdate (Depends-on): Likewise.
4073 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
4074 * lib/xsetenv.c: Don't include setenv.h.
4075 * lib/getdate.y: Likewise.
4076 * lib/relocwrapper.c: Likewise.
4077 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
4078 (Depends-on): Add stdlib.
4079 * NEWS: Mention the changes.
4080 Reported by Левашев Иван <octagram@bluebottle.com>.
4082 2007-12-23 Bruno Haible <bruno@clisp.org>
4084 * lib/memmem.c (memmem): Use lowercase variable names. Tab
4087 2007-12-23 Bruno Haible <bruno@clisp.org>
4089 * lib/c-strcasestr.c: Add more comments.
4090 * lib/c-strstr.c: Likewise.
4091 * lib/mbscasestr.c: Likewise.
4092 * lib/mbsstr.c: Likewise.
4093 * lib/strcasestr.c: Likewise.
4094 * lib/memmem.c: Likewise.
4096 2007-12-23 Bruno Haible <bruno@clisp.org>
4098 * tests/test-memmem.c: Include <string.h> first.
4100 2007-12-22 Bruno Haible <bruno@clisp.org>
4102 * gnulib-tool (func_create_testdir): Change $auxdir while generating
4103 the contents of $testsbase.
4104 Reported by Ralf Wildenhues.
4106 2007-12-22 Bruno Haible <bruno@clisp.org>
4108 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
4109 two variables local_ldadd_before, local_ldadd_last.
4111 2007-12-20 Eric Blake <ebb9@byu.net>
4113 Work around circular library issue when cross-compiling.
4114 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
4115 that progname.o does not need to pull in rpl_memcmp.
4117 2007-12-19 Eric Blake <ebb9@byu.net>
4119 Fix memmem to avoid O(n^2) worst-case complexity.
4120 * lib/memmem.c (knuth_morris_pratt): New function.
4121 (memmem): Use it if first few naive iterations fail.
4122 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
4123 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
4124 * modules/memchr (License): Likewise.
4125 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
4127 * tests/test-memmem.c: Rewrite, borrowing ideas from
4128 test-mbsstr1.c; the old version wouldn't even compile!
4129 * modules/memmem-tests: New file.
4130 * lib/string.in.h (rpl_memmem): Add declaration.
4131 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
4132 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
4135 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
4137 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
4138 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
4139 before any system include files, and undef after them all. This
4140 should fix a problem on VMS reported by John E. Malmberg in
4141 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
4143 2007-12-17 Eric Blake <ebb9@byu.net>
4145 Revert addition of verify, for BSD/OS.
4146 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
4147 can't handle large files, for the sake of obsolete platforms.
4148 * modules/fseeko (Depends-on): Remove verify.
4149 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
4150 * doc/functions/ftello.texi (ftello): Likewise.
4151 * doc/functions/fgetpos.texi (fgetpos): Likewise.
4152 Reported by Larry Jones.
4154 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
4156 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
4157 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
4159 2007-12-17 Jim Meyering <meyering@redhat.com>
4161 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
4162 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
4163 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
4164 * modules/getcwd (Depends-on): Add openat.
4165 Reported by Petr Salinger.
4167 2007-12-17 Bruno Haible <bruno@clisp.org>
4169 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
4170 avoid a segmentation fault of the configure test on x86_64 systems.
4172 2007-12-15 Jim Meyering <meyering@redhat.com>
4174 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
4176 2007-12-13 Eric Blake <ebb9@byu.net>
4179 * tests/test-fseek.c (main): Also test ungetc handling.
4180 * tests/test-fseeko.c (main): Likewise.
4181 * modules/fseeko (Depends-on): Add verify.
4182 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
4184 Reported by Larry Jones.
4186 Fix fseeko on mingw.
4187 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
4190 Beef up fseek tests.
4191 * tests/test-fseek.c (main): Also test eof handling.
4192 * tests/test-fseeko.c (main): Likewise.
4193 Reported by Larry Jones.
4195 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
4197 Fix fseeko on BSD-based platforms.
4198 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
4201 2007-12-12 Eric Blake <ebb9@byu.net>
4203 Allow circular dependency of separate libtests.a
4204 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
4207 2007-12-11 Eric Blake <ebb9@byu.net>
4209 Fix bug with -0.0L in previous patch.
4210 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
4211 * tests/test-isnan.c (main): Also test on zeroes.
4212 * tests/test-isnanf.c (main): Likewise.
4213 * tests/test-isnanl.h (main): Likewise.
4215 Detect pseudo-denormals on x86 even when cross-compiling.
4216 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
4217 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
4218 invalid bit patterns that happen to satisfy ==.
4220 Avoid link failures with separate libtests.a.
4221 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
4222 last, to satisfy circular dependencies.
4224 2007-12-11 Eric Blake <ebb9@byu.net>
4225 and Bruno Haible <bruno@clisp.org>
4227 Fix OpenBSD 4.0 <float.h> handling of long double.
4228 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
4229 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
4230 * doc/headers/float.texi (float.h): Document OpenBSD bug.
4232 2007-12-11 Jim Meyering <meyering@redhat.com>
4234 * users.txt: Add libvirt.
4236 Support versions of autoconf prior to 2.59c.
4237 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
4238 if it is not already defined.
4240 2007-12-09 Bruno Haible <bruno@clisp.org>
4242 Let 'gnulib-tool --import' collect sources needed for the tests in
4243 tests/ rather than in lib/.
4244 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
4245 argument. If true, add rules to generate libtests.a, and put libtests.a
4246 into $(LDADD). Consider source files in subdirectories and set
4248 (func_emit_initmacro_start, func_emit_initmacro_end,
4249 func_emit_initmacro_done): Pass all arguments explicitly.
4250 (func_import): Determine two module lists main_modules,
4251 testsrelated_modules. Determine use_libtests. Determine two variables
4252 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
4253 instead of just sed_transform_lib_file. Determine two variables
4254 main_files and testsrelated_files. Compute 'files' as the union of
4255 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
4256 func_add_or_update. In the generated gnulib-comp.m4, collect the
4257 object files for tests/ in different variables than those for lib/.
4258 Substitute LIBTESTS_LIBDEPS.
4259 (func_create_testdir): Combine the uses_subdirs results from
4260 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
4262 2007-12-09 Bruno Haible <bruno@clisp.org>
4264 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
4265 the build-aux directory.
4267 2007-12-09 Bruno Haible <bruno@clisp.org>
4269 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
4270 introduced on 2006-09-09.
4272 2007-12-07 Jim Meyering <meyering@redhat.com>
4274 Let these macros work also with autoconf-2.59.
4275 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
4276 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
4277 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
4279 2007-12-06 Jim Meyering <meyering@redhat.com>
4281 Avoid a configure-time syntax error in gl_FUNC_ACL.
4282 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
4283 function in each branch, before testing the cache variable.
4285 2007-12-04 Eric Blake <ebb9@byu.net>
4287 Make scripts executable.
4288 * build-aux/config.guess: Add execute permissions.
4289 * build-aux/config.sub: Likewise.
4290 * build-aux/gendocs.sh: Likewise.
4293 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
4295 * doc/functions/frexp.texi (frexp): Document the bug.
4297 Make cygwin fseeko check more reliable.
4298 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
4299 version numbers, rather than unrelated feature check.
4300 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
4301 * doc/functions/ftello.texi (ftello): Likewise.
4302 Reported by Bruno Haible.
4304 * m4/strerror.m4: Bump version number.
4306 2007-12-03 Bruno Haible <bruno@clisp.org>
4308 * doc/functions/mprotect.texi: Mention the mingw problem.
4310 2007-12-03 Eric Blake <ebb9@byu.net>
4312 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
4313 REPLACE_STRERROR is initialized before this macro.
4315 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
4317 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
4318 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
4319 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
4320 put -lsec in even for programs other than 'ls'. This fixes a problem
4321 for gettext reported by Bruno Haible in
4322 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
4323 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
4324 Add support for Solaris 10. This isn't efficient, but should get the
4327 2007-12-03 James Youngman <jay@gnu.org>
4329 * doc/regexprops-generic.texi: change "an close-group" to "a
4330 close-group" and "illegal" to "not allowed".
4332 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4334 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
4335 pr_byname.h. Needed for the rare case when the maintainer has done
4336 "make maintainer-clean" in the source directory and then attempts a
4337 build outside the source directory.
4338 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
4341 2007-12-02 Martin Lambers <marlam@marlam.de>
4342 Bruno Haible <bruno@clisp.org>
4344 * lib/getpagesize.h: Remove file.
4345 * lib/unistd.in.h: Include declaration of getpagesize here.
4346 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
4347 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
4349 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
4350 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
4351 * modules/getpagesize (Files): Remove lib/getpagesize.h.
4352 (Depends-on): Add unistd.
4353 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4354 (Include): Use <unistd.h> instead of getpagesize.h.
4355 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
4356 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
4357 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
4358 gl_GETPAGESIZE invocation, already handled by module dependency.
4359 * lib/pagealign_alloc.c: Don't include getpagesize.h.
4361 2007-12-02 Bruno Haible <bruno@clisp.org>
4363 * modules/strings-tests: New file.
4364 * tests/test-strings.c: New file.
4366 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
4367 * lib/strings.in.h: New file.
4368 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
4369 * m4/strings_h.m4: New file.
4370 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
4371 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
4372 * modules/strings: New file.
4373 * modules/string (Makefile.am): Update.
4374 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
4375 Reported by Karl Berry.
4377 2007-12-01 Eric Blake <ebb9@byu.net>
4379 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
4380 accomodate fix in cygwin 1.5.25.
4382 2007-12-01 Jim Meyering <meyering@redhat.com>
4384 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
4385 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
4386 that would inhibit utf8-optimization of a regexp containing line-
4387 or buffer-anchors, e.g., `^', `$'.
4389 2007-11-30 Bruno Haible <bruno@clisp.org>
4391 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
4392 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
4393 glthread_recursive_lock_init.
4394 * lib/lock.c (glthread_recursive_lock_init)
4395 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
4396 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
4398 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
4400 New function qset_acl, like set_acl but with syscall semantics.
4401 * lib/acl.h (qset_acl): New decl.
4402 * lib/acl.c (qset_acl): New function.
4403 (set_acl): Use new function. Use more-consistent diagnostics.
4405 2007-11-28 Jim Meyering <meyering@redhat.com>
4407 * modules/physmem (License): Change from GPL to LGPLv2+.
4409 2007-11-26 Bruno Haible <bruno@clisp.org>
4411 * lib/vasnprintf.c (decode_long_double): Don't abort if the
4412 'long double' type has excess precision.
4413 Reported by Jim Meyering in
4414 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
4416 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4418 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
4419 Sync from <http://gnu.org/licenses>.
4420 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
4421 with license text from same location.
4422 * doc/maintain.texi, doc/standards.texi: Sync from
4423 <http://savannah.gnu.org/projects/gnustandards>.
4425 2007-11-22 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
4426 and Jim Meyering <meyering@redhat.com>
4428 Adjust getdate' grammar to accept a slightly more regular language.
4429 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
4430 Before, the former was rejected.
4431 * lib/getdate.y (digits_to_date_time): New function, factored
4433 (number): ...here. Just call digits_to_date_time.
4434 (hybrid): New non-terminal to handle an <unsigned number,
4435 signed relative offset> sequence consistently.
4437 2007-11-18 Jim Meyering <meyering@redhat.com>
4439 Pull my changes from coreutils:
4440 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
4441 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
4442 use of $gnulib_tool_option_extras, so that it's separated from the
4445 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
4446 * build-aux/bootstrap (cp_mark_as_generated): Create any required
4447 parent destination directories before copying a file into place.
4449 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
4451 bootstrap: work also with 4-argument variant of AC_INIT
4452 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
4454 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
4456 Port test-getaddrinfo to Solaris.
4457 Problem reported by Bruno Haible in
4458 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
4459 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
4460 explanation of setting 'hints'.
4461 Don't reject an implementation merely because it returns EAI_SERVICE.
4462 (EAI_SERVICE): Define to 0 if not defined.
4464 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
4466 The license of gnu-make and posix-shell is now "GPLed build tool".
4467 * modules/gnu-make (License): Likewise.
4468 * modules/posix-shell (License): Likewise.
4470 New module posix-shell, for determining a POSIX shell
4471 or perhaps something that is close enough to a POSIX shell.
4472 * m4/posix-shell.m4: New file.
4473 * modules/posix-shell: New file.
4475 * MODULES.html.sh: Mention new module.
4477 New module gnu-make, for determining whether we're using GNU Make.
4478 * m4/gnu-make.m4: New file.
4479 * modules/gnu-make: New file.
4480 * MODULES.html.sh: Mention new module.
4482 2007-11-14 Jim Meyering <meyering@redhat.com>
4484 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
4485 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
4486 use this macro to create a function _definition_.
4487 Remove useless "#undef ARGMATCH_DIE".
4489 2007-11-14 Bruno Haible <bruno@clisp.org>
4491 * lib/config.charset: Update for OpenBSD 4.1.
4492 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
4494 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
4496 Document 64-bit #if problems in stdint.texi.
4497 * doc/headers/stdint.texi (stdint.h): Mention problems with
4498 64-bit-#if, and how to work around them.
4500 Don't insist on 'long long int' support in the preprocessor. It
4501 breaks too many things. For example, PRIdMAX still uses a 'long
4502 long int' format with the latest Sun compiler, even though
4503 HAVE_LONG_LONG_INT isn't defined due to that compiler's
4504 preprocessor problem. This causes the latest coreutils to dump
4505 core on Solaris 10 sparc with the Sun C compiler.
4506 Instead, fix the 2007-10-16 problem in a different way, by evaluating
4507 the troublesome expressions at configure-time, not at #if-time.
4508 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
4510 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
4511 compile-time C checks, done at 'configure'-time.
4512 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
4513 * modules/inttypes (Makefile): Substitute the new symbols that
4514 gl_INTTYPES_H now generates.
4515 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
4517 2007-11-12 Bruno Haible <bruno@clisp.org>
4519 Tests for Unicode character classification functions.
4521 * modules/unictype/bidicategory-byname-tests: New file.
4522 * modules/unictype/bidicategory-name-tests: New file.
4523 * modules/unictype/bidicategory-of-tests: New file.
4524 * modules/unictype/bidicategory-test-tests: New file.
4525 * modules/unictype/block-list-tests: New file.
4526 * modules/unictype/block-of-tests: New file.
4527 * modules/unictype/block-test-tests: New file.
4528 * modules/unictype/category-C-tests: New file.
4529 * modules/unictype/category-Cc-tests: New file.
4530 * modules/unictype/category-Cf-tests: New file.
4531 * modules/unictype/category-Cn-tests: New file.
4532 * modules/unictype/category-Co-tests: New file.
4533 * modules/unictype/category-Cs-tests: New file.
4534 * modules/unictype/category-L-tests: New file.
4535 * modules/unictype/category-Ll-tests: New file.
4536 * modules/unictype/category-Lm-tests: New file.
4537 * modules/unictype/category-Lo-tests: New file.
4538 * modules/unictype/category-Lt-tests: New file.
4539 * modules/unictype/category-Lu-tests: New file.
4540 * modules/unictype/category-M-tests: New file.
4541 * modules/unictype/category-Mc-tests: New file.
4542 * modules/unictype/category-Me-tests: New file.
4543 * modules/unictype/category-Mn-tests: New file.
4544 * modules/unictype/category-N-tests: New file.
4545 * modules/unictype/category-Nd-tests: New file.
4546 * modules/unictype/category-Nl-tests: New file.
4547 * modules/unictype/category-No-tests: New file.
4548 * modules/unictype/category-P-tests: New file.
4549 * modules/unictype/category-Pc-tests: New file.
4550 * modules/unictype/category-Pd-tests: New file.
4551 * modules/unictype/category-Pe-tests: New file.
4552 * modules/unictype/category-Pf-tests: New file.
4553 * modules/unictype/category-Pi-tests: New file.
4554 * modules/unictype/category-Po-tests: New file.
4555 * modules/unictype/category-Ps-tests: New file.
4556 * modules/unictype/category-S-tests: New file.
4557 * modules/unictype/category-Sc-tests: New file.
4558 * modules/unictype/category-Sk-tests: New file.
4559 * modules/unictype/category-Sm-tests: New file.
4560 * modules/unictype/category-So-tests: New file.
4561 * modules/unictype/category-Z-tests: New file.
4562 * modules/unictype/category-Zl-tests: New file.
4563 * modules/unictype/category-Zp-tests: New file.
4564 * modules/unictype/category-Zs-tests: New file.
4565 * modules/unictype/category-and-not-tests: New file.
4566 * modules/unictype/category-and-tests: New file.
4567 * modules/unictype/category-byname-tests: New file.
4568 * modules/unictype/category-name-tests: New file.
4569 * modules/unictype/category-none-tests: New file.
4570 * modules/unictype/category-of-tests: New file.
4571 * modules/unictype/category-or-tests: New file.
4572 * modules/unictype/category-test-withtable-tests: New file.
4573 * modules/unictype/combining-class-tests: New file.
4574 * modules/unictype/ctype-alnum-tests: New file.
4575 * modules/unictype/ctype-alpha-tests: New file.
4576 * modules/unictype/ctype-blank-tests: New file.
4577 * modules/unictype/ctype-cntrl-tests: New file.
4578 * modules/unictype/ctype-digit-tests: New file.
4579 * modules/unictype/ctype-graph-tests: New file.
4580 * modules/unictype/ctype-lower-tests: New file.
4581 * modules/unictype/ctype-print-tests: New file.
4582 * modules/unictype/ctype-punct-tests: New file.
4583 * modules/unictype/ctype-space-tests: New file.
4584 * modules/unictype/ctype-upper-tests: New file.
4585 * modules/unictype/ctype-xdigit-tests: New file.
4586 * modules/unictype/decimal-digit-tests: New file.
4587 * modules/unictype/digit-tests: New file.
4588 * modules/unictype/mirror-tests: New file.
4589 * modules/unictype/numeric-tests: New file.
4590 * modules/unictype/property-alphabetic-tests: New file.
4591 * modules/unictype/property-ascii-hex-digit-tests: New file.
4592 * modules/unictype/property-bidi-arabic-digit-tests: New file.
4593 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
4594 * modules/unictype/property-bidi-block-separator-tests: New file.
4595 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
4596 * modules/unictype/property-bidi-common-separator-tests: New file.
4597 * modules/unictype/property-bidi-control-tests: New file.
4598 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
4599 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
4600 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
4601 * modules/unictype/property-bidi-european-digit-tests: New file.
4602 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
4603 * modules/unictype/property-bidi-left-to-right-tests: New file.
4604 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
4605 * modules/unictype/property-bidi-other-neutral-tests: New file.
4606 * modules/unictype/property-bidi-pdf-tests: New file.
4607 * modules/unictype/property-bidi-segment-separator-tests: New file.
4608 * modules/unictype/property-bidi-whitespace-tests: New file.
4609 * modules/unictype/property-byname-tests: New file.
4610 * modules/unictype/property-combining-tests: New file.
4611 * modules/unictype/property-composite-tests: New file.
4612 * modules/unictype/property-currency-symbol-tests: New file.
4613 * modules/unictype/property-dash-tests: New file.
4614 * modules/unictype/property-decimal-digit-tests: New file.
4615 * modules/unictype/property-default-ignorable-code-point-tests: New file.
4616 * modules/unictype/property-deprecated-tests: New file.
4617 * modules/unictype/property-diacritic-tests: New file.
4618 * modules/unictype/property-extender-tests: New file.
4619 * modules/unictype/property-format-control-tests: New file.
4620 * modules/unictype/property-grapheme-base-tests: New file.
4621 * modules/unictype/property-grapheme-extend-tests: New file.
4622 * modules/unictype/property-grapheme-link-tests: New file.
4623 * modules/unictype/property-hex-digit-tests: New file.
4624 * modules/unictype/property-hyphen-tests: New file.
4625 * modules/unictype/property-id-continue-tests: New file.
4626 * modules/unictype/property-id-start-tests: New file.
4627 * modules/unictype/property-ideographic-tests: New file.
4628 * modules/unictype/property-ids-binary-operator-tests: New file.
4629 * modules/unictype/property-ids-trinary-operator-tests: New file.
4630 * modules/unictype/property-ignorable-control-tests: New file.
4631 * modules/unictype/property-iso-control-tests: New file.
4632 * modules/unictype/property-join-control-tests: New file.
4633 * modules/unictype/property-left-of-pair-tests: New file.
4634 * modules/unictype/property-line-separator-tests: New file.
4635 * modules/unictype/property-logical-order-exception-tests: New file.
4636 * modules/unictype/property-lowercase-tests: New file.
4637 * modules/unictype/property-math-tests: New file.
4638 * modules/unictype/property-non-break-tests: New file.
4639 * modules/unictype/property-not-a-character-tests: New file.
4640 * modules/unictype/property-numeric-tests: New file.
4641 * modules/unictype/property-other-alphabetic-tests: New file.
4642 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
4643 * modules/unictype/property-other-grapheme-extend-tests: New file.
4644 * modules/unictype/property-other-id-continue-tests: New file.
4645 * modules/unictype/property-other-id-start-tests: New file.
4646 * modules/unictype/property-other-lowercase-tests: New file.
4647 * modules/unictype/property-other-math-tests: New file.
4648 * modules/unictype/property-other-uppercase-tests: New file.
4649 * modules/unictype/property-paired-punctuation-tests: New file.
4650 * modules/unictype/property-paragraph-separator-tests: New file.
4651 * modules/unictype/property-pattern-syntax-tests: New file.
4652 * modules/unictype/property-pattern-white-space-tests: New file.
4653 * modules/unictype/property-private-use-tests: New file.
4654 * modules/unictype/property-punctuation-tests: New file.
4655 * modules/unictype/property-quotation-mark-tests: New file.
4656 * modules/unictype/property-radical-tests: New file.
4657 * modules/unictype/property-sentence-terminal-tests: New file.
4658 * modules/unictype/property-soft-dotted-tests: New file.
4659 * modules/unictype/property-space-tests: New file.
4660 * modules/unictype/property-terminal-punctuation-tests: New file.
4661 * modules/unictype/property-test-tests: New file.
4662 * modules/unictype/property-titlecase-tests: New file.
4663 * modules/unictype/property-unassigned-code-value-tests: New file.
4664 * modules/unictype/property-unified-ideograph-tests: New file.
4665 * modules/unictype/property-uppercase-tests: New file.
4666 * modules/unictype/property-variation-selector-tests: New file.
4667 * modules/unictype/property-white-space-tests: New file.
4668 * modules/unictype/property-xid-continue-tests: New file.
4669 * modules/unictype/property-xid-start-tests: New file.
4670 * modules/unictype/property-zero-width-tests: New file.
4671 * modules/unictype/scripts-tests: New file.
4672 * modules/unictype/syntax-c-ident-tests: New file.
4673 * modules/unictype/syntax-c-whitespace-tests: New file.
4674 * modules/unictype/syntax-java-ident-tests: New file.
4675 * modules/unictype/syntax-java-whitespace-tests: New file.
4676 * tests/unictype/test-bidi_byname.c: New file.
4677 * tests/unictype/test-bidi_name.c: New file.
4678 * tests/unictype/test-bidi_of.c: New file.
4679 * tests/unictype/test-bidi_test.c: New file.
4680 * tests/unictype/test-block_list.c: New file.
4681 * tests/unictype/test-block_of.c: New file.
4682 * tests/unictype/test-block_test.c: New file.
4683 * tests/unictype/test-categ_and.c: New file.
4684 * tests/unictype/test-categ_and_not.c: New file.
4685 * tests/unictype/test-categ_byname.c: New file.
4686 * tests/unictype/test-categ_name.c: New file.
4687 * tests/unictype/test-categ_none.c: New file.
4688 * tests/unictype/test-categ_of.c: New file.
4689 * tests/unictype/test-categ_or.c: New file.
4690 * tests/unictype/test-categ_test_withtable.c: New file.
4691 * tests/unictype/test-combining.c: New file.
4692 * tests/unictype/test-decdigit.c: New file.
4693 * tests/unictype/test-digit.c: New file.
4694 * tests/unictype/test-mirror.c: New file.
4695 * tests/unictype/test-numeric.c: New file.
4696 * tests/unictype/test-pr_byname.c: New file.
4697 * tests/unictype/test-pr_test.c: New file.
4698 * tests/unictype/test-predicate-part1.h: New file.
4699 * tests/unictype/test-predicate-part2.h: New file.
4700 * tests/unictype/test-scripts.c: New file.
4701 * tests/unictype/test-sy_c_ident.c: New file.
4702 * tests/unictype/test-sy_java_ident.c: New file.
4704 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
4706 * tests/unictype/test-categ_Cc.c: Likewise.
4707 * tests/unictype/test-categ_Cf.c: Likewise.
4708 * tests/unictype/test-categ_Cn.c: Likewise.
4709 * tests/unictype/test-categ_Co.c: Likewise.
4710 * tests/unictype/test-categ_Cs.c: Likewise.
4711 * tests/unictype/test-categ_L.c: Likewise.
4712 * tests/unictype/test-categ_Ll.c: Likewise.
4713 * tests/unictype/test-categ_Lm.c: Likewise.
4714 * tests/unictype/test-categ_Lo.c: Likewise.
4715 * tests/unictype/test-categ_Lt.c: Likewise.
4716 * tests/unictype/test-categ_Lu.c: Likewise.
4717 * tests/unictype/test-categ_M.c: Likewise.
4718 * tests/unictype/test-categ_Mc.c: Likewise.
4719 * tests/unictype/test-categ_Me.c: Likewise.
4720 * tests/unictype/test-categ_Mn.c: Likewise.
4721 * tests/unictype/test-categ_N.c: Likewise.
4722 * tests/unictype/test-categ_Nd.c: Likewise.
4723 * tests/unictype/test-categ_Nl.c: Likewise.
4724 * tests/unictype/test-categ_No.c: Likewise.
4725 * tests/unictype/test-categ_P.c: Likewise.
4726 * tests/unictype/test-categ_Pc.c: Likewise.
4727 * tests/unictype/test-categ_Pd.c: Likewise.
4728 * tests/unictype/test-categ_Pe.c: Likewise.
4729 * tests/unictype/test-categ_Pf.c: Likewise.
4730 * tests/unictype/test-categ_Pi.c: Likewise.
4731 * tests/unictype/test-categ_Po.c: Likewise.
4732 * tests/unictype/test-categ_Ps.c: Likewise.
4733 * tests/unictype/test-categ_S.c: Likewise.
4734 * tests/unictype/test-categ_Sc.c: Likewise.
4735 * tests/unictype/test-categ_Sk.c: Likewise.
4736 * tests/unictype/test-categ_Sm.c: Likewise.
4737 * tests/unictype/test-categ_So.c: Likewise.
4738 * tests/unictype/test-categ_Z.c: Likewise.
4739 * tests/unictype/test-categ_Zl.c: Likewise.
4740 * tests/unictype/test-categ_Zp.c: Likewise.
4741 * tests/unictype/test-categ_Zs.c: Likewise.
4742 * tests/unictype/test-ctype_alnum.c: Likewise.
4743 * tests/unictype/test-ctype_alpha.c: Likewise.
4744 * tests/unictype/test-ctype_blank.c: Likewise.
4745 * tests/unictype/test-ctype_cntrl.c: Likewise.
4746 * tests/unictype/test-ctype_digit.c: Likewise.
4747 * tests/unictype/test-ctype_graph.c: Likewise.
4748 * tests/unictype/test-ctype_lower.c: Likewise.
4749 * tests/unictype/test-ctype_print.c: Likewise.
4750 * tests/unictype/test-ctype_punct.c: Likewise.
4751 * tests/unictype/test-ctype_space.c: Likewise.
4752 * tests/unictype/test-ctype_upper.c: Likewise.
4753 * tests/unictype/test-ctype_xdigit.c: Likewise.
4754 * tests/unictype/test-decdigit.h: Likewise.
4755 * tests/unictype/test-digit.h: Likewise.
4756 * tests/unictype/test-numeric.h: Likewise.
4757 * tests/unictype/test-pr_alphabetic.c: Likewise.
4758 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
4759 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
4760 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
4761 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
4762 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
4763 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
4764 * tests/unictype/test-pr_bidi_control.c: Likewise.
4765 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
4766 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
4767 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
4768 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
4769 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
4770 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
4771 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
4772 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
4773 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
4774 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
4775 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
4776 * tests/unictype/test-pr_combining.c: Likewise.
4777 * tests/unictype/test-pr_composite.c: Likewise.
4778 * tests/unictype/test-pr_currency_symbol.c: Likewise.
4779 * tests/unictype/test-pr_dash.c: Likewise.
4780 * tests/unictype/test-pr_decimal_digit.c: Likewise.
4781 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
4782 * tests/unictype/test-pr_deprecated.c: Likewise.
4783 * tests/unictype/test-pr_diacritic.c: Likewise.
4784 * tests/unictype/test-pr_extender.c: Likewise.
4785 * tests/unictype/test-pr_format_control.c: Likewise.
4786 * tests/unictype/test-pr_grapheme_base.c: Likewise.
4787 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
4788 * tests/unictype/test-pr_grapheme_link.c: Likewise.
4789 * tests/unictype/test-pr_hex_digit.c: Likewise.
4790 * tests/unictype/test-pr_hyphen.c: Likewise.
4791 * tests/unictype/test-pr_id_continue.c: Likewise.
4792 * tests/unictype/test-pr_id_start.c: Likewise.
4793 * tests/unictype/test-pr_ideographic.c: Likewise.
4794 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
4795 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
4796 * tests/unictype/test-pr_ignorable_control.c: Likewise.
4797 * tests/unictype/test-pr_iso_control.c: Likewise.
4798 * tests/unictype/test-pr_join_control.c: Likewise.
4799 * tests/unictype/test-pr_left_of_pair.c: Likewise.
4800 * tests/unictype/test-pr_line_separator.c: Likewise.
4801 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
4802 * tests/unictype/test-pr_lowercase.c: Likewise.
4803 * tests/unictype/test-pr_math.c: Likewise.
4804 * tests/unictype/test-pr_non_break.c: Likewise.
4805 * tests/unictype/test-pr_not_a_character.c: Likewise.
4806 * tests/unictype/test-pr_numeric.c: Likewise.
4807 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
4808 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
4809 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
4810 * tests/unictype/test-pr_other_id_continue.c: Likewise.
4811 * tests/unictype/test-pr_other_id_start.c: Likewise.
4812 * tests/unictype/test-pr_other_lowercase.c: Likewise.
4813 * tests/unictype/test-pr_other_math.c: Likewise.
4814 * tests/unictype/test-pr_other_uppercase.c: Likewise.
4815 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
4816 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
4817 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
4818 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
4819 * tests/unictype/test-pr_private_use.c: Likewise.
4820 * tests/unictype/test-pr_punctuation.c: Likewise.
4821 * tests/unictype/test-pr_quotation_mark.c: Likewise.
4822 * tests/unictype/test-pr_radical.c: Likewise.
4823 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
4824 * tests/unictype/test-pr_soft_dotted.c: Likewise.
4825 * tests/unictype/test-pr_space.c: Likewise.
4826 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
4827 * tests/unictype/test-pr_titlecase.c: Likewise.
4828 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
4829 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
4830 * tests/unictype/test-pr_uppercase.c: Likewise.
4831 * tests/unictype/test-pr_variation_selector.c: Likewise.
4832 * tests/unictype/test-pr_white_space.c: Likewise.
4833 * tests/unictype/test-pr_xid_continue.c: Likewise.
4834 * tests/unictype/test-pr_xid_start.c: Likewise.
4835 * tests/unictype/test-pr_zero_width.c: Likewise.
4836 * tests/unictype/test-sy_c_whitespace.c: Likewise.
4837 * tests/unictype/test-sy_java_whitespace.c: Likewise.
4839 2007-11-12 Bruno Haible <bruno@clisp.org>
4841 Unicode character classification functions.
4842 * lib/unictype.h: New file.
4843 * modules/unictype/base: New file.
4844 * modules/unictype/category-L: New file.
4845 * modules/unictype/category-Lu: New file.
4846 * modules/unictype/category-Ll: New file.
4847 * modules/unictype/category-Lt: New file.
4848 * modules/unictype/category-Lm: New file.
4849 * modules/unictype/category-Lo: New file.
4850 * modules/unictype/category-M: New file.
4851 * modules/unictype/category-Mn: New file.
4852 * modules/unictype/category-Mc: New file.
4853 * modules/unictype/category-Me: New file.
4854 * modules/unictype/category-N: New file.
4855 * modules/unictype/category-Nd: New file.
4856 * modules/unictype/category-Nl: New file.
4857 * modules/unictype/category-No: New file.
4858 * modules/unictype/category-P: New file.
4859 * modules/unictype/category-Pc: New file.
4860 * modules/unictype/category-Pd: New file.
4861 * modules/unictype/category-Ps: New file.
4862 * modules/unictype/category-Pe: New file.
4863 * modules/unictype/category-Pi: New file.
4864 * modules/unictype/category-Pf: New file.
4865 * modules/unictype/category-Po: New file.
4866 * modules/unictype/category-S: New file.
4867 * modules/unictype/category-Sm: New file.
4868 * modules/unictype/category-Sc: New file.
4869 * modules/unictype/category-Sk: New file.
4870 * modules/unictype/category-So: New file.
4871 * modules/unictype/category-Z: New file.
4872 * modules/unictype/category-Zs: New file.
4873 * modules/unictype/category-Zl: New file.
4874 * modules/unictype/category-Zp: New file.
4875 * modules/unictype/category-C: New file.
4876 * modules/unictype/category-Cc: New file.
4877 * modules/unictype/category-Cf: New file.
4878 * modules/unictype/category-Cs: New file.
4879 * modules/unictype/category-Co: New file.
4880 * modules/unictype/category-Cn: New file.
4881 * modules/unictype/category-or: New file.
4882 * modules/unictype/category-of: New file.
4883 * modules/unictype/category-test: New file.
4884 * modules/unictype/category-test-withtable: New file.
4885 * modules/unictype/category-byname: New file.
4886 * modules/unictype/category-none: New file.
4887 * modules/unictype/category-and: New file.
4888 * modules/unictype/category-and-not: New file.
4889 * modules/unictype/category-name: New file.
4890 * modules/unictype/combining-class: New file.
4891 * modules/unictype/category-all: New file.
4892 * modules/unictype/bidicategory-all: New file.
4893 * modules/unictype/bidicategory-byname: New file.
4894 * modules/unictype/bidicategory-name: New file.
4895 * modules/unictype/bidicategory-of: New file.
4896 * modules/unictype/bidicategory-test: New file.
4897 * modules/unictype/decimal-digit: New file.
4898 * modules/unictype/digit: New file.
4899 * modules/unictype/numeric: New file.
4900 * modules/unictype/mirror: New file.
4901 * modules/unictype/property-white-space: New file.
4902 * modules/unictype/property-alphabetic: New file.
4903 * modules/unictype/property-other-alphabetic: New file.
4904 * modules/unictype/property-not-a-character: New file.
4905 * modules/unictype/property-default-ignorable-code-point: New file.
4906 * modules/unictype/property-other-default-ignorable-code-point: New
4908 * modules/unictype/property-deprecated: New file.
4909 * modules/unictype/property-logical-order-exception: New file.
4910 * modules/unictype/property-variation-selector: New file.
4911 * modules/unictype/property-private-use: New file.
4912 * modules/unictype/property-unassigned-code-value: New file.
4913 * modules/unictype/property-uppercase: New file.
4914 * modules/unictype/property-other-uppercase: New file.
4915 * modules/unictype/property-lowercase: New file.
4916 * modules/unictype/property-other-lowercase: New file.
4917 * modules/unictype/property-titlecase: New file.
4918 * modules/unictype/property-soft-dotted: New file.
4919 * modules/unictype/property-id-start: New file.
4920 * modules/unictype/property-other-id-start: New file.
4921 * modules/unictype/property-id-continue: New file.
4922 * modules/unictype/property-other-id-continue: New file.
4923 * modules/unictype/property-xid-start: New file.
4924 * modules/unictype/property-xid-continue: New file.
4925 * modules/unictype/property-pattern-white-space: New file.
4926 * modules/unictype/property-pattern-syntax: New file.
4927 * modules/unictype/property-join-control: New file.
4928 * modules/unictype/property-grapheme-base: New file.
4929 * modules/unictype/property-grapheme-extend: New file.
4930 * modules/unictype/property-other-grapheme-extend: New file.
4931 * modules/unictype/property-grapheme-link: New file.
4932 * modules/unictype/property-bidi-control: New file.
4933 * modules/unictype/property-bidi-left-to-right: New file.
4934 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
4935 * modules/unictype/property-bidi-arabic-right-to-left: New file.
4936 * modules/unictype/property-bidi-european-digit: New file.
4937 * modules/unictype/property-bidi-eur-num-separator: New file.
4938 * modules/unictype/property-bidi-eur-num-terminator: New file.
4939 * modules/unictype/property-bidi-arabic-digit: New file.
4940 * modules/unictype/property-bidi-common-separator: New file.
4941 * modules/unictype/property-bidi-block-separator: New file.
4942 * modules/unictype/property-bidi-segment-separator: New file.
4943 * modules/unictype/property-bidi-whitespace: New file.
4944 * modules/unictype/property-bidi-non-spacing-mark: New file.
4945 * modules/unictype/property-bidi-boundary-neutral: New file.
4946 * modules/unictype/property-bidi-pdf: New file.
4947 * modules/unictype/property-bidi-embedding-or-override: New file.
4948 * modules/unictype/property-bidi-other-neutral: New file.
4949 * modules/unictype/property-hex-digit: New file.
4950 * modules/unictype/property-ascii-hex-digit: New file.
4951 * modules/unictype/property-ideographic: New file.
4952 * modules/unictype/property-unified-ideograph: New file.
4953 * modules/unictype/property-radical: New file.
4954 * modules/unictype/property-ids-binary-operator: New file.
4955 * modules/unictype/property-ids-trinary-operator: New file.
4956 * modules/unictype/property-zero-width: New file.
4957 * modules/unictype/property-space: New file.
4958 * modules/unictype/property-non-break: New file.
4959 * modules/unictype/property-iso-control: New file.
4960 * modules/unictype/property-format-control: New file.
4961 * modules/unictype/property-dash: New file.
4962 * modules/unictype/property-hyphen: New file.
4963 * modules/unictype/property-punctuation: New file.
4964 * modules/unictype/property-line-separator: New file.
4965 * modules/unictype/property-paragraph-separator: New file.
4966 * modules/unictype/property-quotation-mark: New file.
4967 * modules/unictype/property-sentence-terminal: New file.
4968 * modules/unictype/property-terminal-punctuation: New file.
4969 * modules/unictype/property-currency-symbol: New file.
4970 * modules/unictype/property-math: New file.
4971 * modules/unictype/property-other-math: New file.
4972 * modules/unictype/property-paired-punctuation: New file.
4973 * modules/unictype/property-left-of-pair: New file.
4974 * modules/unictype/property-combining: New file.
4975 * modules/unictype/property-composite: New file.
4976 * modules/unictype/property-decimal-digit: New file.
4977 * modules/unictype/property-numeric: New file.
4978 * modules/unictype/property-diacritic: New file.
4979 * modules/unictype/property-extender: New file.
4980 * modules/unictype/property-ignorable-control: New file.
4981 * modules/unictype/property-test: New file.
4982 * modules/unictype/property-byname: New file.
4983 * modules/unictype/property-all: New file.
4984 * modules/unictype/scripts: New file.
4985 * modules/unictype/scripts-all: New file.
4986 * modules/unictype/block-of: New file.
4987 * modules/unictype/block-test: New file.
4988 * modules/unictype/block-list: New file.
4989 * modules/unictype/block-all: New file.
4990 * modules/unictype/syntax-c-whitespace: New file.
4991 * modules/unictype/syntax-java-whitespace: New file.
4992 * modules/unictype/syntax-c-ident: New file.
4993 * modules/unictype/syntax-java-ident: New file.
4994 * modules/unictype/ctype-alnum: New file.
4995 * modules/unictype/ctype-alpha: New file.
4996 * modules/unictype/ctype-cntrl: New file.
4997 * modules/unictype/ctype-digit: New file.
4998 * modules/unictype/ctype-graph: New file.
4999 * modules/unictype/ctype-lower: New file.
5000 * modules/unictype/ctype-print: New file.
5001 * modules/unictype/ctype-punct: New file.
5002 * modules/unictype/ctype-space: New file.
5003 * modules/unictype/ctype-upper: New file.
5004 * modules/unictype/ctype-xdigit: New file.
5005 * modules/unictype/ctype-blank: New file.
5006 * lib/unictype/bidi_byname.c: New file.
5007 * lib/unictype/bidi_name.c: New file.
5008 * lib/unictype/bidi_of.c: New file.
5009 * lib/unictype/bidi_test.c: New file.
5010 * lib/unictype/bitmap.h: New file.
5011 * lib/unictype/block_test.c: New file.
5012 * lib/unictype/blocks.c: New file.
5013 * lib/unictype/categ_C.c: New file.
5014 * lib/unictype/categ_Cc.c: New file.
5015 * lib/unictype/categ_Cf.c: New file.
5016 * lib/unictype/categ_Cn.c: New file.
5017 * lib/unictype/categ_Co.c: New file.
5018 * lib/unictype/categ_Cs.c: New file.
5019 * lib/unictype/categ_L.c: New file.
5020 * lib/unictype/categ_Ll.c: New file.
5021 * lib/unictype/categ_Lm.c: New file.
5022 * lib/unictype/categ_Lo.c: New file.
5023 * lib/unictype/categ_Lt.c: New file.
5024 * lib/unictype/categ_Lu.c: New file.
5025 * lib/unictype/categ_M.c: New file.
5026 * lib/unictype/categ_Mc.c: New file.
5027 * lib/unictype/categ_Me.c: New file.
5028 * lib/unictype/categ_Mn.c: New file.
5029 * lib/unictype/categ_N.c: New file.
5030 * lib/unictype/categ_Nd.c: New file.
5031 * lib/unictype/categ_Nl.c: New file.
5032 * lib/unictype/categ_No.c: New file.
5033 * lib/unictype/categ_P.c: New file.
5034 * lib/unictype/categ_Pc.c: New file.
5035 * lib/unictype/categ_Pd.c: New file.
5036 * lib/unictype/categ_Pe.c: New file.
5037 * lib/unictype/categ_Pf.c: New file.
5038 * lib/unictype/categ_Pi.c: New file.
5039 * lib/unictype/categ_Po.c: New file.
5040 * lib/unictype/categ_Ps.c: New file.
5041 * lib/unictype/categ_S.c: New file.
5042 * lib/unictype/categ_Sc.c: New file.
5043 * lib/unictype/categ_Sk.c: New file.
5044 * lib/unictype/categ_Sm.c: New file.
5045 * lib/unictype/categ_So.c: New file.
5046 * lib/unictype/categ_Z.c: New file.
5047 * lib/unictype/categ_Zl.c: New file.
5048 * lib/unictype/categ_Zp.c: New file.
5049 * lib/unictype/categ_Zs.c: New file.
5050 * lib/unictype/categ_and.c: New file.
5051 * lib/unictype/categ_and_not.c: New file.
5052 * lib/unictype/categ_byname.c: New file.
5053 * lib/unictype/categ_name.c: New file.
5054 * lib/unictype/categ_none.c: New file.
5055 * lib/unictype/categ_of.c: New file.
5056 * lib/unictype/categ_or.c: New file.
5057 * lib/unictype/categ_test.c: New file.
5058 * lib/unictype/combining.c: New file.
5059 * lib/unictype/ctype_alnum.c: New file.
5060 * lib/unictype/ctype_alpha.c: New file.
5061 * lib/unictype/ctype_blank.c: New file.
5062 * lib/unictype/ctype_cntrl.c: New file.
5063 * lib/unictype/ctype_digit.c: New file.
5064 * lib/unictype/ctype_graph.c: New file.
5065 * lib/unictype/ctype_lower.c: New file.
5066 * lib/unictype/ctype_print.c: New file.
5067 * lib/unictype/ctype_punct.c: New file.
5068 * lib/unictype/ctype_space.c: New file.
5069 * lib/unictype/ctype_upper.c: New file.
5070 * lib/unictype/ctype_xdigit.c: New file.
5071 * lib/unictype/decdigit.c: New file.
5072 * lib/unictype/digit.c: New file.
5073 * lib/unictype/identsyntaxmap.h: New file.
5074 * lib/unictype/mirror.c: New file.
5075 * lib/unictype/numeric.c: New file.
5076 * lib/unictype/pr_alphabetic.c: New file.
5077 * lib/unictype/pr_ascii_hex_digit.c: New file.
5078 * lib/unictype/pr_bidi_arabic_digit.c: New file.
5079 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
5080 * lib/unictype/pr_bidi_block_separator.c: New file.
5081 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
5082 * lib/unictype/pr_bidi_common_separator.c: New file.
5083 * lib/unictype/pr_bidi_control.c: New file.
5084 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
5085 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
5086 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
5087 * lib/unictype/pr_bidi_european_digit.c: New file.
5088 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
5089 * lib/unictype/pr_bidi_left_to_right.c: New file.
5090 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
5091 * lib/unictype/pr_bidi_other_neutral.c: New file.
5092 * lib/unictype/pr_bidi_pdf.c: New file.
5093 * lib/unictype/pr_bidi_segment_separator.c: New file.
5094 * lib/unictype/pr_bidi_whitespace.c: New file.
5095 * lib/unictype/pr_byname.c: New file.
5096 * lib/unictype/pr_byname.gperf: New file.
5097 * lib/unictype/pr_combining.c: New file.
5098 * lib/unictype/pr_composite.c: New file.
5099 * lib/unictype/pr_currency_symbol.c: New file.
5100 * lib/unictype/pr_dash.c: New file.
5101 * lib/unictype/pr_decimal_digit.c: New file.
5102 * lib/unictype/pr_default_ignorable_code_point.c: New file.
5103 * lib/unictype/pr_deprecated.c: New file.
5104 * lib/unictype/pr_diacritic.c: New file.
5105 * lib/unictype/pr_extender.c: New file.
5106 * lib/unictype/pr_format_control.c: New file.
5107 * lib/unictype/pr_grapheme_base.c: New file.
5108 * lib/unictype/pr_grapheme_extend.c: New file.
5109 * lib/unictype/pr_grapheme_link.c: New file.
5110 * lib/unictype/pr_hex_digit.c: New file.
5111 * lib/unictype/pr_hyphen.c: New file.
5112 * lib/unictype/pr_id_continue.c: New file.
5113 * lib/unictype/pr_id_start.c: New file.
5114 * lib/unictype/pr_ideographic.c: New file.
5115 * lib/unictype/pr_ids_binary_operator.c: New file.
5116 * lib/unictype/pr_ids_trinary_operator.c: New file.
5117 * lib/unictype/pr_ignorable_control.c: New file.
5118 * lib/unictype/pr_iso_control.c: New file.
5119 * lib/unictype/pr_join_control.c: New file.
5120 * lib/unictype/pr_left_of_pair.c: New file.
5121 * lib/unictype/pr_line_separator.c: New file.
5122 * lib/unictype/pr_logical_order_exception.c: New file.
5123 * lib/unictype/pr_lowercase.c: New file.
5124 * lib/unictype/pr_math.c: New file.
5125 * lib/unictype/pr_non_break.c: New file.
5126 * lib/unictype/pr_not_a_character.c: New file.
5127 * lib/unictype/pr_numeric.c: New file.
5128 * lib/unictype/pr_other_alphabetic.c: New file.
5129 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
5130 * lib/unictype/pr_other_grapheme_extend.c: New file.
5131 * lib/unictype/pr_other_id_continue.c: New file.
5132 * lib/unictype/pr_other_id_start.c: New file.
5133 * lib/unictype/pr_other_lowercase.c: New file.
5134 * lib/unictype/pr_other_math.c: New file.
5135 * lib/unictype/pr_other_uppercase.c: New file.
5136 * lib/unictype/pr_paired_punctuation.c: New file.
5137 * lib/unictype/pr_paragraph_separator.c: New file.
5138 * lib/unictype/pr_pattern_syntax.c: New file.
5139 * lib/unictype/pr_pattern_white_space.c: New file.
5140 * lib/unictype/pr_private_use.c: New file.
5141 * lib/unictype/pr_punctuation.c: New file.
5142 * lib/unictype/pr_quotation_mark.c: New file.
5143 * lib/unictype/pr_radical.c: New file.
5144 * lib/unictype/pr_sentence_terminal.c: New file.
5145 * lib/unictype/pr_soft_dotted.c: New file.
5146 * lib/unictype/pr_space.c: New file.
5147 * lib/unictype/pr_terminal_punctuation.c: New file.
5148 * lib/unictype/pr_test.c: New file.
5149 * lib/unictype/pr_titlecase.c: New file.
5150 * lib/unictype/pr_unassigned_code_value.c: New file.
5151 * lib/unictype/pr_unified_ideograph.c: New file.
5152 * lib/unictype/pr_uppercase.c: New file.
5153 * lib/unictype/pr_variation_selector.c: New file.
5154 * lib/unictype/pr_white_space.c: New file.
5155 * lib/unictype/pr_xid_continue.c: New file.
5156 * lib/unictype/pr_xid_start.c: New file.
5157 * lib/unictype/pr_zero_width.c: New file.
5158 * lib/unictype/scripts.c: New file.
5159 * lib/unictype/sy_c_ident.c: New file.
5160 * lib/unictype/sy_c_whitespace.c: New file.
5161 * lib/unictype/sy_java_ident.c: New file.
5162 * lib/unictype/sy_java_whitespace.c: New file.
5164 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
5166 * lib/unictype/blocks.h: Likewise.
5167 * lib/unictype/categ_C.h: Likewise.
5168 * lib/unictype/categ_Cc.h: Likewise.
5169 * lib/unictype/categ_Cf.h: Likewise.
5170 * lib/unictype/categ_Cn.h: Likewise.
5171 * lib/unictype/categ_Co.h: Likewise.
5172 * lib/unictype/categ_Cs.h: Likewise.
5173 * lib/unictype/categ_L.h: Likewise.
5174 * lib/unictype/categ_Ll.h: Likewise.
5175 * lib/unictype/categ_Lm.h: Likewise.
5176 * lib/unictype/categ_Lo.h: Likewise.
5177 * lib/unictype/categ_Lt.h: Likewise.
5178 * lib/unictype/categ_Lu.h: Likewise.
5179 * lib/unictype/categ_M.h: Likewise.
5180 * lib/unictype/categ_Mc.h: Likewise.
5181 * lib/unictype/categ_Me.h: Likewise.
5182 * lib/unictype/categ_Mn.h: Likewise.
5183 * lib/unictype/categ_N.h: Likewise.
5184 * lib/unictype/categ_Nd.h: Likewise.
5185 * lib/unictype/categ_Nl.h: Likewise.
5186 * lib/unictype/categ_No.h: Likewise.
5187 * lib/unictype/categ_P.h: Likewise.
5188 * lib/unictype/categ_Pc.h: Likewise.
5189 * lib/unictype/categ_Pd.h: Likewise.
5190 * lib/unictype/categ_Pe.h: Likewise.
5191 * lib/unictype/categ_Pf.h: Likewise.
5192 * lib/unictype/categ_Pi.h: Likewise.
5193 * lib/unictype/categ_Po.h: Likewise.
5194 * lib/unictype/categ_Ps.h: Likewise.
5195 * lib/unictype/categ_S.h: Likewise.
5196 * lib/unictype/categ_Sc.h: Likewise.
5197 * lib/unictype/categ_Sk.h: Likewise.
5198 * lib/unictype/categ_Sm.h: Likewise.
5199 * lib/unictype/categ_So.h: Likewise.
5200 * lib/unictype/categ_Z.h: Likewise.
5201 * lib/unictype/categ_Zl.h: Likewise.
5202 * lib/unictype/categ_Zp.h: Likewise.
5203 * lib/unictype/categ_Zs.h: Likewise.
5204 * lib/unictype/categ_of.h: Likewise.
5205 * lib/unictype/combining.h: Likewise.
5206 * lib/unictype/ctype_alnum.h: Likewise.
5207 * lib/unictype/ctype_alpha.h: Likewise.
5208 * lib/unictype/ctype_blank.h: Likewise.
5209 * lib/unictype/ctype_cntrl.h: Likewise.
5210 * lib/unictype/ctype_digit.h: Likewise.
5211 * lib/unictype/ctype_graph.h: Likewise.
5212 * lib/unictype/ctype_lower.h: Likewise.
5213 * lib/unictype/ctype_print.h: Likewise.
5214 * lib/unictype/ctype_punct.h: Likewise.
5215 * lib/unictype/ctype_space.h: Likewise.
5216 * lib/unictype/ctype_upper.h: Likewise.
5217 * lib/unictype/ctype_xdigit.h: Likewise.
5218 * lib/unictype/decdigit.h: Likewise.
5219 * lib/unictype/digit.h: Likewise.
5220 * lib/unictype/mirror.h: Likewise.
5221 * lib/unictype/numeric.h: Likewise.
5222 * lib/unictype/pr_alphabetic.h: Likewise.
5223 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
5224 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5225 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
5226 * lib/unictype/pr_bidi_block_separator.h: Likewise.
5227 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
5228 * lib/unictype/pr_bidi_common_separator.h: Likewise.
5229 * lib/unictype/pr_bidi_control.h: Likewise.
5230 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
5231 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
5232 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5233 * lib/unictype/pr_bidi_european_digit.h: Likewise.
5234 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5235 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5236 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5237 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5238 * lib/unictype/pr_bidi_pdf.h: Likewise.
5239 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
5240 * lib/unictype/pr_bidi_whitespace.h: Likewise.
5241 * lib/unictype/pr_combining.h: Likewise.
5242 * lib/unictype/pr_composite.h: Likewise.
5243 * lib/unictype/pr_currency_symbol.h: Likewise.
5244 * lib/unictype/pr_dash.h: Likewise.
5245 * lib/unictype/pr_decimal_digit.h: Likewise.
5246 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
5247 * lib/unictype/pr_deprecated.h: Likewise.
5248 * lib/unictype/pr_diacritic.h: Likewise.
5249 * lib/unictype/pr_extender.h: Likewise.
5250 * lib/unictype/pr_format_control.h: Likewise.
5251 * lib/unictype/pr_grapheme_base.h: Likewise.
5252 * lib/unictype/pr_grapheme_extend.h: Likewise.
5253 * lib/unictype/pr_grapheme_link.h: Likewise.
5254 * lib/unictype/pr_hex_digit.h: Likewise.
5255 * lib/unictype/pr_hyphen.h: Likewise.
5256 * lib/unictype/pr_id_continue.h: Likewise.
5257 * lib/unictype/pr_id_start.h: Likewise.
5258 * lib/unictype/pr_ideographic.h: Likewise.
5259 * lib/unictype/pr_ids_binary_operator.h: Likewise.
5260 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
5261 * lib/unictype/pr_ignorable_control.h: Likewise.
5262 * lib/unictype/pr_iso_control.h: Likewise.
5263 * lib/unictype/pr_join_control.h: Likewise.
5264 * lib/unictype/pr_left_of_pair.h: Likewise.
5265 * lib/unictype/pr_line_separator.h: Likewise.
5266 * lib/unictype/pr_logical_order_exception.h: Likewise.
5267 * lib/unictype/pr_lowercase.h: Likewise.
5268 * lib/unictype/pr_math.h: Likewise.
5269 * lib/unictype/pr_non_break.h: Likewise.
5270 * lib/unictype/pr_not_a_character.h: Likewise.
5271 * lib/unictype/pr_numeric.h: Likewise.
5272 * lib/unictype/pr_other_alphabetic.h: Likewise.
5273 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
5274 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
5275 * lib/unictype/pr_other_id_continue.h: Likewise.
5276 * lib/unictype/pr_other_id_start.h: Likewise.
5277 * lib/unictype/pr_other_lowercase.h: Likewise.
5278 * lib/unictype/pr_other_math.h: Likewise.
5279 * lib/unictype/pr_other_uppercase.h: Likewise.
5280 * lib/unictype/pr_paired_punctuation.h: Likewise.
5281 * lib/unictype/pr_paragraph_separator.h: Likewise.
5282 * lib/unictype/pr_pattern_syntax.h: Likewise.
5283 * lib/unictype/pr_pattern_white_space.h: Likewise.
5284 * lib/unictype/pr_private_use.h: Likewise.
5285 * lib/unictype/pr_punctuation.h: Likewise.
5286 * lib/unictype/pr_quotation_mark.h: Likewise.
5287 * lib/unictype/pr_radical.h: Likewise.
5288 * lib/unictype/pr_sentence_terminal.h: Likewise.
5289 * lib/unictype/pr_soft_dotted.h: Likewise.
5290 * lib/unictype/pr_space.h: Likewise.
5291 * lib/unictype/pr_terminal_punctuation.h: Likewise.
5292 * lib/unictype/pr_titlecase.h: Likewise.
5293 * lib/unictype/pr_unassigned_code_value.h: Likewise.
5294 * lib/unictype/pr_unified_ideograph.h: Likewise.
5295 * lib/unictype/pr_uppercase.h: Likewise.
5296 * lib/unictype/pr_variation_selector.h: Likewise.
5297 * lib/unictype/pr_white_space.h: Likewise.
5298 * lib/unictype/pr_xid_continue.h: Likewise.
5299 * lib/unictype/pr_xid_start.h: Likewise.
5300 * lib/unictype/pr_zero_width.h: Likewise.
5301 * lib/unictype/scripts.h: Likewise.
5302 * lib/unictype/scripts_byname.gperf: Likewise.
5303 * lib/unictype/sy_c_ident.h: Likewise.
5304 * lib/unictype/sy_c_whitespace.h: Likewise.
5305 * lib/unictype/sy_java_ident.h: Likewise.
5306 * lib/unictype/sy_java_whitespace.h: Likewise.
5308 * lib/unictype/Makefile: New file.
5309 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
5311 * lib/unictype/3level.h: New file, copied from glibc.
5312 * lib/unictype/3levelbit.h: New file.
5314 2007-11-11 Bruno Haible <bruno@clisp.org>
5316 * modules/gperf: New file.
5317 * modules/iconv_open (Depends-on): Add it.
5318 (Makefile.am): Remove the GPERF definition.
5320 2007-11-11 Bruno Haible <bruno@clisp.org>
5322 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
5323 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
5325 2007-11-11 Bruno Haible <bruno@clisp.org>
5327 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
5328 (usage): Remove function.
5330 2007-11-11 Bruno Haible <bruno@clisp.org>
5332 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
5334 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
5336 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
5338 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
5339 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
5340 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
5342 2007-11-11 Bruno Haible <bruno@clisp.org>
5344 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
5345 roundf were declared but do not exist on functions.
5346 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
5347 roundl were declared but do not exist on functions.
5348 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
5349 HAVE_FLOORL_AND_CEILL, respectively.
5350 Needed for Sun C on Solaris 10.
5352 2007-11-11 Bruno Haible <bruno@clisp.org>
5354 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
5355 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
5356 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
5357 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
5358 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
5359 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
5360 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
5362 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
5363 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
5364 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
5365 of HAVE_DECL_ROUND*.
5366 * modules/math (Makefile.am): Update.
5368 2007-11-10 Bruno Haible <bruno@clisp.org>
5370 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
5371 ptrdiff_t as m4/intl.m4.
5373 2007-11-10 Jim Meyering <meyering@redhat.com>
5375 Avoid link failure for the argmatch test.
5376 * tests/test-argmatch.c (usage): Define function to avoid a link
5377 failure: argmatch_die requires a usage function.
5379 2007-11-09 Bruno Haible <bruno@clisp.org>
5381 * doc/functions/snprintf.texi: Mention BeOS deficiency.
5382 * doc/functions/vsnprintf.texi: Likewise.
5383 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
5384 with a size argument < 2.
5386 2007-11-09 Bruno Haible <bruno@clisp.org>
5388 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
5389 buffer. Fixes an inefficiency introduced on 2007-11-03.
5391 2007-11-09 Bruno Haible <bruno@clisp.org>
5393 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
5394 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
5396 2007-11-08 Jim Meyering <meyering@redhat.com>
5398 Change cache variable name prefix "jm_" to "gl_" everywhere.
5399 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
5400 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
5401 * m4/uptime.m4: s/gl_/jm_/
5403 2007-11-07 Bruno Haible <bruno@clisp.org>
5405 Update to GNU gettext 0.17.
5406 * m4/intl.m4: Update to GNU gettext 0.17.
5407 * m4/po.m4: Likewise.
5408 * modules/gettext (Files): Remove m4/ulonglong.m4.
5409 (configure.ac): Require gettext infrastructure from version 0.17.
5411 2007-11-06 Bruno Haible <bruno@clisp.org>
5413 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
5414 symbolic values are not defined in a public header.
5415 * lib/freadable.c (freadable) [QNX]: Likewise.
5416 * lib/freadahead.c (freadahead) [QNX]: Likewise.
5417 * lib/freading.c (freading) [QNX]: Likewise.
5418 * lib/fseterr.c (fseterr) [QNX]: Likewise.
5419 * lib/fwritable.c (fwritable) [QNX]: Likewise.
5420 * lib/fwriting.c (fwriting) [QNX]: Likewise.
5421 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
5422 Reported by Alain Magloire.
5424 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
5426 2007-11-05 Bruno Haible <bruno@clisp.org>
5428 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
5429 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
5430 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
5431 Reported by Eric Blake.
5433 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5434 Bruno Haible <bruno@clisp.org>
5436 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
5437 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
5438 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
5439 (malloc): Undefine also before including <stdlib.h>.
5440 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
5441 Needed on OSF/1 4.0.
5443 2007-11-05 Jim Meyering <meyering@redhat.com>
5445 git-version-gen: sync from coreutils.
5446 * build-aux/git-version-gen: Add comments.
5447 Change the first '-' to '.' in the snapshot version string,
5448 e.g., 6.9-377-08144 -> 6.9.377-08144
5449 Remove first parameter.
5450 Don't declare a version "-dirty" merely because a time
5453 2007-11-04 Bruno Haible <bruno@clisp.org>
5455 * lib/lock.h: Protect all macro definitions containing an 'if'
5456 statement through a "do { ... } while (0)".
5457 * lib/tls.h: Likewise.
5459 2007-11-04 Bruno Haible <bruno@clisp.org>
5461 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
5463 2007-11-04 Bruno Haible <bruno@clisp.org>
5465 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
5466 * modules/fprintf-posix (Depends-on): Add nocrash.
5467 * modules/snprintf-posix (Depends-on): Likewise.
5468 * modules/sprintf-posix (Depends-on): Likewise.
5469 * modules/vasnprintf-posix (Depends-on): Likewise.
5470 * modules/vasprintf-posix (Depends-on): Likewise.
5471 * modules/vfprintf-posix (Depends-on): Likewise.
5472 * modules/vsnprintf-posix (Depends-on): Likewise.
5473 * modules/vsprintf-posix (Depends-on): Likewise.
5474 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
5475 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
5476 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
5477 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
5478 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
5479 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
5480 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
5482 2007-11-04 Bruno Haible <bruno@clisp.org>
5484 * modules/nocrash: New file.
5485 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
5486 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
5488 2007-11-04 Bruno Haible <bruno@clisp.org>
5490 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
5492 * tests/test-vasprintf-posix.c (test_function): Likewise.
5493 * tests/test-snprintf-posix.h (test_function): Likewise.
5494 * tests/test-sprintf-posix.h (test_function): Likewise.
5496 Fix *printf behaviour for large precisions on mingw and BeOS.
5497 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
5498 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
5499 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
5500 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
5501 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
5502 gl_PRINTF_PRECISION and test its result. Invoke
5503 gl_PREREQ_VASNPRINTF_PRECISION.
5504 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5505 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5506 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5507 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5508 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5509 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5510 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5511 * doc/functions/fprintf.texi: Update.
5512 * doc/functions/printf.texi: Update.
5513 * doc/functions/snprintf.texi: Update.
5514 * doc/functions/sprintf.texi: Update.
5515 * doc/functions/vfprintf.texi: Update.
5516 * doc/functions/vprintf.texi: Update.
5517 * doc/functions/vsnprintf.texi: Update.
5518 * doc/functions/vsprintf.texi: Update.
5520 2007-11-04 Bruno Haible <bruno@clisp.org>
5522 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
5524 2007-11-04 Bruno Haible <bruno@clisp.org>
5526 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
5527 Reported by Sylvain Beucler <beuc@gnu.org>.
5529 2007-11-03 Bruno Haible <bruno@clisp.org>
5531 * tests/test-fprintf-posix2.sh: New file.
5532 * tests/test-fprintf-posix2.c: New file.
5533 * modules/fprintf-posix-tests (Files): Add them.
5534 (TESTS): Add test-fprintf-posix2.sh.
5535 (configure.ac): Check for getrlimit and setrlimit.
5536 (check_PROGRAMS): Add test-fprintf-posix2.
5538 * tests/test-printf-posix2.sh: New file.
5539 * tests/test-printf-posix2.c: New file.
5540 * modules/printf-posix-tests (Files): Add them.
5541 (TESTS): Add test-printf-posix2.sh.
5542 (configure.ac): Check for getrlimit and setrlimit.
5543 (check_PROGRAMS): Add test-printf-posix2.
5545 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
5546 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
5547 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
5548 (decode_double): New function, copied from decode_long_double.
5549 (scale10_round_decimal_decoded): New function, extracted from
5550 scale10_round_decimal_long_double.
5551 (scale10_round_decimal_long_double): Use it.
5552 (scale10_round_decimal_double): New function.
5553 (floorlog10): New function.
5554 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
5555 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
5556 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
5557 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
5558 gl_PRINTF_ENOMEM and test its result. Invoke
5559 gl_PREREQ_VASNPRINTF_ENOMEM.
5560 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5561 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5562 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5563 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5564 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5565 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5566 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5567 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
5568 * modules/snprintf-posix (Depends-on): Likewise.
5569 * modules/sprintf-posix (Depends-on): Likewise.
5570 * modules/vasnprintf-posix (Depends-on): Likewise.
5571 * modules/vasprintf-posix (Depends-on): Likewise.
5572 * modules/vfprintf-posix (Depends-on): Likewise.
5573 * modules/vsnprintf-posix (Depends-on): Likewise.
5574 * modules/vsprintf-posix (Depends-on): Likewise.
5575 * doc/functions/fprintf.texi: Update.
5576 * doc/functions/printf.texi: Update.
5577 * doc/functions/snprintf.texi: Update.
5578 * doc/functions/sprintf.texi: Update.
5579 * doc/functions/vfprintf.texi: Update.
5580 * doc/functions/vprintf.texi: Update.
5581 * doc/functions/vsnprintf.texi: Update.
5582 * doc/functions/vsprintf.texi: Update.
5584 2007-11-03 Bruno Haible <bruno@clisp.org>
5586 * modules/frexp-nolibm-tests: New file.
5588 * modules/frexp-nolibm: New file.
5589 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
5591 2007-11-03 Bruno Haible <bruno@clisp.org>
5593 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
5594 value is C99 compliant.
5595 Needed for OSF/1 5.1.
5597 2007-11-03 Bruno Haible <bruno@clisp.org>
5599 Fix out-of-memory handling of vasnprintf.
5600 * lib/printf-parse.c: Include <errno.h>.
5601 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
5602 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
5605 2007-11-02 Eric Blake <ebb9@byu.net>
5607 Fix tests on cygwin.
5608 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
5610 2007-11-01 Bruno Haible <bruno@clisp.org>
5612 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
5614 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
5615 needed for POSIX compatibility.
5617 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
5619 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
5620 for compatibility with GNU.
5622 2007-11-01 Bruno Haible <bruno@clisp.org>
5624 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
5625 (putenv): Renamed from rpl_putenv. Change argument type from
5626 'const char *' to 'char *'.
5627 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
5628 of defining putenv in config.h, just set REPLACE_PUTENV.
5629 * modules/putenv (Depends-on): Add stdlib.
5630 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5631 (Include): Use <stdlib.h>.
5632 * lib/stdlib.in.h (putenv): New declaration.
5633 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
5635 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
5637 Needed for MacOS X 10.5.0.
5638 Reported by Peter O'Gorman <peter@pogma.com>.
5640 2007-11-01 Jim Meyering <meyering@redhat.com>
5642 Treat an empty date string exactly like "0".
5643 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
5644 if the remaining date string (to be parsed) is empty, use "0".
5645 Reported by Mischa Molhoek and discussed in this thread:
5646 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
5648 2007-10-31 Bruno Haible <bruno@clisp.org>
5650 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
5651 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
5652 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
5653 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
5654 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
5655 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
5657 2007-10-31 Bruno Haible <bruno@clisp.org>
5659 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
5660 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
5661 (AC_TYPE_LONG_LONG_INT): Use it.
5662 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
5664 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
5666 * modules/stdint (Files): Remove m4/ulonglong.m4.
5667 * modules/strtoull (Files): Use m4/longlong.m4 instead of
5669 * modules/strtoumax (Files): Likewise.
5671 2007-10-30 Bruno Haible <bruno@clisp.org>
5673 * modules/xvasprintf-posix: New file.
5674 Suggested by Eric Blake.
5676 2007-10-30 Bruno Haible <bruno@clisp.org>
5678 * modules/xprintf-posix-tests: New file.
5679 * tests/test-xprintf-posix.sh: New file.
5680 * tests/test-xprintf-posix.c: New file.
5681 * tests/test-xfprintf-posix.c: New file.
5683 * modules/xprintf-posix: New file.
5685 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5687 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
5688 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
5689 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
5691 2007-10-29 Bruno Haible <bruno@clisp.org>
5693 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
5694 contain the special marker '_cv_'.
5695 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
5696 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
5697 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
5698 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
5699 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
5700 Reported by Ralf Wildenhues.
5702 2007-10-29 Bruno Haible <bruno@clisp.org>
5704 * gnulib-tool (func_import): When --lgpl is not specified, set
5705 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
5707 Reported by Simon Josefsson.
5709 2007-10-28 Bruno Haible <bruno@clisp.org>
5711 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
5712 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
5714 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
5715 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
5718 2007-10-28 Bruno Haible <bruno@clisp.org>
5720 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
5721 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
5723 2007-10-28 Bruno Haible <bruno@clisp.org>
5725 Fix link errors with Sun C 5.0 on Solaris 10.
5726 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
5727 function is declared but not present in the compiler's libm.
5728 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
5729 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5730 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
5731 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
5732 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
5733 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
5734 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
5735 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
5736 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
5737 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
5738 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
5741 2007-10-28 Bruno Haible <bruno@clisp.org>
5743 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
5744 gl_FUNC_FLOORL. Cache the result.
5745 (gl_FUNC_FLOORL): Use it.
5746 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
5747 gl_FUNC_CEILL. Cache the result.
5748 (gl_FUNC_CEILL): Use it.
5750 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
5751 gl_FUNC_FLOOR. Cache the result.
5752 (gl_FUNC_FLOOR): Use it.
5753 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
5754 gl_FUNC_CEIL. Cache the result.
5755 (gl_FUNC_CEIL): Use it.
5757 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
5758 gl_FUNC_FLOORF. Cache the result.
5759 (gl_FUNC_FLOORF): Use it.
5760 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
5761 gl_FUNC_CEILF. Cache the result.
5762 (gl_FUNC_CEILF): Use it.
5764 2007-10-28 Bruno Haible <bruno@clisp.org>
5766 * gnulib-tool: Allow specifying the LGPL version number through
5767 --lgpl=2 or --lgpl=3.
5768 (func_usage): Document --lgpl with argument.
5769 Handle --lgpl=... arguments.
5770 (func_import): Recognize also gl_LGPL calls with an argument. When
5771 --lgpl=2 is used and the module's license is just LGPL, report an
5772 error. Set sed_transform_lib_file according to the lgpl variable. In
5773 the generated files, use --lgpl or gl_LGPL invocations with argument,
5775 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
5777 * doc/gnulib-tool.texi (Modified imports): Update explanation of
5780 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5781 Bruno Haible <bruno@clisp.org>
5783 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
5784 (u16_uctomb_aux): Likewise.
5785 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
5787 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
5789 2007-10-28 Bruno Haible <bruno@clisp.org>
5791 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
5792 Invoke AM_GETTEXT_OPTION if it exists.
5793 * modules/vasprintf: Likewise.
5794 * modules/verror: Likewise.
5795 * modules/xprintf: Likewise.
5796 * modules/xvasprintf: Likewise.
5798 2007-10-27 Ben Pfaff <blp@gnu.org>
5800 * lib/math.in.h: Define isfinite macro and prototypes for
5801 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
5803 * m4/math_h.m4: New substitutions for isfinite module.
5804 * lib/isfinite.c: New file.
5805 * m4/isfinite.m4: New file.
5806 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
5807 * modules/isfinite: New file.
5808 * modules/isfinite-tests: New file.
5809 * tests/tests-isfinite.c: New file.
5810 * doc/functions/isfinite.texi: Mention isfinite module.
5811 * MODULES.html.sh: Mention new module.
5813 2007-10-27 Ben Pfaff <blp@gnu.org>
5815 Ralf Wildenhues reported that Tru64 4.0D declares the round
5816 functions but does not have definitions.
5817 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
5818 cannot be found in any library, set the output variable to
5819 "missing" instead of "".
5820 * m4/round.m4: Also use our substitute if we cannot find round in
5821 any library, even if it is declared.
5822 * m4/roundf.m4: Likewise for roundf.
5823 * m4/roundl.m4: Likewise for roundl.
5824 * lib/math.in.h: Undefine roundf, round, roundl before defining
5825 their replacements, to allow for hypothetical systems where these
5826 may be defined as macros but not available in libraries.
5828 2007-10-27 Bruno Haible <bruno@clisp.org>
5830 * doc/gnulib.texi: Invoke @firstparagraphindent.
5831 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
5833 (Source changes): New section.
5835 2007-10-26 Bruno Haible <bruno@clisp.org>
5837 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
5838 borrowed from autoconf.
5840 2007-10-26 Bruno Haible <bruno@clisp.org>
5842 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
5843 strerror returned the empty string. Needed on HP-UX 11.00.
5845 2007-10-24 Micah Cowan <micah@cowan.name>
5847 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
5848 * build-aux/bootstrap: Remove support for now-unnecessary option,
5849 --cvs-user, and envvars CVS_USER, CVS_RSH.
5851 2007-10-24 Jim Meyering <meyering@redhat.com>
5853 Avoid diagnostics from sha1sum when there is no cached checksum.
5854 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
5855 if the po.s1 file hasn't been created yet.
5857 * build-aux/bootstrap: Sync from coreutils:
5858 2007-10-24 Jim Meyering <meyering@redhat.com>
5859 Get gnulib from the git repository, not from an obsolete cvs one.
5860 * build-aux/bootstrap: Suggestion from Micah Cowan.
5861 2007-10-04 Jim Meyering <jim@meyering.net>
5862 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
5863 (update_po_files): Work also when there are no .po files in po/.
5865 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
5867 * README: Append ".git" to git and cg examples.
5868 Problem reported by Benoit Sigoure.
5870 2007-10-23 Micah Cowan <micah@cowan.name>
5872 * users.txt: Add wget.
5874 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5876 Fix linking of some unistdio tests on FreeBSD.
5877 * modules/unistdio/u16-vsnprintf-tests
5878 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
5879 * modules/unistdio/u16-vsprintf-tests
5880 (test_u16_vsnprintf1_LDADD): Likewise.
5881 * modules/unistdio/u32-vsnprintf-tests
5882 (test_u32_vsnprintf1_LDADD): Likewise.
5883 * modules/unistdio/u32-vsprintf-tests
5884 (test_u32_vsprintf1_LDADD): Likewise.
5885 * modules/unistdio/u8-vsnprintf-tests
5886 (test_u8_vsnprintf1_LDADD): Likewise.
5887 * modules/unistdio/u8-vsprintf-tests
5888 (test_u8_vsprintf1_LDADD): Likewise.
5889 * modules/unistdio/ulc-vsnprintf-tests
5890 (test_ulc_vsnprintf1_LDADD): Likewise.
5891 * modules/unistdio/ulc-vsprintf-tests
5892 (test_ulc_vsprintf1_LDADD): Likewise.
5894 Fix linking of some uniconv tests on FreeBSD.
5895 * modules/uniconv/u16-conv-from-enc-tests
5896 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
5897 * modules/uniconv/u16-conv-to-enc-tests
5898 (test_u16_conv_to_enc_LDADD): Likewise.
5899 * modules/uniconv/u16-strconv-from-enc-tests
5900 (test_u16_strconv_from_enc_LDADD): Likewise.
5901 * modules/uniconv/u16-strconv-to-enc-tests
5902 (test_u16_strconv_to_enc_LDADD): Likewise.
5903 * modules/uniconv/u32-conv-from-enc-tests
5904 (test_u32_conv_from_enc_LDADD): Likewise.
5905 * modules/uniconv/u32-conv-to-enc-tests
5906 (test_u32_conv_to_enc_LDADD): Likewise.
5907 * modules/uniconv/u32-strconv-from-enc-tests
5908 (test_u32_strconv_from_enc_LDADD): Likewise.
5909 * modules/uniconv/u32-strconv-to-enc-tests
5910 (test_u32_strconv_to_enc_LDADD): Likewise.
5911 * modules/uniconv/u8-conv-from-enc-tests
5912 (test_u8_conv_from_enc_LDADD): Likewise.
5913 * modules/uniconv/u8-conv-to-enc-tests
5914 (test_u8_conv_to_enc_LDADD): Likewise.
5915 * modules/uniconv/u8-strconv-from-enc-tests
5916 (test_u8_strconv_from_enc_LDADD): Likewise.
5917 * modules/uniconv/u8-strconv-to-enc-tests
5918 (test_u8_strconv_to_enc_LDADD): Likewise.
5920 2007-10-22 Bruno Haible <bruno@clisp.org>
5922 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
5925 2007-10-22 Eric Blake <ebb9@byu.net>
5927 Tweak x*printf documentation.
5928 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
5929 variable name and comments.
5930 Suggested by Bruno Haible.
5932 2007-10-22 Bruno Haible <bruno@clisp.org>
5934 * lib/acl.c (copy_acl): Fix file name in comment.
5936 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
5938 Fix Tru64 problem with stdbool.h.
5939 * lib/stdbool.in.h (false, true):
5940 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
5941 Don't declare as an enum in this situation; it runs afoul of Tru64.
5942 Problem reported by Steven M. Schweda in
5943 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
5945 2007-10-22 Eric Blake <ebb9@byu.net>
5947 Also wrap vf?printf.
5948 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
5949 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
5950 (xvprintf, xvfprintf): New functions.
5952 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5954 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
5955 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
5957 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
5958 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
5960 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
5962 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
5965 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5968 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
5969 Undef `sys' after including sys/table.h, for Tru64 4.0D.
5971 * tests/test-i-ring.c: Work for C89.
5973 2007-10-22 Bruno Haible <bruno@clisp.org>
5975 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
5976 -1u, in preprocessor expression, so that we don't test for the bug
5977 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
5978 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
5980 2007-10-22 Eric Blake <ebb9@byu.net>
5982 * tests/test-yesno.sh: Silence stderr during test.
5984 2007-10-22 Simon Josefsson <simon@josefsson.org>
5986 * modules/crypto/gc-camellia: New file.
5988 * m4/gc-camellia.m4: New file.
5990 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
5992 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
5994 2007-10-22 Simon Josefsson <simon@josefsson.org>
5996 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
5997 --help to stdout. Reported by sms@antinode.org (Steven
6000 2007-10-22 Simon Josefsson <simon@josefsson.org>
6002 * users.txt: Fix link to libksba.
6004 2007-10-21 Ben Pfaff <blp@gnu.org>
6006 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
6007 round.c roundf implementation that depends on floorf and ceilf to
6008 be tested unconditionally.
6010 2007-10-21 Ben Pfaff <blp@gnu.org>
6012 * m4/check-libm-func.m4: Removed.
6013 * m4/check-math-lib.m4: New file.
6014 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
6015 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
6016 definition and lack of AC_LIBOBJ([roundf]).
6017 * m4/roundl.m4: Ditto, and similarly for roundl.
6018 * modules/round: Reference new m4 file.
6019 * modules/roundf: Ditto.
6020 * modules/roundl: Ditto.
6021 * tests/test-round2.c (main): Use ROUND instead of round.
6022 Bug report from Bruno Haible.
6024 2007-10-21 Bruno Haible <bruno@clisp.org>
6026 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
6029 2007-10-21 Bruno Haible <bruno@clisp.org>
6031 * tests/test-wcwidth.c (main): Allow negative result for some control
6034 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
6035 Needed on OSF/1 5.1.
6037 2007-10-21 Bruno Haible <bruno@clisp.org>
6039 * tests/test-floorf1.c: Include isnanf.h.
6040 (main): Use isnanf() instead of isnan().
6041 * tests/test-ceilf1.c: Include isnanf.h.
6042 (main): Use isnanf() instead of isnan().
6043 * tests/test-truncf1.c: Include isnanf.h.
6044 (main): Use isnanf() instead of isnan().
6045 * tests/test-roundf1.c: Include isnanf.h.
6046 (main): Use isnanf() instead of isnan().
6048 2007-10-21 Eric Blake <ebb9@byu.net>
6050 * users.txt: Update URL for m4.
6052 2007-10-21 Bruno Haible <bruno@clisp.org>
6054 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
6056 2007-10-21 Bruno Haible <bruno@clisp.org>
6058 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
6059 Git's management files if the CVS files are not present.
6061 2007-10-20 Bruno Haible <bruno@clisp.org>
6063 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
6066 2007-10-20 Ben Pfaff <blp@gnu.org>
6068 * lib/math.in.h: Declare round, roundf, roundl if we are providing
6070 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
6071 * lib/round.c: New file.
6072 * lib/roundf.c: New file.
6073 * lib/roundl.c: New file.
6074 * m4/round.m4: New file.
6075 * m4/roundf.m4: New file.
6076 * m4/roundl.m4: New file.
6077 * m4/check-libm-func-m4: New file.
6078 * modules/math: Replace round, roundf, roundl related @VARS@ in
6080 * modules/round: New file.
6081 * modules/round-tests: New file.
6082 * modules/roundf: New file.
6083 * modules/roundf-tests: New file.
6084 * modules/roundl: New file.
6085 * modules/roundl-tests: New file.
6086 * tests/test-round1.c: New file.
6087 * tests/test-round2.c: New file.
6088 * tests/test-roundf1.c: New file.
6089 * tests/test-roundf2.c: New file.
6090 * tests/test-roundl.c: New file.
6091 * doc/functions/round.texi: Mention round module.
6092 * doc/functions/roundf.texi: Mention roundf module.
6093 * doc/functions/roundl.texi: Mention roundl module.
6094 * MODULES.html.sh: Mention new modules.
6095 Thanks to Bruno Haible for suggestions.
6097 2007-10-20 Jim Meyering <meyering@redhat.com>
6099 * lib/xprintf.c: Include <config.h> unconditionally.
6101 Change xprintf's license to GPL.
6102 * modules/xprintf (License): s/LGPL/GPL/, since this module
6103 depends on modules (exit and exitfail) which are GPL.
6104 Suggestion from Bruno Haible.
6107 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
6108 Use a clearer diagnostic.
6109 Patch from Bruno Haible.
6111 2007-10-20 Bruno Haible <bruno@clisp.org>
6113 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
6114 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
6115 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6117 2007-10-20 Bruno Haible <bruno@clisp.org>
6119 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
6120 precision in the comparison result > x - 1 or similar.
6121 * tests/test-ceilf2.c (correct_result_p): Likewise.
6122 * tests/test-truncf2.c (correct_result_p): Likewise.
6123 * tests/test-trunc2.c (correct_result_p): Likewise.
6124 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6126 2007-10-20 Bruno Haible <bruno@clisp.org>
6128 * modules/ceil: New file.
6129 * m4/ceil.m4: New file.
6130 * doc/functions/ceil.texi: Mention the 'ceil' module.
6132 2007-10-20 Bruno Haible <bruno@clisp.org>
6134 * modules/floor: New file.
6135 * m4/floor.m4: New file.
6136 * doc/functions/floor.texi: Mention the 'floor' module.
6138 2007-10-20 Bruno Haible <bruno@clisp.org>
6140 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
6142 * modules/floorf-tests (Depends-on): Likewise.
6143 * modules/truncf-tests (Depends-on): Likewise.
6144 * modules/trunc-tests (Depends-on): Likewise.
6145 Reported by Ben Pfaff.
6147 2007-10-19 Jim Meyering <meyering@redhat.com>
6149 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
6150 Don't bother testing specific errno values. Just test ferror.
6153 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
6155 2007-10-19 Bruno Haible <bruno@clisp.org>
6157 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
6159 * modules/javaexec (Makefile.am): Likewise.
6160 * modules/relocatable-prog (Makefile.am): Likewise.
6161 Suggested by Jim Meyering.
6163 2007-10-18 Bruno Haible <bruno@clisp.org>
6165 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
6166 Reported by Jim Meyering.
6168 2007-10-18 Eric Blake <ebb9@byu.net>
6170 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
6172 2007-10-18 Bruno Haible <bruno@clisp.org>
6174 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
6175 the format string into writable memory. Needed in Fortify conditions.
6177 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
6178 Bruno Haible <bruno@clisp.org>
6180 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
6181 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
6182 * modules/trim (Depends-on): Add mbchar.
6183 (configure.ac): Add gl_FUNC_MBRTOWC.
6184 (Makefile.am): Augment lib_SOURCES.
6186 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
6188 Modify glob.c to use fstatat and dirfd, to simplify it.
6189 Suggested by Eric Blake.
6190 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
6191 Don't include <stdbool.h>; not used.
6192 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
6193 (link_exists_p): Simplify implementation, since we can now assume
6195 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
6197 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6199 * gnulib-tool (func_get_dependencies): Fix sed script to
6202 2007-10-17 Bruno Haible <bruno@clisp.org>
6204 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
6205 allow locale names without encoding suffix.
6206 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
6207 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6209 2007-10-16 Bruno Haible <bruno@clisp.org>
6211 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
6212 * lib/getgroups.c (getgroups): Likewise.
6213 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
6215 2007-10-16 Bruno Haible <bruno@clisp.org>
6217 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
6218 * modules/malloc-posix (License): Likewise.
6219 * modules/realloc-posix (License): Likewise.
6220 * modules/calloc-posix (License): Likewise.
6221 * modules/intprops (License): Change from GPL to LGPL, with
6222 Paul Eggert's approval.
6224 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
6226 Merge glibc changes into lib/glob.c.
6228 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
6229 2007-10-15 04:59:03 UTC. Here are the changes:
6231 2007-10-14 Ulrich Drepper <drepper@redhat.com>
6233 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
6235 * lib/glob.c: Add some branch prediction throughout.
6237 2007-10-07 Ulrich Drepper <drepper@redhat.com>
6240 * lib/glob.c (glob): Recognize patterns starting \/.
6242 2007-02-14 Jakub Jelinek <jakub@redhat.com>
6245 * lib/glob.c (attribute_hidden): Define if not defined.
6246 (glob): Unescape dirname, filename or username when needed and not
6247 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
6248 is NULL. Handle unescaped [ in pattern without closing ].
6249 Don't pass GLOB_CHECK down to recursive glob for directories.
6250 (__glob_pattern_type): New function.
6251 (__glob_pattern_p): Implement using __glob_pattern_type.
6252 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
6253 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
6254 Remove unreachable code.
6256 2006-09-30 Ulrich Drepper <drepper@redhat.com>
6258 * lib/glob.c (glob_in_dir): Add some comments and asserts to
6259 explain why there are no leaks.
6261 2006-09-25 Jakub Jelinek <jakub@redhat.com>
6264 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
6265 time, rather allocate increasingly bigger arrays of pointers, if
6266 possible with alloca, if too large with malloc.
6268 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
6270 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
6271 Problem reported by H.Merijn Brand in
6272 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
6273 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
6274 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
6276 2007-10-15 Bruno Haible <bruno@clisp.org>
6278 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
6279 with explicit rpl_ prefix.
6280 * lib/fopen.c (fopen): Likewise.
6281 * lib/freopen.c (freopen): Likewise.
6282 * lib/iconv.c (iconv): Likewise.
6283 * lib/iconv_close.c (iconv_close): Likewise.
6285 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6287 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
6289 2007-10-15 Bruno Haible <bruno@clisp.org>
6291 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
6292 <stddef.h> instead of <stdlib.h> since we only need NULL.
6293 Reported by Ben Pfaff <blp@cs.stanford.edu>.
6295 2007-10-15 Bruno Haible <bruno@clisp.org>
6297 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
6298 Replace paragraph talking about LIBOBJS.
6299 Reported by Colin Watson <cjwatson@debian.org>.
6301 2007-10-15 Bruno Haible <bruno@clisp.org>
6303 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
6304 <stdlib.h> before using NULL.
6306 2007-10-15 Simon Josefsson <simon@josefsson.org>
6308 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
6309 Reported by Albert Chin <china@thewrittenword.com>.
6311 2007-10-14 Bruno Haible <bruno@clisp.org>
6313 * modules/iconv_open-utf-tests: New file.
6314 * tests/test-iconv-utf.c: New file.
6316 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
6317 * modules/iconv_open-utf: New file.
6318 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
6319 (iconv, iconv_close): New declarations.
6320 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
6322 (iconv_open): Add special handling of conversion between UTF-8 and
6324 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
6325 * lib/iconv_close.c: New file.
6326 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
6328 (gl_FUNC_ICONV_OPEN): Use it.
6329 (gl_FUNC_ICONV_OPEN_UTF): New macro.
6330 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
6331 and REPLACE_ICONV_UTF.
6332 * modules/iconv_open (Depends-on): Add c-strcase.
6333 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
6335 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
6337 2007-10-13 Albert Chin <china@thewrittenword.com>
6338 Bruno Haible <bruno@clisp.org>
6340 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
6341 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
6343 2007-10-13 Bruno Haible <bruno@clisp.org>
6345 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
6346 defined, use the ISO C99 inline semantics.
6347 * lib/argp.h (ARGP_EI): Likewise.
6349 2007-10-13 Bruno Haible <bruno@clisp.org>
6351 Handle 'inline' change in gcc 4.3.0.
6352 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
6353 argp_fmtstream_write, argp_fmtstream_set_lmargin,
6354 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
6355 argp_fmtstream_point): Disable 'extern' declaration if the function
6356 definition is going to be provided inline.
6357 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
6358 semantics, not the ISO C99 inline semantics.
6359 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
6360 'extern' declaration if the function definition is going to be provided
6362 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
6363 the GNU C inline semantics, not the ISO C99 inline semantics. With
6364 GCC 4.2, avoid a warning.
6366 2007-10-13 Bruno Haible <bruno@clisp.org>
6368 * lib/freading.h (freading): Enable the use of __freading for
6370 * lib/freading.c (freading): Likewise.
6372 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
6374 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
6375 "warning: C99 inline functions are not supported; using GNU89".
6377 2007-10-12 Bruno Haible <bruno@clisp.org>
6379 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
6381 * tests/test-ceilf2.c: New file.
6382 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
6384 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
6385 * modules/ceilf-tests: Update.
6387 2007-10-12 Bruno Haible <bruno@clisp.org>
6389 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
6391 * tests/test-floorf2.c: New file.
6392 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
6394 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
6395 * modules/floorf-tests: Update.
6397 2007-10-12 Bruno Haible <bruno@clisp.org>
6399 * tests/test-trunc2.c: New file.
6400 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
6402 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
6403 * modules/trunc-tests: Update.
6405 2007-10-12 Bruno Haible <bruno@clisp.org>
6407 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
6409 * tests/test-truncf2.c: New file.
6410 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
6412 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
6413 * modules/truncf-tests: Update.
6415 2007-10-11 Eric Blake <ebb9@byu.net>
6417 Don't claim strerror is broken on Interix.
6418 * doc/functions/strerror.texi (strerror): Known broken systems are
6419 now Solaris 8, and not Interix.
6420 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
6421 Interix on cross-compile.
6422 Reported by Martin Koeppe in
6423 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
6425 2007-10-11 Bruno Haible <bruno@clisp.org>
6427 * modules/i-ring-tests: New file.
6428 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
6431 2007-10-11 Bruno Haible <bruno@clisp.org>
6433 * modules/filenamecat-tests: New file.
6434 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
6435 * lib/filenamecat.c: Remove test code.
6437 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
6439 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
6441 * lib/strerror.c: Include <string.h> always, to test interface,
6442 and to remove the need for the dummy.
6443 Include intprops.h to compute width instead of doing it ourselves
6444 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
6445 (strerror): Define it to return NULL if there's no system strerror.
6446 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
6447 Omit !HAVE_STRERROR code. We don't need to worry about supporting
6448 ancient pre-strerror Unix systems well any more. Saying "unknown
6449 system error" is enough.
6450 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
6451 simpler strerror.c implementation.
6452 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
6453 Simplify the tests to reflect the simpler strerror implementation.
6454 * modules/strerror (Depends-on): Add intprops.
6456 2007-10-09 Eric Blake <ebb9@byu.net>
6458 Silence test-fpending.
6459 * modules/fpending-tests (Files): Add wrapper script.
6460 * tests/test-fpending.sh: New file.
6462 2007-10-09 Bruno Haible <bruno@clisp.org>
6464 * MODULES.html.sh (func_module): Don't create a hyperlink for
6465 function names like 'printf_frexp'.
6466 (Misc): Add crc, memxor.
6467 (Characteristics of floating types): New section.
6468 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
6469 isnanf-nolibm, signbit, trunc, truncf, truncl.
6470 (Enhancements for ISO C 99 functions): New subsection Input/output.
6471 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
6472 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
6473 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
6474 (Compatibility checks for POSIX:2001 functions): Add clock-time.
6475 (Enhancements for POSIX:2001 functions): Add chdir-long.
6476 (File system functions): Add areadlink, chdir-safer, read-file.
6478 (File system as inode set): New section.
6479 (Date and time): Add gethrxtime.
6480 (Multithreading): Add openmp.
6481 (Internationalization functions): Add localename.
6482 (Unicode string functions): Add unistr/u*-mbsnlen.
6483 (Support for maintaining and releasing projects): Add git-version-gen.
6484 (Lone files): Remove directories.
6486 2007-10-08 Ben Pfaff <blp@gnu.org>
6488 * lib/xmalloca.h: Fix typo in comment.
6490 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
6492 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
6493 when avoiding problems with integer overflow. Use a portable test
6496 2007-10-08 Simon Josefsson <simon@josefsson.org>
6498 * modules/dummy (License): Change to LGPLv2+.
6499 * modules/float (License): Likewise
6500 * modules/realloc (License): Likewise
6501 * modules/stdlib (License): Likewise
6503 2007-10-07 Bruno Haible <bruno@clisp.org>
6505 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
6506 * floor.c (TWO_MANT_DIG): Likewise.
6507 * ceil.c (TWO_MANT_DIG): Likewise.
6508 Reported by Ben Pfaff.
6510 2007-10-07 Bruno Haible <bruno@clisp.org>
6512 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
6513 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
6514 * lib/frexp.c (FUNC): Likewise.
6515 * lib/printf-frexp.h (printf_frexp): Likewise.
6516 * lib/printf-frexpl.h (printf_frexpl): Likewise.
6517 * lib/printf-frexp.c (FUNC): Likewise.
6518 Suggested by Jim Meyering.
6520 2007-10-07 Jim Meyering <meyering@redhat.com>
6522 Make xnanosleep's integer overflow test more robust.
6523 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
6524 so that gcc-4.3.0 doesn't optimize away this test for overflow.
6526 2007-10-07 Bruno Haible <bruno@clisp.org>
6528 * NEWS: Mention the license change.
6530 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
6531 abbreviations in the modules files.
6533 Change copyright notice from GPLv2+ to GPLv3+.
6534 * README: Change copyright notice.
6535 * MODULES.html.sh: Likewise.
6536 * build-aux/bootstrap.conf: Likewise.
6537 * build-aux/config.libpath: Likewise.
6538 * build-aux/csharpcomp.sh.in: Likewise.
6539 * build-aux/csharpexec.sh.in: Likewise.
6540 * build-aux/install-reloc: Likewise.
6541 * build-aux/javacomp.sh.in: Likewise.
6542 * build-aux/javaexec.sh.in: Likewise.
6543 * build-aux/ldd.sh.in: Likewise.
6544 * build-aux/reloc-ldflags: Likewise.
6545 * build-aux/relocatable.sh.in: Likewise.
6546 * build-aux/x-to-1.in: Likewise.
6547 * check-module: Likewise.
6548 * config/srclistvars.sh: Likewise.
6549 * gnulib-tool: Likewise.
6550 * lib/acl-internal.h: Likewise.
6551 * lib/acl.c: Likewise.
6552 * lib/acl.h: Likewise.
6553 * lib/acl_entries.c: Likewise.
6554 * lib/areadlink-with-size.c: Likewise.
6555 * lib/areadlink.c: Likewise.
6556 * lib/areadlink.h: Likewise.
6557 * lib/argmatch.c: Likewise.
6558 * lib/argmatch.h: Likewise.
6559 * lib/argp-ba.c: Likewise.
6560 * lib/argp-eexst.c: Likewise.
6561 * lib/argp-fmtstream.c: Likewise.
6562 * lib/argp-fmtstream.h: Likewise.
6563 * lib/argp-fs-xinl.c: Likewise.
6564 * lib/argp-help.c: Likewise.
6565 * lib/argp-namefrob.h: Likewise.
6566 * lib/argp-parse.c: Likewise.
6567 * lib/argp-pin.c: Likewise.
6568 * lib/argp-pv.c: Likewise.
6569 * lib/argp-pvh.c: Likewise.
6570 * lib/argp-xinl.c: Likewise.
6571 * lib/argp.h: Likewise.
6572 * lib/at-func.c: Likewise.
6573 * lib/atanl.c: Likewise.
6574 * lib/backupfile.c: Likewise.
6575 * lib/backupfile.h: Likewise.
6576 * lib/basename.c: Likewise.
6577 * lib/binary-io.h: Likewise.
6578 * lib/byteswap.in.h: Likewise.
6579 * lib/c-stack.c: Likewise.
6580 * lib/c-stack.h: Likewise.
6581 * lib/c-strcasestr.c: Likewise.
6582 * lib/c-strcasestr.h: Likewise.
6583 * lib/c-strstr.c: Likewise.
6584 * lib/c-strstr.h: Likewise.
6585 * lib/c-strtod.c: Likewise.
6586 * lib/calloc.c: Likewise.
6587 * lib/canon-host.c: Likewise.
6588 * lib/canon-host.h: Likewise.
6589 * lib/canonicalize-lgpl.c: Likewise.
6590 * lib/canonicalize.c: Likewise.
6591 * lib/canonicalize.h: Likewise.
6592 * lib/ceil.c: Likewise.
6593 * lib/ceilf.c: Likewise.
6594 * lib/ceill.c: Likewise.
6595 * lib/chdir-long.c: Likewise.
6596 * lib/chdir-long.h: Likewise.
6597 * lib/chdir-safer.c: Likewise.
6598 * lib/chdir-safer.h: Likewise.
6599 * lib/chown.c: Likewise.
6600 * lib/classpath.c: Likewise.
6601 * lib/classpath.h: Likewise.
6602 * lib/clean-temp.c: Likewise.
6603 * lib/clean-temp.h: Likewise.
6604 * lib/cloexec.c: Likewise.
6605 * lib/close-stream.c: Likewise.
6606 * lib/closein.c: Likewise.
6607 * lib/closein.h: Likewise.
6608 * lib/closeout.c: Likewise.
6609 * lib/closeout.h: Likewise.
6610 * lib/concat-filename.c: Likewise.
6611 * lib/copy-file.c: Likewise.
6612 * lib/copy-file.h: Likewise.
6613 * lib/count-one-bits.h: Likewise.
6614 * lib/crc.c: Likewise.
6615 * lib/crc.h: Likewise.
6616 * lib/creat-safer.c: Likewise.
6617 * lib/csharpcomp.c: Likewise.
6618 * lib/csharpcomp.h: Likewise.
6619 * lib/csharpexec.c: Likewise.
6620 * lib/csharpexec.h: Likewise.
6621 * lib/cycle-check.c: Likewise.
6622 * lib/cycle-check.h: Likewise.
6623 * lib/diacrit.c: Likewise.
6624 * lib/diacrit.h: Likewise.
6625 * lib/diffseq.h: Likewise.
6626 * lib/dirchownmod.c: Likewise.
6627 * lib/dirent.in.h: Likewise.
6628 * lib/dirfd.c: Likewise.
6629 * lib/dirfd.h: Likewise.
6630 * lib/dirname.c: Likewise.
6631 * lib/dirname.h: Likewise.
6632 * lib/dummy.c: Likewise.
6633 * lib/dup-safer.c: Likewise.
6634 * lib/dup2.c: Likewise.
6635 * lib/eealloc.h: Likewise.
6636 * lib/error.c: Likewise.
6637 * lib/error.h: Likewise.
6638 * lib/euidaccess.c: Likewise.
6639 * lib/exclude.c: Likewise.
6640 * lib/exclude.h: Likewise.
6641 * lib/execute.c: Likewise.
6642 * lib/execute.h: Likewise.
6643 * lib/exitfail.c: Likewise.
6644 * lib/exitfail.h: Likewise.
6645 * lib/expl.c: Likewise.
6646 * lib/fatal-signal.c: Likewise.
6647 * lib/fatal-signal.h: Likewise.
6648 * lib/fbufmode.c: Likewise.
6649 * lib/fbufmode.h: Likewise.
6650 * lib/fchdir.c: Likewise.
6651 * lib/fchmodat.c: Likewise.
6652 * lib/fchownat.c: Likewise.
6653 * lib/fcntl--.h: Likewise.
6654 * lib/fcntl-safer.h: Likewise.
6655 * lib/fcntl.in.h: Likewise.
6656 * lib/fd-safer.c: Likewise.
6657 * lib/fflush.c: Likewise.
6658 * lib/file-has-acl.c: Likewise.
6659 * lib/file-set.c: Likewise.
6660 * lib/file-type.c: Likewise.
6661 * lib/file-type.h: Likewise.
6662 * lib/fileblocks.c: Likewise.
6663 * lib/filemode.c: Likewise.
6664 * lib/filemode.h: Likewise.
6665 * lib/filename.h: Likewise.
6666 * lib/filenamecat.c: Likewise.
6667 * lib/filenamecat.h: Likewise.
6668 * lib/findprog.c: Likewise.
6669 * lib/findprog.h: Likewise.
6670 * lib/float.in.h: Likewise.
6671 * lib/floor.c: Likewise.
6672 * lib/floorf.c: Likewise.
6673 * lib/floorl.c: Likewise.
6674 * lib/fopen-safer.c: Likewise.
6675 * lib/fopen.c: Likewise.
6676 * lib/fpending.c: Likewise.
6677 * lib/fpending.h: Likewise.
6678 * lib/fprintf.c: Likewise.
6679 * lib/fprintftime.h: Likewise.
6680 * lib/fpucw.h: Likewise.
6681 * lib/fpurge.c: Likewise.
6682 * lib/fpurge.h: Likewise.
6683 * lib/freadable.c: Likewise.
6684 * lib/freadable.h: Likewise.
6685 * lib/freadahead.c: Likewise.
6686 * lib/freadahead.h: Likewise.
6687 * lib/freading.c: Likewise.
6688 * lib/freading.h: Likewise.
6689 * lib/free.c: Likewise.
6690 * lib/freopen.c: Likewise.
6691 * lib/frexp.c: Likewise.
6692 * lib/frexpl.c: Likewise.
6693 * lib/fseek.c: Likewise.
6694 * lib/fseterr.c: Likewise.
6695 * lib/fseterr.h: Likewise.
6696 * lib/fstatat.c: Likewise.
6697 * lib/fstrcmp.c: Likewise.
6698 * lib/fstrcmp.h: Likewise.
6699 * lib/fsusage.c: Likewise.
6700 * lib/fsusage.h: Likewise.
6701 * lib/ftell.c: Likewise.
6702 * lib/ftello.c: Likewise.
6703 * lib/fts-cycle.c: Likewise.
6704 * lib/fts.c: Likewise.
6705 * lib/fts_.h: Likewise.
6706 * lib/full-read.c: Likewise.
6707 * lib/full-read.h: Likewise.
6708 * lib/full-write.c: Likewise.
6709 * lib/full-write.h: Likewise.
6710 * lib/fwritable.c: Likewise.
6711 * lib/fwritable.h: Likewise.
6712 * lib/fwriteerror.c: Likewise.
6713 * lib/fwriteerror.h: Likewise.
6714 * lib/fwriting.c: Likewise.
6715 * lib/fwriting.h: Likewise.
6716 * lib/gcd.c: Likewise.
6717 * lib/gcd.h: Likewise.
6718 * lib/getcwd.c: Likewise.
6719 * lib/getdate.h: Likewise.
6720 * lib/getdate.y: Likewise.
6721 * lib/getdomainname.c: Likewise.
6722 * lib/getdomainname.h: Likewise.
6723 * lib/getgroups.c: Likewise.
6724 * lib/gethostname.c: Likewise.
6725 * lib/gethrxtime.c: Likewise.
6726 * lib/gethrxtime.h: Likewise.
6727 * lib/getloadavg.c: Likewise.
6728 * lib/getndelim2.c: Likewise.
6729 * lib/getndelim2.h: Likewise.
6730 * lib/getnline.c: Likewise.
6731 * lib/getnline.h: Likewise.
6732 * lib/getopt.c: Likewise.
6733 * lib/getopt.in.h: Likewise.
6734 * lib/getopt1.c: Likewise.
6735 * lib/getopt_int.h: Likewise.
6736 * lib/getpagesize.h: Likewise.
6737 * lib/getsubopt.c: Likewise.
6738 * lib/gettime.c: Likewise.
6739 * lib/getugroups.c: Likewise.
6740 * lib/getugroups.h: Likewise.
6741 * lib/getusershell.c: Likewise.
6742 * lib/gl_anyavltree_list1.h: Likewise.
6743 * lib/gl_anyavltree_list2.h: Likewise.
6744 * lib/gl_anyhash_list1.h: Likewise.
6745 * lib/gl_anyhash_list2.h: Likewise.
6746 * lib/gl_anylinked_list1.h: Likewise.
6747 * lib/gl_anylinked_list2.h: Likewise.
6748 * lib/gl_anyrbtree_list1.h: Likewise.
6749 * lib/gl_anyrbtree_list2.h: Likewise.
6750 * lib/gl_anytree_list1.h: Likewise.
6751 * lib/gl_anytree_list2.h: Likewise.
6752 * lib/gl_anytree_oset.h: Likewise.
6753 * lib/gl_anytreehash_list1.h: Likewise.
6754 * lib/gl_anytreehash_list2.h: Likewise.
6755 * lib/gl_array_list.c: Likewise.
6756 * lib/gl_array_list.h: Likewise.
6757 * lib/gl_array_oset.c: Likewise.
6758 * lib/gl_array_oset.h: Likewise.
6759 * lib/gl_avltree_list.c: Likewise.
6760 * lib/gl_avltree_list.h: Likewise.
6761 * lib/gl_avltree_oset.c: Likewise.
6762 * lib/gl_avltree_oset.h: Likewise.
6763 * lib/gl_avltreehash_list.c: Likewise.
6764 * lib/gl_avltreehash_list.h: Likewise.
6765 * lib/gl_carray_list.c: Likewise.
6766 * lib/gl_carray_list.h: Likewise.
6767 * lib/gl_linked_list.c: Likewise.
6768 * lib/gl_linked_list.h: Likewise.
6769 * lib/gl_linkedhash_list.c: Likewise.
6770 * lib/gl_linkedhash_list.h: Likewise.
6771 * lib/gl_list.c: Likewise.
6772 * lib/gl_list.h: Likewise.
6773 * lib/gl_oset.c: Likewise.
6774 * lib/gl_oset.h: Likewise.
6775 * lib/gl_rbtree_list.c: Likewise.
6776 * lib/gl_rbtree_list.h: Likewise.
6777 * lib/gl_rbtree_oset.c: Likewise.
6778 * lib/gl_rbtree_oset.h: Likewise.
6779 * lib/gl_rbtreehash_list.c: Likewise.
6780 * lib/gl_rbtreehash_list.h: Likewise.
6781 * lib/gl_sublist.c: Likewise.
6782 * lib/gl_sublist.h: Likewise.
6783 * lib/group-member.c: Likewise.
6784 * lib/group-member.h: Likewise.
6785 * lib/hard-locale.c: Likewise.
6786 * lib/hard-locale.h: Likewise.
6787 * lib/hash-pjw.c: Likewise.
6788 * lib/hash-pjw.h: Likewise.
6789 * lib/hash-triple.c: Likewise.
6790 * lib/hash.c: Likewise.
6791 * lib/hash.h: Likewise.
6792 * lib/human.c: Likewise.
6793 * lib/human.h: Likewise.
6794 * lib/i-ring.c: Likewise.
6795 * lib/i-ring.h: Likewise.
6796 * lib/idcache.c: Likewise.
6797 * lib/imaxabs.c: Likewise.
6798 * lib/imaxdiv.c: Likewise.
6799 * lib/inet_pton.c: Likewise.
6800 * lib/inet_pton.h: Likewise.
6801 * lib/intprops.h: Likewise.
6802 * lib/inttostr.c: Likewise.
6803 * lib/inttostr.h: Likewise.
6804 * lib/inttypes.in.h: Likewise.
6805 * lib/isapipe.c: Likewise.
6806 * lib/isdir.c: Likewise.
6807 * lib/isnan.c: Likewise.
6808 * lib/isnan.h: Likewise.
6809 * lib/isnanf.c: Likewise.
6810 * lib/isnanf.h: Likewise.
6811 * lib/isnanl-nolibm.h: Likewise.
6812 * lib/isnanl.c: Likewise.
6813 * lib/isnanl.h: Likewise.
6814 * lib/javacomp.c: Likewise.
6815 * lib/javacomp.h: Likewise.
6816 * lib/javaexec.c: Likewise.
6817 * lib/javaexec.h: Likewise.
6818 * lib/javaversion.c: Likewise.
6819 * lib/javaversion.h: Likewise.
6820 * lib/javaversion.java: Likewise.
6821 * lib/lbrkprop.h: Likewise.
6822 * lib/lchmod.h: Likewise.
6823 * lib/lchown.c: Likewise.
6824 * lib/ldexpl.c: Likewise.
6825 * lib/linebreak.c: Likewise.
6826 * lib/linebreak.h: Likewise.
6827 * lib/linebuffer.c: Likewise.
6828 * lib/linebuffer.h: Likewise.
6829 * lib/locale.in.h: Likewise.
6830 * lib/logl.c: Likewise.
6831 * lib/long-options.c: Likewise.
6832 * lib/long-options.h: Likewise.
6833 * lib/lstat.c: Likewise.
6834 * lib/lstat.h: Likewise.
6835 * lib/math.in.h: Likewise.
6836 * lib/mbchar.c: Likewise.
6837 * lib/mbchar.h: Likewise.
6838 * lib/mbfile.h: Likewise.
6839 * lib/mbiter.h: Likewise.
6840 * lib/mbscasecmp.c: Likewise.
6841 * lib/mbscasestr.c: Likewise.
6842 * lib/mbschr.c: Likewise.
6843 * lib/mbscspn.c: Likewise.
6844 * lib/mbslen.c: Likewise.
6845 * lib/mbsncasecmp.c: Likewise.
6846 * lib/mbsnlen.c: Likewise.
6847 * lib/mbspbrk.c: Likewise.
6848 * lib/mbspcasecmp.c: Likewise.
6849 * lib/mbsrchr.c: Likewise.
6850 * lib/mbssep.c: Likewise.
6851 * lib/mbsspn.c: Likewise.
6852 * lib/mbsstr.c: Likewise.
6853 * lib/mbstok_r.c: Likewise.
6854 * lib/mbswidth.c: Likewise.
6855 * lib/mbswidth.h: Likewise.
6856 * lib/mbuiter.h: Likewise.
6857 * lib/memcasecmp.c: Likewise.
6858 * lib/memcasecmp.h: Likewise.
6859 * lib/memchr.c: Likewise.
6860 * lib/memcmp.c: Likewise.
6861 * lib/memcoll.c: Likewise.
6862 * lib/memcoll.h: Likewise.
6863 * lib/memcpy.c: Likewise.
6864 * lib/memrchr.c: Likewise.
6865 * lib/mkancesdirs.c: Likewise.
6866 * lib/mkdir-p.c: Likewise.
6867 * lib/mkdir-p.h: Likewise.
6868 * lib/mkdir.c: Likewise.
6869 * lib/mkdirat.c: Likewise.
6870 * lib/mkdtemp.c: Likewise.
6871 * lib/mkstemp-safer.c: Likewise.
6872 * lib/mkstemp.c: Likewise.
6873 * lib/modechange.c: Likewise.
6874 * lib/modechange.h: Likewise.
6875 * lib/mountlist.c: Likewise.
6876 * lib/mountlist.h: Likewise.
6877 * lib/mpsort.c: Likewise.
6878 * lib/nanosleep.c: Likewise.
6879 * lib/obstack.c: Likewise.
6880 * lib/obstack.h: Likewise.
6881 * lib/open-safer.c: Likewise.
6882 * lib/open.c: Likewise.
6883 * lib/openat-die.c: Likewise.
6884 * lib/openat-priv.h: Likewise.
6885 * lib/openat-proc.c: Likewise.
6886 * lib/openat.c: Likewise.
6887 * lib/openat.h: Likewise.
6888 * lib/pagealign_alloc.c: Likewise.
6889 * lib/pagealign_alloc.h: Likewise.
6890 * lib/physmem.c: Likewise.
6891 * lib/physmem.h: Likewise.
6892 * lib/pipe-safer.c: Likewise.
6893 * lib/pipe.c: Likewise.
6894 * lib/pipe.h: Likewise.
6895 * lib/posixtm.c: Likewise.
6896 * lib/posixtm.h: Likewise.
6897 * lib/posixver.c: Likewise.
6898 * lib/printf-frexp.c: Likewise.
6899 * lib/printf-frexp.h: Likewise.
6900 * lib/printf-frexpl.c: Likewise.
6901 * lib/printf-frexpl.h: Likewise.
6902 * lib/printf.c: Likewise.
6903 * lib/progname.c: Likewise.
6904 * lib/progname.h: Likewise.
6905 * lib/progreloc.c: Likewise.
6906 * lib/putenv.c: Likewise.
6907 * lib/quote.c: Likewise.
6908 * lib/quote.h: Likewise.
6909 * lib/quotearg.c: Likewise.
6910 * lib/quotearg.h: Likewise.
6911 * lib/raise.c: Likewise.
6912 * lib/readline.c: Likewise.
6913 * lib/readline.h: Likewise.
6914 * lib/readlink.c: Likewise.
6915 * lib/readtokens.c: Likewise.
6916 * lib/readtokens.h: Likewise.
6917 * lib/readtokens0.c: Likewise.
6918 * lib/readtokens0.h: Likewise.
6919 * lib/readutmp.c: Likewise.
6920 * lib/readutmp.h: Likewise.
6921 * lib/realloc.c: Likewise.
6922 * lib/relocwrapper.c: Likewise.
6923 * lib/rename-dest-slash.c: Likewise.
6924 * lib/rename.c: Likewise.
6925 * lib/rmdir.c: Likewise.
6926 * lib/rpmatch.c: Likewise.
6927 * lib/safe-read.c: Likewise.
6928 * lib/safe-read.h: Likewise.
6929 * lib/safe-write.c: Likewise.
6930 * lib/safe-write.h: Likewise.
6931 * lib/same-inode.h: Likewise.
6932 * lib/same.c: Likewise.
6933 * lib/same.h: Likewise.
6934 * lib/save-cwd.c: Likewise.
6935 * lib/save-cwd.h: Likewise.
6936 * lib/savedir.c: Likewise.
6937 * lib/savedir.h: Likewise.
6938 * lib/savewd.c: Likewise.
6939 * lib/savewd.h: Likewise.
6940 * lib/search.in.h: Likewise.
6941 * lib/setenv.c: Likewise.
6942 * lib/setenv.h: Likewise.
6943 * lib/settime.c: Likewise.
6944 * lib/sh-quote.c: Likewise.
6945 * lib/sh-quote.h: Likewise.
6946 * lib/sig2str.c: Likewise.
6947 * lib/sig2str.h: Likewise.
6948 * lib/signal.in.h: Likewise.
6949 * lib/signbitd.c: Likewise.
6950 * lib/signbitf.c: Likewise.
6951 * lib/signbitl.c: Likewise.
6952 * lib/sigprocmask.c: Likewise.
6953 * lib/sincosl.c: Likewise.
6954 * lib/sleep.c: Likewise.
6955 * lib/sprintf.c: Likewise.
6956 * lib/sqrtl.c: Likewise.
6957 * lib/stat-time.h: Likewise.
6958 * lib/stdio--.h: Likewise.
6959 * lib/stdio-safer.h: Likewise.
6960 * lib/stdlib--.h: Likewise.
6961 * lib/stdlib-safer.h: Likewise.
6962 * lib/stdlib.in.h: Likewise.
6963 * lib/stpcpy.c: Likewise.
6964 * lib/stpncpy.c: Likewise.
6965 * lib/strchrnul.c: Likewise.
6966 * lib/strcspn.c: Likewise.
6967 * lib/strerror.c: Likewise.
6968 * lib/strftime.c: Likewise.
6969 * lib/strftime.h: Likewise.
6970 * lib/striconveh.c: Likewise.
6971 * lib/striconveh.h: Likewise.
6972 * lib/striconveha.c: Likewise.
6973 * lib/striconveha.h: Likewise.
6974 * lib/stripslash.c: Likewise.
6975 * lib/strnlen1.c: Likewise.
6976 * lib/strnlen1.h: Likewise.
6977 * lib/strtod.c: Likewise.
6978 * lib/strtoimax.c: Likewise.
6979 * lib/strtok_r.c: Likewise.
6980 * lib/strtol.c: Likewise.
6981 * lib/strtoll.c: Likewise.
6982 * lib/strtoul.c: Likewise.
6983 * lib/strtoull.c: Likewise.
6984 * lib/sysexits.in.h: Likewise.
6985 * lib/tempname.c: Likewise.
6986 * lib/tempname.h: Likewise.
6987 * lib/timespec.h: Likewise.
6988 * lib/tls.c: Likewise.
6989 * lib/tls.h: Likewise.
6990 * lib/tmpdir.c: Likewise.
6991 * lib/tmpdir.h: Likewise.
6992 * lib/tmpfile-safer.c: Likewise.
6993 * lib/tmpfile.c: Likewise.
6994 * lib/trigl.c: Likewise.
6995 * lib/trigl.h: Likewise.
6996 * lib/trim.c: Likewise.
6997 * lib/trim.h: Likewise.
6998 * lib/trunc.c: Likewise.
6999 * lib/truncf.c: Likewise.
7000 * lib/truncl.c: Likewise.
7001 * lib/tsearch.c: Likewise.
7002 * lib/unicodeio.c: Likewise.
7003 * lib/unicodeio.h: Likewise.
7004 * lib/unistd--.h: Likewise.
7005 * lib/unistd-safer.h: Likewise.
7006 * lib/unistdio/ulc-fprintf.c: Likewise.
7007 * lib/unistdio/ulc-vfprintf.c: Likewise.
7008 * lib/unlinkdir.c: Likewise.
7009 * lib/unlinkdir.h: Likewise.
7010 * lib/unlocked-io.h: Likewise.
7011 * lib/unsetenv.c: Likewise.
7012 * lib/userspec.c: Likewise.
7013 * lib/utime.c: Likewise.
7014 * lib/utimecmp.c: Likewise.
7015 * lib/utimecmp.h: Likewise.
7016 * lib/utimens.c: Likewise.
7017 * lib/verify.h: Likewise.
7018 * lib/verror.c: Likewise.
7019 * lib/verror.h: Likewise.
7020 * lib/version-etc-fsf.c: Likewise.
7021 * lib/version-etc.c: Likewise.
7022 * lib/version-etc.h: Likewise.
7023 * lib/vfprintf.c: Likewise.
7024 * lib/vprintf.c: Likewise.
7025 * lib/vsprintf.c: Likewise.
7026 * lib/w32spawn.h: Likewise.
7027 * lib/wait-process.c: Likewise.
7028 * lib/wait-process.h: Likewise.
7029 * lib/wcwidth.c: Likewise.
7030 * lib/write-any-file.c: Likewise.
7031 * lib/xalloc-die.c: Likewise.
7032 * lib/xalloc.h: Likewise.
7033 * lib/xasprintf.c: Likewise.
7034 * lib/xgetcwd.c: Likewise.
7035 * lib/xgetcwd.h: Likewise.
7036 * lib/xgetdomainname.c: Likewise.
7037 * lib/xgetdomainname.h: Likewise.
7038 * lib/xgethostname.c: Likewise.
7039 * lib/xmalloc.c: Likewise.
7040 * lib/xmalloca.c: Likewise.
7041 * lib/xmalloca.h: Likewise.
7042 * lib/xmemcoll.c: Likewise.
7043 * lib/xnanosleep.c: Likewise.
7044 * lib/xreadlink.c: Likewise.
7045 * lib/xreadlink.h: Likewise.
7046 * lib/xsetenv.c: Likewise.
7047 * lib/xsetenv.h: Likewise.
7048 * lib/xstriconv.c: Likewise.
7049 * lib/xstriconv.h: Likewise.
7050 * lib/xstrndup.c: Likewise.
7051 * lib/xstrndup.h: Likewise.
7052 * lib/xstrtod.c: Likewise.
7053 * lib/xstrtod.h: Likewise.
7054 * lib/xstrtol-error.c: Likewise.
7055 * lib/xstrtol.c: Likewise.
7056 * lib/xstrtol.h: Likewise.
7057 * lib/xtime.h: Likewise.
7058 * lib/xvasprintf.c: Likewise.
7059 * lib/xvasprintf.h: Likewise.
7060 * lib/yesno.c: Likewise.
7061 * lib/yesno.h: Likewise.
7062 * posix-modules: Likewise.
7063 * tests/test-alloca-opt.c: Likewise.
7064 * tests/test-arcfour.c: Likewise.
7065 * tests/test-arctwo.c: Likewise.
7066 * tests/test-argmatch.c: Likewise.
7067 * tests/test-argp-2.sh: Likewise.
7068 * tests/test-argp.c: Likewise.
7069 * tests/test-arpa_inet.c: Likewise.
7070 * tests/test-array_list.c: Likewise.
7071 * tests/test-array_oset.c: Likewise.
7072 * tests/test-atexit.c: Likewise.
7073 * tests/test-avltree_list.c: Likewise.
7074 * tests/test-avltree_oset.c: Likewise.
7075 * tests/test-avltreehash_list.c: Likewise.
7076 * tests/test-base64.c: Likewise.
7077 * tests/test-binary-io.c: Likewise.
7078 * tests/test-byteswap.c: Likewise.
7079 * tests/test-c-ctype.c: Likewise.
7080 * tests/test-c-strcasecmp.c: Likewise.
7081 * tests/test-c-strcasestr.c: Likewise.
7082 * tests/test-c-strncasecmp.c: Likewise.
7083 * tests/test-c-strstr.c: Likewise.
7084 * tests/test-canonicalize-lgpl.c: Likewise.
7085 * tests/test-canonicalize.c: Likewise.
7086 * tests/test-carray_list.c: Likewise.
7087 * tests/test-ceilf.c: Likewise.
7088 * tests/test-ceill.c: Likewise.
7089 * tests/test-count-one-bits.c: Likewise.
7090 * tests/test-crc.c: Likewise.
7091 * tests/test-dirname.c: Likewise.
7092 * tests/test-fbufmode.c: Likewise.
7093 * tests/test-fcntl.c: Likewise.
7094 * tests/test-fflush.c: Likewise.
7095 * tests/test-floorf.c: Likewise.
7096 * tests/test-floorl.c: Likewise.
7097 * tests/test-fopen.c: Likewise.
7098 * tests/test-fprintf-posix.c: Likewise.
7099 * tests/test-fprintf-posix.h: Likewise.
7100 * tests/test-fpurge.c: Likewise.
7101 * tests/test-freadable.c: Likewise.
7102 * tests/test-freadahead.c: Likewise.
7103 * tests/test-freading.c: Likewise.
7104 * tests/test-freopen.c: Likewise.
7105 * tests/test-frexp.c: Likewise.
7106 * tests/test-frexpl.c: Likewise.
7107 * tests/test-fseek.c: Likewise.
7108 * tests/test-fseeko.c: Likewise.
7109 * tests/test-fseterr.c: Likewise.
7110 * tests/test-fstrcmp.c: Likewise.
7111 * tests/test-ftell.c: Likewise.
7112 * tests/test-ftello.c: Likewise.
7113 * tests/test-fwritable.c: Likewise.
7114 * tests/test-fwriting.c: Likewise.
7115 * tests/test-getaddrinfo.c: Likewise.
7116 * tests/test-getpass.c: Likewise.
7117 * tests/test-gettimeofday.c: Likewise.
7118 * tests/test-hmac-md5.c: Likewise.
7119 * tests/test-hmac-sha1.c: Likewise.
7120 * tests/test-iconv.c: Likewise.
7121 * tests/test-iconvme.c: Likewise.
7122 * tests/test-inttypes.c: Likewise.
7123 * tests/test-isnan.c: Likewise.
7124 * tests/test-isnanf.c: Likewise.
7125 * tests/test-isnanl-nolibm.c: Likewise.
7126 * tests/test-isnanl.c: Likewise.
7127 * tests/test-isnanl.h: Likewise.
7128 * tests/test-ldexpl.c: Likewise.
7129 * tests/test-linked_list.c: Likewise.
7130 * tests/test-linkedhash_list.c: Likewise.
7131 * tests/test-locale.c: Likewise.
7132 * tests/test-localename.c: Likewise.
7133 * tests/test-lock.c: Likewise.
7134 * tests/test-lseek.c: Likewise.
7135 * tests/test-malloca.c: Likewise.
7136 * tests/test-math.c: Likewise.
7137 * tests/test-mbscasecmp.c: Likewise.
7138 * tests/test-mbscasestr1.c: Likewise.
7139 * tests/test-mbscasestr2.c: Likewise.
7140 * tests/test-mbscasestr3.c: Likewise.
7141 * tests/test-mbscasestr4.c: Likewise.
7142 * tests/test-mbschr.c: Likewise.
7143 * tests/test-mbscspn.c: Likewise.
7144 * tests/test-mbsncasecmp.c: Likewise.
7145 * tests/test-mbspbrk.c: Likewise.
7146 * tests/test-mbspcasecmp.c: Likewise.
7147 * tests/test-mbsrchr.c: Likewise.
7148 * tests/test-mbsspn.c: Likewise.
7149 * tests/test-mbsstr1.c: Likewise.
7150 * tests/test-mbsstr2.c: Likewise.
7151 * tests/test-mbsstr3.c: Likewise.
7152 * tests/test-md5.c: Likewise.
7153 * tests/test-memmem.c: Likewise.
7154 * tests/test-netinet_in.c: Likewise.
7155 * tests/test-open.c: Likewise.
7156 * tests/test-printf-frexp.c: Likewise.
7157 * tests/test-printf-frexpl.c: Likewise.
7158 * tests/test-printf-posix.c: Likewise.
7159 * tests/test-printf-posix.h: Likewise.
7160 * tests/test-rbtree_list.c: Likewise.
7161 * tests/test-rbtree_oset.c: Likewise.
7162 * tests/test-rbtreehash_list.c: Likewise.
7163 * tests/test-read-file.c: Likewise.
7164 * tests/test-rijndael.c: Likewise.
7165 * tests/test-search.c: Likewise.
7166 * tests/test-signbit.c: Likewise.
7167 * tests/test-sleep.c: Likewise.
7168 * tests/test-snprintf-posix.c: Likewise.
7169 * tests/test-snprintf-posix.h: Likewise.
7170 * tests/test-snprintf.c: Likewise.
7171 * tests/test-sprintf-posix.c: Likewise.
7172 * tests/test-sprintf-posix.h: Likewise.
7173 * tests/test-stat-time.c: Likewise.
7174 * tests/test-stdbool.c: Likewise.
7175 * tests/test-stdint.c: Likewise.
7176 * tests/test-stdio.c: Likewise.
7177 * tests/test-stdlib.c: Likewise.
7178 * tests/test-stpncpy.c: Likewise.
7179 * tests/test-strcasestr.c: Likewise.
7180 * tests/test-striconv.c: Likewise.
7181 * tests/test-striconveh.c: Likewise.
7182 * tests/test-striconveha.c: Likewise.
7183 * tests/test-string.c: Likewise.
7184 * tests/test-sys_select.c: Likewise.
7185 * tests/test-sys_socket.c: Likewise.
7186 * tests/test-sys_stat.c: Likewise.
7187 * tests/test-sys_time.c: Likewise.
7188 * tests/test-sysexits.c: Likewise.
7189 * tests/test-time.c: Likewise.
7190 * tests/test-tls.c: Likewise.
7191 * tests/test-trunc.c: Likewise.
7192 * tests/test-truncf.c: Likewise.
7193 * tests/test-truncl.c: Likewise.
7194 * tests/test-unistd.c: Likewise.
7195 * tests/test-vasnprintf-posix.c: Likewise.
7196 * tests/test-vasnprintf-posix2.c: Likewise.
7197 * tests/test-vasnprintf.c: Likewise.
7198 * tests/test-vasprintf-posix.c: Likewise.
7199 * tests/test-vasprintf.c: Likewise.
7200 * tests/test-verify.c: Likewise.
7201 * tests/test-vfprintf-posix.c: Likewise.
7202 * tests/test-vprintf-posix.c: Likewise.
7203 * tests/test-vsnprintf-posix.c: Likewise.
7204 * tests/test-vsnprintf.c: Likewise.
7205 * tests/test-vsprintf-posix.c: Likewise.
7206 * tests/test-wchar.c: Likewise.
7207 * tests/test-wctype.c: Likewise.
7208 * tests/test-wcwidth.c: Likewise.
7209 * tests/test-xstrtol.c: Likewise.
7210 * tests/test-xvasprintf.c: Likewise.
7211 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
7212 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
7213 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
7214 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
7215 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
7216 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
7217 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
7218 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
7219 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
7220 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
7221 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
7222 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
7223 * tests/uniname/test-uninames.c: Likewise.
7224 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
7225 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
7226 * tests/unistdio/test-u16-printf1.h: Likewise.
7227 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
7228 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
7229 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
7230 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
7231 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
7232 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
7233 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
7234 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
7235 * tests/unistdio/test-u32-printf1.h: Likewise.
7236 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
7237 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
7238 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
7239 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
7240 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
7241 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
7242 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
7243 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
7244 * tests/unistdio/test-u8-printf1.h: Likewise.
7245 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
7246 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
7247 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
7248 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
7249 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
7250 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
7251 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
7252 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
7253 * tests/unistdio/test-ulc-printf1.h: Likewise.
7254 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
7255 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
7256 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
7257 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
7258 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
7259 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
7260 * tests/uniwidth/test-u16-strwidth.c: Likewise.
7261 * tests/uniwidth/test-u16-width.c: Likewise.
7262 * tests/uniwidth/test-u32-strwidth.c: Likewise.
7263 * tests/uniwidth/test-u32-width.c: Likewise.
7264 * tests/uniwidth/test-u8-strwidth.c: Likewise.
7265 * tests/uniwidth/test-u8-width.c: Likewise.
7266 * tests/uniwidth/test-uc_width.c: Likewise.
7267 * config/srclist-update: Likewise.
7268 (fixlicense): Update to GPLv3+.
7270 Change copyright notice from LGPLv2.1+ to LGPLv3+.
7271 * tests/test-tsearch.c: Change copyright notice.
7273 Change copyright notice from LGPLv2.0+ to LGPLv3+.
7274 * lib/c-strcaseeq.h: Change copyright notice.
7275 * lib/streq.h: Likewise.
7276 * lib/uniconv.h: Likewise.
7277 * lib/uniconv/u-conv-from-enc.h: Likewise.
7278 * lib/uniconv/u-conv-to-enc.h: Likewise.
7279 * lib/uniconv/u-strconv-from-enc.h: Likewise.
7280 * lib/uniconv/u-strconv-to-enc.h: Likewise.
7281 * lib/uniconv/u16-conv-from-enc.c: Likewise.
7282 * lib/uniconv/u16-conv-to-enc.c: Likewise.
7283 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
7284 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
7285 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
7286 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
7287 * lib/uniconv/u32-conv-from-enc.c: Likewise.
7288 * lib/uniconv/u32-conv-to-enc.c: Likewise.
7289 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
7290 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
7291 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
7292 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
7293 * lib/uniconv/u8-conv-from-enc.c: Likewise.
7294 * lib/uniconv/u8-conv-to-enc.c: Likewise.
7295 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
7296 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
7297 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
7298 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
7299 * lib/uniname.h: Likewise.
7300 * lib/uniname/uniname.c: Likewise.
7301 * lib/unistdio.h: Likewise.
7302 * lib/unistdio/u-asnprintf.h: Likewise.
7303 * lib/unistdio/u-asprintf.h: Likewise.
7304 * lib/unistdio/u-printf-args.c: Likewise.
7305 * lib/unistdio/u-printf-args.h: Likewise.
7306 * lib/unistdio/u-printf-parse.h: Likewise.
7307 * lib/unistdio/u-snprintf.h: Likewise.
7308 * lib/unistdio/u-sprintf.h: Likewise.
7309 * lib/unistdio/u-vasprintf.h: Likewise.
7310 * lib/unistdio/u-vsnprintf.h: Likewise.
7311 * lib/unistdio/u-vsprintf.h: Likewise.
7312 * lib/unistdio/u16-asnprintf.c: Likewise.
7313 * lib/unistdio/u16-asprintf.c: Likewise.
7314 * lib/unistdio/u16-printf-parse.c: Likewise.
7315 * lib/unistdio/u16-snprintf.c: Likewise.
7316 * lib/unistdio/u16-sprintf.c: Likewise.
7317 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
7318 * lib/unistdio/u16-u16-asprintf.c: Likewise.
7319 * lib/unistdio/u16-u16-snprintf.c: Likewise.
7320 * lib/unistdio/u16-u16-sprintf.c: Likewise.
7321 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
7322 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
7323 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
7324 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
7325 * lib/unistdio/u16-vasnprintf.c: Likewise.
7326 * lib/unistdio/u16-vasprintf.c: Likewise.
7327 * lib/unistdio/u16-vsnprintf.c: Likewise.
7328 * lib/unistdio/u16-vsprintf.c: Likewise.
7329 * lib/unistdio/u32-asnprintf.c: Likewise.
7330 * lib/unistdio/u32-asprintf.c: Likewise.
7331 * lib/unistdio/u32-printf-parse.c: Likewise.
7332 * lib/unistdio/u32-snprintf.c: Likewise.
7333 * lib/unistdio/u32-sprintf.c: Likewise.
7334 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
7335 * lib/unistdio/u32-u32-asprintf.c: Likewise.
7336 * lib/unistdio/u32-u32-snprintf.c: Likewise.
7337 * lib/unistdio/u32-u32-sprintf.c: Likewise.
7338 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
7339 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
7340 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
7341 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
7342 * lib/unistdio/u32-vasnprintf.c: Likewise.
7343 * lib/unistdio/u32-vasprintf.c: Likewise.
7344 * lib/unistdio/u32-vsnprintf.c: Likewise.
7345 * lib/unistdio/u32-vsprintf.c: Likewise.
7346 * lib/unistdio/u8-asnprintf.c: Likewise.
7347 * lib/unistdio/u8-asprintf.c: Likewise.
7348 * lib/unistdio/u8-printf-parse.c: Likewise.
7349 * lib/unistdio/u8-snprintf.c: Likewise.
7350 * lib/unistdio/u8-sprintf.c: Likewise.
7351 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
7352 * lib/unistdio/u8-u8-asprintf.c: Likewise.
7353 * lib/unistdio/u8-u8-snprintf.c: Likewise.
7354 * lib/unistdio/u8-u8-sprintf.c: Likewise.
7355 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
7356 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
7357 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
7358 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
7359 * lib/unistdio/u8-vasnprintf.c: Likewise.
7360 * lib/unistdio/u8-vasprintf.c: Likewise.
7361 * lib/unistdio/u8-vsnprintf.c: Likewise.
7362 * lib/unistdio/u8-vsprintf.c: Likewise.
7363 * lib/unistdio/ulc-asnprintf.c: Likewise.
7364 * lib/unistdio/ulc-asprintf.c: Likewise.
7365 * lib/unistdio/ulc-printf-parse.c: Likewise.
7366 * lib/unistdio/ulc-snprintf.c: Likewise.
7367 * lib/unistdio/ulc-sprintf.c: Likewise.
7368 * lib/unistdio/ulc-vasnprintf.c: Likewise.
7369 * lib/unistdio/ulc-vasprintf.c: Likewise.
7370 * lib/unistdio/ulc-vsnprintf.c: Likewise.
7371 * lib/unistdio/ulc-vsprintf.c: Likewise.
7372 * lib/unistr.h: Likewise.
7373 * lib/unistr/u-cpy-alloc.h: Likewise.
7374 * lib/unistr/u-cpy.h: Likewise.
7375 * lib/unistr/u-endswith.h: Likewise.
7376 * lib/unistr/u-move.h: Likewise.
7377 * lib/unistr/u-set.h: Likewise.
7378 * lib/unistr/u-startswith.h: Likewise.
7379 * lib/unistr/u-stpcpy.h: Likewise.
7380 * lib/unistr/u-stpncpy.h: Likewise.
7381 * lib/unistr/u-strcat.h: Likewise.
7382 * lib/unistr/u-strcpy.h: Likewise.
7383 * lib/unistr/u-strcspn.h: Likewise.
7384 * lib/unistr/u-strdup.h: Likewise.
7385 * lib/unistr/u-strlen.h: Likewise.
7386 * lib/unistr/u-strncat.h: Likewise.
7387 * lib/unistr/u-strncpy.h: Likewise.
7388 * lib/unistr/u-strnlen.h: Likewise.
7389 * lib/unistr/u-strpbrk.h: Likewise.
7390 * lib/unistr/u-strspn.h: Likewise.
7391 * lib/unistr/u-strstr.h: Likewise.
7392 * lib/unistr/u-strtok.h: Likewise.
7393 * lib/unistr/u16-check.c: Likewise.
7394 * lib/unistr/u16-chr.c: Likewise.
7395 * lib/unistr/u16-cmp.c: Likewise.
7396 * lib/unistr/u16-cpy-alloc.c: Likewise.
7397 * lib/unistr/u16-cpy.c: Likewise.
7398 * lib/unistr/u16-endswith.c: Likewise.
7399 * lib/unistr/u16-mblen.c: Likewise.
7400 * lib/unistr/u16-mbsnlen.c: Likewise.
7401 * lib/unistr/u16-mbtouc-aux.c: Likewise.
7402 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
7403 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
7404 * lib/unistr/u16-mbtouc.c: Likewise.
7405 * lib/unistr/u16-mbtoucr.c: Likewise.
7406 * lib/unistr/u16-move.c: Likewise.
7407 * lib/unistr/u16-next.c: Likewise.
7408 * lib/unistr/u16-prev.c: Likewise.
7409 * lib/unistr/u16-set.c: Likewise.
7410 * lib/unistr/u16-startswith.c: Likewise.
7411 * lib/unistr/u16-stpcpy.c: Likewise.
7412 * lib/unistr/u16-stpncpy.c: Likewise.
7413 * lib/unistr/u16-strcat.c: Likewise.
7414 * lib/unistr/u16-strchr.c: Likewise.
7415 * lib/unistr/u16-strcmp.c: Likewise.
7416 * lib/unistr/u16-strcpy.c: Likewise.
7417 * lib/unistr/u16-strcspn.c: Likewise.
7418 * lib/unistr/u16-strdup.c: Likewise.
7419 * lib/unistr/u16-strlen.c: Likewise.
7420 * lib/unistr/u16-strmblen.c: Likewise.
7421 * lib/unistr/u16-strmbtouc.c: Likewise.
7422 * lib/unistr/u16-strncat.c: Likewise.
7423 * lib/unistr/u16-strncmp.c: Likewise.
7424 * lib/unistr/u16-strncpy.c: Likewise.
7425 * lib/unistr/u16-strnlen.c: Likewise.
7426 * lib/unistr/u16-strpbrk.c: Likewise.
7427 * lib/unistr/u16-strrchr.c: Likewise.
7428 * lib/unistr/u16-strspn.c: Likewise.
7429 * lib/unistr/u16-strstr.c: Likewise.
7430 * lib/unistr/u16-strtok.c: Likewise.
7431 * lib/unistr/u16-to-u32.c: Likewise.
7432 * lib/unistr/u16-to-u8.c: Likewise.
7433 * lib/unistr/u16-uctomb-aux.c: Likewise.
7434 * lib/unistr/u16-uctomb.c: Likewise.
7435 * lib/unistr/u32-check.c: Likewise.
7436 * lib/unistr/u32-chr.c: Likewise.
7437 * lib/unistr/u32-cmp.c: Likewise.
7438 * lib/unistr/u32-cpy-alloc.c: Likewise.
7439 * lib/unistr/u32-cpy.c: Likewise.
7440 * lib/unistr/u32-endswith.c: Likewise.
7441 * lib/unistr/u32-mblen.c: Likewise.
7442 * lib/unistr/u32-mbsnlen.c: Likewise.
7443 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
7444 * lib/unistr/u32-mbtouc.c: Likewise.
7445 * lib/unistr/u32-mbtoucr.c: Likewise.
7446 * lib/unistr/u32-move.c: Likewise.
7447 * lib/unistr/u32-next.c: Likewise.
7448 * lib/unistr/u32-prev.c: Likewise.
7449 * lib/unistr/u32-set.c: Likewise.
7450 * lib/unistr/u32-startswith.c: Likewise.
7451 * lib/unistr/u32-stpcpy.c: Likewise.
7452 * lib/unistr/u32-stpncpy.c: Likewise.
7453 * lib/unistr/u32-strcat.c: Likewise.
7454 * lib/unistr/u32-strchr.c: Likewise.
7455 * lib/unistr/u32-strcmp.c: Likewise.
7456 * lib/unistr/u32-strcpy.c: Likewise.
7457 * lib/unistr/u32-strcspn.c: Likewise.
7458 * lib/unistr/u32-strdup.c: Likewise.
7459 * lib/unistr/u32-strlen.c: Likewise.
7460 * lib/unistr/u32-strmblen.c: Likewise.
7461 * lib/unistr/u32-strmbtouc.c: Likewise.
7462 * lib/unistr/u32-strncat.c: Likewise.
7463 * lib/unistr/u32-strncmp.c: Likewise.
7464 * lib/unistr/u32-strncpy.c: Likewise.
7465 * lib/unistr/u32-strnlen.c: Likewise.
7466 * lib/unistr/u32-strpbrk.c: Likewise.
7467 * lib/unistr/u32-strrchr.c: Likewise.
7468 * lib/unistr/u32-strspn.c: Likewise.
7469 * lib/unistr/u32-strstr.c: Likewise.
7470 * lib/unistr/u32-strtok.c: Likewise.
7471 * lib/unistr/u32-to-u16.c: Likewise.
7472 * lib/unistr/u32-to-u8.c: Likewise.
7473 * lib/unistr/u32-uctomb.c: Likewise.
7474 * lib/unistr/u8-check.c: Likewise.
7475 * lib/unistr/u8-chr.c: Likewise.
7476 * lib/unistr/u8-cmp.c: Likewise.
7477 * lib/unistr/u8-cpy-alloc.c: Likewise.
7478 * lib/unistr/u8-cpy.c: Likewise.
7479 * lib/unistr/u8-endswith.c: Likewise.
7480 * lib/unistr/u8-mblen.c: Likewise.
7481 * lib/unistr/u8-mbsnlen.c: Likewise.
7482 * lib/unistr/u8-mbtouc-aux.c: Likewise.
7483 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
7484 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
7485 * lib/unistr/u8-mbtouc.c: Likewise.
7486 * lib/unistr/u8-mbtoucr.c: Likewise.
7487 * lib/unistr/u8-move.c: Likewise.
7488 * lib/unistr/u8-next.c: Likewise.
7489 * lib/unistr/u8-prev.c: Likewise.
7490 * lib/unistr/u8-set.c: Likewise.
7491 * lib/unistr/u8-startswith.c: Likewise.
7492 * lib/unistr/u8-stpcpy.c: Likewise.
7493 * lib/unistr/u8-stpncpy.c: Likewise.
7494 * lib/unistr/u8-strcat.c: Likewise.
7495 * lib/unistr/u8-strchr.c: Likewise.
7496 * lib/unistr/u8-strcmp.c: Likewise.
7497 * lib/unistr/u8-strcpy.c: Likewise.
7498 * lib/unistr/u8-strcspn.c: Likewise.
7499 * lib/unistr/u8-strdup.c: Likewise.
7500 * lib/unistr/u8-strlen.c: Likewise.
7501 * lib/unistr/u8-strmblen.c: Likewise.
7502 * lib/unistr/u8-strmbtouc.c: Likewise.
7503 * lib/unistr/u8-strncat.c: Likewise.
7504 * lib/unistr/u8-strncmp.c: Likewise.
7505 * lib/unistr/u8-strncpy.c: Likewise.
7506 * lib/unistr/u8-strnlen.c: Likewise.
7507 * lib/unistr/u8-strpbrk.c: Likewise.
7508 * lib/unistr/u8-strrchr.c: Likewise.
7509 * lib/unistr/u8-strspn.c: Likewise.
7510 * lib/unistr/u8-strstr.c: Likewise.
7511 * lib/unistr/u8-strtok.c: Likewise.
7512 * lib/unistr/u8-to-u16.c: Likewise.
7513 * lib/unistr/u8-to-u32.c: Likewise.
7514 * lib/unistr/u8-uctomb-aux.c: Likewise.
7515 * lib/unistr/u8-uctomb.c: Likewise.
7516 * lib/unitypes.h: Likewise.
7517 * lib/uniwidth.h: Likewise.
7518 * lib/uniwidth/cjk.h: Likewise.
7519 * lib/uniwidth/u16-strwidth.c: Likewise.
7520 * lib/uniwidth/u16-width.c: Likewise.
7521 * lib/uniwidth/u32-strwidth.c: Likewise.
7522 * lib/uniwidth/u32-width.c: Likewise.
7523 * lib/uniwidth/u8-strwidth.c: Likewise.
7524 * lib/uniwidth/u8-width.c: Likewise.
7525 * lib/uniwidth/width.c: Likewise.
7527 2007-10-07 Bruno Haible <bruno@clisp.org>
7529 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
7530 The file is still under LGPL (see modules/inttypes).
7532 2007-10-06 Bruno Haible <bruno@clisp.org>
7534 * modules/trunc (Dependencies): Add 'extensions'.
7535 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
7536 Reported by Ben Pfaff <blp@gnu.org>.
7538 2007-10-06 Bruno Haible <bruno@clisp.org>
7540 * modules/freopen-tests: New file.
7541 * tests/test-freopen.c: New file.
7543 * modules/fopen-tests: New file.
7544 * tests/test-fopen.c: New file.
7546 * modules/fopen: New file.
7547 * lib/fopen.c: New file.
7548 * m4/fopen.m4: New file.
7549 * modules/freopen: New file.
7550 * lib/freopen.c: New file.
7551 * m4/freopen.m4: New file.
7552 * lib/stdio.in.h (fopen, freopen): New declarations.
7553 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
7554 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
7555 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
7556 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
7557 * doc/functions/fopen.texi: Mention the 'fopen' module.
7558 * doc/functions/freopen.texi: Mention the 'freopen' module.
7560 2007-10-06 Bruno Haible <bruno@clisp.org>
7562 * modules/open-tests: New file.
7563 * tests/test-open.c: New file.
7565 * modules/open: New file.
7566 * lib/open.c: New file.
7567 * m4/open.m4: New file.
7568 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
7570 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
7571 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
7573 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
7574 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
7576 * doc/functions/open.texi: Mention the 'open' module.
7578 2007-10-04 Bruno Haible <bruno@clisp.org>
7580 * modules/ceill-tests: New file.
7581 * tests/test-ceill.c: New file.
7583 * modules/ceill: New file.
7584 * lib/ceill.c: Replace entire file.
7585 * m4/ceill.m4: New file.
7586 * lib/math.in.h (ceill): Replace declaration.
7587 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
7588 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
7589 * doc/functions/ceill.texi: Mention the 'ceill' module.
7590 * modules/mathl (Files): Remove lib/ceill.c.
7591 (Depends-on): Add ceill.
7593 2007-10-04 Bruno Haible <bruno@clisp.org>
7595 * modules/ceilf-tests: New file.
7596 * tests/test-ceilf.c: New file.
7598 * modules/ceilf: New file.
7599 * lib/ceil.c: New file.
7600 * lib/ceilf.c: New file.
7601 * m4/ceilf.m4: New file.
7602 * lib/math.in.h (ceilf): New declaration.
7603 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
7605 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
7607 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
7609 2007-10-04 Bruno Haible <bruno@clisp.org>
7611 * modules/floorl-tests: New file.
7612 * tests/test-floorl.c: New file.
7614 * modules/floorl: New file.
7615 * lib/floorl.c: Replace entire file.
7616 * m4/floorl.m4: New file.
7617 * lib/math.in.h (floorl): Replace declaration.
7618 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
7619 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
7620 * doc/functions/floorl.texi: Mention the 'floorl' module.
7621 * modules/mathl (Files): Remove lib/floorl.c.
7622 (Depends-on): Add floorl.
7624 2007-10-04 Bruno Haible <bruno@clisp.org>
7626 * modules/floorf-tests: New file.
7627 * tests/test-floorf.c: New file.
7629 * modules/floorf: New file.
7630 * lib/floor.c: New file.
7631 * lib/floorf.c: New file.
7632 * m4/floorf.m4: New file.
7633 * lib/math.in.h (floorf): New declaration.
7634 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
7636 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
7638 * doc/functions/floorf.texi: Mention the 'floorf' module.
7640 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
7641 Bruno Haible <bruno@clisp.org>
7643 Advertise for the Git server instead of the CVS server.
7644 * doc/gnulib-intro.texi (Steady Development): Mention the Git
7645 repository instead of the CVS one.
7646 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
7647 about all VCS systems generically.
7648 * doc/gnulib.texi (Introduction): Capitalize `Git'.
7650 2007-10-04 Bruno Haible <bruno@clisp.org>
7652 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
7654 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
7656 2007-10-04 Bruno Haible <bruno@clisp.org>
7658 * modules/truncl-tests: New file.
7659 * tests/test-truncl.c: New file.
7661 * modules/truncl: New file.
7662 * lib/truncl.c: New file.
7663 * m4/truncl.m4: New file.
7664 * lib/math.in.h (truncl): New declaration.
7665 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
7667 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
7669 * doc/functions/truncl.texi: Mention the 'truncl' module.
7671 2007-10-04 Bruno Haible <bruno@clisp.org>
7673 * modules/truncf-tests: New file.
7674 * tests/test-truncf.c: New file.
7676 * modules/truncf: New file.
7677 * lib/trunc.c: Make paramerizable through USE_* macros.
7678 * lib/truncf.c: New file.
7679 * m4/truncf.m4: New file.
7680 * lib/math.in.h (truncf): New declaration.
7681 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
7683 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
7685 * doc/functions/truncf.texi: Mention the 'truncf' module.
7687 2007-10-03 Bruno Haible <bruno@clisp.org>
7689 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
7690 augmentation also for tests modules.
7691 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
7692 * modules/atexit-tests (Makefile.am): Likewise.
7693 * modules/binary-io-tests (Makefile.am): Likewise.
7694 * modules/c-strcase-tests (Makefile.am): Likewise.
7695 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
7696 * modules/canonicalize-tests (Makefile.am): Likewise.
7697 * modules/closein-tests (Makefile.am): Likewise.
7698 * modules/fprintf-posix-tests (Makefile.am): Likewise.
7699 * modules/freadahead-tests (Makefile.am): Likewise.
7700 * modules/fseek-tests (Makefile.am): Likewise.
7701 * modules/fseeko-tests (Makefile.am): Likewise.
7702 * modules/ftell-tests (Makefile.am): Likewise.
7703 * modules/ftello-tests (Makefile.am): Likewise.
7704 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
7705 * modules/isnanl-tests (Makefile.am): Likewise.
7706 * modules/lseek-tests (Makefile.am): Likewise.
7707 * modules/mbscasecmp-tests (Makefile.am): Likewise.
7708 * modules/mbscasestr-tests (Makefile.am): Likewise.
7709 * modules/mbschr-tests (Makefile.am): Likewise.
7710 * modules/mbscspn-tests (Makefile.am): Likewise.
7711 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
7712 * modules/mbspbrk-tests (Makefile.am): Likewise.
7713 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
7714 * modules/mbsrchr-tests (Makefile.am): Likewise.
7715 * modules/mbsspn-tests (Makefile.am): Likewise.
7716 * modules/mbsstr-tests (Makefile.am): Likewise.
7717 * modules/printf-posix-tests (Makefile.am): Likewise.
7718 * modules/snprintf-posix-tests (Makefile.am): Likewise.
7719 * modules/sprintf-posix-tests (Makefile.am): Likewise.
7720 * modules/tsearch-tests (Makefile.am): Likewise.
7721 * modules/uniname/uniname-tests (Makefile.am): Likewise.
7722 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
7723 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
7724 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
7725 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
7726 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
7727 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
7728 * modules/vprintf-posix-tests (Makefile.am): Likewise.
7729 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
7730 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
7731 * modules/xstrtoimax-tests (Makefile.am): Likewise.
7732 * modules/xstrtol-tests (Makefile.am): Likewise.
7733 * modules/xstrtoumax-tests (Makefile.am): Likewise.
7734 * modules/yesno-tests (Makefile.am): Likewise.
7736 2007-10-03 Bruno Haible <bruno@clisp.org>
7738 * modules/trunc-tests: New file.
7739 * tests/test-trunc.c: New file.
7741 * modules/trunc: New file.
7742 * lib/trunc.c: New file.
7743 * m4/trunc.m4: New file.
7744 * lib/math.in.h (trunc): New declaration.
7745 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
7747 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
7749 * doc/functions/trunc.texi: Mention the 'trunc' module.
7751 2007-10-03 Bruno Haible <bruno@clisp.org>
7753 * tests/test-fpending.c: New file, mostly copied
7754 from coreutils/lib/t-fpending.c.
7755 * modules/fpending-tests: New file.
7757 2007-10-03 Bruno Haible <bruno@clisp.org>
7759 Port the stdio extensions to QNX (untested).
7760 * lib/fseterr.c (fseterr): Add support for QNX.
7761 * lib/fbufmode.c (fbufmode): Likewise.
7762 * lib/freadable.c (freadable): Likewise.
7763 * lib/fwritable.c (fwritable): Likewise.
7764 * lib/freading.c (freading): Likewise.
7765 * lib/fwriting.c (fwriting): Likewise.
7766 * lib/freadahead.c (freadahed): Likewise.
7767 * lib/fpurge.c (fpurge): Likewise.
7768 * lib/fseeko.c (rpl_fseeko): Likewise.
7770 2007-10-03 Bruno Haible <bruno@clisp.org>
7771 Jim Meyering <jim@meyering.net>
7772 Eric Blake <ebb9@byu.net>
7774 * doc/relocatable.texi: Use @command instead of @program.
7776 2007-10-02 Jim Meyering <jim@meyering.net>
7778 Perform one more "_.h" -> ".in.h" substitution.
7779 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
7780 instead of unistd_.h here, too.
7782 2007-10-01 Bruno Haible <bruno@clisp.org>
7784 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
7785 Needed for the alloca-opt module.
7787 2007-09-30 Bruno Haible <bruno@clisp.org>
7789 * lib/alloca.in.h: Renamed from lib/alloca_.h.
7790 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
7792 * lib/argz.in.h: Renamed from lib/argz_.h.
7793 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
7794 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
7795 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
7797 * lib/dirent.in.h: Renamed from lib/dirent_.h.
7798 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
7800 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
7801 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
7803 * lib/float.in.h: Renamed from lib/float_.h.
7804 * modules/float (Files, Makefile.am): Use float.in.h instead of
7806 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
7807 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
7809 * lib/getopt.in.h: Renamed from lib/getopt_.h.
7810 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
7812 * lib/glob.in.h: Renamed from lib/glob_.h.
7813 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
7814 * lib/iconv.in.h: Renamed from lib/iconv_.h.
7815 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
7817 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
7818 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
7820 * lib/locale.in.h: Renamed from lib/locale_.h.
7821 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
7823 * lib/math.in.h: Renamed from lib/math_.h.
7824 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
7825 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
7826 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
7827 of netinet_in_.h. Add dependency.
7828 * lib/poll.in.h: Renamed from lib/poll_.h.
7829 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
7830 * lib/search.in.h: Renamed from lib/search_.h.
7831 * modules/search (Files, Makefile.am): Use search.in.h instead of
7833 * lib/signal.in.h: Renamed from lib/signal_.h.
7834 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
7836 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
7837 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
7839 * lib/stdint.in.h: Renamed from lib/stdint_.h.
7840 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
7842 * lib/stdio.in.h: Renamed from lib/stdio_.h.
7843 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
7845 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
7846 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
7848 * lib/string.in.h: Renamed from lib/string_.h.
7849 * modules/string (Files, Makefile.am): Use string.in.h instead of
7851 * doc/gnulib-tool.texi (Initial import): Update.
7852 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
7853 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
7854 of sys_select_.h. Add dependency.
7855 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
7856 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
7858 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
7859 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
7861 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
7862 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
7864 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
7865 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
7867 * lib/time.in.h: Renamed from lib/time_.h.
7868 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
7869 * lib/unistd.in.h: Renamed from lib/unistd_.h.
7870 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
7872 * lib/wchar.in.h: Renamed from lib/wchar_.h.
7873 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
7875 * lib/wctype.in.h: Renamed from lib/wctype_.h.
7876 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
7878 * build-aux/bootstrap (slurp): Update.
7879 * lib/.cppi-disable: Update.
7881 2007-09-30 Bruno Haible <bruno@clisp.org>
7883 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
7886 2007-09-30 Bruno Haible <bruno@clisp.org>
7888 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
7890 2007-09-29 Bruno Haible <bruno@clisp.org>
7892 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
7894 2007-09-29 Bruno Haible <bruno@clisp.org>
7896 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
7897 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
7898 * build-aux/install-reloc: Compile also areadlink.c.
7899 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
7901 2007-09-29 Bruno Haible <bruno@clisp.org>
7903 * gnulib-tool (func_emit_initmacro_done): Indentation.
7905 2007-09-29 Bruno Haible <bruno@clisp.org>
7907 * README: Add CVS checkout update instructions.
7908 Info from Bob Proulx <bob@proulx.com>.
7910 2007-09-28 Eric Blake <ebb9@byu.net>
7912 Provide move-if-change.
7913 * build-aux/move-if-change: New file, based on best practice
7914 rather than any canonical upstream location.
7916 2007-09-28 Jim Meyering <jim@meyering.net>
7918 Fix canonicalize loop-detection corner case.
7919 Do not attempt to stat the symlink values stored via seen_triple.
7920 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
7921 on linux-2.6.18, (but not 2.6.22).
7922 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
7923 triple_compare. The former compares dev,ino,filename, while the latter
7924 would actually stat dirname(filename) when dev and ino were equal.
7925 * lib/hash-triple.c: Install <string.h>.
7927 (triple_compare_ino_str): New function.
7928 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
7930 2007-09-28 Eric Blake <ebb9@byu.net>
7932 Enforce that AC_REPLACE_FUNCS files exist.
7933 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
7934 override check for typos.
7936 Fix test-closein on Solaris 10.
7937 * tests/test-closein.c (main): Don't assume stdin can be inherited
7938 closed on all systems.
7939 * tests/test-closein.sh: Likewise.
7940 Reported by Piotr Tarnowski.
7942 2007-09-28 Jim Meyering <jim@meyering.net>
7944 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
7946 2007-09-27 Jim Meyering <jim@meyering.net>
7948 canonicalize: Avoid a false-positive cycle failure.
7949 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
7950 Sort. Remove cycle-check.
7951 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
7953 (seen_triple): New function.
7954 (canonicalize_filename_mode): Use it instead of cycle-check.
7955 * tests/test-canonicalize.c: Add a test for this bug.
7956 * tests/test-canonicalize.sh: Set up and run the test.
7958 New module, file-set, from coreutils.
7959 * modules/file-set: Define it.
7960 * lib/file-set.c, lib/file-set.h: Implement.
7962 New module, hash-triple, from coreutils.
7963 * modules/hash-triple: Define it.
7964 * lib/hash-triple.c, lib/hash-triple.h: Implement.
7966 2007-09-25 Eric Blake <ebb9@byu.net>
7968 Fix strerror on Interix.
7969 * lib/string_.h (strerror): Declare replacement.
7970 * doc/functions/strerror.texi (strerror): Document the Interix
7972 * modules/string (Makefile.am): Support new hooks.
7973 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
7974 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
7975 gl_FUNC_STRERROR_SEPARATE.
7976 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
7977 * lib/strerror.c (rpl_strerror): Provide replacement.
7978 * modules/strerror (Depends-on): Add string.
7979 (configure.ac): Detect use of module.
7980 * tests/test-strerror.c: New file.
7981 * modules/strerror-tests: New test module.
7982 * modules/argp (Depends-on): Add strerror.
7983 * modules/error (Depends-on): Likewise.
7984 Reported by Martin Koeppe.
7986 2007-09-24 Bruno Haible <bruno@clisp.org>
7988 * README: Update git instructions.
7990 2007-09-24 Eric Blake <ebb9@byu.net>
7992 Revert fpending breakage from 2007-09-08.
7993 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
7996 2007-09-24 Jim Meyering <jim@meyering.net>
7998 filenamecat.c: Add a test.
7999 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
8000 showing how the function works when DIR is the empty string.
8002 2007-09-21 Simon Josefsson <simon@josefsson.org>
8004 * tests/test-canonicalize.sh: Turn on executable bit.
8006 2007-09-19 Eric Blake <ebb9@byu.net>
8008 * README: Update CVS instructions.
8010 2007-09-18 Bruno Haible <bruno@clisp.org>
8012 * modules/areadlink: New file.
8013 * lib/areadlink.h (areadlink): New declaration.
8014 * lib/areadlink.c: New file, based on lib/xreadlink.c.
8016 2007-09-17 Jim Meyering <jim@meyering.net>
8018 * lib/savewd.c (ESTALE) [!defined]: Define.
8019 Reported to be required on Interix by Martin Koeppe.
8021 2007-09-17 Bruno Haible <bruno@clisp.org>
8023 * gnulib-tool (func_version): Use $version.
8025 2007-09-16 Bruno Haible <bruno@clisp.org>
8027 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
8028 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
8029 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
8030 Reported by Greg Schafer <gschafer@zip.com.au>.
8032 2007-09-15 Bruno Haible <bruno@clisp.org>
8034 * gnulib-tool (sed): Try a little harder to make bash understand the
8036 Reported by Bruce Korb <bruce.korb@gmail.com>.
8038 2007-09-13 Eric Blake <ebb9@byu.net>
8040 * ChangeLog: Remove conflict markers.
8042 2007-09-13 Simon Josefsson <simon@josefsson.org>
8044 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
8045 Reported by Bruno Haible <bruno@clisp.org>.
8047 2007-09-12 Bruno Haible <bruno@clisp.org>
8049 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
8050 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
8053 2007-09-12 Eric Blake <ebb9@byu.net>
8055 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
8056 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
8057 Autoconf definition.
8058 * modules/euidaccess (Depends-on): Add extensions, for
8059 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
8060 * modules/fnmatch (Depends-on): Likewise.
8061 * modules/getaddrinfo (Depends-on): Likewise.
8062 * modules/getdelim (Depends-on): Likewise.
8063 * modules/getline (Depends-on): Likewise.
8064 * modules/getsubopt (Depends-on): Likewise.
8065 * modules/gettext (Depends-on): Likewise.
8066 * modules/group-member (Depends-on): Likewise.
8067 * modules/mbchar (Depends-on): Likewise.
8068 * modules/memmem (Depends-on): Likewise.
8069 * modules/mempcpy (Depends-on): Likewise.
8070 * modules/memrchr (Depends-on): Likewise.
8071 * modules/pagealign_alloc (Depends-on): Likewise.
8072 * modules/readutmp (Depends-on): Likewise.
8073 * modules/stpcpy (Depends-on): Likewise.
8074 * modules/stpncpy (Depends-on): Likewise.
8075 * modules/strchrnul (Depends-on): Likewise.
8076 * modules/strndup (Depends-on): Likewise.
8077 * modules/strsep (Depends-on): Likewise.
8078 * modules/strverscmp (Depends-on): Likewise.
8079 * modules/vasprintf (Depends-on): Likewise.
8080 * modules/wcwidth (Depends-on): Likewise.
8081 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
8082 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
8083 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
8084 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
8085 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8086 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8087 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
8088 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
8089 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
8090 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
8091 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
8092 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
8093 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
8094 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
8095 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
8096 * m4/readutmp.m4 (gl_READUTMP): Likewise.
8097 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8098 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
8099 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
8100 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
8101 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
8102 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
8103 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
8104 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
8105 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
8106 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8107 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
8108 so that lock.m4 can be used in gettext without extensions module.
8110 2007-09-11 Bruno Haible <bruno@clisp.org>
8112 * m4/isc-posix.m4: Remove file.
8113 Suggested by Eric Blake.
8115 2007-09-11 Eric Blake <ebb9@byu.net>
8117 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
8119 2007-09-10 Bruno Haible <bruno@clisp.org>
8121 * posix-modules: Fix typo in error message.
8122 Reported by Matt <mkraai@beckman.com>.
8124 2007-09-09 Bruno Haible <bruno@clisp.org>
8126 * doc/functions/getdelim.texi: Update list of platforms lacking the
8128 * doc/functions/getline.texi: Likewise.
8130 2007-09-09 Jim Meyering <jim@meyering.net>
8132 * lib/hash.c (hash_initialize): Detect calloc failure.
8133 Reported by Bruno Haible.
8135 2007-09-09 Bruno Haible <bruno@clisp.org>
8137 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
8138 malloc or realloc fails.
8140 2007-09-09 Bruno Haible <bruno@clisp.org>
8142 * modules/getcwd (Depends-on): Add malloc-posix.
8143 * modules/glob (Depends-on): Likewise.
8144 * modules/putenv (Depends-on): Likewise.
8145 * modules/strdup (Depends-on): Likewise.
8146 * modules/getdelim (Depends-on): Add realloc-posix.
8147 * modules/read-file (Depends-on): Likewise.
8149 2007-09-09 Bruno Haible <bruno@clisp.org>
8151 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
8152 (gl_FUNC_MALLOC_POSIX): Require it.
8153 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
8154 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
8155 * modules/realloc (Files): Add m4/malloc.m4.
8156 * modules/calloc (Files): Likewise.
8158 2007-09-09 Bruno Haible <bruno@clisp.org>
8160 * modules/malloc-posix: New file.
8161 * modules/malloc (Depends-on): Add malloc-posix.
8162 * lib/malloc.c: Include errno.h.
8163 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
8164 and a POSIX-compatible malloc into a single function. Set ENOMEM
8165 when returning NULL.
8166 * m4/malloc.m4: New file.
8167 * doc/functions/malloc.texi: Mention the malloc-posix module.
8168 * lib/stdlib_.h (malloc): New declaration.
8169 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
8170 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
8171 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
8172 and HAVE_MALLOC_POSIX.
8174 2007-09-09 Bruno Haible <bruno@clisp.org>
8176 * modules/realloc-posix: New file.
8177 * modules/realloc (Depends-on): Add realloc-posix.
8178 * lib/realloc.c: Include errno.h.
8179 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
8180 and a POSIX-compatible realloc into a single function. Set ENOMEM
8181 when returning NULL.
8182 * m4/realloc.m4: New file.
8183 * doc/functions/realloc.texi: Mention the realloc-posix module.
8184 * lib/stdlib_.h (realloc): New declaration.
8185 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
8186 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
8187 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
8188 and HAVE_REALLOC_POSIX.
8190 2007-09-09 Bruno Haible <bruno@clisp.org>
8192 * modules/calloc-posix: New file.
8193 * modules/calloc (Depends-on): Add calloc-posix.
8194 * lib/calloc.c: Include errno.h.
8195 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
8196 and a POSIX-compatible calloc into a single function. Set ENOMEM
8197 when returning NULL.
8198 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
8199 * doc/functions/calloc.texi: Mention the calloc-posix module.
8200 * lib/stdlib_.h (calloc): New declaration.
8201 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
8202 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
8203 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
8204 and HAVE_CALLOC_POSIX.
8206 2007-09-09 Bruno Haible <bruno@clisp.org>
8208 Allow for modules to show an arbitrary notice.
8209 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
8210 * gnulib-tool: New option --extract-notice.
8211 (func_usage): Document it.
8212 (sed_extract_prog): Update.
8213 (func_get_notice): New function.
8214 (func_modules_notice): New function.
8215 (func_import, func_create_testdir): Invoke it.
8216 Suggested by Jim Meyering.
8218 2007-09-09 Bruno Haible <bruno@clisp.org>
8220 * gnulib-tool: New options --verbose, --quiet.
8221 (func_usage): Document them.
8222 (verbose): New variable.
8223 (func_execute_command): New function.
8224 (func_import): Don't show the module list and the file list if
8226 (func_create_testdir): Likewise. Use func_execute_command.
8227 (func_create_megatestdir): Use func_execute_command.
8229 2007-09-08 Bruno Haible <bruno@clisp.org>
8231 * gnulib-tool (func_import): Prefer rsync over wget when available,
8232 for fetching the PO files.
8234 2007-09-08 Bruno Haible <bruno@clisp.org>
8236 * posix-modules: New file. Portions copied from gnulib-tool.
8237 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
8239 2007-09-08 Jim Meyering <jim@meyering.net>
8241 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
8242 * lib/fpending.h: Rename from __fpending.h.
8243 * lib/fpending.c: Rename from __fpending.c.
8244 Include "fpending.h", not "__fpending.h".
8245 * lib/__fpending.h, lib/__fpending.c: Remove files.
8246 * modules/fpending (Files): Reflect new file names.
8247 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
8249 2007-09-08 Bruno Haible <bruno@clisp.org>
8251 * m4/inttypes-h.m4: Remove stub file.
8253 2007-09-07 Simon Josefsson <simon@josefsson.org>
8255 * doc/headers/stdint.texi: Discuss #include_next issue.
8257 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
8259 * build-aux/bootstrap: Remove obsolete comment about wget --help.
8261 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
8263 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
8266 2007-09-03 Jim Meyering <jim@meyering.net>
8268 New module: git-version-gen.
8269 * modules/git-version-gen: New file.
8271 Import changes from coreutils for bootstrap script.
8273 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
8275 bootstrap: uses rsync to download the .po files
8276 * build-aux/bootstrap (po_download_command_format): New global.
8277 (download_po_files): Use rsync.
8278 (update_po_files): Don't remove .po files after download,
8279 so future rsync runs can take advantage of the copies.
8281 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
8283 Solve the unnecessary-.po-file-regeneration problem once and for all.
8284 * build-aux/bootstrap (download_po_files): New function, renamed from
8285 get_translations. Now, downloads, but doesn't update LINGUAS.
8286 (update_po_files): New function.
8288 bootstrap: Ignore more.
8289 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
8290 uniwidth to e.g., lib/.gitignore.
8291 (slurp): Handle the sys_stat_.h -> sys mapping, too.
8293 * build-aux/bootstrap: New setting: vc_ignore.
8294 (insert_sorted_if_absent): Create $file if absent.
8295 Adapt to new, possibly empty, list: $vc_ignore.
8297 bootstrap: generate more ignorable names
8298 * build-aux/bootstrap (slurp): When generating ignorable names,
8299 also map .sin to .sed, .gperf to .c, and .y to .c.
8301 2007-09-03 Jim Meyering <jim@meyering.net>
8303 * build-aux/git-version-gen: New file, from coreutils. For details, see
8304 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
8306 2007-09-02 Bruno Haible <bruno@clisp.org>
8308 Fix mis-recognition of 'mcs' on QNX 6.
8309 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
8310 output contains the string "Mono".
8311 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
8312 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
8314 2007-09-01 Bruno Haible <bruno@clisp.org>
8316 Fix collision between uniwidth/* and linebreak modules.
8317 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
8318 u32_width): Remove declarations.
8319 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
8320 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
8321 streq3, streq2, streq1, streq0): Remove functions.
8322 (STREQ): Remove macro.
8323 (is_cjk_encoding): Remove function.
8324 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
8325 (uc_width, u8_width, u16_width, u32_width): Remove functions.
8326 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
8327 * NEWS: Document the change.
8329 2007-09-01 Bruno Haible <bruno@clisp.org>
8331 * lib/streq.h: Add double-inclusion guard.
8333 2007-09-01 Karl Berry <karl@gnu.org>
8335 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
8337 2007-08-28 Jim Meyering <jim@meyering.net>
8339 Rename mreadlink_with_size to areadlink_with_size.
8340 * NEWS: Document the change.
8341 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
8342 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
8343 * lib/mreadlink.h: Rename this to...
8344 * lib/areadlink.h: ...this.
8345 * modules/mreadlink-with-size: Rename this to...
8346 * modules/areadlink-with-size: ...this.
8347 * lib/canonicalize.c: Reflect the renaming.
8348 * modules/canonicalize: Likewise.
8350 2007-08-26 Bruno Haible <bruno@clisp.org>
8352 * gnulib-tool (func_import): When deciding which files to remove,
8353 consider also dangling symbolic links.
8354 Reported by Eric Blake.
8356 2007-08-26 Bruno Haible <bruno@clisp.org>
8358 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
8360 2007-08-23 Simon Josefsson <simon@josefsson.org>
8362 * lib/readline.c: Don't include getline.h, the prototype is now
8365 2007-08-23 Jim Meyering <jim@meyering.net>
8368 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
8369 around the funlockfile call, since funlockfile never sets errno.
8370 Don't set errno upon failed realloc.
8372 2007-08-22 Eric Blake <ebb9@byu.net>
8375 * lib/getdelim.c (getdelim): Revert regression that required *n to
8376 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
8377 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
8378 getdelim, rather than whether implementation is missing.
8379 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
8380 * lib/stdio_.h (getline): Also declare if replacement is
8382 * doc/functions/getdelim.texi: New file.
8383 * doc/functions/getline.texi: Likewise.
8384 * doc/gnulib.texi (Function Substitutes): Add new files.
8385 Reported by Bruno Haible.
8387 2007-08-22 Ludovic Courtès <ludo@gnu.org>
8389 * users.txt: Add Guile.
8391 2007-08-22 Eric Blake <ebb9@byu.net>
8393 * tests/test-getdelim.c (main): Use remove, not unlink.
8394 * tests/test-getline.c (main): Likewise.
8396 Move getline and getdelim into stdio.h, per POSIX 200x.
8397 * modules/getline (Files): Remove getline.h.
8398 (Depends-on): Add stdio.
8399 (configure.ac): Add module indicator.
8400 * modules/getdelim (Files): Remove getdelim.h.
8401 (Depends-on): Add stdio.
8402 (configure.ac): Add module indicator.
8403 * modules/stdio (Makefile.am): Work with new indicators.
8404 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
8405 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
8406 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8407 * lib/getdelim.h: Delete.
8408 * lib/getline.h: Delete.
8409 * lib/stdio_.h (getdelim, getline): Declare.
8410 * modules/getdelim-tests: New module.
8411 * modules/getline-tests: Likewise.
8412 * tests/test-getdelim.c: New file.
8413 * tests/test-getline.c: Likewise.
8414 * NEWS: Document the change.
8415 * lib/getline.c: Update choice of header.
8416 * lib/csharpcomp.c: Likewise.
8417 * lib/getpass.c: Likewise.
8418 * lib/javacomp.c: Likewise.
8419 * lib/javaversion.c: Likewise.
8420 * lib/yesno.c: Likewise.
8421 * lib/getdelim.c: Likewise.
8422 (getdelim): Set errno on failure, and avoid memory leak.
8424 2007-08-19 Bruno Haible <bruno@clisp.org>
8426 * modules/closein (Depends-on): Add freadahead.
8427 * lib/closein.c: Include freadahead.h.
8428 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
8431 2007-08-19 Bruno Haible <bruno@clisp.org>
8433 * modules/freadahead-tests: New file.
8434 * tests/test-freadahead.sh: New file.
8435 * tests/test-freadahead.c: New file.
8437 * modules/freadahead: New file.
8438 * lib/freadahead.h: New file.
8439 * lib/freadahead.c: New file.
8440 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
8441 fbufmode, fpurge, freadable, fwritable.
8443 2007-08-19 Eric Blake <ebb9@byu.net>
8445 Test yesno in combination with closein.
8446 * lib/yesno.c (yesno): Document use of stdin.
8447 * modules/yesno-tests (Files): New module.
8448 * tests/test-yesno.c (main): New file.
8449 * tests/test-yesno.sh: Likewise.
8451 2007-08-19 Bruno Haible <bruno@clisp.org>
8453 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
8454 * lib/fseeko.c (rpl_fseeko): Likewise.
8455 * lib/fseterr.c (fseterr): Likewise.
8457 2007-08-19 Bruno Haible <bruno@clisp.org>
8459 * tests/test-lseek.c (main): Disable a test for BeOS.
8460 * doc/functions/lseek.texi: Document the BeOS bug.
8462 2007-08-19 Bruno Haible <bruno@clisp.org>
8463 Eric Blake <ebb9@byu.net>
8465 * lib/lseek.c: Include <sys/stat.h>.
8466 (rpl_lseek): Add workaround code also for Unix platforms.
8468 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
8469 * doc/functions/lseek.texi: Document BeOS definiency.
8471 2007-08-18 Bruno Haible <bruno@clisp.org>
8473 * modules/fstrcmp-tests: New file.
8474 * tests/test-fstrcmp.c: New file.
8476 2007-08-18 Bruno Haible <bruno@clisp.org>
8478 * modules/fstrcmp: New file, from GNU gettext with modifications.
8479 * lib/fstrcmp.h: New file, from GNU gettext.
8480 * lib/fstrcmp.c: New file, from GNU gettext.
8481 * MODULES.html.sh (String handling): Add fstrcmp.
8483 2007-08-18 Bruno Haible <bruno@clisp.org>
8485 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
8487 (diag, compareseq): Remove const from the ctxt argument.
8488 (USE_HEURISTIC): Undefine at the end.
8490 2007-08-18 Jim Meyering <jim@meyering.net>
8492 New file: lib/idcache.h
8493 * NEWS: Mention the addition.
8494 * modules/idcache (Files): Add lib/idcache.h
8495 * lib/idcache.c: Include "idcache.h".
8496 Don't include <sys/types.h>.
8497 Add a FIXME comment.
8498 Move file-scoped "static" declarations to the top.
8499 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
8501 2007-08-17 Bruno Haible <bruno@clisp.org>
8502 and Paul Eggert <eggert@cs.ucla.edu>
8504 * MODULES.html.sh: Add diffseq.
8505 * modules/diffseq: New file.
8506 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
8507 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
8509 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
8511 Import changes from coreutils for bootstrap script.
8513 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
8515 * build-aux/bootstrap (slurp): Work even in environments where
8516 "ls" defaults to "ls -A". Put in a FIXME, though, since the
8517 current code does not slurp files whose names start with ".", and
8518 this looks like it might be a troublesome area.
8520 2007-07-11 Jim Meyering <jim@meyering.net>
8522 If there's a GPL vN copyright comment, require that N == 3.
8524 2007-07-08 Jim Meyering <jim@meyering.net>
8526 Run the coreutils-specific code only if tests/Makefile.am.in exists.
8527 * build-aux/bootstrap (mam_template): Move definition out of loop.
8529 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
8531 * build-aux/bootstrap (symlink_to_dir): Rename function from
8532 symlink_to_gnulib. Add a directory parameter. Update all
8534 (cp_mark_as_generated): Also check for -- and link to -- files in
8537 2007-07-08 Jim Meyering <jim@meyering.net>
8539 Adapt to deeper hierarchy in gnulib.
8540 * build-aux/bootstrap (symlink_to_dir): If the destination
8541 directory doesn't exist, create it. This is required at least for
8542 "lib/uniwidth/cjk.h".
8544 2007-05-15 Jim Meyering <jim@meyering.net>
8546 * build-aux/bootstrap: Now that generated Makefile.am files
8547 are no longer under version control, they must be created at
8550 2007-08-14 Ben Pfaff <blp@gnu.org>
8552 * lib/count-one-bits.h: Add comments. From Bruno Haible.
8554 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
8556 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
8557 given the changes below.
8558 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
8559 even on hosts that have padding bits beyond the supported 64.
8561 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
8563 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
8564 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
8565 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
8567 (xstrtol_error): Remove.
8568 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
8569 but with a different signature.
8570 (ATTRIBUTE_NORETURN, __attribute__): New macros.
8571 * lib/xstrtol-error.c: Include exitfail.h.
8572 (xstrtol_fatal): New function, with a different signature from the
8573 old xstrtol_error, so that the caller need not worry about passing
8574 in an exit status, or about storage management of the option argument.
8575 (xstrtol_error): Now a static function. Redo signature to
8576 implement xstrtol_fatal. Output the correct number of hyphens in
8577 front of the option so that the caller need not worry about
8580 (_): Remove; not used now.
8581 * modules/xstrtol: Depend on getopt.
8582 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
8583 of old STRTOL_FATAL_ERROR macro.
8584 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
8586 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
8587 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
8589 2007-08-08 Eric Blake <ebb9@byu.net>
8591 * lib/xstrtol-error.c: Add missing include.
8593 Move xstrtol messages into gnulib domain, when --pobase is used.
8594 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
8595 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
8596 * modules/xstrtol (Files): Distribute new file.
8597 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
8598 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
8599 * tests/test-xstrtol.c: ...into new file.
8600 * tests/test-xstrtoul.c: Also test xstrtoul.
8601 * tests/test-xstrtoimax.c: Also test xstrtoimax.
8602 * tests/test-xstrtoumax.c: Also test xstrtoumax.
8603 * tests/test-xstrtol.sh: Drive the tests.
8604 * tests/test-xstrtoimax.sh: Likewise.
8605 * tests/test-xstrtoumax.sh: Likewise.
8606 * modules/xstrtol-tests: New module.
8607 * modules/xstrtoimax-tests: Likewise.
8608 * modules/xstrtoumax-tests: Likewise.
8610 2007-08-08 Jim Meyering <jim@meyering.net>
8612 New function: mfile_name_concat.
8613 * lib/filenamecat.c (mfile_name_concat): New function, just like
8614 file_name_concat, but return NULL upon failure rather than exiting
8616 * lib/filenamecat.h: Declare it.
8618 2007-08-07 Bruno Haible <bruno@clisp.org>
8620 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
8621 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
8623 Reported by Eric Blake.
8625 2007-08-07 Simon Josefsson <simon@josefsson.org>
8627 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
8628 * modules/crypto/arcfour (License): Likewise.
8629 * modules/crypto/des-tests (License): Likewise.
8630 * modules/crypto/gc-arctwo-tests (License): Likewise.
8631 * modules/crypto/gc-des-tests (License): Likewise.
8632 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
8633 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
8634 * modules/crypto/gc-md2-tests (License): Likewise.
8635 * modules/crypto/gc-md4-tests (License): Likewise.
8636 * modules/crypto/gc-md5-tests (License): Likewise.
8637 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
8638 * modules/crypto/gc-rijndael-tests (License): Likewise.
8639 * modules/crypto/gc-sha1-tests (License): Likewise.
8640 * modules/crypto/gc-tests (License): Likewise.
8641 * modules/crypto/hmac-md5 (License): Likewise.
8642 * modules/crypto/hmac-sha1 (License): Likewise.
8643 * modules/crypto/md2-tests (License): Likewise.
8644 * modules/crypto/md4-tests (License): Likewise.
8645 * modules/crypto/md5 (License): Likewise.
8646 * modules/crypto/rijndael (License): Likewise.
8647 * modules/crypto/sha1 (License): Likewise.
8648 * modules/memxor (License): Likewise.
8650 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
8651 and Bruno Haible <bruno@clisp.org>
8653 * NEWS: Describe interface changes to human, xstrtol.
8654 * lib/human.h: Include <xstrtol.h>.
8655 (human_options): Return enum strtol_error, not int. Remove
8656 bool arg; take int * instead.
8657 * lib/human.c: Don't include "gettext.h".
8658 (_): Remove; no longer used.
8659 Don't include <xstrtol.h>, since human.h does it.
8660 (human_options): Adjust to abovementioned interface changes.
8661 Do not report error to stderr; that's now the caller's
8663 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
8665 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
8666 Str, Argument_type_string. All uses changed. Put " argument"
8667 in diagnostics to make them clearer. Change wording of suffix
8668 message for clarity.
8669 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
8670 Argument_type_string.
8671 (STRTOL_FATAL_WARN): Remove; no longer used.
8672 * modules/human (Depends-on): Remove gettext-h.
8674 2007-08-06 Simon Josefsson <simon@josefsson.org>
8676 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
8678 2007-07-31 Bruno Haible <bruno@clisp.org>
8680 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
8681 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
8682 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
8684 2007-07-31 Bruno Haible <bruno@clisp.org>
8686 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
8687 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
8689 2007-07-30 Bruno Haible <bruno@clisp.org>
8691 * modules/base64 (License): Use the synonymous term "LGPLv2+".
8692 * modules/c-ctype (License): Likewise.
8693 * modules/c-strcase (License): Likewise.
8694 * modules/check-version (License): Likewise.
8695 * modules/iconv (License): Likewise.
8696 * modules/iconv_open (License): Likewise.
8697 * modules/read-file (License): Likewise.
8698 * modules/striconv (License): Likewise.
8699 * modules/strverscmp (License): Likewise.
8700 * modules/vasprintf (License): Likewise.
8701 * modules/crypto/des (License): Likewise.
8702 * modules/crypto/gc (License): Likewise.
8703 * modules/crypto/gc-arcfour (License): Likewise.
8704 * modules/crypto/gc-arctwo (License): Likewise.
8705 * modules/crypto/gc-des (License): Likewise.
8706 * modules/crypto/gc-hmac-md5 (License): Likewise.
8707 * modules/crypto/gc-hmac-sha1 (License): Likewise.
8708 * modules/crypto/gc-md2 (License): Likewise.
8709 * modules/crypto/gc-md4 (License): Likewise.
8710 * modules/crypto/gc-md5 (License): Likewise.
8711 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
8712 * modules/crypto/gc-random (License): Likewise.
8713 * modules/crypto/gc-rijndael (License): Likewise.
8714 * modules/crypto/gc-sha1 (License): Likewise.
8715 * modules/crypto/md2 (License): Likewise.
8716 * modules/crypto/md4 (License): Likewise.
8718 2007-07-30 Jim Meyering <jim@meyering.net>
8720 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
8721 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
8722 it has valid stat data. This bug would cause du not to count the
8723 sizes of inaccessible directories.
8724 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
8725 in <http://bugzilla.redhat.com/250077>.
8727 2007-07-25 Peter O'Gorman <peter@pogma.com>
8728 Bruno Haible <bruno@clisp.org>
8730 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
8731 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
8732 #include_next, gives a diagnostic about it, but reports no error in
8734 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
8736 2007-07-24 Ben Pfaff <blp@gnu.org>
8738 Improve name: "count-one-bits" is better than "popcount".
8739 * MODULES.html.sh: Update name.
8740 * lib/popcount.h: Renamed lib/count-one-bits.h.
8741 (popcount): Renamed count_one_bits.
8742 (popcountl): Renamed count_one_bits_l.
8743 (popcountll): Renamed count_one_bits_ll.
8744 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
8745 * modules/popcount: Renamed module/count-one-bits.
8746 * modules/popcount-tests: Renamed module/count-one-bits-tests.
8747 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
8749 2007-07-23 Ben Pfaff <blp@gnu.org>
8751 * lib/popcount.h (popcount32): Reduce size of constants, to allow
8752 better code generation, and add U to large constants to avoid
8753 warnings, in non-GCC case.
8754 Suggested by Bruno Haible.
8756 2007-07-23 Ben Pfaff <blp@gnu.org>
8758 * lib/popcount.h: Use verify_true instead of if...abort.
8759 * modules/popcount: Depend on verify module.
8760 Suggested by Jim Meyering.
8762 2007-07-23 Bruno Haible <bruno@clisp.org>
8764 * gnulib-tool (func_import): Create a .cvsignore file also when the
8765 directory is not yet in CVS but the toplevel directory is. When
8766 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
8767 Reported by Karl Berry.
8769 2007-07-22 Ben Pfaff <blp@gnu.org>
8771 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
8773 Suggested by Eric Blake.
8775 2007-07-22 Ben Pfaff <blp@gnu.org>
8777 New module: popcount.
8778 * MODULES.html.sh: Add popcount.
8779 * modules/popcount: New file.
8780 * modules/popcount-tests: New file.
8781 * tests/test-popcount.c: New file.
8782 * lib/popcount.h: New file.
8783 * m4/popcount.m4: New file.
8785 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
8787 * build-aux/announce-gen: Update to GPLv3.
8789 * build-aux/config.guess: Update from config.
8791 2007-07-21 Bruno Haible <bruno@clisp.org>
8793 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
8794 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
8796 2007-07-20 Jim Meyering <jim@meyering.net>
8798 * check-module: Diagnose a self-dependency.
8800 2007-07-19 Bruno Haible <bruno@clisp.org>
8802 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
8804 Reported by Eric Blake.
8806 2007-07-18 Bruno Haible <bruno@clisp.org>
8808 * gnulib-tool: New options --po-base, --po-domain.
8809 (func_usage): Document them.
8810 (pobase, po_domain): New variables.
8811 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
8812 DEFAULT_TEXT_DOMAIN.
8813 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
8814 (func_import): Consider pobase and po_domain. Create a po/ directory.
8815 (func_create_testdir): Set pobase and po_domain to empty.
8816 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
8817 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
8819 2007-07-18 Bruno Haible <bruno@clisp.org>
8821 * gnulib-tool (func_get_automake_snippet): Synthesize also an
8822 EXTRA_DIST augmentation for files in build-aux/.
8824 2007-07-16 Bruno Haible <bruno@clisp.org>
8826 * modules/lseek (License): Use the synonymous term "LGPLv2+".
8827 * modules/getdelim (License): Likewise.
8829 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
8831 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
8832 * modules/d-type (License): Likewise.
8833 * modules/extensions (License): Likewise.
8834 * modules/fnmatch (License): Likewise.
8835 * modules/fseeko (License): Likewise.
8836 * modules/getaddrinfo (License): Likewise.
8837 * modules/getline (License): Likewise.
8838 * modules/getlogin_r (License): Likewise.
8839 * modules/getpass (License): Likewise.
8840 * modules/gettimeofday (License): Likewise.
8841 * modules/glob (License): Likewise.
8842 * modules/inet_ntop (License): Likewise.
8843 * modules/malloc (License): Likewise.
8844 * modules/malloca (License): Likewise.
8845 * modules/memmem (License): Likewise.
8846 * modules/mempcpy (License): Likewise.
8847 * modules/memset (License): Likewise.
8848 * modules/minmax (License): Likewise.
8849 * modules/mktime (License): Likewise.
8850 * modules/netinet_in (License): Likewise.
8851 * modules/pathmax (License): Likewise.
8852 * modules/poll (License): Likewise.
8853 * modules/regex (License): Likewise.
8854 * modules/snprintf (License): Likewise.
8855 * modules/stdbool (License): Likewise.
8856 * modules/stdint (License): Likewise.
8857 * modules/stdio (License): Likewise.
8858 * modules/strcase (License): Likewise.
8859 * modules/strcasestr (License): Likewise.
8860 * modules/strdup (License): Likewise.
8861 * modules/string (License): Likewise.
8862 * modules/strndup (License): Likewise.
8863 * modules/strnlen (License): Likewise.
8864 * modules/strpbrk (License): Likewise.
8865 * modules/strptime (License): Likewise.
8866 * modules/strsep (License): Likewise.
8867 * modules/sys_select (License): Likewise.
8868 * modules/sys_socket (License): Likewise.
8869 * modules/sys_stat (License): Likewise.
8870 * modules/sys_time (License): Likewise.
8871 * modules/time (License): Likewise.
8872 * modules/time_r (License): Likewise.
8873 * modules/timegm (License): Likewise.
8874 * modules/unistd (License): Likewise.
8875 * modules/vsnprintf (License): Likewise.
8876 * modules/wctype (License): Likewise.
8878 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8880 * modules/argz (License): LGPLv2+.
8882 2007-07-15 Karl Berry <karl@gnu.org>
8884 * doc/gnulib.texi: revise node structure per new fdl.texi.
8886 2007-07-14 Bruno Haible <bruno@clisp.org>
8888 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
8890 * lib/uniname/uninames.h: Regenerated.
8892 2007-07-14 Karl Berry <karl@gnu.org>
8894 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
8895 omitting sectioning and index commands.
8897 2007-07-13 Bruno Haible <bruno@clisp.org>
8899 New gnulib-tool option --more-symlinks.
8900 * gnulib-tool (func_usage): Document --more-symlinks.
8901 (do_copyrights): New variable.
8902 Recognize option --more-symlinks.
8903 (func_import): Don't add a copyright notice transform to
8904 sed_transform_lib_file if do_copyrights is empty.
8906 2007-07-13 Bruno Haible <bruno@clisp.org>
8908 * lib/vasnprintf.c (decimal_point_char): Define also if
8909 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
8910 && !NEED_PRINTF_DIRECTIVE_A.
8911 Reported by Clemens Koller <clemens.koller@anagramm.de> via
8912 Gary V. Vaughan <gary@gnu.org>.
8914 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
8916 * lib/inttypes_.h: Undo previous change, since it was fixed
8917 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
8919 2007-07-13 Bruno Haible <bruno@clisp.org>
8921 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
8922 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
8924 2007-07-13 Jim Meyering <jim@meyering.net>
8926 df: Don't fail for Tru64's "file-on-file mount".
8927 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
8928 so we fall through and use statfs instead. Details here:
8929 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
8930 Reported by Albert Chin.
8932 2007-07-13 Bruno Haible <bruno@clisp.org>
8934 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
8935 * modules/configmake (License): Likewise.
8936 * modules/gettext (License): Likewise.
8937 * modules/gettext-h (License): Likewise.
8938 * modules/include_next (License): Likewise.
8939 * modules/link-warning (License): Likewise.
8940 * modules/localcharset (License): Likewise.
8941 * modules/localename (License): Likewise.
8942 * modules/lock (License): Likewise.
8943 * modules/relocatable-lib-lgpl (License): Likewise.
8944 * modules/size_max (License): Likewise.
8945 * modules/vasnprintf (License): Likewise.
8946 * modules/wchar (License): Likewise.
8947 * modules/xsize (License): Likewise.
8949 2007-07-13 Bruno Haible <bruno@clisp.org>
8951 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
8952 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
8954 2007-07-12 Bruno Haible <bruno@clisp.org>
8956 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
8957 in the modules files.
8959 2007-07-11 Karl Berry <karl@gnu.org>
8961 * MODULES.html.sh (func_module): use
8962 sed -e '\|^'"${includefile}"'$|d'
8963 instead of /.../d, to avoid errors on $includefile's containing /.
8965 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
8967 * gnulib-tool (func_import): Avoid duplication of --avoid
8969 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
8970 names to `_' in variable names.
8972 2007-07-10 Eric Blake <ebb9@byu.net>
8974 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
8975 * NEWS: Document this change.
8977 2007-07-08 Bruno Haible <bruno@clisp.org>
8979 Update to Unicode 5.0.
8980 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
8981 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
8982 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
8983 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
8984 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
8985 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
8986 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
8987 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
8988 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
8989 U+10A3F, U+1D242..U+1D244.
8990 (nonspacing_table_ind): Update.
8991 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
8992 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
8994 2007-07-08 Bruno Haible <bruno@clisp.org>
8996 Update to Unicode 5.0.
8997 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
8998 code transform. Extend the name index field of unicode_name_to_code and
8999 unicode_code_to_name from 16 to 24 bits.
9000 * lib/uniname/uniname.c (unicode_character_name,
9001 unicode_name_character): Add the range 0x12xxx to the code transform.
9002 * lib/uniname/uninames.h: Regenerated.
9003 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
9005 2007-07-07 Bruno Haible <bruno@clisp.org>
9007 * modules/wcwidth-tests: New file.
9008 * tests/test-wcwidth.c: New file.
9010 Work around MacOS X wcwidth() bug.
9011 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
9012 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
9013 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
9014 original wcwidth in non-UTF-8 locales.
9015 * modules/wcwidth (Depends-on): Add localcharset, streq,
9017 * doc/functions/wcwidth.texi: Update.
9019 2007-07-07 Bruno Haible <bruno@clisp.org>
9021 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
9022 (wcwidth): New declaration.
9023 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
9025 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
9026 here. Prepare for creating <wchar.h> unconditionally.
9027 * modules/wchar (Depends-on): Add link-warning.
9028 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
9029 REPLACE_WCWIDTH, and GL_LINK_WARNING.
9030 * lib/wcwidth.h: Remove file.
9031 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
9032 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
9033 * modules/wcwidth (Files): Remove lib/wcwidth.h.
9034 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
9035 (Include): Replace wcwidth.h with <wchar.h>.
9036 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
9037 * lib/mbchar.h: Don't include wcwidth.h.
9038 * lib/mbswidth.c: Likewise.
9039 * NEWS: Mention the change.
9041 2007-07-07 Bruno Haible <bruno@clisp.org>
9043 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
9044 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
9045 definition with an external declaration.
9046 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
9047 defined as a function. Remove AC_C_INLINE requirement.
9048 * modules/wcwidth (Files): Add lib/wcwidth.c.
9049 (Makefile.am): Remove redundant statement.
9051 2007-07-07 Bruno Haible <bruno@clisp.org>
9053 * MODULES.html.sh (Unicode string functions): Add the new modules.
9055 * tests/uniwidth/test-u32-strwidth.c: New file.
9056 * modules/uniwidth/u32-strwidth-tests: New file.
9058 * lib/uniwidth/u32-strwidth.c: New file.
9059 * modules/uniwidth/u32-strwidth: New file.
9061 * tests/uniwidth/test-u16-strwidth.c: New file.
9062 * modules/uniwidth/u16-strwidth-tests: New file.
9064 * lib/uniwidth/u16-strwidth.c: New file.
9065 * modules/uniwidth/u16-strwidth: New file.
9067 * tests/uniwidth/test-u8-strwidth.c: New file.
9068 * modules/uniwidth/u8-strwidth-tests: New file.
9070 * lib/uniwidth/u8-strwidth.c: New file.
9071 * modules/uniwidth/u8-strwidth: New file.
9073 * tests/uniwidth/test-u32-width.c: New file.
9074 * modules/uniwidth/u32-width-tests: New file.
9076 * lib/uniwidth/u32-width.c: New file.
9077 * modules/uniwidth/u32-width: New file.
9079 * tests/uniwidth/test-u16-width.c: New file.
9080 * modules/uniwidth/u16-width-tests: New file.
9082 * lib/uniwidth/u16-width.c: New file.
9083 * modules/uniwidth/u16-width: New file.
9085 * tests/uniwidth/test-u8-width.c: New file.
9086 * modules/uniwidth/u8-width-tests: New file.
9088 * lib/uniwidth/u8-width.c: New file.
9089 * modules/uniwidth/u8-width: New file.
9091 * tests/uniwidth/test-uc_width.c: New file.
9092 * modules/uniwidth/width-tests: New file.
9094 * lib/uniwidth/width.c: New file, from GNU libiconv.
9095 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
9096 * modules/uniwidth/width: New file.
9098 * lib/uniwidth.h: New file, from GNU libiconv.
9099 * modules/uniwidth/base: New file.
9101 2007-07-07 Bruno Haible <bruno@clisp.org>
9103 * lib/uniname.h: New file, from GNU gettext.
9104 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
9105 * lib/uniname/uninames.h: New file, from GNU gettext.
9106 * lib/uniname/uniname.c: New file, from GNU gettext.
9107 * tests/uniname/test-uninames.sh: New file.
9108 * tests/uniname/test-uninames.c: New file, from GNU gettext.
9109 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
9110 * modules/uniname/base: New file.
9111 * modules/uniname/uniname: New file.
9112 * modules/uniname/uniname-tests: New file.
9113 * MODULES.html.sh (Unicode string functions): Add the new modules.
9115 2007-07-06 Bruno Haible <bruno@clisp.org>
9117 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
9119 2007-07-06 Bruno Haible <bruno@clisp.org>
9121 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
9122 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
9123 includes <cygwin/sys_time.h> which includes <sys/select.h> which
9124 include <sys/time.h>.
9125 Reported by Eric Blake.
9127 2007-07-06 Eric Blake <ebb9@byu.net>
9129 Fix testing canonicalize on cygwin.
9130 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
9131 Revert patch from 2007-06-19.
9132 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
9133 canonicalize module is also in use.
9134 * tests/test-canonicalize.c: New file.
9135 * tests/test-canonicalize.sh: Likewise.
9136 * modules/canonicalize-tests: Likewise.
9138 2007-07-06 Jim Meyering <jim@meyering.net>
9140 * lib/getugroups.c (getugroups): Detect getgrent failure.
9141 Adjust comment to reflect reality: this function may return -1.
9143 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
9145 * build-aux/bootstrap (TP_URL,get_translations): Update to use
9148 (gnulib_mk): New variable.
9150 2007-07-05 Jim Meyering <jim@meyering.net>
9152 Don't let endgrent clobber errno, no matter how improbable.
9153 * lib/getugroups.c (getugroups): Save and restore errno around
9156 Close the group DB even when failing with 2^31 or more members.
9157 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
9159 2007-07-04 Jim Meyering <jim@meyering.net>
9161 * lib/getugroups.h: New file.
9162 * lib/getugroups.c: Include "getugroups.h".
9163 Remove uses of "register" keyword.
9164 Move local variable, "cp", down into scope where used.
9165 Give "username" parameter the "const" attribute.
9166 * modules/getugroups (Files): Add lib/getugroups.h
9168 2007-07-04 Karl Berry <karl@gnu.org>
9170 * MODULES.html.sh (func_all_modules): Complete rename of
9171 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
9173 2007-07-02 Bruno Haible <bruno@clisp.org>
9175 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
9176 mode, when inttypes.h comes from gnulib.
9177 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
9179 2007-07-02 Simon Josefsson <simon@josefsson.org>
9181 * NEWS: Mention lgpl module name change.
9183 * modules/lgpl-2.1: Renamed from lgpl.
9185 * NEWS: Mention gpl module name change.
9187 * modules/gpl-3.0: New file, based on gpl-2.0.
9189 * modules/gpl-2.0: Renamed from gpl.
9191 * modules/gpl: Fix filename, doc/gpl.texi is now found at
9194 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
9196 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
9197 #define __STDC_LIMIT_MACROS temporarily while including
9198 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
9199 Problem reported by Joel E. Denny in
9200 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
9202 2007-07-01 Bruno Haible <bruno@clisp.org>
9204 * lib/unistdio.h: New file.
9205 * lib/unistdio/u-asnprintf.h: New file.
9206 * lib/unistdio/u-asprintf.h: New file.
9207 * lib/unistdio/u-printf-args.c: New file.
9208 * lib/unistdio/u-printf-args.h: New file.
9209 * lib/unistdio/u-printf-parse.h: New file.
9210 * lib/unistdio/u-snprintf.h: New file.
9211 * lib/unistdio/u-sprintf.h: New file.
9212 * lib/unistdio/u-vasprintf.h: New file.
9213 * lib/unistdio/u-vsnprintf.h: New file.
9214 * lib/unistdio/u-vsprintf.h: New file.
9215 * lib/unistdio/ulc-asnprintf.c: New file.
9216 * lib/unistdio/ulc-asprintf.c: New file.
9217 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
9218 * lib/unistdio/ulc-printf-parse.c: New file.
9219 * lib/unistdio/ulc-snprintf.c: New file.
9220 * lib/unistdio/ulc-sprintf.c: New file.
9221 * lib/unistdio/ulc-vasnprintf.c: New file.
9222 * lib/unistdio/ulc-vasprintf.c: New file.
9223 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
9224 * lib/unistdio/ulc-vsnprintf.c: New file.
9225 * lib/unistdio/ulc-vsprintf.c: New file.
9226 * lib/unistdio/u8-asnprintf.c: New file.
9227 * lib/unistdio/u8-asprintf.c: New file.
9228 * lib/unistdio/u8-printf-parse.c: New file.
9229 * lib/unistdio/u8-snprintf.c: New file.
9230 * lib/unistdio/u8-sprintf.c: New file.
9231 * lib/unistdio/u8-vasnprintf.c: New file.
9232 * lib/unistdio/u8-vasprintf.c: New file.
9233 * lib/unistdio/u8-vsnprintf.c: New file.
9234 * lib/unistdio/u8-vsprintf.c: New file.
9235 * lib/unistdio/u8-u8-asnprintf.c: New file.
9236 * lib/unistdio/u8-u8-asprintf.c: New file.
9237 * lib/unistdio/u8-u8-snprintf.c: New file.
9238 * lib/unistdio/u8-u8-sprintf.c: New file.
9239 * lib/unistdio/u8-u8-vasnprintf.c: New file.
9240 * lib/unistdio/u8-u8-vasprintf.c: New file.
9241 * lib/unistdio/u8-u8-vsnprintf.c: New file.
9242 * lib/unistdio/u8-u8-vsprintf.c: New file.
9243 * lib/unistdio/u16-asnprintf.c: New file.
9244 * lib/unistdio/u16-asprintf.c: New file.
9245 * lib/unistdio/u16-printf-parse.c: New file.
9246 * lib/unistdio/u16-snprintf.c: New file.
9247 * lib/unistdio/u16-sprintf.c: New file.
9248 * lib/unistdio/u16-vasnprintf.c: New file.
9249 * lib/unistdio/u16-vasprintf.c: New file.
9250 * lib/unistdio/u16-vsnprintf.c: New file.
9251 * lib/unistdio/u16-vsprintf.c: New file.
9252 * lib/unistdio/u16-u16-asnprintf.c: New file.
9253 * lib/unistdio/u16-u16-asprintf.c: New file.
9254 * lib/unistdio/u16-u16-snprintf.c: New file.
9255 * lib/unistdio/u16-u16-sprintf.c: New file.
9256 * lib/unistdio/u16-u16-vasnprintf.c: New file.
9257 * lib/unistdio/u16-u16-vasprintf.c: New file.
9258 * lib/unistdio/u16-u16-vsnprintf.c: New file.
9259 * lib/unistdio/u16-u16-vsprintf.c: New file.
9260 * lib/unistdio/u32-asnprintf.c: New file.
9261 * lib/unistdio/u32-asprintf.c: New file.
9262 * lib/unistdio/u32-printf-parse.c: New file.
9263 * lib/unistdio/u32-snprintf.c: New file.
9264 * lib/unistdio/u32-sprintf.c: New file.
9265 * lib/unistdio/u32-vasnprintf.c: New file.
9266 * lib/unistdio/u32-vasprintf.c: New file.
9267 * lib/unistdio/u32-vsnprintf.c: New file.
9268 * lib/unistdio/u32-vsprintf.c: New file.
9269 * lib/unistdio/u32-u32-asnprintf.c: New file.
9270 * lib/unistdio/u32-u32-asprintf.c: New file.
9271 * lib/unistdio/u32-u32-snprintf.c: New file.
9272 * lib/unistdio/u32-u32-sprintf.c: New file.
9273 * lib/unistdio/u32-u32-vasnprintf.c: New file.
9274 * lib/unistdio/u32-u32-vasprintf.c: New file.
9275 * lib/unistdio/u32-u32-vsnprintf.c: New file.
9276 * lib/unistdio/u32-u32-vsprintf.c: New file.
9277 * tests/unistdio/test-ulc-asnprintf1.c: New file.
9278 * tests/unistdio/test-ulc-asnprintf1.h: New file.
9279 * tests/unistdio/test-ulc-printf1.h: New file.
9280 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
9281 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
9282 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
9283 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
9284 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
9285 * tests/unistdio/test-ulc-vasprintf1.c: New file.
9286 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
9287 * tests/unistdio/test-ulc-vsprintf1.c: New file.
9288 * tests/unistdio/test-u8-asnprintf1.c: New file.
9289 * tests/unistdio/test-u8-asnprintf1.h: New file.
9290 * tests/unistdio/test-u8-printf1.h: New file.
9291 * tests/unistdio/test-u8-vasnprintf1.c: New file.
9292 * tests/unistdio/test-u8-vasnprintf2.c: New file.
9293 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
9294 * tests/unistdio/test-u8-vasnprintf3.c: New file.
9295 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
9296 * tests/unistdio/test-u8-vasprintf1.c: New file.
9297 * tests/unistdio/test-u8-vsnprintf1.c: New file.
9298 * tests/unistdio/test-u8-vsprintf1.c: New file.
9299 * tests/unistdio/test-u16-asnprintf1.c: New file.
9300 * tests/unistdio/test-u16-asnprintf1.h: New file.
9301 * tests/unistdio/test-u16-printf1.h: New file.
9302 * tests/unistdio/test-u16-vasnprintf1.c: New file.
9303 * tests/unistdio/test-u16-vasnprintf2.c: New file.
9304 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
9305 * tests/unistdio/test-u16-vasnprintf3.c: New file.
9306 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
9307 * tests/unistdio/test-u16-vasprintf1.c: New file.
9308 * tests/unistdio/test-u16-vsnprintf1.c: New file.
9309 * tests/unistdio/test-u16-vsprintf1.c: New file.
9310 * tests/unistdio/test-u32-asnprintf1.c: New file.
9311 * tests/unistdio/test-u32-asnprintf1.h: New file.
9312 * tests/unistdio/test-u32-printf1.h: New file.
9313 * tests/unistdio/test-u32-vasnprintf1.c: New file.
9314 * tests/unistdio/test-u32-vasnprintf2.c: New file.
9315 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
9316 * tests/unistdio/test-u32-vasnprintf3.c: New file.
9317 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
9318 * tests/unistdio/test-u32-vasprintf1.c: New file.
9319 * tests/unistdio/test-u32-vsnprintf1.c: New file.
9320 * tests/unistdio/test-u32-vsprintf1.c: New file.
9321 * modules/unistdio/base: New file.
9322 * modules/unistdio/u-printf-args: New file.
9323 * modules/unistdio/ulc-asnprintf: New file.
9324 * modules/unistdio/ulc-asprintf: New file.
9325 * modules/unistdio/ulc-fprintf: New file.
9326 * modules/unistdio/ulc-printf-parse: New file.
9327 * modules/unistdio/ulc-snprintf: New file.
9328 * modules/unistdio/ulc-sprintf: New file.
9329 * modules/unistdio/ulc-vasnprintf: New file.
9330 * modules/unistdio/ulc-vasprintf: New file.
9331 * modules/unistdio/ulc-vfprintf: New file.
9332 * modules/unistdio/ulc-vsnprintf: New file.
9333 * modules/unistdio/ulc-vsprintf: New file.
9334 * modules/unistdio/u8-asnprintf: New file.
9335 * modules/unistdio/u8-asprintf: New file.
9336 * modules/unistdio/u8-printf-parse: New file.
9337 * modules/unistdio/u8-snprintf: New file.
9338 * modules/unistdio/u8-sprintf: New file.
9339 * modules/unistdio/u8-vasnprintf: New file.
9340 * modules/unistdio/u8-vasprintf: New file.
9341 * modules/unistdio/u8-vsnprintf: New file.
9342 * modules/unistdio/u8-vsprintf: New file.
9343 * modules/unistdio/u8-u8-asnprintf: New file.
9344 * modules/unistdio/u8-u8-asprintf: New file.
9345 * modules/unistdio/u8-u8-snprintf: New file.
9346 * modules/unistdio/u8-u8-sprintf: New file.
9347 * modules/unistdio/u8-u8-vasnprintf: New file.
9348 * modules/unistdio/u8-u8-vasprintf: New file.
9349 * modules/unistdio/u8-u8-vsnprintf: New file.
9350 * modules/unistdio/u8-u8-vsprintf: New file.
9351 * modules/unistdio/u16-asnprintf: New file.
9352 * modules/unistdio/u16-asprintf: New file.
9353 * modules/unistdio/u16-printf-parse: New file.
9354 * modules/unistdio/u16-snprintf: New file.
9355 * modules/unistdio/u16-sprintf: New file.
9356 * modules/unistdio/u16-vasnprintf: New file.
9357 * modules/unistdio/u16-vasprintf: New file.
9358 * modules/unistdio/u16-vsnprintf: New file.
9359 * modules/unistdio/u16-vsprintf: New file.
9360 * modules/unistdio/u16-u16-asnprintf: New file.
9361 * modules/unistdio/u16-u16-asprintf: New file.
9362 * modules/unistdio/u16-u16-snprintf: New file.
9363 * modules/unistdio/u16-u16-sprintf: New file.
9364 * modules/unistdio/u16-u16-vasnprintf: New file.
9365 * modules/unistdio/u16-u16-vasprintf: New file.
9366 * modules/unistdio/u16-u16-vsnprintf: New file.
9367 * modules/unistdio/u16-u16-vsprintf: New file.
9368 * modules/unistdio/u32-asnprintf: New file.
9369 * modules/unistdio/u32-asprintf: New file.
9370 * modules/unistdio/u32-printf-parse: New file.
9371 * modules/unistdio/u32-snprintf: New file.
9372 * modules/unistdio/u32-sprintf: New file.
9373 * modules/unistdio/u32-vasnprintf: New file.
9374 * modules/unistdio/u32-vasprintf: New file.
9375 * modules/unistdio/u32-vsnprintf: New file.
9376 * modules/unistdio/u32-vsprintf: New file.
9377 * modules/unistdio/u32-u32-asnprintf: New file.
9378 * modules/unistdio/u32-u32-asprintf: New file.
9379 * modules/unistdio/u32-u32-snprintf: New file.
9380 * modules/unistdio/u32-u32-sprintf: New file.
9381 * modules/unistdio/u32-u32-vasnprintf: New file.
9382 * modules/unistdio/u32-u32-vasprintf: New file.
9383 * modules/unistdio/u32-u32-vsnprintf: New file.
9384 * modules/unistdio/u32-u32-vsprintf: New file.
9385 * modules/unistdio/ulc-asnprintf-tests: New file.
9386 * modules/unistdio/ulc-vasnprintf-tests: New file.
9387 * modules/unistdio/ulc-vasprintf-tests: New file.
9388 * modules/unistdio/ulc-vsnprintf-tests: New file.
9389 * modules/unistdio/ulc-vsprintf-tests: New file.
9390 * modules/unistdio/u8-asnprintf-tests: New file.
9391 * modules/unistdio/u8-vasnprintf-tests: New file.
9392 * modules/unistdio/u8-vasprintf-tests: New file.
9393 * modules/unistdio/u8-vsnprintf-tests: New file.
9394 * modules/unistdio/u8-vsprintf-tests: New file.
9395 * modules/unistdio/u16-asnprintf-tests: New file.
9396 * modules/unistdio/u16-vasnprintf-tests: New file.
9397 * modules/unistdio/u16-vasprintf-tests: New file.
9398 * modules/unistdio/u16-vsnprintf-tests: New file.
9399 * modules/unistdio/u16-vsprintf-tests: New file.
9400 * modules/unistdio/u32-asnprintf-tests: New file.
9401 * modules/unistdio/u32-vasnprintf-tests: New file.
9402 * modules/unistdio/u32-vasprintf-tests: New file.
9403 * modules/unistdio/u32-vsnprintf-tests: New file.
9404 * modules/unistdio/u32-vsprintf-tests: New file.
9405 * MODULES.html.sh (Unicode string functions): Add the new modules.
9407 2007-07-01 Bruno Haible <bruno@clisp.org>
9409 * lib/sprintf.c (sprintf): Limit the available length estimation,
9410 to avoid address wraparound.
9411 * lib/vsprintf.c (vsprintf): Likewise.
9412 * modules/sprintf-posix (Dependencies): Add stdint.
9413 * modules/vsprintf-posix (Dependencies): Likewise.
9415 2007-07-01 Bruno Haible <bruno@clisp.org>
9417 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
9418 Windows PATH as well. Conservative double-quoting. Comments.
9420 2007-07-01 Bruno Haible <bruno@clisp.org>
9421 Eric Blake <ebb9@byu.net>
9422 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9424 * gnulib-tool (self_abspathname): Fix algorithm to cope with
9425 empty components in $PATH, denoting '.'.
9427 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9429 * gnulib-tool: Fix indentation.
9430 (func_create_megatestdir): Likewise.
9431 Report by Bruno Haible.
9433 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9436 * build-aux/gnupload: Fix shell portability issues with for loops.
9437 Report by Karl Berry.
9439 2007-06-29 Simon Josefsson <simon@josefsson.org>
9441 * build-aux/maint.mk (POURL): Use translationproject.org.
9443 2007-06-27 Simon Josefsson <simon@josefsson.org>
9444 Bruno Haible <bruno@clisp.org>
9446 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
9447 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
9448 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
9449 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
9450 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
9452 2007-06-27 Bruno Haible <bruno@clisp.org>
9454 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
9455 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
9457 2007-06-26 Karl Berry <karl@gnu.org>
9459 * MODULES.html.sh: remove xreadlink-with-size.
9461 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
9463 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
9464 method that I hope also handles the double-include problem noted
9466 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
9468 2007-06-23 Bruno Haible <bruno@clisp.org>
9470 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9471 Don't let the 'mostlyclean' target fail if the last subdirectory could
9473 Reported by Karl Berry.
9475 2007-06-23 Bruno Haible <bruno@clisp.org>
9477 * gnulib-tool (echo): Add a speedier workaround for ksh.
9478 * tests/test-echo.sh: Likewise.
9480 2007-06-23 Bruno Haible <bruno@clisp.org>
9482 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
9483 * tests/test-echo.sh: Likewise.
9485 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9487 * gnulib-tool (IFS): Initialize early, so we don't set it to
9489 (self_abspathname): Rewrite algorithm to set it, reindent.
9490 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
9491 (func_create_megatestdir): Merge some sed scripts.
9493 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
9495 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
9496 exposed by Sun Studio 11 cc on Solaris 8.
9498 2007-06-22 Bruno Haible <bruno@clisp.org>
9500 * gnulib-tool (echo): Ensure the echo primitive does not interpret
9502 * tests/test-echo.sh: New file.
9504 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9506 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
9507 simplify `sed_replace_build_aux' scripts, they are portable but
9508 echoing them with `echo' is not.
9509 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
9511 2007-06-21 Karl Berry <karl@gnu.org>
9513 * config/srclist.txt: guess we can't handle the licenses via
9514 srclist at the moment.
9516 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
9518 * MODULES.html.sh: Add include_next.
9519 * modules/include_next: New file.
9521 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
9523 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
9525 (gl_CHECK_NEXT_HEADERS): New macro.
9526 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
9527 the obsolescent gl_ABSOLUTE_HEADER.
9528 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
9529 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
9530 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
9531 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9532 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
9533 * m4/math_h.m4 (gl_MATH_H): Likewise.
9534 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
9535 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9536 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9537 * m4/stdint.m4 (gl_STDINT_H): Likewise.
9538 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
9539 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
9540 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
9541 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9542 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9543 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9544 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
9545 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
9546 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
9547 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9548 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
9549 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
9550 * m4/inttypes.m4 (gl_INTTYPES_H): Define
9551 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
9552 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
9553 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
9554 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
9555 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
9556 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
9557 * lib/float_.h: Likewise.
9558 * lib/inttypes_.h: Likewise.
9559 * lib/math_.h: Likewise.
9560 * lib/search_.h: Likewise.
9561 * lib/signal_.h: Likewise.
9562 * lib/stdint_.h: Likewise.
9563 * lib/stdio_.h: Likewise.
9564 * lib/stdlib_.h: Likewise.
9565 * lib/string_.h: Likewise.
9566 * lib/sys_stat_.h: Likewise.
9567 * lib/sys_time_.h: Likewise.
9568 * lib/time_.h: Likewise.
9569 * lib/unistd_.h: Likewise.
9570 * lib/wchar_.h: Likewise.
9571 * lib/wctype_.h: Likewise.
9572 * lib/dirent_.h: Likewise.
9573 * lib/iconv_.h: Likewise.
9574 * lib/locale_.h: Likewise.
9575 * lib/netinet_in_.h: Likewise.
9576 * lib/sys_select_.h: Likewise.
9577 * lib/sys_socket_.h: Likewise.
9578 * lib/sysexits_.h: Likewise.
9579 * modules/fcntl (Depends-on): Depend on include_next, not
9581 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
9582 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
9583 * modules/fchdir: Likewise.
9584 * modules/float: Likewise.
9585 * modules/iconv_open: Likewise.
9586 * modules/inttypes: Likewise.
9587 * modules/locale: Likewise.
9588 * modules/math: Likewise.
9589 * modules/netinet_in: Likewise.
9590 * modules/search: Likewise.
9591 * modules/signal: Likewise.
9592 * modules/stdint: Likewise.
9593 * modules/stdio: Likewise.
9594 * modules/stdlib: Likewise.
9595 * modules/string: Likewise.
9596 * modules/sys_select: Likewise.
9597 * modules/sys_socket: Likewise.
9598 * modules/sys_stat: Likewise.
9599 * modules/sys_time: Likewise.
9600 * modules/sysexits: Likewise.
9601 * modules/time: Likewise.
9602 * modules/unistd: Likewise.
9603 * modules/wchar: Likewise.
9604 * modules/wctype: Likewise.
9605 * modules/sys_stat: Change maintainer to "all".
9606 * modules/unistd: Likewise.
9608 2007-06-20 Karl Berry <karl@gnu.org>
9610 * config/srclist.txt: track www changes in license files.
9612 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
9614 * build-aux/bootstrap: Remove stray dot.
9615 Make sure build_aux settings are honored when linking
9618 2007-06-19 Eric Blake <ebb9@byu.net>
9620 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
9621 Allow compilation on cygwin.
9623 2007-06-19 Jim Meyering <jim@meyering.net>
9625 xreadlink-with-size: Remove module. No longer used.
9626 Ex-callers now use xreadlink or mreadlink-with-size.
9627 * modules/xreadlink-with-size: Remove module.
9628 * lib/xreadlink-with-size.c: Remove file.
9629 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
9630 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
9631 just before the function definition *is* accurate.
9633 Eliminate one way canonicalize_filename_mode could exit.
9634 * lib/canonicalize.c (canonicalize_filename_mode):
9635 Use mreadlink_with_size, not xreadlink_with_size.
9637 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
9639 Detect porting problems to FreeBSD/arm, which has time_t wider than
9640 long int. Original problem reported for GNU diff by Xin Li in
9641 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
9642 * modules/getdate (Depends-on): Add intprops, verify.
9643 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
9644 is an integer type no wider than long int.
9646 2007-06-18 Jim Meyering <jim@meyering.net>
9648 New module: mreadlink-with-size.
9649 * MODULES.html.sh: Add mreadlink-with-size.
9650 * modules/mreadlink-with-size: New module
9651 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
9652 not xreadlink-with-size.
9653 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
9655 2007-06-16 Bruno Haible <bruno@clisp.org>
9657 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
9658 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
9659 Reported by Gary V. Vaughan <gary@gnu.org>.
9661 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
9663 Revamp lchown so that it lives in unistd.h where it belongs.
9664 * lib/lchown.h: Remove.
9665 * lib/dirchownmod.c: Don't include lib/lchown.h.
9666 * lib/fchownat.c: Likewise.
9667 * lib/openat.c: Likewise.
9668 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
9669 does not follow symlinks.
9670 (EOPNOTSUPP): Define if not defined.
9671 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
9674 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
9675 Do not check for lchown decl.
9677 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
9679 * modules/chown: Make it clear it follows symlinks.
9680 * modules/lchown: Make it clear it doesn't follow symlinks.
9681 (Files): Remove lib/lchown.h
9682 (Depends-on): Add unistd.
9683 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
9684 (Include): Include <unistd.h>, not "lchown.h".
9685 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
9688 2007-06-15 Jim Meyering <jim@meyering.net>
9690 Change license (GPL to LGPL) of fsusage and dependents.
9691 * modules/fsusage (License): Change to LGPL.
9692 * modules/full-read (License): Likewise.
9693 * modules/full-write (License): Likewise.
9694 * modules/safe-read (License): Likewise.
9695 * modules/safe-write (License): Likewise.
9697 2007-06-14 Ben Pfaff <blp@gnu.org>
9699 Missing part of allocsa -> malloca transition.
9700 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
9703 2007-06-12 Bruno Haible <bruno@clisp.org>
9705 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
9706 to ia64, x86_64, i386.
9707 Reported by Eric Blake.
9709 2007-06-12 Bruno Haible <bruno@clisp.org>
9711 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
9712 cross-compiling to x86_64.
9714 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
9716 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
9717 glitch reported by Ralf Wildenhues in
9718 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
9720 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
9723 2007-06-11 Bruno Haible <bruno@clisp.org>
9725 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
9727 Reported by Eric Blake.
9729 2007-06-10 Bruno Haible <bruno@clisp.org>
9731 Prepare vasnprintf code for use with Unicode strings.
9732 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
9733 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
9735 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
9736 a_u32_string variants.
9737 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
9738 * lib/printf-args.c: Don't include config.h and the specification
9739 header if PRINTF_FETCHARGS is already defined.
9740 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
9741 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
9742 TYPE_U16_STRING, TYPE_U32_STRING.
9743 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
9744 u16_directive, u16_directives, u32_directive, u32_directives): New
9746 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
9748 * lib/printf-parse.c: Don't include config.h and the specification
9749 header if PRINTF_PARSE is already defined. Eliminate the set of
9750 parameters for WIDE_CHAR_VERSION; the user of this file must provide
9751 them now. Include c-ctype.h.
9752 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
9753 directive and CHAR_T_ONLY_ASCII.
9754 * lib/vasnprintf.c: Don't include config.h and the specification header
9755 if VASNPRINTF is already defined.
9756 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
9757 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
9758 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
9759 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
9760 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
9761 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
9763 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
9764 pad_ourselves also in this case, with the 'c' and 's' directives, and
9765 with a different notion of "width".
9766 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
9768 2007-06-10 Bruno Haible <bruno@clisp.org>
9770 * modules/unistr/u32-mbsnlen: New file.
9771 * lib/unistr/u32-mbsnlen.c: New file.
9773 * modules/unistr/u16-mbsnlen: New file.
9774 * lib/unistr/u16-mbsnlen.c: New file.
9776 * modules/unistr/u8-mbsnlen: New file.
9777 * lib/unistr/u8-mbsnlen.c: New file.
9779 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
9782 2007-06-10 Bruno Haible <bruno@clisp.org>
9784 * lib/string_.h (mbsnlen): New declaration.
9785 * lib/mbsnlen.c: New file.
9786 * m4/mbsnlen.m4: New file.
9787 * modules/mbsnlen: New file.
9788 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
9789 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
9790 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
9792 2007-06-10 Bruno Haible <bruno@clisp.org>
9794 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
9796 2007-06-10 Bruno Haible <bruno@clisp.org>
9798 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
9799 * lib/mbuiter.h: Likewise.
9801 2007-06-10 Bruno Haible <bruno@clisp.org>
9803 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
9806 2007-06-10 Karl Berry <karl@gnu.org>
9808 * config/srclist.txt: remove gettext entries, Bruno prefers
9809 to update individually.
9811 2007-06-10 Bruno Haible <bruno@clisp.org>
9813 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
9814 'maxlen'. Ensure only length + width bytes are allocated, not
9817 2007-06-09 Bruno Haible <bruno@clisp.org>
9819 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
9820 (CHAR_T): Remove macro.
9821 (VASNPRINTF): Update.
9823 2007-06-09 Bruno Haible <bruno@clisp.org>
9825 * MODULES.html.sh (Unicode string functions): Add the new modules.
9827 * modules/uniconv/u32-conv-to-enc: New file.
9828 * lib/uniconv/u32-conv-to-enc.c: New file.
9829 * modules/uniconv/u32-conv-to-enc-tests: New file.
9830 * tests/uniconv/test-u32-conv-to-enc.c: New file.
9832 * modules/uniconv/u16-conv-to-enc: New file.
9833 * lib/uniconv/u16-conv-to-enc.c: New file.
9834 * lib/uniconv/u-conv-to-enc.h: New file.
9835 * modules/uniconv/u16-conv-to-enc-tests: New file.
9836 * tests/uniconv/test-u16-conv-to-enc.c: New file.
9838 * modules/uniconv/u8-conv-to-enc: New file.
9839 * lib/uniconv/u8-conv-to-enc.c: New file.
9840 * modules/uniconv/u8-conv-to-enc-tests: New file.
9841 * tests/uniconv/test-u8-conv-to-enc.c: New file.
9843 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
9844 u32_conv_to_encoding): New declarations.
9846 2007-06-09 Bruno Haible <bruno@clisp.org>
9848 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
9850 2007-06-09 Bruno Haible <bruno@clisp.org>
9852 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
9853 * modules/malloca: Renamed from modules/allocsa, updated.
9854 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
9855 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
9856 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
9857 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
9858 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
9859 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
9860 * modules/xmalloca: Renamed from modules/xallocsa, updated.
9861 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
9862 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
9863 * modules/c-strcasestr (Depends-on): Update.
9864 * lib/c-strcasestr.c: Update.
9865 * modules/c-strstr (Depends-on): Update.
9866 * lib/c-strstr.c: Update.
9867 * modules/canonicalize-lgpl (Depends-on): Update.
9868 * lib/canonicalize-lgpl.c: Update.
9869 * modules/clean-temp (Depends-on): Update.
9870 * lib/clean-temp.c: Update.
9871 * modules/csharpcomp (Depends-on): Update.
9872 * lib/csharpcomp.c: Update.
9873 * modules/csharpexec (Depends-on): Update.
9874 * lib/csharpexec.c: Update.
9875 * modules/javacomp (Depends-on): Update.
9876 * lib/javacomp.c: Update.
9877 * modules/javaexec (Depends-on): Update.
9878 * lib/javaexec.c: Update.
9879 * modules/mbscasestr (Depends-on): Update.
9880 * lib/mbscasestr.c: Update.
9881 * modules/mbsstr (Depends-on): Update.
9882 * lib/mbsstr.c: Update.
9883 * modules/setenv (Depends-on): Update.
9884 * lib/setenv.c: Update.
9885 * modules/strcasestr (Depends-on): Update.
9886 * lib/strcasestr.c: Update.
9887 * modules/striconveha (Depends-on): Update.
9888 * lib/striconveha.c: Update.
9889 * modules/relocatable-prog-wrapper (Files): Update.
9890 * lib/relocwrapper.c: Update.
9891 * build-aux/install-reloc: Update.
9892 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
9894 2007-06-08 Bruno Haible <bruno@clisp.org>
9897 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
9898 * lib/fpurge.c (fpurge): Likewise.
9899 * lib/freading.c (freading): Likewise.
9900 * lib/fseeko.c (rpl_fseeko): Likewise.
9901 * lib/fseterr.c (fseterr): Likewise.
9902 * lib/fwriting.c (fwriting): Likewise.
9903 * tests/test-fflush.c (main): Avoid a failure on uClibc.
9905 2007-06-08 Bruno Haible <bruno@clisp.org>
9907 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
9908 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
9909 * modules/gettext (Files): Add m4/intlmacosx.m4.
9911 2007-06-07 Bruno Haible <bruno@clisp.org>
9913 * modules/localename-tests: New file.
9914 * tests/test-localename.c: New file.
9916 New module 'localename'.
9917 * lib/localename.h: New file.
9918 * lib/localename.c: New file, from GNU gettext.
9919 * m4/localename.m4: New file.
9920 * modules/localename: New file.
9922 2007-06-07 Bruno Haible <bruno@clisp.org>
9924 Work around the lack of <wchar.h> on some builds of uClibc.
9925 * doc/headers/wchar.texi: Update.
9926 * lib/wchar_.h: Include <wchar.h> only if it exists.
9927 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
9928 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
9929 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
9931 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
9932 * modules/mbfile (Depends-on): Add wchar.
9933 * modules/mbiter (Depends-on): Likewise.
9934 * modules/mbuiter (Depends-on): Likewise.
9935 Reported by Simon Josefsson.
9937 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
9939 Work around problem reported by Steven M. Schweda in
9940 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
9941 Tru64 5.1B with the Compaq compiler environment installed declares
9942 an 'isblank' function but does not define it in the C library.
9943 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
9944 * lib/regex_internal.h (isblank): Likewise.
9945 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
9946 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9948 2007-06-05 Bruno Haible <bruno@clisp.org>
9950 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
9952 * modules/printf-safe: New file.
9953 * modules/fprintf-posix (Depends-on): Add printf-safe.
9954 * modules/printf-posix (Depends-on): Likewise.
9955 * modules/snprintf-posix (Depends-on): Likewise.
9956 * modules/sprintf-posix (Depends-on): Likewise.
9957 * modules/vasnprintf-posix (Depends-on): Likewise.
9958 * modules/vasprintf-posix (Depends-on): Likewise.
9959 * modules/vfprintf-posix (Depends-on): Likewise.
9960 * modules/vprintf-posix (Depends-on): Likewise.
9961 * modules/vsnprintf-posix (Depends-on): Likewise.
9962 * modules/vsprintf-posix (Depends-on): Likewise.
9963 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
9964 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
9965 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
9966 "no" on i386, x86_64, ia64.
9967 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
9968 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
9969 on i386, x86_64, ia64.
9970 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
9971 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
9972 on i386, x86_64, ia64.
9973 * tests/test-vasnprintf-posix.c: Include float.h.
9974 (LDBL80_WORDS): New macro.
9975 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
9976 on i386, x86_64, ia64.
9977 * tests/test-vasprintf-posix.c: Include float.h.
9978 (LDBL80_WORDS): New macro.
9979 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
9980 on i386, x86_64, ia64.
9981 * tests/test-snprintf-posix.c: Include float.h.
9982 * tests/test-sprintf-posix.c: Likewise.
9983 * tests/test-vsnprintf-posix.c: Likewise.
9984 * tests/test-vsprintf-posix.c: Likewise.
9986 2007-06-05 Bruno Haible <bruno@clisp.org>
9988 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
9989 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
9990 non-IEEE numbers on i386, x86_64, ia64.
9991 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
9992 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
9993 * tests/test-isnanl.h: Include float.h.
9994 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
9996 2007-06-05 Bruno Haible <bruno@clisp.org>
9998 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
9999 also the %a / %A. Handle the %a / %A code before this extra handling.
10001 2007-06-05 Bruno Haible <bruno@clisp.org>
10003 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
10004 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
10006 2007-06-05 Bruno Haible <bruno@clisp.org>
10008 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
10009 typo in variable name.
10011 2007-06-05 Eric Blake <ebb9@byu.net>
10013 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
10014 Reported by Simon Josefsson.
10016 2007-06-04 Bruno Haible <bruno@clisp.org>
10018 Avoid test failures on some PowerPC platforms.
10019 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
10020 Define differently for PowerPC.
10021 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
10022 Reported by Gary V. Vaughan <gary@gnu.org>.
10024 2007-06-02 Bruno Haible <bruno@clisp.org>
10026 Fix test-stdint failure on FreeBSD/ia64.
10027 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
10028 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
10029 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
10030 * doc/headers/stdint.texi: Update.
10032 2007-06-01 Bruno Haible <bruno@clisp.org>
10034 * tests/test-binary-io.c (main): Pass a third argument to open().
10035 Reported by Gary V. Vaughan <gary@gnu.org>.
10037 2007-06-01 Bruno Haible <bruno@clisp.org>
10039 * doc/functions/frexpl.texi: Update for mingw.
10041 2007-06-01 Bruno Haible <bruno@clisp.org>
10043 * tests/test-lseek.c (main): Disable test of errno for invalid third
10045 * doc/functions/lseek.texi: Update.
10046 Reported by Gary V. Vaughan <gary@gnu.org>.
10048 2007-05-28 Bruno Haible <bruno@clisp.org>
10050 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
10052 2007-05-31 Eric Blake <ebb9@byu.net>
10054 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
10057 2007-05-30 Eric Blake <ebb9@byu.net>
10058 and Bruno Haible <bruno@clisp.org>
10060 Work around mingw test failures exposed by m4-1.4.9b.
10061 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
10062 * tests/test-unistd.c: Disable uid_t and git_t tests for the
10065 2007-05-30 Bruno Haible <bruno@clisp.org>
10067 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
10068 assuming that they are closed. Needed on HP-UX 11.
10070 2007-05-29 Bruno Haible <bruno@clisp.org>
10072 Fix a problem with #include_next.
10073 * lib/dirent_.h: Split the double-inclusion guard.
10074 * lib/fcntl_.h: Likewise.
10075 * lib/float_.h: Likewise.
10076 * lib/iconv_.h: Likewise.
10077 * lib/inttypes_.h: Likewise.
10078 * lib/locale_.h: Likewise.
10079 * lib/math_.h: Likewise.
10080 * lib/netinet_in_.h: Likewise.
10081 * lib/search_.h: Likewise.
10082 * lib/signal_.h: Likewise.
10083 * lib/stdint_.h: Likewise.
10084 * lib/stdio_.h: Likewise.
10085 * lib/stdlib_.h: Likewise.
10086 * lib/string_.h: Likewise.
10087 * lib/sys_select_.h: Likewise.
10088 * lib/sys_socket_.h: Likewise.
10089 * lib/sys_stat_.h: Likewise.
10090 * lib/sys_time_.h: Likewise.
10091 * lib/sysexits_.h: Likewise.
10092 * lib/time_.h: Likewise.
10093 * lib/unistd_.h: Likewise.
10094 * lib/wchar_.h: Likewise.
10095 * lib/wctype_.h: Likewise.
10097 2007-05-29 Bruno Haible <bruno@clisp.org>
10099 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
10102 2007-05-29 Bruno Haible <bruno@clisp.org>
10104 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
10106 Reported by Eric Blake.
10108 2007-05-29 Bruno Haible <bruno@clisp.org>
10110 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
10113 2007-05-29 Eric Blake <ebb9@byu.net>
10114 Bruno Haible <bruno@clisp.org>
10116 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
10119 2007-05-28 Eric Blake <ebb9@byu.net>
10121 * modules/closein-tests (test_closein_LDADD): Support test on
10122 cygwin with libtool.
10124 2007-05-28 Bruno Haible <bruno@clisp.org>
10126 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
10127 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
10128 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
10129 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
10130 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
10131 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
10132 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
10133 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
10134 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
10136 2007-05-28 Eric Blake <ebb9@byu.net>
10138 Unconditionally include <config.h> in unit tests.
10139 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
10140 * tests/test-allocsa.c, tests/test-arcfour.c,
10141 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
10142 tests/test-array_list.c, tests/test-array_oset.c,
10143 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
10144 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
10145 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
10146 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
10147 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
10148 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
10149 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
10150 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
10151 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
10152 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
10153 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
10154 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
10155 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
10156 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
10157 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
10158 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
10159 test-md5.c, test-memmem.c, test-printf-posix.c,
10160 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
10161 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
10162 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
10163 test-strcasestr.c, test-striconv.c, test-striconveh.c,
10164 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
10165 test-vasnprintf-posix2.c, test-vasnprintf.c,
10166 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
10167 test-vfprintf-posix.c, test-vprintf-posix.c,
10168 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
10169 test-xvasprintf.c: Likewise.
10171 2007-05-28 Bruno Haible <bruno@clisp.org>
10173 * gnulib-tool (func_import): Remember the --with-tests command-line
10174 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
10175 Reported by Eric Blake.
10177 2007-05-28 Bruno Haible <bruno@clisp.org>
10179 * modules/ftell-tests: New file.
10180 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
10181 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
10183 * lib/ftell.c: New file.
10184 * modules/ftell: New file.
10185 * m4/ftell.m4: New file.
10186 * doc/functions/ftell.texi: Update.
10187 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
10189 * lib/stdio_.h (rpl_ftell): New declaration.
10190 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
10193 2007-05-28 Eric Blake <ebb9@byu.net>
10195 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
10197 2007-05-28 Bruno Haible <bruno@clisp.org>
10199 * modules/fseek-tests: New file.
10200 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
10201 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
10203 * lib/fseek.c: New file.
10204 * modules/fseek: New file.
10205 * m4/fseek.m4: New file.
10206 * doc/functions/fseek.texi: Update.
10207 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
10209 * lib/stdio_.h (rpl_fseek): New declaration.
10210 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
10213 2007-05-28 Bruno Haible <bruno@clisp.org>
10215 * lib/stdio_.h (fflush): More comments.
10217 2007-05-28 Bruno Haible <bruno@clisp.org>
10219 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
10222 2007-05-28 Eric Blake <ebb9@byu.net>
10224 Improve lseek module.
10225 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
10226 * lib/unistd_.h (lseek): Scale back link warning message.
10227 * tests/test-lseek.c: Beef up test.
10228 * tests/test-lseek.sh: Exercise more facets of lseek.
10229 Reported by Bruno Haible.
10231 2007-05-28 Bruno Haible <bruno@clisp.org>
10233 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
10236 2007-05-27 Bruno Haible <bruno@clisp.org>
10238 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
10240 2007-05-27 Bruno Haible <bruno@clisp.org>
10242 * modules/openmp: New file.
10243 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
10246 2007-05-26 Bruno Haible <bruno@clisp.org>
10248 * modules/chdir-long (Depends-on): Add fchdir.
10249 * modules/chdir-safer (Depends-on): Likewise.
10250 * modules/fts (Depends-on): Likewise.
10251 * modules/fts-lgpl (Depends-on): Likewise.
10252 * modules/openat (Depends-on): Likewise.
10253 * modules/savewd (Depends-on): Likewise.
10255 2007-05-24 Eric Blake <ebb9@byu.net>
10257 Fix lseek on mingw.
10258 * modules/lseek: New module.
10259 * m4/lseek.m4: New file.
10260 * lib/lseek.c: New file.
10261 * modules/lseek-tests: New file.
10262 * tests/test-lseek.c: New file.
10263 * tests/test-lseek.sh: New file.
10264 * MODULES.html.sh: Document lseek module.
10265 * modules/fflush (Depends-on): Add lseek, fseeko.
10266 * modules/fseeko (Depends-on): Likewise.
10267 * modules/ftello (Depends-on): Likewise.
10268 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
10270 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
10272 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
10273 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
10274 * lib/ftello.c (rpl_ftello): Likewise.
10275 * tests/test-fseeko.c (main): Test this.
10276 * tests/test-fseeko.sh: Likewise.
10277 * tests/test-ftello.c (main): Likewise.
10278 * tests/test-ftello.sh: Likewise.
10279 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
10280 implies replacing fseek.
10281 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
10283 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
10284 * modules/unistd (Makefile.am): Likewise.
10285 * lib/unistd_.h (lseek): Declare a replacement.
10286 * doc/functions/lseek.texi (lseek): Document this fix.
10287 * doc/functions/fseek.texi (fseek): Likewise.
10288 * doc/functions/ftell.texi (ftell): Likewise.
10290 2007-05-24 Bruno Haible <bruno@clisp.org>
10292 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
10293 in the printed representation of a NaN.
10294 * tests/test-vasprintf-posix.c (test_function): Likewise.
10295 * tests/test-snprintf-posix.h (test_function): Likewise.
10296 * tests/test-sprintf-posix.h (test_function): Likewise.
10297 Reported by Eric Blake.
10299 2007-05-23 Eric Blake <ebb9@byu.net>
10301 Fix fseeko/ftello on cygwin 1.5.24.
10302 * doc/functions/fseeko.texi (fseeko): Document the fix.
10303 * doc/functions/ftello.texi (ftello): Document the fix.
10304 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
10305 * doc/functions/stdout.text (stdout): New file.
10306 * doc/functions/stderr.text (stderr): New file.
10307 * doc/gnulib.texi (Function Substitutes): Use new files.
10308 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
10310 * tests/test-ftello.c (main): Likewise for ftello.
10311 * tests/test-fseeko.sh: New file.
10312 * tests/test-ftello.sh: New file.
10313 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
10314 with seekable stdin.
10315 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
10316 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
10317 (gl_REPLACE_FSEEKO): New macro.
10318 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
10319 * modules/fseeko (Files): Distribute fseeko.c.
10320 * modules/ftello (Files): Distribute ftello.c.
10321 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
10323 * lib/ftello.c (rpl_ftello): New file.
10324 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
10326 (gl_STDIN_LARGE_OFFSET): New macro.
10327 * modules/stdio (Makefile.am): Perform the replacement.
10328 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
10330 2007-05-23 Bruno Haible <bruno@clisp.org>
10332 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
10333 GNULIB_POSIXCHECK is defined.
10335 2007-05-21 Bruno Haible <bruno@clisp.org>
10337 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
10338 Check also the output for NaN arguments. When cross-compiling, guess
10340 * lib/vasnprintf.c: Update comments.
10341 * tests/test-vasnprintf-posix.c (strisnan): New function.
10342 (test_function): Use it.
10343 * tests/test-vasprintf-posix.c (strisnan): New function.
10344 (test_function): Use it.
10345 * tests/test-snprintf-posix.h (strisnan): New function.
10346 (test_function): Use it.
10347 * tests/test-sprintf-posix.h (strisnan): New function.
10348 (test_function): Use it.
10349 Reported by Eric Blake.
10351 2007-05-20 Bruno Haible <bruno@clisp.org>
10353 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
10354 numbers that fails on BeOS.
10355 * doc/functions/frexpl.texi: Update.
10357 2007-05-20 Jim Meyering <jim@meyering.net>
10359 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
10360 forced upon us by glibc-2.6.
10362 2007-05-20 Bruno Haible <bruno@clisp.org>
10364 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
10365 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
10366 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
10367 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
10368 NEED_PRINTF_INFINITE.
10369 (is_infinitel): New function.
10370 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
10371 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
10372 gl_PREREQ_VASNPRINTF_INFINITE.
10373 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
10374 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10375 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
10376 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
10377 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
10378 gl_PREREQ_VASNPRINTF_INFINITE.
10379 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10380 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10381 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10382 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10383 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10384 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10385 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10386 * doc/functions/fprintf.texi: Update.
10387 * doc/functions/printf.texi: Update.
10388 * doc/functions/snprintf.texi: Update.
10389 * doc/functions/sprintf.texi: Update.
10390 * doc/functions/vfprintf.texi: Update.
10391 * doc/functions/vprintf.texi: Update.
10392 * doc/functions/vsnprintf.texi: Update.
10393 * doc/functions/vsprintf.texi: Update.
10395 2007-05-20 Bruno Haible <bruno@clisp.org>
10397 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
10398 was not found in libc.
10399 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10401 2007-05-20 Bruno Haible <bruno@clisp.org>
10403 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
10404 printed as "-nan" instead of "nan".
10405 * tests/test-vasprintf-posix.c (test_function): Likewise.
10406 * tests/test-snprintf-posix.h (test_function): Likewise.
10407 * tests/test-sprintf-posix.h (test_function): Likewise.
10408 Needed for HP-UX 11.
10410 2007-05-20 Jim Meyering <jim@meyering.net>
10412 Fix buggy test for the fchownat-deref bug.
10413 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
10414 symlink required for the run-test. Without it, this test would
10415 always declare that fchownat doesn't work, and client code would
10416 unnecessarily use the replacement function with fixed libc.
10417 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
10418 Reported by Greg Schafer.
10420 2007-05-19 Bruno Haible <bruno@clisp.org>
10422 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
10423 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
10424 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
10425 Needed for IRIX 6.5 and Solaris 2.5.1.
10427 2007-05-19 Bruno Haible <bruno@clisp.org>
10429 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
10430 (test_function): Skip tests involving -0.0 on platforms where
10432 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
10433 (test_function): Skip tests involving -0.0 on platforms where
10435 * tests/test-snprintf-posix.h (have_minus_zero): New function.
10436 (test_function): Skip tests involving -0.0 on platforms where
10438 * tests/test-sprintf-posix.h (have_minus_zero): New function.
10439 (test_function): Skip tests involving -0.0 on platforms where
10441 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
10443 * tests/test-printf-posix.h (test_function): Likewise.
10444 * tests/test-printf-posix.output: Remove all -0.0 related results.
10445 Needed for IRIX 6.5.
10447 2007-05-19 Bruno Haible <bruno@clisp.org>
10449 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
10450 printed as "nan0x7fffffff" instead of "nan".
10451 * tests/test-vasprintf-posix.c (test_function): Likewise.
10452 * tests/test-snprintf-posix.h (test_function): Likewise.
10453 * tests/test-sprintf-posix.h (test_function): Likewise.
10454 * tests/test-fprintf-posix.h (NaN): Remove macro.
10455 (test_function): Remove all NaN related tests.
10456 * tests/test-printf-posix.h (NaN): Remove macro.
10457 (test_function): Remove all NaN related tests.
10458 * tests/test-printf-posix.output: Remove all NaN related results.
10459 Needed for IRIX 6.5.
10461 2007-05-19 Bruno Haible <bruno@clisp.org>
10463 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
10464 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10466 2007-05-19 Bruno Haible <bruno@clisp.org>
10468 * lib/float_.h: New file.
10469 * m4/float_h.m4: New file.
10470 * modules/float: New file.
10471 * modules/isnanl (Dependencies): Add float.
10472 * modules/isnanl-nolibm (Dependencies): Likewise.
10473 * modules/mathl (Dependencies): Likewise.
10474 * modules/printf-frexpl (Dependencies): Likewise.
10475 * modules/signbit (Dependencies): Likewise.
10476 * modules/vasnprintf (Dependencies): Likewise.
10477 * doc/headers/float.texi: Update.
10479 2007-05-19 Jim Meyering <jim@meyering.net>
10481 * lib/utimens.c (gl_futimens): Rename from futimens,
10482 now that glibc-2.6 declares futimens.
10483 * lib/utimens.h: Likewise.
10485 2007-05-19 Bruno Haible <bruno@clisp.org>
10487 Avoid test failures on mingw.
10488 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
10489 * tests/test-printf-posix.sh: Likewise.
10490 * tests/test-vfprintf-posix.sh: Likewise.
10491 * tests/test-vprintf-posix.sh: Likewise.
10493 2007-05-19 Bruno Haible <bruno@clisp.org>
10495 Fix *printf result for NaN, Inf, -0.0 on mingw.
10496 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
10497 * lib/vasnprintf.c: Include math.h and isnan.h.
10498 (is_infinite_or_zero): New function.
10499 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
10500 values in the %f, %F, %e, %E, %g, %G directives.
10501 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
10502 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10503 gl_PRINTF_INFINITE and test its result. Invoke
10504 gl_PREREQ_VASNPRINTF_INFINITE.
10505 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10506 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10507 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10508 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10509 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10510 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10511 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10512 * doc/functions/fprintf.texi: Update.
10513 * doc/functions/printf.texi: Update.
10514 * doc/functions/snprintf.texi: Update.
10515 * doc/functions/sprintf.texi: Update.
10516 * doc/functions/vfprintf.texi: Update.
10517 * doc/functions/vprintf.texi: Update.
10518 * doc/functions/vsnprintf.texi: Update.
10519 * doc/functions/vsprintf.texi: Update.
10521 2007-05-19 Bruno Haible <bruno@clisp.org>
10523 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
10524 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
10525 Instead of multiplying with 10^k, set extra_zeroes to k.
10526 (scale10_round_long_double): Remove function.
10528 2007-05-18 Bruno Haible <bruno@clisp.org>
10530 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
10531 introduced on 2007-05-06.
10533 2007-05-18 Bruno Haible <bruno@clisp.org>
10535 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
10537 * tests/test-vasprintf-posix.c (test_function): Likewise.
10538 * tests/test-snprintf-posix.h (test_function): Likewise.
10539 * tests/test-sprintf-posix.h (test_function): Likewise.
10541 2007-05-18 Bruno Haible <bruno@clisp.org>
10543 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
10544 (strmatch): New function.
10545 (test_function): Test the %f directive on numbers of various exponents.
10546 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
10547 (strmatch): New function.
10548 (test_function): Test the %f directive on numbers of various exponents.
10549 * tests/test-snprintf-posix.h (strmatch): New function.
10550 (test_function): Test the %f directive on numbers of various exponents.
10551 * tests/test-sprintf-posix.h (strmatch): New function.
10552 (test_function): Test the %f directive on numbers of various exponents.
10553 * tests/test-snprintf-posix.c (SIZEOF): New macro.
10554 * tests/test-sprintf-posix.c (SIZEOF): New macro.
10555 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
10556 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
10558 2007-05-18 Bruno Haible <bruno@clisp.org>
10560 Add support for 'long double' number output.
10561 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
10562 * lib/vasnprintf.c: Include math.h and float+.h.
10563 (mp_limb_t): New type.
10564 (GMP_LIMB_BITS): New macro.
10565 (mp_twolimb_t): New type.
10566 (GMP_TWOLIMB_BITS): New macro.
10568 (multiply, divide, convert_to_decimal, decode_long_double,
10569 scale10_round_long_double, scale10_round_decimal_long_double,
10570 floorlog10l): New functions.
10571 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
10572 for the %f, %F, %e, %E, %g, %G directives.
10573 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
10574 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10575 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
10576 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
10577 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10578 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10579 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10580 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10581 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10582 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10583 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10584 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
10585 * modules/snprintf-posix (Depends-on): Likewise.
10586 * modules/sprintf-posix (Depends-on): Likewise.
10587 * modules/vasnprintf-posix (Depends-on): Likewise.
10588 * modules/vasprintf-posix (Depends-on): Likewise.
10589 * modules/vfprintf-posix (Depends-on): Likewise.
10590 * modules/vsnprintf-posix (Depends-on): Likewise.
10591 * modules/vsprintf-posix (Depends-on): Likewise.
10592 * modules/vasnprintf (Files): Add lib/float+.h.
10593 * doc/functions/fprintf.texi: Update.
10594 * doc/functions/printf.texi: Update.
10595 * doc/functions/snprintf.texi: Update.
10596 * doc/functions/sprintf.texi: Update.
10597 * doc/functions/vfprintf.texi: Update.
10598 * doc/functions/vprintf.texi: Update.
10599 * doc/functions/vsnprintf.texi: Update.
10600 * doc/functions/vsprintf.texi: Update.
10602 2007-05-18 Bruno Haible <bruno@clisp.org>
10604 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
10606 2007-05-18 Bruno Haible <bruno@clisp.org>
10608 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
10609 for printing 64-bit integers. Needed for mingw.
10611 2007-05-18 Bruno Haible <bruno@clisp.org>
10613 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
10614 gl_FUNC_FREXPL_WORKS.
10615 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
10617 2007-05-18 Bruno Haible <bruno@clisp.org>
10619 * modules/frexpl-nolibm-tests: New file.
10621 * modules/frexpl-nolibm: New file.
10622 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
10624 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
10626 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
10627 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
10628 GCC 4.2, which otherwise issues a lot of warnings.
10629 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
10630 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
10632 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
10633 * modules/iconv_open (iconv.h): Likewise.
10634 * modules/locale (locale.h): Likewise.
10635 * modules/netinet_in (netinet/in.h): Likewise.
10636 * modules/sys_select (sys_select.h): Likewise.
10637 * modules/sys_socket (sys/socket.h): Likewise.
10638 * modules/sys_stat (sys/stat.h): Likewise.
10639 * modules/sysexits (sysexits.h): Likewise.
10640 * modules/unistd (unistd.h): Likewise.
10642 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10644 * modules/closein-tests (Makefile.am): Distribute
10647 2007-05-17 Bruno Haible <bruno@clisp.org>
10649 * tests/test-printf-posix.output: Renamed from
10650 tests/test-fprintf-posix.out.
10651 * modules/fprintf-posix-tests: Update.
10652 * modules/printf-posix-tests: Update.
10653 * modules/vfprintf-posix-tests: Update.
10654 * modules/vprintf-posix-tests: Update.
10655 * tests/test-fprintf-posix.sh: Update.
10656 * tests/test-printf-posix.sh: Update.
10657 * tests/test-vfprintf-posix.sh: Update.
10658 * tests/test-vprintf-posix.sh: Update.
10659 Reported by Ralf Wildenhues.
10661 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
10663 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
10664 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
10665 GCC 4.2, which otherwise issues a lot of warnings.
10666 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
10667 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
10668 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
10669 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
10670 it should no longer be needed.
10671 * lib/string_.h: Likewise.
10672 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
10673 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
10674 * modules/inttypes (inttypes.h): Likewise.
10675 * modules/math (math.h): Likewise.
10676 * modules/search (search.h): Likewise.
10677 * modules/signal (signal.h): Likewise.
10678 * modules/stdint (stdint.h): Likewise.
10679 * modules/stdio (stdio.h): Likewise.
10680 * modules/stdlib (stdlib.h): Likewise.
10681 * modules/string (string.h): Likewise.
10682 * modules/sys_time (sys/time.h): Likewise.
10683 * modules/time (time.h): Likewise.
10684 * modules/wchar (wchar.h): Likewise.
10685 * modules/wctype (wtype.h): Likewise.
10687 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
10689 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
10691 2007-05-13 Bruno Haible <bruno@clisp.org>
10693 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
10694 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10695 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
10696 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
10697 (gl_PREREQ_STRTOK_R): Don't require it here.
10699 2007-05-13 Bruno Haible <bruno@clisp.org>
10701 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
10702 when used in C++ mode.
10704 2007-05-12 Bruno Haible <bruno@clisp.org>
10706 * lib/linebuffer.h: Tweak doc.
10707 * lib/linebuffer.c: Likewise.
10709 2007-05-12 James Youngman <jay@gnu.org>
10711 * lib/linebuffer.c (readlinebuffer_delim): New function,
10712 like readlinebuffer, but use a caller-specified delimiter.
10713 (readlinebuffer): Just call readlinebuffer_delim with '\n'
10715 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
10717 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
10719 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
10720 * modules/openat (Files): Remove openat-die.c.
10721 (Depends-on): Add openat-die.
10722 * modules/openat-die: New module.
10724 2007-05-06 Bruno Haible <bruno@clisp.org>
10726 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
10727 Update with info about Cygwin.
10728 * doc/functions/fprintf.texi: Update.
10729 * doc/functions/printf.texi: Update.
10730 * doc/functions/snprintf.texi: Update.
10731 * doc/functions/sprintf.texi: Update.
10732 * doc/functions/vfprintf.texi: Update.
10733 * doc/functions/vprintf.texi: Update.
10734 * doc/functions/vsnprintf.texi: Update.
10735 * doc/functions/vsprintf.texi: Update.
10736 Reported by Eric Blake.
10738 2007-05-06 Bruno Haible <bruno@clisp.org>
10740 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
10741 padding ourselves for the floating-point directives.
10742 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
10743 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
10744 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
10745 gl_PRINTF_FLAG_ZERO and test its result. Invoke
10746 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
10747 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10748 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
10749 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10750 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10751 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10752 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10753 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10754 * tests/test-snprintf-posix.h (test_function): Also check the width
10755 and some flags in the %f directive.
10756 * tests/test-sprintf-posix.h (test_function): Likewise.
10757 * tests/test-vasnprintf-posix.c (test_function): Likewise.
10758 * tests/test-vasprintf-posix.c (test_function): Likewise.
10759 * doc/functions/fprintf.texi: Update.
10760 * doc/functions/printf.texi: Update.
10761 * doc/functions/snprintf.texi: Update.
10762 * doc/functions/sprintf.texi: Update.
10763 * doc/functions/vfprintf.texi: Update.
10764 * doc/functions/vprintf.texi: Update.
10765 * doc/functions/vsnprintf.texi: Update.
10766 * doc/functions/vsprintf.texi: Update.
10768 2007-05-06 Bruno Haible <bruno@clisp.org>
10770 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
10771 pass the ' flag character to sprintf or snprintf.
10772 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
10773 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
10774 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
10775 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
10776 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
10777 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10778 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
10779 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10780 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10781 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10782 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10783 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10784 * tests/test-snprintf-posix.h (test_function): Also check the grouping
10786 * tests/test-sprintf-posix.h (test_function): Likewise.
10787 * tests/test-vasnprintf-posix.c (test_function): Likewise.
10788 * tests/test-vasprintf-posix.c (test_function): Likewise.
10789 * doc/functions/fprintf.texi: Update.
10790 * doc/functions/printf.texi: Update.
10791 * doc/functions/snprintf.texi: Update.
10792 * doc/functions/sprintf.texi: Update.
10793 * doc/functions/vfprintf.texi: Update.
10794 * doc/functions/vprintf.texi: Update.
10795 * doc/functions/vsnprintf.texi: Update.
10796 * doc/functions/vsprintf.texi: Update.
10798 2007-05-01 Bruno Haible <bruno@clisp.org>
10800 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
10802 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
10804 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
10805 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
10807 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
10809 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
10810 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
10811 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
10813 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
10815 * lib/argp-help.c (struct hol_entry): New member `ord'.
10816 (HOL_ENTRY_PTRCMP): Use ord for comparison
10817 (hol_sort): Initialize ord.
10819 2007-05-01 Bruno Haible <bruno@clisp.org>
10821 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
10822 Reported by Eric Blake.
10823 * doc/gnulib.texi (Function Substitutes): Update.
10825 2007-05-01 Bruno Haible <bruno@clisp.org>
10827 * doc/functions.texi: Remove file, now redundant through
10828 doc/functions/*.texi.
10830 2007-05-01 Bruno Haible <bruno@clisp.org>
10832 * modules/argp (Depends-on): Add sleep.
10834 2007-05-01 Bruno Haible <bruno@clisp.org>
10836 * modules/sleep-tests: New file.
10837 * tests/test-sleep.c: New file.
10839 * modules/sleep: New file.
10840 * lib/sleep.c: New file.
10841 * m4/sleep.m4: New file.
10842 * lib/unistd_.h (sleep): New declaration.
10843 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
10845 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
10846 * doc/functions/sleep.texi: Document the sleep module.
10848 2007-05-01 Bruno Haible <bruno@clisp.org>
10850 * lib/sigprocmask.h: Remove file.
10851 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
10852 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
10853 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
10854 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
10855 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
10856 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
10857 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
10858 HAVE_SIGSET_T as a shell variable.
10859 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
10860 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
10861 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
10862 (Depends-on): Add signal. Remove verify.
10863 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
10864 (Include): Mention <signal.h> instead of sigprocmask.h.
10865 * NEWS: Mention the change.
10866 * lib/fatal-signal.c: Don't include sigprocmask.h.
10868 2007-05-01 Bruno Haible <bruno@clisp.org>
10870 * modules/signal: New file.
10871 * lib/signal_.h: New file.
10872 * m4/signal_h.m4: New file.
10874 2007-05-01 Bruno Haible <bruno@clisp.org>
10876 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
10877 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
10878 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
10879 HAVE_WCTYPE_CTMP_BUG into wctype.h.
10881 2007-05-01 Bruno Haible <bruno@clisp.org>
10883 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
10885 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
10886 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
10887 * modules/sys_stat (Makefile.am): Substitute their values into
10890 2007-05-01 Bruno Haible <bruno@clisp.org>
10892 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
10893 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
10894 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
10896 2007-05-01 Bruno Haible <bruno@clisp.org>
10898 * doc/header/assert.texi: Undo last change: don't mention the gnulib
10899 'assert' module here.
10901 2007-05-01 Bruno Haible <bruno@clisp.org>
10903 * doc/functions/*.texi: New files.
10904 * doc/functions/google-ranking.txt: New file.
10905 * doc/gnulib.texi (Function Substitutes): New chapter.
10906 (ctime, inet_ntoa): Remove sections.
10907 * doc/ctime.texi: Remove file.
10908 * doc/inet_ntoa.texi: Remove file.
10909 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
10911 (%.info): New rule, specifying a --reference-limit.
10913 2007-05-01 Bruno Haible <bruno@clisp.org>
10915 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
10917 2007-05-01 Bruno Haible <bruno@clisp.org>
10919 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
10920 the portability of 'mkdir' to mingw systems.
10922 2007-05-01 Bruno Haible <bruno@clisp.org>
10924 * doc/headers/google-ranking.txt: New file.
10926 2007-04-30 Eric Blake <ebb9@byu.net>
10928 Prefer fseeko to fseek.
10929 * modules/getpass (Depends-on): Add fseeko.
10930 * lib/getpass.c (getpass): Use fseeko, not fseek.
10932 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
10934 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
10935 assumes the sorting is stable, while most qsort implementations
10936 are not. Use argument addresses to ensure they never compare as
10939 * tests/test-argp-2.sh (usage-indent test): Fix output
10940 (func_compare): Restore diff options
10941 * tests/test-argp.c: Restore #include "progname.h"
10943 2007-04-29 Bruno Haible <bruno@clisp.org>
10945 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
10946 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
10947 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
10948 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10949 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
10950 (configure.ac): Define CHECK_SNPRINTF_POSIX.
10951 (TESTS, check_PROGRAMS): Add test-snprintf.
10952 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
10953 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
10954 (TESTS, check_PROGRAMS): Add test-vsnprintf.
10955 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
10956 assertions that fail on HP-UX, OSF/1, or IRIX.
10957 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
10959 2007-04-29 Bruno Haible <bruno@clisp.org>
10961 * MODULES.html.sh (posix_functions): Remove 'contents'.
10963 2007-04-29 Karl Berry <karl@gnu.org>
10965 * config/srclist.txt (gendocs_template_min): new entry.
10967 2007-04-29 Bruno Haible <bruno@clisp.org>
10969 Work around fpurge bug on BSD systems.
10970 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
10971 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
10972 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
10973 fpurge to rpl_fpurge if the system already has this function.
10974 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
10975 the case where the system already has this function. Correct invariants
10977 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
10980 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
10982 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
10983 proposed by Sven Verdoolaege.
10985 * tests/test-argp.c: Fix option ordering. Test deeply clustered
10987 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
10988 (usage and help tests): Update
10990 2007-04-29 Bruno Haible <bruno@clisp.org>
10992 * tests/test-fflush.c (main): Use a file of size 17, not 10.
10993 Print more information in case of failure. Disable a test on BeOS.
10995 2007-04-29 Bruno Haible <bruno@clisp.org>
10997 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
10998 This helps debugging on systems on which no gdb is available.
11000 2007-04-29 Bruno Haible <bruno@clisp.org>
11002 * lib/freading.h: Improve comments.
11003 * lib/fwriting.h: Likewise.
11004 * tests/test-freading.c (main): Don't check freading immediately after
11005 repositioning. Needed for glibc.
11007 2007-04-29 Bruno Haible <bruno@clisp.org>
11009 * lib/freading.c (freading): Trivial simplification.
11011 2007-04-28 Bruno Haible <bruno@clisp.org>
11013 * tests/test-fwriting.c (main): Also test the interaction between
11014 fflush and fwriting.
11015 * modules/fwriting-tests (Depends-on): Add fflush.
11017 * tests/test-freading.c (main): Also test the interaction between
11018 fflush and freading.
11019 * modules/freading-tests (Depends-on): Add fflush.
11021 2007-04-28 Bruno Haible <bruno@clisp.org>
11023 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
11025 Suggested by Eric Blake.
11027 2007-04-28 Jim Meyering <jim@meyering.net>
11029 Avoid false-negative in gl_STDINT_H's C99 conformance test.
11030 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
11031 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
11033 2007-04-27 Eric Blake <ebb9@byu.net>
11035 * doc/headers/assert.texi (assert.h): Document assert module use.
11037 2007-04-27 Bruno Haible <bruno@clisp.org>
11039 * doc/headers/*.texi: New files.
11040 * doc/gnulib.texi (Header File Substitutes): New chapter.
11041 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
11043 (standards.info ,standards.html, standards.dvi): Update dependencies.
11044 (mostlyclean, clean): New targets.
11046 2007-04-27 Bruno Haible <bruno@clisp.org>
11048 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
11049 * modules/sysexits (Files, Makefile.am): Update.
11051 * lib/sys_socket_.h: Renamed from lib/socket_.h.
11052 * modules/sys_socket (Files, Makefile.am): Update.
11054 * lib/sys_stat_.h: Renamed from lib/stat_.h.
11055 * modules/sys_stat (Files, Makefile.am): Update.
11057 2007-04-27 Eric Blake <ebb9@byu.net>
11059 * lib/freading.h: Improve comments.
11060 * lib/fwriting.h: Likewise.
11061 * lib/fflush.c: Likewise.
11063 Fix closein for mingw.
11064 * modules/closein-tests: Add tests for closein.
11065 * tests/test-closein.c: New file.
11066 * tests/test-closein.sh: Likewise.
11067 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
11068 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
11070 2007-04-27 Bruno Haible <bruno@clisp.org>
11072 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
11074 * lib/math_.h [__DECC]: Likewise.
11075 * lib/stdio_.h [__DECC]: Likewise.
11076 * lib/stdlib_.h [__DECC]: Likewise.
11077 * lib/string_.h [__DECC]: Likewise.
11078 * lib/time_.h [__DECC]: Likewise.
11079 * lib/wchar_.h [__DECC]: Likewise.
11080 * lib/wctype_.h [__DECC]: Likewise.
11082 2007-04-27 Bruno Haible <bruno@clisp.org>
11084 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
11086 2007-04-27 Bruno Haible <bruno@clisp.org>
11088 * lib/fflush.c: Add comments.
11089 * modules/fpurge-tests (Depends-on): Add fflush.
11090 * modules/freadable-tests (Depends-on): Likewise.
11091 * modules/fwritable-tests (Depends-on): Likewise.
11093 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
11095 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
11096 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
11097 Report by Bruno Haible <bruno@clisp.org>.
11099 2007-04-26 Eric Blake <ebb9@byu.net>
11101 Fix fflush on mingw.
11102 * modules/fflush (Depends-on): Add freading.
11103 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
11106 2007-04-26 Eric Blake <ebb9@byu.net>
11107 and Bruno Haible <bruno@clisp.org>
11109 Implement freading and fwriting.
11110 * lib/freading.c: New file.
11111 * lib/freading.h: Likewise.
11112 * m4/freading.m4: Likewise.
11113 * modules/freading: Likewise.
11114 * modules/freading-tests: Likewise.
11115 * tests/test-freading.c: Likewise.
11116 * lib/fwriting.c: New file.
11117 * lib/fwriting.h: Likewise.
11118 * m4/fwriting.m4: Likewise.
11119 * modules/fwriting: Likewise.
11120 * modules/fwriting-tests: Likewise.
11121 * tests/test-fwriting.c: Likewise.
11122 * MODULES.html.sh (File stream based Input/Output): Mention them.
11124 2007-04-26 Bruno Haible <bruno@clisp.org>
11126 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
11127 'long' when we assume it.
11128 Suggested by Eric Blake.
11130 2007-04-26 Bruno Haible <bruno@clisp.org>
11132 Ensure fseeko, ftello are declared on glibc systems.
11133 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
11134 * modules/fseeko (configure.ac-early): Likewise.
11135 * modules/ftello (configure.ac-early): Likewise.
11136 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
11137 AC_FUNC_FSEEKO for this.
11138 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
11139 (gl_CHECK_FSEEKO): Remove macro.
11141 2007-04-26 Bruno Haible <bruno@clisp.org>
11143 * tests/test-fflush.c (main): Also check the ftell result after
11144 fflush and fseek/fseeko.
11145 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
11146 file descriptor position cache in the stream.
11147 * lib/fseeko.c (rpl_fseeko): Likewise.
11149 2007-04-26 Bruno Haible <bruno@clisp.org>
11151 * modules/fflush-tests (Depends-on): Add fseeko.
11153 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
11154 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11156 * lib/argz_.h: ensure error_t definition is obtained in same
11157 mechanism system argz.h would have.
11158 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
11159 argz facilities are known bad. Err on the side of caution if
11162 2007-04-25 Eric Blake <ebb9@byu.net>
11164 * lib/fpurge.c (includes): Use stdlib.h for free.
11165 * tests/test-fflush.c (main): Also test fflush-fseeko.
11167 2007-04-25 Bruno Haible <bruno@clisp.org>
11169 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
11170 * lib/fseeko.c: New file.
11171 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
11172 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
11173 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
11175 (gl_FUNC_FSEEKO): Invoke it.
11176 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
11177 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
11178 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
11180 2007-04-25 Bruno Haible <bruno@clisp.org>
11182 * modules/fflush (Depends-on): Add ftello.
11184 2007-04-25 Bruno Haible <bruno@clisp.org>
11186 * modules/ftello-tests: New file.
11187 * tests/test-ftello.c: New file.
11189 * modules/ftello: New file.
11190 * m4/ftello.m4: New file.
11191 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
11193 * lib/stdio_.h (ftello): New declaration.
11194 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
11197 2007-04-25 Bruno Haible <bruno@clisp.org>
11199 * modules/fseeko-tests: New file.
11200 * tests/test-fseeko.c: New file.
11202 * modules/fseeko: New file.
11203 * m4/fseeko.m4: New file.
11204 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
11206 * lib/stdio_.h (fseeko): New declaration.
11207 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
11210 2007-04-25 Bruno Haible <bruno@clisp.org>
11212 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
11214 2007-04-25 Bruno Haible <bruno@clisp.org>
11216 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
11217 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
11218 * tests/test-unistd.c: Likewise.
11219 * tests/test-fcntl.c: Likewise.
11221 2007-04-23 Eric Blake <ebb9@byu.net>
11223 * lib/fflush.c: Fix missing include.
11224 Reported by Bruno Haible.
11226 2007-04-23 Bruno Haible <bruno@clisp.org>
11228 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
11229 Reported by Eric Blake.
11231 2007-04-23 Bruno Haible <bruno@clisp.org>
11233 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
11235 2007-04-23 Bruno Haible <bruno@clisp.org>
11237 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
11239 2007-04-23 Bruno Haible <bruno@clisp.org>
11241 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
11242 Needed on HP-UX 11.
11244 2007-04-16 Eric Blake <ebb9@byu.net>
11246 Make fflush rely on fpurge.
11247 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
11248 open coding all variants.
11249 * modules/fflush (Depends-on): Add fpurge and unistd.
11250 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
11251 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
11253 Fix --with-tests compilation on cygwin.
11254 * modules/argmatch-tests (Makefile.am): List gnulib library first
11256 * modules/argp-tests (Makefile.am): Likewise.
11257 * modules/array-list-tests (Makefile.am): Likewise.
11258 * modules/array-oset-tests (Makefile.am): Likewise.
11259 * modules/avltree-list-tests (Makefile.am): Likewise.
11260 * modules/avltree-oset-tests (Makefile.am): Likewise.
11261 * modules/avltreehash-list-tests (Makefile.am): Likewise.
11262 * modules/carray-list-tests (Makefile.am): Likewise.
11263 * modules/dirname-tests (Makefile.am): Likewise.
11264 * modules/frexp-tests (Makefile.am): Likewise.
11265 * modules/isnanl-tests (Makefile.am): Likewise.
11266 * modules/linked-list-tests (Makefile.am): Likewise.
11267 * modules/linkedhash-list-tests (Makefile.am): Likewise.
11268 * modules/lock-tests (Makefile.am): Likewise.
11269 * modules/rbtree-list-tests (Makefile.am): Likewise.
11270 * modules/rbtree-oset-tests (Makefile.am): Likewise.
11271 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
11272 * modules/tls-tests (Makefile.am): Likewise.
11273 * modules/tsearch-tests (Makefile.am): Likewise.
11274 * modules/xvasprintf-tests (Makefile.am): Likewise.
11276 Fix fpurge for cygwin.
11277 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
11279 * modules/fpurge-tests (Depends-on): Clean up trash.
11281 2007-04-16 Simon Josefsson <simon@josefsson.org>
11283 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
11285 * m4/autobuild.m4: Re-indent.
11287 2007-04-13 Bruno Haible <bruno@clisp.org>
11289 * modules/fpurge-tests: New file.
11290 * tests/test-fpurge.c: New file.
11292 * modules/fpurge: New file.
11293 * lib/fpurge.h: New file.
11294 * lib/fpurge.c: New file.
11295 * m4/fpurge.m4: New file.
11297 2007-04-13 Bruno Haible <bruno@clisp.org>
11299 * modules/fbufmode-tests: New file.
11300 * tests/test-fbufmode.c: New file.
11302 * modules/fbufmode: New file.
11303 * lib/fbufmode.h: New file.
11304 * lib/fbufmode.c: New file.
11305 * m4/fbufmode.m4: New file.
11307 2007-04-13 Bruno Haible <bruno@clisp.org>
11309 * modules/fwritable-tests: New file.
11310 * tests/test-fwritable.c: New file.
11312 * modules/fwritable: New file.
11313 * lib/fwritable.h: New file.
11314 * lib/fwritable.c: New file.
11315 * m4/fwritable.m4: New file.
11317 2007-04-13 Bruno Haible <bruno@clisp.org>
11319 * modules/freadable-tests: New file.
11320 * tests/test-freadable.c: New file.
11322 * modules/freadable: New file.
11323 * lib/freadable.h: New file.
11324 * lib/freadable.c: New file.
11325 * m4/freadable.m4: New file.
11327 2007-04-13 Bruno Haible <bruno@clisp.org>
11329 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
11332 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
11334 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
11335 gzip bootstrap.conf to avoid dragging in i18n machinery.
11336 (gnulib_tool_option): Use it.
11338 2007-04-13 Bruno Haible <bruno@clisp.org>
11340 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
11342 * tests/test-vasprintf-posix.c (test_function): Likewise.
11343 * tests/test-snprintf-posix.h (test_function): Likewise.
11344 * tests/test-sprintf-posix.h (test_function): Likewise.
11345 * tests/test-fprintf-posix.h (test_function): Likewise.
11346 * tests/test-printf-posix.h (test_function): Likewise.
11347 * tests/test-fprintf-posix.out: Likewise.
11349 2007-04-13 Bruno Haible <bruno@clisp.org>
11351 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
11352 * modules/tls-tests (configure.ac): Likewise.
11353 Reported by Arto C. Nirkko <anirkko@insel.ch>.
11355 2007-04-13 Bruno Haible <bruno@clisp.org>
11357 * lib/tls.c (glthread_tls_get): Fix return type.
11358 Patch by Arto C. Nirkko <anirkko@insel.ch>.
11360 2007-04-12 Eric Blake <ebb9@byu.net>
11362 * modules/gettime (Depends-on): Remove gettime.
11363 Reported by Dmitry V. Levin.
11365 2007-04-12 Bruno Haible <bruno@clisp.org>
11367 * modules/fflush (Include): Mention <stdio.h>.
11368 * modules/strtoimax (Include): Mention <inttypes.h>.
11369 * modules/strtoumax (Include): Likewise.
11371 2007-04-12 Eric Blake <ebb9@byu.net>
11373 * .cvsignore: New file.
11374 * .gitignore: Likewise.
11376 2007-04-12 Bruno Haible <bruno@clisp.org>
11378 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
11379 not before, since $(LDADD) often contains libgnu.a.
11380 * modules/striconv-tests (test_striconv_LDADD): Likewise.
11381 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
11382 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
11385 2007-04-12 Eric Blake <ebb9@byu.net>
11387 Work around glibc's failure to flush stdin on fclose.
11388 * lib/closein.c (close_stdin): Flush stdin before closing.
11390 Work around glibc's failure to reset seekable stdin on exit.
11391 * modules/closein: New module.
11392 * lib/closein.c: New file.
11393 * lib/closein.h: Likewise.
11394 * m4/closein.m4: Likewise.
11395 * MODULES.html.sh (File stream based Input/Output): Document it.
11397 2007-04-12 Simon Josefsson <simon@josefsson.org>
11399 * gnulib-tool: Rename generated 'autobuild' script to
11400 'do-autobuild' in --create-megatestdir output.
11402 * doc/gnulib.texi (Build robot for gnulib): Fix.
11404 2007-04-12 Simon Josefsson <simon@josefsson.org>
11406 * modules/sysexits (Depends-on): Add absolute-header.
11408 2007-04-12 Eric Blake <ebb9@byu.net>
11410 No need to preserve errno on success.
11411 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
11412 Reported by Bruno Haible.
11414 2007-04-12 Simon Josefsson <simon@josefsson.org>
11416 * MODULES.html.sh (Support for maintaining and releasing
11417 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
11419 2007-04-12 Simon Josefsson <simon@josefsson.org>
11421 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
11423 2007-04-12 Simon Josefsson <simon@josefsson.org>
11425 * modules/autobuild: New module.
11427 * m4/autobuild.m4: New file.
11429 2007-04-11 Bruno Haible <bruno@clisp.org>
11431 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
11432 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
11433 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
11434 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
11435 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
11436 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11437 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11438 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
11439 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11440 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11441 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
11442 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11443 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11444 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
11445 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11446 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11447 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
11448 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11449 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11450 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
11451 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11452 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11453 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
11454 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11455 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11456 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
11457 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11458 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11459 Reported by Eric Blake.
11461 2007-04-11 Bruno Haible <bruno@clisp.org>
11463 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
11465 2007-04-10 Bruno Haible <bruno@clisp.org>
11467 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
11468 for NaN and Infinity. Needed on FreeBSD 6.1.
11469 * tests/test-vasnprintf-posix.c (test_function): Undo last change
11470 regarding results for "%010a" of Infinity and NaN.
11471 * tests/test-vasprintf-posix.c (test_function): Likewise.
11472 * tests/test-snprintf-posix.h (test_function): Likewise.
11473 * tests/test-sprintf-posix.h (test_function): Likewise.
11474 * tests/test-fprintf-posix.h (test_function): Likewise.
11475 * tests/test-printf-posix.h (test_function): Likewise.
11476 * tests/test-fprintf-posix.out: Likewise.
11478 2007-04-10 Bruno Haible <bruno@clisp.org>
11480 * modules/locale-tests: New file.
11481 * tests/test-locale.c: New file.
11483 * modules/locale: New file.
11484 * lib/locale_.h: New file.
11485 * m4/locale_h.m4: New file.
11487 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
11488 Bruno Haible <bruno@clisp.org>
11490 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
11491 be determined, test for availability of the copysignf, copysign,
11492 copysignl functions.
11493 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
11494 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
11495 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
11497 2007-04-09 Eric Blake <ebb9@byu.net>
11499 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
11500 * modules/stdio (Makefile.am): Support fflush.
11501 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11502 * modules/fflush: New file.
11503 * lib/fflush.c: Likewise.
11504 * m4/fflush.m4: Likewise.
11505 * modules/fflush-tests: New test.
11506 * tests/test-fflush.c: Likewise.
11507 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
11509 2007-04-06 Bruno Haible <bruno@clisp.org>
11511 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
11512 (VASNPRINTF): Use signbit for faster determination whether to print a
11514 * modules/vasnprintf (Files): Remove lib/float+.h.
11515 * modules/fprintf-posix (Depends-on): Add signbit.
11516 * modules/snprintf-posix (Depends-on): Likewise.
11517 * modules/sprintf-posix (Depends-on): Likewise.
11518 * modules/vasnprintf-posix (Depends-on): Likewise.
11519 * modules/vasprintf-posix (Depends-on): Likewise.
11520 * modules/vfprintf-posix (Depends-on): Likewise.
11521 * modules/vsnprintf-posix (Depends-on): Likewise.
11522 * modules/vsprintf-posix (Depends-on): Likewise.
11524 2007-04-06 Bruno Haible <bruno@clisp.org>
11526 * tests/test-frexp.c (main): Test also the sign bit of zero results.
11527 * tests/test-frexpl.c (main): Likewise.
11528 * tests/test-ldexpl.c (main): Likewise.
11529 * modules/frexp-tests (Depends-on): Add signbit.
11530 * modules/frexpl-tests (Depdends-on): Likewise.
11531 * modules/ldexpl-tests (Depdends-on): Likewise.
11533 2007-04-06 Bruno Haible <bruno@clisp.org>
11535 * modules/signbit-tests: New file.
11536 * tests/test-signbit.c: New file.
11538 * modules/signbit: New file.
11539 * lib/signbitf.c: New file.
11540 * lib/signbitd.c: New file.
11541 * lib/signbitl.c: New file.
11542 * m4/signbit.m4: New file.
11543 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
11544 (signbit): New macro.
11545 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
11547 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
11548 REPLACE_FREXPL into math.h.
11550 2007-04-06 Bruno Haible <bruno@clisp.org>
11552 * modules/isnanf-nolibm-tests: New file.
11553 * tests/test-isnanf.c: New file.
11555 * modules/isnanf-nolibm: New file.
11556 * lib/isnanf.h: New file.
11557 * lib/isnanf.c: New file.
11558 * lib/isnan.c: Consider the USE_FLOAT macro.
11559 * m4/isnanf.m4: New file.
11561 2007-04-06 Bruno Haible <bruno@clisp.org>
11563 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
11564 (Link): New section.
11566 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
11568 2007-04-06 Bruno Haible <bruno@clisp.org>
11570 Assume the 'long double' type.
11571 * m4/longdouble.m4: Remove file.
11572 * config/srclist.txt: Don't mention longdouble.m4.
11573 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
11574 * lib/float+.h: Likewise.
11575 * lib/frexp.c: Likewise.
11576 * lib/printf-args.h: Likewise.
11577 * lib/printf-args.c: Likewise.
11578 * lib/printf-frexp.c: Likewise.
11579 * lib/printf-parse.c: Likewise.
11580 * lib/vasnprintf.c: Likewise.
11581 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
11582 * m4/intl.m4: Likewise.
11583 * m4/isnanl.m4: Likewise.
11584 * m4/printf.m4: Likewise.
11585 * m4/printf-frexpl.m4: Likewise.
11586 * m4/vasnprintf.m4: Likewise.
11587 * modules/allocsa (Files): Remove m4/longdouble.m4.
11588 * modules/gettext (Files): Likewise.
11589 * modules/relocatable-prog-wrapper (Files): Likewise.
11590 * modules/vasnprintf (Files): Likewise.
11591 * modules/isnanl (Files): Likewise.
11592 (Include): Simplify.
11593 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
11594 (Include): Simplify.
11595 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
11596 (Include): Simplify.
11597 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
11598 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11599 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
11600 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11601 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
11602 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11603 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
11604 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11605 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
11606 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11607 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
11608 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11609 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
11610 * tests/test-isnanl.c: Likewise.
11611 * tests/test-snprintf-posix.h: Likewise.
11612 * tests/test-sprintf-posix.h: Likewise.
11613 * tests/test-vasnprintf-posix.c: Likewise.
11614 * tests/test-vasnprintf-posix2.c: Likewise.
11615 * tests/test-vasprintf-posix.c: Likewise.
11617 2007-04-06 Bruno Haible <bruno@clisp.org>
11619 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
11620 * lib/math_.h [__DECC]: Include the overridden include file through
11621 #include_next, outside the double-inclusion guard.
11622 * lib/stdio_.h [__DECC]: Likewise.
11623 * lib/stdlib_.h [__DECC]: Likewise.
11624 * lib/string_.h [__DECC]: Likewise.
11625 * lib/time_.h [__DECC]: Likewise.
11626 * lib/wchar_.h [__DECC]: Likewise.
11627 * lib/wctype_.h [__DECC]: Likewise.
11628 * lib/inttypes_.h [__DECC]: Likewise.
11629 Reported by Albert Chin <china@thewrittenword.com> in
11630 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
11632 2007-04-04 Eric Blake <ebb9@byu.net>
11634 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
11637 2007-04-04 Bruno Haible <bruno@clisp.org>
11639 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
11640 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
11642 2007-04-04 Bruno Haible <bruno@clisp.org>
11644 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
11645 results for "%010a" of Infinity and NaN.
11646 * tests/test-vasprintf-posix.c (test_function): Likewise.
11647 * tests/test-snprintf-posix.h (test_function): Likewise.
11648 * tests/test-sprintf-posix.h (test_function): Likewise.
11649 * tests/test-fprintf-posix.h (test_function): Remove these tests.
11650 * tests/test-printf-posix.h (test_function): Likewise.
11651 * tests/test-fprintf-posix.out: Update.
11652 Needed for FreeBSD 6.1.
11654 2007-04-04 Bruno Haible <bruno@clisp.org>
11656 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
11657 directly used by the gnulib modules nor by gnulib-tool.
11659 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
11661 * DEPENDENCIES: Give overall description of version dependency
11662 desirability. Use more-typical names for apps.
11663 Add shell, coreutils, diffutils, grep, tar, gzip.
11665 2007-04-04 Simon Josefsson <simon@josefsson.org>
11667 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
11669 2007-04-04 Karl Berry <karl@gnu.org>
11671 * MODULES.html.sh (func_module): missing '.
11673 2007-04-03 Bruno Haible <bruno@clisp.org>
11675 * modules/argmatch-tests (Makefile.am): New variable
11676 test_argmatch_LDADD.
11677 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
11678 * modules/array-list-tests (Makefile.am): New variable
11679 test_array_list_LDADD.
11680 * modules/array-oset-tests (Makefile.am): New variable
11681 test_array_oset_LDADD.
11682 * modules/avltree-list-tests (Makefile.am): New variable
11683 test_avltree_list_LDADD.
11684 * modules/avltree-oset-tests (Makefile.am): New variable
11685 test_avltree_oset_LDADD.
11686 * modules/avltreehash-list-tests (Makefile.am): New variable
11687 test_avltreehash_list_LDADD.
11688 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
11689 test_canonicalize_lgpl_LDADD.
11690 * modules/carray-list-tests (Makefile.am): New variable
11691 test_carray_list_LDADD.
11692 * modules/dirname-tests (Makefile.am): New variable
11693 test_dirname_LDADD.
11694 * modules/linked-list-tests (Makefile.am): New variable
11695 test_linked_list_LDADD.
11696 * modules/linkedhash-list-tests (Makefile.am): New variable
11697 test_linkedhash_list_LDADD.
11698 * modules/rbtree-list-tests (Makefile.am): New variable
11699 test_rbtree_list_LDADD.
11700 * modules/rbtree-oset-tests (Makefile.am): New variable
11701 test_rbtree_oset_LDADD.
11702 * modules/rbtreehash-list-tests (Makefile.am): New variable
11703 test_rbtreehash_list_LDADD.
11704 * modules/xvasprintf-tests (Makefile.am): New variable
11705 test_xvasprintf_LDADD.
11706 Reported by Eric Blake.
11708 2007-04-03 Eric Blake <ebb9@byu.net>
11710 * DEPENDENCIES: Weaken m4 requirements.
11712 2007-04-03 Bruno Haible <bruno@clisp.org>
11714 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
11715 * modules/isnanl-tests (configure.ac): Likewise.
11717 2007-04-03 Ben Pfaff <blp@gnu.org>
11719 * modules/iconv_open: Add $(srcdir)/ to source directory
11720 references in Makefile fragments that call gperf, to fix VPATH
11723 2007-04-03 Bruno Haible <bruno@clisp.org>
11725 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
11726 * lib/ldexpl.c: Undo last change.
11728 2007-04-03 Bruno Haible <bruno@clisp.org>
11730 * modules/printf-frexpl (Depends-on): Undo last change.
11731 (Files): Add m4/ldexpl.m4.
11733 2007-04-03 Bruno Haible <bruno@clisp.org>
11735 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
11736 * modules/isnanl (Link): New section.
11738 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
11739 * modules/frexp (Link): New section.
11741 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
11742 * modules/frexpl (Link): New section.
11744 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
11745 * modules/ldexpl (Link): New section.
11747 2007-04-03 Bruno Haible <bruno@clisp.org>
11749 * modules/TEMPLATE-EXTENDED: New file.
11750 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
11752 2007-04-03 Bruno Haible <bruno@clisp.org>
11754 * DEPENDENCIES: New file.
11755 Suggested by Simon Josefsson.
11757 2007-04-03 Bruno Haible <bruno@clisp.org>
11759 * doc/gnulib.texi: Escape @.
11761 2007-04-03 James Youngman <jay@gnu.org>
11762 and Paul Eggert <eggert@cs.ucla.edu>
11764 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
11765 birthtime on all systems that have birthtime, not just those which
11766 use st_birthtimensec rather than st_birthtim. Putting zero in
11767 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
11768 that the birth time is not available for files on an NFS mount.
11770 2007-04-03 Simon Josefsson <simon@josefsson.org>
11772 * modules/memxor: Move back from crypto/, suggested by Bruno.
11773 * modules/crypto/hmac-sha1: Fix memxor dependency.
11775 * modules/crypto/gc: Moved from ../.
11777 2007-04-02 Eric Blake <ebb9@byu.net>
11779 * lib/ldexpl.c (includes): Avoid libm.
11781 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
11783 2007-04-02 Bruno Haible <bruno@clisp.org>
11785 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
11788 2007-04-02 Bruno Haible <bruno@clisp.org>
11790 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
11791 x86 or x86_64 platforms running MacOS X.
11792 Reported by Ryan Schmidt <@ryandesign.com>.
11794 2007-04-02 Bruno Haible <bruno@clisp.org>
11796 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
11799 2007-04-01 Simon Josefsson <simon@josefsson.org>
11801 * modules/crypto/arcfour: Moved from ../.
11802 * modules/crypto/arcfour-tests: Moved from ../.
11803 * modules/crypto/arctwo: Moved from ../.
11804 * modules/crypto/arctwo-tests: Moved from ../.
11805 * modules/crypto/des: Moved from ../.
11806 * modules/crypto/des-tests: Moved from ../.
11807 * modules/crypto/gc-arcfour: Moved from ../.
11808 * modules/crypto/gc-arcfour-tests: Moved from ../.
11809 * modules/crypto/gc-arctwo: Moved from ../.
11810 * modules/crypto/gc-arctwo-tests: Moved from ../.
11811 * modules/crypto/gc-des: Moved from ../.
11812 * modules/crypto/gc-des-tests: Moved from ../.
11813 * modules/crypto/gc-hmac-md5: Moved from ../.
11814 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
11815 * modules/crypto/gc-hmac-sha1: Moved from ../.
11816 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
11817 * modules/crypto/gc-md2: Moved from ../.
11818 * modules/crypto/gc-md2-tests: Moved from ../.
11819 * modules/crypto/gc-md4: Moved from ../.
11820 * modules/crypto/gc-md4-tests: Moved from ../.
11821 * modules/crypto/gc-md5: Moved from ../.
11822 * modules/crypto/gc-md5-tests: Moved from ../.
11823 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
11824 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
11825 * modules/crypto/gc-random: Moved from ../.
11826 * modules/crypto/gc-rijndael: Moved from ../.
11827 * modules/crypto/gc-rijndael-tests: Moved from ../.
11828 * modules/crypto/gc-sha1: Moved from ../.
11829 * modules/crypto/gc-sha1-tests: Moved from ../.
11830 * modules/crypto/gc-tests: Moved from ../.
11831 * modules/crypto/hmac-md5: Moved from ../.
11832 * modules/crypto/hmac-md5-tests: Moved from ../.
11833 * modules/crypto/hmac-sha1: Moved from ../.
11834 * modules/crypto/hmac-sha1-tests: Moved from ../.
11835 * modules/crypto/md2: Moved from ../.
11836 * modules/crypto/md2-tests: Moved from ../.
11837 * modules/crypto/md4: Moved from ../.
11838 * modules/crypto/md4-tests: Moved from ../.
11839 * modules/crypto/md5: Moved from ../.
11840 * modules/crypto/md5-tests: Moved from ../.
11841 * modules/crypto/memxor: Moved from ../.
11842 * modules/crypto/rijndael: Moved from ../.
11843 * modules/crypto/rijndael-tests: Moved from ../.
11844 * modules/crypto/sha1: Moved from ../.
11846 2007-03-30 James Youngman <jay@gnu.org>
11848 * tests/test-stat-time.c (prepare_test): use chmod() rather than
11849 rename() to change the ctime of a file (because ctime is unaffected
11850 by rename on jfs2 on AIX 5.1).
11851 (main): Start by doing cleanup, in case a previous run failed leaving
11854 2007-03-31 Bruno Haible <bruno@clisp.org>
11856 Support old proprietary implementations of iconv.
11857 * modules/iconv_open: New file.
11858 * lib/iconv_.h: New file.
11859 * m4/iconv_h.m4: New file.
11860 * lib/iconv_open.c: New file.
11861 * lib/iconv_open-aix.gperf: New file.
11862 * lib/iconv_open-hpux.gperf: New file.
11863 * lib/iconv_open-irix.gperf: New file.
11864 * lib/iconv_open-osf.gperf: New file.
11865 * m4/iconv_open.m4: New file.
11866 * modules/linebreak (Depends-on): Add iconv_open.
11867 * modules/striconv (Depends-on): Likewise.
11868 * modules/striconveh (Depends-on): Likewise.
11869 * modules/unicodeio (Depends-on): Likewise.
11870 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
11872 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
11873 conversion if cd is (iconv_t)(-1).
11874 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
11877 2007-03-31 Bruno Haible <bruno@clisp.org>
11879 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
11880 work on Solaris either. Protect also second use of "autodetect_jp".
11882 2007-03-31 Bruno Haible <bruno@clisp.org>
11884 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
11885 the function is not present.
11887 2007-03-31 Bruno Haible <bruno@clisp.org>
11889 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
11890 the function is not present.
11892 2007-03-31 Bruno Haible <bruno@clisp.org>
11894 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
11895 a bug in HP-UX iconv_open().
11897 2007-03-31 Bruno Haible <bruno@clisp.org>
11899 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
11900 (Mathematics <math.h>): New section, add fpieee.
11901 (Input/output <stdio.h>): Add fseterr.
11902 (Mathematics <math.h>): New section, add printf-frexp.
11903 (Container data structures): Add sublist.
11904 (Core language properties): Add fpucw, inline.
11905 (Functions for greatest-width integer types <inttypes.h>): Add
11906 imaxabs, imaxdiv, inttypes.
11907 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
11908 isnanl-nolibm, ldexp.
11909 (Mathematics <math.h>): New section, add printf-frexpl.
11910 (Support for systems lacking POSIX:2001): Add fprintf-posix,
11911 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
11912 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
11913 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
11914 (Unicode string functions): Add unistr/u*-mbtoucr.
11915 (Java): Add javacomp-script, javaexec-script.
11916 (C#): Add csharpcomp-script, csharpexec-script.
11917 (Support for building libraries and executables): Add havelib,
11919 (Support for maintaining and releasing projects): Renamed from
11920 'Support for maintaining and release projects'. Add announce-gen.
11922 2007-03-31 Bruno Haible <bruno@clisp.org>
11924 * README: Talk primarily about git.
11925 (git and CVS): Renamed from CVS.
11926 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
11927 gnulib is available through git.
11928 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
11930 2007-03-30 Bruno Haible <bruno@clisp.org>
11932 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
11933 * lib/poll_.h: Likewise.
11934 * lib/stat_.h: Likewise.
11935 * lib/sys_time_.h: Likewise.
11936 * lib/sysexit_.h: Likewise.
11937 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
11938 * lib/stdbool_.h: Likewise.
11939 * lib/byteswap_.h: Add double-inclusion guard.
11941 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
11943 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
11945 2007-03-30 Karl Berry <karl@gnu.org>
11947 * config/srclist-update: double space after USA in the license
11948 substitution, since that's how it's usually (?) written.
11950 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
11952 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
11953 reported by Bruno Haible.
11955 2007-03-29 Bruno Haible <bruno@clisp.org>
11957 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
11958 a bug in AIX iconv().
11960 2007-03-29 Bruno Haible <bruno@clisp.org>
11962 * modules/ldexpl-tests: New file.
11963 * tests/test-ldexpl.c: New file.
11965 2007-03-29 Bruno Haible <bruno@clisp.org>
11967 * lib/ldexpl.c: Include fpucw.h.
11968 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
11970 * modules/ldexpl (Depends-on): Add fpucw.
11972 2007-03-29 Bruno Haible <bruno@clisp.org>
11974 * modules/ldexpl: New file.
11975 * m4/ldexpl.m4: New file.
11976 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
11978 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
11980 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
11982 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
11983 gl_FUNC_LDEXPL_WORKS.
11984 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
11985 * modules/mathl (Files): Remove lib/ldexpl.c.
11986 (Depends-on): Add ldexpl.
11988 2007-03-29 Bruno Haible <bruno@clisp.org>
11990 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
11992 2007-03-29 Bruno Haible <bruno@clisp.org>
11994 * tests/test-striconveh.c (main): Don't assume that a direct conversion
11995 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
11996 and possibly also HP-UX.
11997 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
11998 work on AIX, IRIX, HP-UX, OSF/1.
11999 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
12000 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
12001 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
12002 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
12003 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
12004 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
12006 2007-03-29 Bruno Haible <bruno@clisp.org>
12008 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
12010 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
12012 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
12013 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
12015 2007-03-29 Eric Blake <ebb9@byu.net>
12017 * lib/acl-internal.h: Remove redundant include.
12018 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
12019 Cygwin when a file is locked.
12021 2007-03-29 Bruno Haible <bruno@clisp.org>
12023 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
12025 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
12027 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
12029 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
12030 try to remove a parent directory if the child couldn't be removed
12031 (except for the first rmdir, which could fail because the child
12032 doesn't exist). Problem reported by Jeff Blaine in
12033 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
12035 2007-03-28 Bruno Haible <bruno@clisp.org>
12037 * lib/striconveh.c (utf8conv_carefully): New function.
12038 (mem_cd_iconveh_internal): Invoke it.
12040 2007-03-28 Bruno Haible <bruno@clisp.org>
12042 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
12043 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
12045 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
12046 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
12049 2007-03-28 Bruno Haible <bruno@clisp.org>
12051 * modules/unistr/u8-mbtoucr: New file.
12052 * lib/unistr/u8-mbtoucr.c: New file.
12053 * modules/unistr/u16-mbtoucr: New file.
12054 * lib/unistr/u16-mbtoucr.c: New file.
12055 * modules/unistr/u16-mbtoucr: New file.
12056 * lib/unistr/u16-mbtoucr.c: New file.
12057 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
12059 2007-03-27 Simon Josefsson <simon@josefsson.org>
12060 Bruno Haible <bruno@clisp.org>
12062 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
12063 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
12064 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
12066 * m4/stdio_h.m4: Add stubs for vasprintf too.
12068 * modules/stdio: Support vasprintf in sed command.
12070 * modules/vasprintf: Depend on stdio for prototypes. Remove
12071 vasprintf.h. Add stdio module indicator.
12073 * lib/stdio_.h: Declare asprintf and vasprintf, based on
12076 * lib/vasprintf.h: File removed.
12078 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
12079 * lib/vasprintf.c: Ditto.
12080 * lib/xvasprintf.c: Ditto.
12081 * tests/test-vasprintf-posix.c: Ditto.
12082 * tests/test-vasprintf.c: Ditto.
12084 2007-03-27 Bruno Haible <bruno@clisp.org>
12086 Make vasnprintf multithread-safe.
12087 * lib/vasnprintf.c (decimal_point_char): New function.
12088 (VASNPRINTF): Use it.
12089 Suggested by Simon Josefsson.
12091 2007-03-27 Eric Blake <ebb9@byu.net>
12093 Support sub-second birthtime on cygwin.
12094 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
12095 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
12096 (get_stat_birthtime): Also work with st_birthtim.
12098 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
12100 * lib/stat-time.h (USE_BIRTHTIME): Remove.
12101 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
12102 (get_stat_birthtime_ns): Do not try to use "spare" fields.
12103 (get_stat_birthtime_ns): Simplify compile-time tests.
12104 (get_stat_birthtime): Change the API to look like
12105 get_stat_mtime etc., except return a negative tv_nsec on error.
12106 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
12107 Don't check for "spare" fields.
12108 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
12109 or for struct stat.st_birthtime, as these tests aren't used.
12110 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
12112 2007-03-27 Bruno Haible <bruno@clisp.org>
12114 * lib/stat-time.h: Include <sys/stat.h>.
12116 2007-03-27 James Youngman <jay@gnu.org>
12118 * lib/stat-time.h (get_stat_birthtime): New function for
12119 retrieving st_birthtime as provided by UFS2 (hence *BSD).
12120 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
12122 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
12123 * modules/stat-time-test: New file.
12124 * tests/test-stat-time.c: New test, devised by Bruno Haible.
12126 2007-03-26 Bruno Haible <bruno@clisp.org>
12128 Better support of signalling NaNs.
12129 * lib/atanl.c: Include isnanl.h.
12130 (atanl): Perform test for NaN at the beginning of the function and
12131 through a call to isnanl.
12132 * lib/cosl.c: Include isnanl.h.
12133 (cosl): Perform test for NaN at the beginning of the function and
12134 through a call to isnanl.
12135 * lib/ldexpl.c: Include isnanl.h.
12136 (ldexpl): Perform test for NaN through a call to isnanl.
12137 * lib/logl.c: Include isnanl.h.
12138 (logl): Perform test for NaN at the beginning of the function and
12139 through a call to isnanl.
12140 * lib/sinl.c: Include isnanl.h.
12141 (sinl): Perform test for NaN at the beginning of the function and
12142 through a call to isnanl.
12143 * lib/sqrtl.c: Include isnanl.h.
12144 (sqrtl): Perform test for NaN at the beginning of the function and
12145 through a call to isnanl.
12146 * lib/tanl.c: Include isnanl.h.
12147 (tanl): Perform test for NaN at the beginning of the function and
12148 through a call to isnanl.
12149 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
12150 * modules/mathl (Depends-on): Add isnanl.
12152 2007-03-26 Eric Blake <ebb9@byu.net>
12154 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
12155 regression in logic sense of previous patch.
12157 2007-03-26 Bruno Haible <bruno@clisp.org>
12159 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
12160 unportable shell command "if ! ...".
12161 Reported by Ralf Wildenhues.
12163 2007-03-25 Bruno Haible <bruno@clisp.org>
12165 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
12166 <sysexits.h> file, and only add EX_CONFIG.
12167 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
12168 absolute file name and whether it is sufficient. Substitute also
12169 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
12170 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
12171 ABSOLUTE_SYSEXITS_H into sysexits.h.
12173 2007-03-25 Bruno Haible <bruno@clisp.org>
12175 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
12178 2007-03-25 Bruno Haible <bruno@clisp.org>
12180 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
12181 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
12183 2007-03-25 Bruno Haible <bruno@clisp.org>
12185 * lib/vasnprintf.c: Include langinfo.h.
12186 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
12188 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
12189 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
12190 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12191 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12192 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12193 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12194 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12195 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
12196 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12197 Reported by Simon Josefsson.
12199 2007-03-25 Bruno Haible <bruno@clisp.org>
12201 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
12202 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
12203 * modules/vasnprintf (Depends-on): Add stdint.
12205 2007-03-25 Bruno Haible <bruno@clisp.org>
12207 * modules/fpieee: New file.
12208 * m4/fpieee.m4: New file.
12209 * modules/isnan-nolibm (Depends-on): Add fpieee.
12210 * modules/isnanl-nolibm (Depends-on): Add fpieee.
12211 * modules/isnanl (Depends-on): Add fpieee.
12213 2007-03-25 Bruno Haible <bruno@clisp.org>
12215 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
12217 2007-03-25 Bruno Haible <bruno@clisp.org>
12219 Avoid test failures on IRIX 6.5.
12220 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
12222 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
12226 2007-03-25 Bruno Haible <bruno@clisp.org>
12228 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
12229 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
12230 exists but doesn't work.
12231 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
12232 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
12233 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
12234 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
12236 2007-03-25 Bruno Haible <bruno@clisp.org>
12238 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
12239 returns inf. Needed on IRIX 6.5.
12241 2007-03-25 Bruno Haible <bruno@clisp.org>
12243 * tests/test-frexpl.c: Include isnanl-nolibm.h.
12244 (main): Use isnanl instead of x != x idiom.
12245 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
12247 * tests/test-frexp.c: Include isnan.h.
12248 (main): Use isnan instead of x != x idiom.
12249 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
12251 2007-03-25 Bruno Haible <bruno@clisp.org>
12253 * tests/test-frexp.c (NaN): New function/macro.
12254 (main): Use it instead of 0.0 / 0.0.
12255 * tests/test-isnan.c (NaN): New function/macro.
12256 (main): Use it instead of 0.0 / 0.0.
12257 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
12258 (test_function): Use it instead of 0.0 / 0.0.
12259 * tests/test-vasprintf-posix.c (NaN): New function/macro.
12260 (test_function): Use it instead of 0.0 / 0.0.
12261 * tests/test-snprintf-posix.h (NaN): New function/macro.
12262 (test_function): Use it instead of 0.0 / 0.0.
12263 * tests/test-sprintf-posix.h (NaN): New function/macro.
12264 (test_function): Use it instead of 0.0 / 0.0.
12265 * tests/test-fprintf-posix.h (NaN): New function/macro.
12266 (test_function): Use it instead of 0.0 / 0.0.
12267 * tests/test-printf-posix.h (NaN): New function/macro.
12268 (test_function): Use it instead of 0.0 / 0.0.
12270 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
12272 2007-03-25 Bruno Haible <bruno@clisp.org>
12274 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
12276 2007-03-25 Bruno Haible <bruno@clisp.org>
12278 * lib/regexec.c (merge_state_with_log): Make static.
12280 2007-03-25 Bruno Haible <bruno@clisp.org>
12282 * lib/trigl.c (kernel_rem_pio2): Make static.
12284 2007-03-25 Bruno Haible <bruno@clisp.org>
12286 * lib/sincosl.c (sincosl_table): Make static.
12288 2007-03-25 Bruno Haible <bruno@clisp.org>
12290 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
12291 if the compiler does not support C99.
12293 2007-03-25 Bruno Haible <bruno@clisp.org>
12295 * modules/time (Makefile.am): Ensure all rule action lines start with a
12298 2007-03-24 Bruno Haible <bruno@clisp.org>
12300 * modules/tsearch-tests: New file.
12301 * tests/test-tsearch.sh: New file.
12302 * tests/test-tsearch.c: New file, mostly copied from glibc.
12304 * modules/search-tests: New file.
12305 * tests/test-search.c: New file.
12307 * modules/search: New file.
12308 * lib/search_.h: New file, incorporating lib/tsearch.h.
12309 * m4/search_h.m4: New file.
12310 * lib/tsearch.h: Remove file.
12311 * lib/tsearch.c: Include search.h instead of tsearch.h.
12312 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
12314 * modules/tsearch (Files): Remove lib/tsearch.h.
12315 (Depends-on): Add search.
12316 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
12317 (Include): Change tsearch.h into search.h.
12319 2007-03-24 Bruno Haible <bruno@clisp.org>
12321 * modules/fpucw: New file.
12322 * lib/fpucw.h: New file.
12323 * lib/frexp.c: Include fpucw.h.
12324 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
12326 * lib/printf-frexp.c: Include fpucw.h.
12327 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
12329 * lib/vasnprintf.c: Include fpucw.h.
12330 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
12331 'long double' calculations.
12332 * tests/test-frexpl.c: Include fpucw.h.
12333 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
12334 * tests/test-printf-frexpl.c: Include fpucw.h.
12335 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
12336 * modules/frexpl (Depends-on): Add fpucw.
12337 * modules/printf-frexpl (Depends-on): Likewise.
12338 * modules/fprintf-posix (Depends-on): Likewise.
12339 * modules/snprintf-posix (Depends-on): Likewise.
12340 * modules/sprintf-posix (Depends-on): Likewise.
12341 * modules/vasnprintf-posix (Depends-on): Likewise.
12342 * modules/vasprintf-posix (Depends-on): Likewise.
12343 * modules/vfprintf-posix (Depends-on): Likewise.
12344 * modules/vsnprintf-posix (Depends-on): Likewise.
12345 * modules/vsprintf-posix (Depends-on): Likewise.
12346 * modules/frexpl-tests (Depends-on): Likewise.
12347 * modules/printf-frexpl-tests (Depends-on): Likewise.
12349 2007-03-24 Bruno Haible <bruno@clisp.org>
12351 * lib/float+.h: New file.
12352 * lib/isnan.c: Include float+.h.
12354 (FUNC): Compare only SIZE bytes of the value.
12355 * lib/vasnprintf.c: Include float+.h.
12356 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
12357 SIZEOF_LDBL or SIZEOF_DBL bytes.
12358 * modules/isnan-nolibm (Files): Add lib/float+.h.
12359 * modules/isnanl-nolibm (Files): Add lib/float+.h.
12360 * modules/isnanl (Files): Add lib/float+.h.
12361 * modules/vasnprintf (Files): Add lib/float+.h.
12363 2007-03-24 Bruno Haible <bruno@clisp.org>
12365 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
12366 include isnanl-nolibm.h.
12368 2007-03-24 Bruno Haible <bruno@clisp.org>
12370 * tests/test-read-file.c (main): Don't produce spurious output for
12371 expected situations. Make the test fail if it encountered unexpected
12374 2007-03-24 Bruno Haible <bruno@clisp.org>
12376 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
12377 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
12379 2007-03-24 Bruno Haible <bruno@clisp.org>
12381 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
12383 2007-03-24 Bruno Haible <bruno@clisp.org>
12385 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
12386 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
12388 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
12389 * modules/utf8-ucs4: Turn into a symbolic link to module
12392 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
12394 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
12395 unistr/u8-mbtouc-unsafe.
12397 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
12398 * modules/utf16-ucs4: Turn into a symbolic link to module
12401 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
12403 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
12404 unistr/u16-mbtouc-unsafe.
12406 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
12407 * modules/ucs4-utf8: Turn into a symbolic link to module
12410 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
12411 * modules/ucs4-utf16: Turn into a symbolic link to module
12414 2007-03-24 Bruno Haible <bruno@clisp.org>
12416 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
12417 Enable the function only if HAVE_INLINE.
12418 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
12419 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
12420 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
12421 Enable the function only if HAVE_INLINE.
12422 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
12423 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
12424 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
12425 Enable the function only if HAVE_INLINE.
12426 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
12427 Enable the function only if HAVE_INLINE.
12428 * modules/utf8-ucs4: Update.
12429 * modules/utf8-ucs4-unsafe: Update.
12430 * modules/utf16-ucs4: Update.
12431 * modules/utf16-ucs4-unsafe: Update.
12432 * modules/ucs4-utf8: Update.
12433 * modules/ucs4-utf16: Update.
12435 2007-03-24 Bruno Haible <bruno@clisp.org>
12437 * lib/utf8-ucs4.h: Remove file.
12438 * lib/utf8-ucs4-unsafe.h: Remove file.
12439 * lib/utf16-ucs4.h: Remove file.
12440 * lib/utf16-ucs4-unsafe.h: Remove file.
12441 * lib/ucs4-utf8.h: Remove file.
12442 * lib/ucs4-utf16.h: Remove file.
12443 * lib/unistr.h: Include their previous contents.
12444 * m4/utf-ucs4.m4: Remove file.
12445 * m4/ucs4-utf.m4: Remove file.
12446 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
12447 (Depends-on): Add unistr/base.
12448 (configure.ac): Remove gl_UTF_UCS4.
12449 (Makefile.am): Update.
12450 (Include): Change to unistr.h.
12451 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
12452 (Depends-on): Add unistr/base.
12453 (configure.ac): Remove gl_UTF_UCS4.
12454 (Makefile.am): Update.
12455 (Include): Change to unistr.h.
12456 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
12457 (Depends-on): Add unistr/base.
12458 (configure.ac): Remove gl_UTF_UCS4.
12459 (Makefile.am): Update.
12460 (Include): Change to unistr.h.
12461 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
12462 (Depends-on): Add unistr/base.
12463 (configure.ac): Remove gl_UTF_UCS4.
12464 (Makefile.am): Update.
12465 (Include): Change to unistr.h.
12466 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
12467 (Depends-on): Add unistr/base.
12468 (configure.ac): Remove gl_UCS4_UTF.
12469 (Makefile.am): Update.
12470 (Include): Change to unistr.h.
12471 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
12472 (Depends-on): Add unistr/base.
12473 (configure.ac): Remove gl_UCS4_UTF.
12474 (Makefile.am): Update.
12475 (Include): Change to unistr.h.
12476 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
12477 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
12478 utf8-ucs4-unsafe.h.
12479 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
12480 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
12481 utf16-ucs4-unsafe.h.
12482 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
12483 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
12484 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
12485 * lib/unistr/u8-strchr.c: Likewise.
12486 * lib/unistr/u8-strrchr.c: Likewise.
12487 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
12488 * lib/unistr/u16-strchr.c: Likewise.
12489 * lib/unistr/u16-strrchr.c: Likewise.
12490 * lib/striconveh.c: Update.
12491 * lib/linebreak.c: Update.
12493 2007-03-24 Bruno Haible <bruno@clisp.org>
12495 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
12496 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
12498 2007-03-22 Bruno Haible <bruno@clisp.org>
12500 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
12502 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
12504 * MODULES.html.sh (File system functions): New module write-any-file.
12505 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
12506 * m4/write-any-file.m4: New files.
12508 2007-03-23 Eric Blake <ebb9@byu.net>
12510 * gnulib-tool: Rearrange space-tab sequences, since some editors
12513 2007-03-23 Eric Blake <ebb9@byu.net>
12515 * lib/version-etc.c (version_etc_va): Update license wording to
12516 be more concise. Recommended by Richard Stallman.
12518 2007-03-22 Bruno Haible <bruno@clisp.org>
12520 * lib/poll.c (MSG_PEEK): New fallback definition.
12522 2007-03-22 Bruno Haible <bruno@clisp.org>
12524 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
12525 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
12527 Fixes a compilation error on BeOS.
12529 2007-03-22 Bruno Haible <bruno@clisp.org>
12531 * modules/frexpl-tests: New file.
12532 * tests/test-frexpl.c: New file.
12534 * modules/frexpl: New file.
12535 * m4/frexpl.m4: New file.
12536 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
12537 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
12538 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
12539 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
12540 (Depends-on): Add frexpl. Remove isnanl-nolibm.
12541 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
12543 2007-03-22 Bruno Haible <bruno@clisp.org>
12545 * lib/frexpl.c: Share code with lib/frexp.c.
12546 * modules/mathl (Files): Add lib/frexp.c.
12547 (Depends-on): Add isnanl-nolibm.
12549 2007-03-22 Bruno Haible <bruno@clisp.org>
12551 * modules/printf-frexp (Files): Add m4/frexp.m4.
12552 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
12553 only if the found frexp function actually works.
12555 2007-03-22 Bruno Haible <bruno@clisp.org>
12557 * lib/frexp.c: Remove older implementation that uses divisions.
12559 2007-03-21 Bruno Haible <bruno@clisp.org>
12561 * modules/frexp-tests: New file.
12562 * tests/test-frexp.c: New file.
12564 * modules/frexp: New file.
12565 * lib/frexp.c: New file.
12566 * m4/frexp.m4: New file.
12567 * lib/math_.h (frexp): New declaration.
12568 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
12570 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
12572 2007-03-21 Bruno Haible <bruno@clisp.org>
12574 * modules/isnanl-tests: New file.
12575 * tests/test-isnanl.c: New file.
12577 * modules/isnanl: New file.
12578 * lib/isnanl.h: New file.
12579 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
12580 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
12581 gl_FUNC_ISNANL_WORKS.
12582 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
12585 2007-03-21 Bruno Haible <bruno@clisp.org>
12587 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
12590 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
12591 * lib/vasnprintf.c: Update.
12592 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
12593 tests/test-isnanl.h, remove tests/test-isnanl.c.
12594 (Makefile.am): Update.
12595 * tests/test-isnanl-nolibm.c: New file.
12596 * tests/test-isnanl.h: New file.
12597 * tests/test-isnanl.c: Remove file.
12599 2007-03-21 Jim Meyering <jim@meyering.net>
12601 When trying to open ".", treat ESTALE like EACCES.
12602 * lib/savewd.c (savewd_save): Resort to forking not just upon
12603 failure with EACCES, but also when errno is ESTALE.
12605 2007-03-20 Bruno Haible <bruno@clisp.org>
12607 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
12608 Needed on AIX 5.1. Reported by Matthew Woehlke.
12610 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
12612 Suggestions by Bruno Haible:
12613 * lib/acl-internal.h: Include "gettext.h" rather than rolling
12615 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
12616 * modules/acl (Depends-on): Add gettext.
12618 2007-03-19 Bruno Haible <bruno@clisp.org>
12620 * modules/iconvme: Remove file.
12621 * lib/iconvme.h: Remove file.
12622 * lib/iconvme.c: Remove file.
12623 * m4/iconvme.m4: Remove file.
12625 2007-03-19 Bruno Haible <bruno@clisp.org>
12627 * doc/relocatable-maint.texi: Break long shell script line.
12628 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
12630 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
12632 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
12633 handle file_has_acl.
12634 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
12635 * lib/acl.c: Move header inclusions and related macro defns into
12636 lib/acl-internal.h.
12637 (S_ISLNK): Remove defn, since that's now done for us.
12638 (file_has_acl): Move to lib/file-has-acl.c.
12639 Call acl_trivial if available. This is the crucial part of the fix.
12640 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
12641 shared within the library. Rewrite a bit, partly to make it compatible
12642 with the GNU coding style.
12643 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
12644 Remove unnecessary double-quotes.
12645 Don't test for acl_to_text; the build will catch that.
12646 Replace acl_entries if it doesn't exist and it is needed.
12647 Check for -lsec and acl_trivial (as used on Solaris 10).
12648 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
12649 lib/file-has-acl.c.
12650 (Depends-on): Add sys_stat, for S_ISLNK.
12652 2007-03-19 Ben Pfaff <blp@gnu.org>
12654 * doc/gnulib.texi: Fix typos.
12655 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
12657 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
12659 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
12660 If size is zero here, buf must be zero.
12662 2007-03-19 Simon Josefsson <simon@josefsson.org>
12664 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
12667 2007-03-18 Bruno Haible <bruno@clisp.org>
12669 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
12670 Suggested by Eric Blake.
12672 2007-03-18 Ben Pfaff <blp@gnu.org>
12674 * doc/relocatable.texi: Recommend using as prefix a directory
12675 that does not exist and will never be created. Based on
12676 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
12679 2007-03-17 Bruno Haible <bruno@clisp.org>
12681 * lib/fchownat.c: Include lchown.h.
12683 2007-03-17 Bruno Haible <bruno@clisp.org>
12685 Fix endless loop when the given allocated size was > INT_MAX.
12686 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
12687 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
12688 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
12689 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
12690 * lib/sprintf.c (sprintf): Likewise.
12692 2007-03-17 Bruno Haible <bruno@clisp.org>
12694 * tests/test-argp-2.sh (func_compare): Output a context diff.
12696 2007-03-17 Bruno Haible <bruno@clisp.org>
12698 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
12699 locale's decimal-point character.
12701 2007-03-17 Bruno Haible <bruno@clisp.org>
12703 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
12704 before comparing it. Needed because on some platforms (e.g. x86) a
12705 'long double' occupies less bytes than sizeof (long double).
12707 2007-03-17 Bruno Haible <bruno@clisp.org>
12709 * tests/test-crc.c (main): Make printf statements 64-bit clean.
12710 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
12711 * tests/test-getaddrinfo.c (simple): Likewise.
12712 * tests/test-read-file.c (main): Likewise.
12714 2007-03-17 Bruno Haible <bruno@clisp.org>
12716 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
12718 2007-03-17 Bruno Haible <bruno@clisp.org>
12720 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
12723 2007-03-17 Bruno Haible <bruno@clisp.org>
12725 * tests/test-c-strcasecmp.c: Include c-strcase.h.
12726 * tests/test-c-strncasecmp.c: Likewise.
12728 2007-03-17 Bruno Haible <bruno@clisp.org>
12730 * modules/stdlib (Depends-on): Add unistd.
12731 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
12732 Needed for MacOS X 10.3.
12734 2007-03-17 Bruno Haible <bruno@clisp.org>
12736 * lib/unistr/u-strdup.h: Include <stdlib.h>.
12738 2007-03-17 Bruno Haible <bruno@clisp.org>
12740 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
12742 2007-03-17 Bruno Haible <bruno@clisp.org>
12744 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
12745 to reflect files copied from gnulib (with or without modifications).
12746 Suggested by Jim Meyering.
12748 2007-03-17 Eric Blake <ebb9@byu.net>
12750 * NEWS: Document stdlib change from 2007-02-18.
12752 2007-03-17 Jim Meyering <jim@meyering.net>
12754 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
12755 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
12756 someone uses a name containing shell meta-characters.
12757 Reported by Alfred M. Szmidt.
12759 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
12761 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
12763 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
12764 and copy gettext configuration files only if configure.ac contains
12765 a use of AM_GNU_GETTEXT_VERSION.
12767 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
12769 * build-aux/bootstrap (gnulib_name): New variable.
12770 (gnulib_tool_options): Use it.
12772 2007-03-13 Simon Josefsson <simon@josefsson.org>
12774 * tests/test-des.c: Use new namespace.
12776 2007-03-15 Bruno Haible <bruno@clisp.org>
12778 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
12779 Reported by James Youngman <jay@gnu.org>.
12781 2007-03-15 Bruno Haible <bruno@clisp.org>
12783 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
12784 declared prototype. Needed with cc on OSF/1 5.1.
12786 2007-03-15 Bruno Haible <bruno@clisp.org>
12788 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
12789 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
12790 (struct gl_list_implementation): Add dispose_fn argument to the
12791 'create_empty', 'create' methods.
12792 (struct gl_list_impl_base): Add field 'dispose_fn'.
12793 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
12795 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
12796 dispose_fn argument.
12797 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
12798 dispose_fn on the dropped values.
12799 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
12800 dispose_fn argument.
12801 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
12803 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
12804 (gl_tree_remove_node): Call dispose_fn on the dropped value.
12805 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
12806 (gl_tree_remove_node): Call dispose_fn on the dropped value.
12807 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
12809 (gl_tree_list_free): Call dispose_fn on the dropped values.
12810 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
12811 the dropped values.
12812 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
12813 Add dispose_fn argument.
12814 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
12815 Call dispose_fn on the dropped values.
12816 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
12817 Add dispose_fn argument.
12818 (gl_sublist_create): Initialize the 'dispose_fn' field.
12819 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
12820 * tests/test-array_list.c (main): Update.
12821 * tests/test-carray_list.c (main): Update.
12822 * tests/test-avltree_list.c (main): Update.
12823 * tests/test-rbtree_list.c (main): Update.
12824 * tests/test-avltreehash_list.c (main): Update.
12825 * tests/test-rbtreehash_list.c (main): Update.
12826 * tests/test-linked_list.c (main): Update.
12827 * tests/test-linkedhash_list.c (main): Update.
12828 * tests/test-array_oset.c (main): Update.
12830 2007-03-15 Bruno Haible <bruno@clisp.org>
12832 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
12833 (gl_oset_create_empty): Add dispose_fn argument.
12834 (struct gl_oset_implementation): Add dispose_fn argument to
12835 'create_empty' method.
12836 (struct gl_oset_impl_base): Add dispose_fn field.
12837 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
12838 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
12839 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
12841 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
12842 (gl_tree_oset_free): Call dispose_fn on the dropped values.
12843 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
12845 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
12847 * tests/test-array_oset.c (main): Update.
12848 * tests/test-avltree_oset.c (main): Update.
12849 * tests/test-rbtree_oset.c (main): Update.
12850 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
12852 2007-03-13 Bruno Haible <bruno@clisp.org>
12854 * tests/test-stdbool.c (i): Update after last patch.
12856 2007-03-12 Bruno Haible <bruno@clisp.org>
12858 * lib/quotearg.c: Include <wctype.h> early, before the definition of
12859 the iswprint macro. Needed on Solaris 2.5.1.
12861 2007-03-12 Bruno Haible <bruno@clisp.org>
12863 * tests/test-printf-frexp.c (main): Declare x as volatile.
12865 2007-03-12 Simon Josefsson <simon@josefsson.org>
12867 * doc/gnulib.texi (Build robot for gnulib): New section.
12869 2007-03-12 Jim Meyering <jim@meyering.net>
12871 * build-aux/bootstrap: New file.
12872 * build-aux/bootstrap.conf: New file, from coreutils.
12874 2007-03-11 Bruno Haible <bruno@clisp.org>
12876 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
12878 2007-03-12 Simon Josefsson <simon@josefsson.org>
12880 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
12881 avoid collisions with 'des_setkey'. Reported by Bruno Haible
12882 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
12884 2007-03-11 Bruno Haible <bruno@clisp.org>
12886 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
12887 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
12889 2007-03-11 Bruno Haible <bruno@clisp.org>
12891 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
12892 formula. Needed for SunPRO C 5.0.
12894 2007-03-11 Bruno Haible <bruno@clisp.org>
12896 * modules/long-options (Depends-on): Add getopt.
12898 2007-03-11 Bruno Haible <bruno@clisp.org>
12900 * modules/modechange (Depends-on): Add stdbool.
12902 2007-03-11 Bruno Haible <bruno@clisp.org>
12904 * modules/i-ring (Depends-on): Add stdbool.
12906 2007-03-11 Bruno Haible <bruno@clisp.org>
12908 * modules/gc-des (Depends-on): Add stdbool.
12910 2007-03-11 Bruno Haible <bruno@clisp.org>
12912 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
12914 2007-03-11 Bruno Haible <bruno@clisp.org>
12916 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
12918 2007-03-11 Bruno Haible <bruno@clisp.org>
12920 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
12922 2007-03-11 Bruno Haible <bruno@clisp.org>
12924 * lib/vasnprintf.c (sprintf): Undefine.
12926 2007-03-11 Bruno Haible <bruno@clisp.org>
12928 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
12929 initializers in SunPRO C and Compaq C compilers.
12931 2007-03-11 Bruno Haible <bruno@clisp.org>
12933 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
12934 decrementing code ANSI C compliant.
12936 2007-03-11 Bruno Haible <bruno@clisp.org>
12938 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
12939 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
12941 2007-03-11 Bruno Haible <bruno@clisp.org>
12943 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
12944 <stdbool.h> substitute doesn't pass.
12946 2007-03-11 Bruno Haible <bruno@clisp.org>
12948 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
12950 2007-03-11 Bruno Haible <bruno@clisp.org>
12952 * gnulib-tool (func_create_megatestdir): Create also an autobuild
12953 script, for submission to autobuild.josefsson.org.
12955 2007-03-10 Bruno Haible <bruno@clisp.org>
12957 * modules/canonicalize-lgpl-tests: New file.
12958 * tests/test-canonicalize-lgpl.sh: New file.
12959 * tests/test-canonicalize-lgpl.c: New file.
12961 * modules/c-strcase-tests: New file.
12962 * tests/test-c-strcase.sh: New file.
12963 * tests/test-c-strcasecmp.c: New file.
12964 * tests/test-c-strncasecmp.c: New file.
12966 * modules/atexit-tests: New file.
12967 * tests/test-atexit.sh: New file.
12968 * tests/test-atexit.c: New file.
12970 2007-03-10 Bruno Haible <bruno@clisp.org>
12972 * tests/test-binary-io.sh: Use temporary filenames that are not so
12973 likely to clash with those of other tests (in a parallel make).
12974 * tests/test-binary-io.c: Likewise.
12976 2007-03-10 Bruno Haible <bruno@clisp.org>
12978 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
12979 fallback; use #error instead.
12980 Suggested by Simon Josefsson.
12982 2007-03-10 Bruno Haible <bruno@clisp.org>
12984 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
12985 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
12986 first and the last.
12988 2007-03-10 Bruno Haible <bruno@clisp.org>
12990 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
12992 2007-03-10 Bruno Haible <bruno@clisp.org>
12994 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
12996 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
12997 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
12998 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
13000 2007-03-10 Bruno Haible <bruno@clisp.org>
13002 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
13004 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
13007 2007-03-09 Eric Blake <ebb9@byu.net>
13008 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
13010 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
13011 types are not being provided by gnulib.
13012 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
13013 types are supported.
13015 2007-03-10 Bruno Haible <bruno@clisp.org>
13017 * lib/stdio_.h (__attribute__): New macro.
13018 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
13019 vsprintf): Specify __attribute__ __format__ for GCC.
13020 Suggested by Eric Blake.
13022 2007-03-09 Bruno Haible <bruno@clisp.org>
13024 * modules/printf-posix-tests: New file.
13025 * tests/test-printf-posix.sh: New file.
13026 * tests/test-printf-posix.c: New file.
13028 * modules/printf-posix: New file.
13029 * lib/printf.c: New file.
13030 * m4/printf-posix-rpl.m4: New file.
13031 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
13033 * lib/stdio_.h (printf): New declaration.
13034 (format, __format__, ____printf____, ____scanf____, ____strftime____,
13035 ____strfmon____): New macros.
13036 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
13039 2007-03-09 Bruno Haible <bruno@clisp.org>
13041 * tests/test-vasnprintf-posix2.sh: New file.
13042 * tests/test-vasnprintf-posix2.c: New file.
13043 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
13044 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
13045 (Makefile.am): Activate test-vasnprintf-posix2.sh.
13047 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
13048 a locale dependent decimal point, rather than always '.'.
13050 2007-03-09 Eric Blake <ebb9@byu.net>
13052 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
13053 spite of platforms like Tandem/NSK that define it to -1.
13055 2007-03-08 Bruno Haible <bruno@clisp.org>
13057 * modules/vprintf-posix-tests: New file.
13058 * tests/test-vprintf-posix.sh: New file.
13059 * tests/test-vprintf-posix.c: New file.
13060 * tests/test-printf-posix.h: New file.
13062 * modules/vprintf-posix: New file.
13063 * lib/vprintf.c: New file.
13064 * m4/vprintf-posix.m4: New file.
13065 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
13067 * lib/stdio_.h (vprintf): New declaration.
13068 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
13071 2007-03-08 Bruno Haible <bruno@clisp.org>
13073 * modules/fprintf-posix-tests: New file.
13074 * tests/test-fprintf-posix.sh: New file.
13075 * tests/test-fprintf-posix.c: New file.
13077 * modules/fprintf-posix: New file.
13078 * lib/fprintf.c: New file.
13079 * m4/fprintf-posix.m4: New file.
13080 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
13082 * lib/stdio_.h (fprintf): New declaration.
13083 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
13086 2007-03-08 Bruno Haible <bruno@clisp.org>
13088 * modules/vfprintf-posix-tests: New file.
13089 * tests/test-vfprintf-posix.sh: New file.
13090 * tests/test-vfprintf-posix.c: New file.
13091 * tests/test-fprintf-posix.h: New file.
13092 * tests/test-fprintf-posix.out: New file.
13094 * modules/vfprintf-posix: New file.
13095 * lib/vfprintf.c: New file.
13096 * m4/vfprintf-posix.m4: New file.
13097 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
13099 * lib/stdio_.h (vfprintf): New declaration.
13100 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
13103 2007-03-08 Bruno Haible <bruno@clisp.org>
13105 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
13107 2007-03-08 Bruno Haible <bruno@clisp.org>
13109 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
13110 instead of 'expr' invocations.
13111 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13112 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13113 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13114 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13115 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13116 Suggested by Paul Eggert.
13118 2007-03-08 Bruno Haible <bruno@clisp.org>
13120 * modules/fseterr-tests: New file.
13121 * tests/test-fseterr.c: New file.
13123 * modules/fseterr: New file.
13124 * lib/fseterr.h: New file.
13125 * lib/fseterr.c: New file.
13127 2007-03-08 Bruno Haible <bruno@clisp.org>
13129 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
13130 * lib/getopt_.h: Likewise.
13131 * lib/mbswidth.h: Likewise.
13132 * lib/setenv.h: Likewise.
13133 * lib/vasnprintf.h: Likewise.
13134 * lib/vasprintf.h: Likewise.
13135 * lib/verror.h: Likewise.
13136 * lib/xsetenv.h: Likewise.
13137 * lib/xvasprintf.h: Likewise.
13139 2007-03-08 Jim Meyering <jim@meyering.net>
13141 * users.txt: Add parted.
13143 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
13145 2007-03-07 Bruno Haible <bruno@clisp.org>
13147 * m4/printf.m4: Make the shell script snippets copy&pastable.
13149 2007-03-02 Bruno Haible <bruno@clisp.org>
13151 * lib/netinet_in_.h: New file.
13152 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
13153 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
13154 * modules/netinet_in (Files): Add lib/netinet_in_.h.
13155 (Depends-on): Add absolute-header.
13156 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
13159 2007-03-03 Bruno Haible <bruno@clisp.org>
13161 * lib/sys_select_.h: New file.
13162 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
13163 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
13164 * modules/sys_select (Files): Add lib/sys_select_.h.
13165 (Depends-on): Add absolute-header.
13166 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
13169 2007-03-02 Bruno Haible <bruno@clisp.org>
13171 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
13172 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
13174 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
13175 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
13176 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
13177 * modules/sys_socket (Depends-on): Add absolute-header.
13178 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
13179 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
13180 (Include): Remove requirement of inclusion of <sys/types.h>.
13182 2007-03-02 Bruno Haible <bruno@clisp.org>
13184 * lib/byteswap_.h (bswap_32): Fix formula.
13186 2007-03-06 Bruno Haible <bruno@clisp.org>
13188 * modules/sprintf-posix-tests: New file.
13189 * tests/test-sprintf-posix.c: New file.
13191 * modules/sprintf-posix: New file.
13192 * lib/sprintf.c: New file.
13193 * m4/sprintf-posix.m4: New file.
13194 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
13196 * lib/stdio_.h (sprintf): New declaration.
13197 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
13200 2007-03-06 Bruno Haible <bruno@clisp.org>
13202 * modules/vsprintf-posix-tests: New file.
13203 * tests/test-vsprintf-posix.c: New file.
13204 * tests/test-sprintf-posix.h: New file.
13206 * modules/vsprintf-posix: New file.
13207 * lib/vsprintf.c: New file.
13208 * m4/vsprintf-posix.m4: New file.
13209 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
13211 * lib/stdio_.h (vsprintf): New declaration.
13212 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
13215 2007-03-06 Bruno Haible <bruno@clisp.org>
13217 * modules/vsnprintf (Depend-on): Remove minmax.
13219 2007-03-06 Bruno Haible <bruno@clisp.org>
13221 * modules/snprintf-posix-tests: New file.
13222 * tests/test-snprintf-posix.c: New file.
13224 * modules/snprintf-posix: New file.
13225 * m4/snprintf-posix.m4: New file.
13226 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
13228 (gl_FUNC_SNPRINTF): Invoke it.
13229 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
13230 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
13232 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
13234 2007-03-06 Bruno Haible <bruno@clisp.org>
13236 * modules/vsnprintf-posix-tests: New file.
13237 * tests/test-vsnprintf-posix.c: New file.
13238 * tests/test-snprintf-posix.h: New file.
13240 * modules/vsnprintf-posix: New file.
13241 * m4/vsnprintf-posix.m4: New file.
13242 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
13244 (gl_FUNC_VSNPRINTF): Invoke it.
13245 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
13246 * lib/stdio_.h (vsnprintf): Define as a replacement if
13247 REPLACE_VSNPRINTF is set.
13248 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
13250 2007-03-06 Bruno Haible <bruno@clisp.org>
13252 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
13253 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
13255 2007-03-06 Bruno Haible <bruno@clisp.org>
13257 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
13258 (asinl): Declare also if HAVE_DECL_ASINL is set.
13259 (atanl): Declare also if HAVE_DECL_ATANL is set.
13260 (ceill): Declare also if HAVE_DECL_CEILL is set.
13261 (cosl): Declare also if HAVE_DECL_COSL is set.
13262 (expl): Declare also if HAVE_DECL_EXPL is set.
13263 (floorl): Declare also if HAVE_DECL_FLOORL is set.
13264 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
13265 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
13266 (logl): Declare also if HAVE_DECL_LOGL is set.
13267 (sinl): Declare also if HAVE_DECL_SINL is set.
13268 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
13269 (tanl): Declare also if HAVE_DECL_TANL is set.
13270 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
13271 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
13272 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
13273 declaration of frexpl, ldexpl.
13274 * modules/printf-frexpl (Depends-on): Add math.
13275 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
13277 2007-03-05 Bruno Haible <bruno@clisp.org>
13279 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
13280 frexpl and ldexpl are declared.
13281 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
13283 2007-03-05 Bruno Haible <bruno@clisp.org>
13285 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
13286 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
13288 2007-03-05 Bruno Haible <bruno@clisp.org>
13290 * lib/stdio_.h: Include <stddef.h>.
13292 2007-03-05 Bruno Haible <bruno@clisp.org>
13294 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
13296 2007-03-05 Bruno Haible <bruno@clisp.org>
13298 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
13299 NetBSD 4, from Ralf Wildenhues.
13301 2007-03-04 Bruno Haible <bruno@clisp.org>
13303 * lib/vasprintf.h: Update #if logic for the case when the functions
13304 exist but are overridden.
13306 2007-03-04 Bruno Haible <bruno@clisp.org>
13308 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
13309 implementations: glibc-2.4 and MacOS X 10.3.
13310 * tests/test-vasnprintf-posix.c (test_function): Test also the case
13311 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
13312 * tests/test-vasprintf-posix.c (test_function): Likewise.
13314 2007-03-04 Bruno Haible <bruno@clisp.org>
13316 * modules/vasprintf-posix-tests: New file.
13317 * tests/test-vasprintf-posix.c: New file.
13319 * modules/vasprintf-posix: New file.
13320 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
13322 * m4/vasprintf-posix.m4: New file.
13323 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
13325 (gl_FUNC_VASPRINTF): Invoke it.
13326 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
13328 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
13330 2007-03-04 Bruno Haible <bruno@clisp.org>
13332 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
13333 REPLACE_GETTIMEOFDAY.
13334 * modules/sys_time (Makefile.am): Likewise.
13335 * m4/sys_time_h.m4: Likewise.
13336 * m4/gettimeofday.m4: Likewise.
13338 2007-03-04 Bruno Haible <bruno@clisp.org>
13340 * modules/vasnprintf-posix-tests: New file.
13341 * tests/test-vasnprintf-posix.c: New file.
13343 * modules/vasnprintf-posix: New file.
13344 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
13346 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
13347 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
13348 REPLACE_VASNPRINTF is defined.
13349 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
13350 gl_FUNC_VASNPRINTF.
13351 (gl_FUNC_VASNPRINTF): Invoke it.
13352 * m4/vasnprintf-posix.m4: New file.
13353 * m4/printf.m4: New file.
13355 2007-03-04 Bruno Haible <bruno@clisp.org>
13357 Compile progreloc.c only if --enable-relocatable is specified.
13358 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
13359 if --enable-relocatable was specified.
13360 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
13363 2007-03-04 Jim Meyering <jim@meyering.net>
13365 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
13366 Use it consistently, rather than enumerating errno constants.
13368 2007-03-04 Bruno Haible <bruno@clisp.org>
13370 * modules/xvasprintf-tests: New file.
13371 * tests/test-xvasprintf.c: New file.
13373 * modules/vasprintf-tests: New file.
13374 * tests/test-vasprintf.c: New file.
13376 * modules/vasnprintf-tests: New file.
13377 * tests/test-vasnprintf.c: New file.
13379 * modules/vsnprintf-tests: New file.
13380 * tests/test-vsnprintf.c: New file.
13382 * modules/snprintf-tests: New file.
13383 * tests/test-snprintf.c: New file.
13385 2007-03-04 Bruno Haible <bruno@clisp.org>
13387 Compile relocatable.c only if --enable-relocatable is specified.
13388 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
13389 gl_RELOCATABLE_LIBRARY.
13390 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
13391 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
13392 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
13393 gl_RELOCATABLE_LIBRARY.
13394 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
13395 (Makefile.am): Remove lib_SOURCES.
13396 * modules/relocatable-lib-lgpl (configure.ac): Invoke
13397 gl_RELOCATABLE_LIBRARY.
13398 (Makefile.am): Remove lib_SOURCES.
13399 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
13401 * modules/relocatable-prog-wrapper (configure.ac): Invoke
13402 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
13404 2007-03-04 Bruno Haible <bruno@clisp.org>
13406 * modules/argmatch-tests: New file.
13407 * tests/test-argmatch.c: New file.
13409 * tests/test-allocsa.c (main): Halve the number of loop runs.
13411 * modules/alloca-opt-tests: New file.
13412 * tests/test-alloca-opt.c: New file.
13414 2007-03-04 Jim Meyering <jim@meyering.net>
13416 Work around difference between Linux ACLs and Solaris 10 ZFS.
13417 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
13420 2007-03-03 Bruno Haible <bruno@clisp.org>
13422 * modules/relocatable-prog (Depends-on): Add back progreloc's
13423 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
13425 2007-03-03 Bruno Haible <bruno@clisp.org>
13427 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
13428 * modules/relocatable-lib: New file.
13430 2007-03-03 Bruno Haible <bruno@clisp.org>
13432 * modules/relocatable-prog: Renamed from modules/relocatable.
13433 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
13435 2007-03-03 Bruno Haible <bruno@clisp.org>
13437 * modules/relocatable-script (Files): Add doc/relocatable.texi,
13438 m4/relocatable-lib.m4.
13439 (Depends-on): Remove 'relocatable'.
13440 (configure.ac): Add gl_RELOCATABLE_NOP.
13442 2007-03-03 Bruno Haible <bruno@clisp.org>
13444 * modules/relocatable-prog-wrapper: New file.
13445 * modules/relocatable (Depends-on): Add it. Remove all other
13446 dependencies except progname.
13447 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
13449 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
13450 (gl_FUNC_STRERROR): Nop.
13451 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
13453 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
13454 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
13456 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
13457 (gl_FUNC_READLINK): Update.
13459 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
13461 2007-03-03 Bruno Haible <bruno@clisp.org>
13463 * lib/xreadlink.c: Include <unistd.h> unconditionally.
13464 * modules/xreadlink (Depends-on): Add unistd.
13465 * modules/xreadlink-with-size (Depends-on): Likewise.
13467 2007-03-03 Bruno Haible <bruno@clisp.org>
13469 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
13470 extracted from gt_FUNC_SETENV.
13471 (gt_FUNC_SETENV): Remove macro.
13472 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
13473 remove gt_FUNC_SETENV.
13475 2007-03-03 Bruno Haible <bruno@clisp.org>
13477 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
13478 ENABLE_RELOCATABLE here.
13479 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
13481 2007-03-03 Bruno Haible <bruno@clisp.org>
13483 * modules/rbtreehash-list-tests (Depends-on): Add progname.
13484 * tests/test-rbtreehash_list.c: Include progname.h.
13485 (main): Call set_program_name.
13487 * modules/rbtree-oset-tests (Depends-on): Add progname.
13488 * tests/test-rbtree_oset.c: Include progname.h.
13489 (main): Call set_program_name.
13491 * modules/rbtree-list-tests (Depends-on): Add progname.
13492 * tests/test-rbtree_list.c: Include progname.h.
13493 (main): Call set_program_name.
13495 * modules/linked-list-tests (Depends-on): Add progname.
13496 * tests/test-linked_list.c: Include progname.h.
13497 (main): Call set_program_name.
13499 2007-03-03 Bruno Haible <bruno@clisp.org>
13501 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
13502 All uses of __restrict changed to _Restrict_.
13503 * lib/glob_.h (__restrict): Remove macro.
13505 2007-03-02 Bruno Haible <bruno@clisp.org>
13507 * modules/gettext (configure.ac): Require gettext infrastructure
13508 from version 0.16.1.
13510 2007-03-02 Bruno Haible <bruno@clisp.org>
13512 * modules/linkedhash-list-tests (Depends-on): Add progname.
13513 * tests/test-linkedhash_list.c: Include progname.h.
13514 (main): Call set_program_name.
13516 * modules/carray-list-tests (Depends-on): Add progname.
13517 * tests/test-carray_list.c: Include progname.h.
13518 (main): Call set_program_name.
13520 * modules/avltreehash-list-tests (Depends-on): Add progname.
13521 * tests/test-avltreehash_list.c: Include progname.h.
13522 (main): Call set_program_name.
13524 * modules/avltree-oset-tests (Depends-on): Add progname.
13525 * tests/test-avltree_oset.c: Include progname.h.
13526 (main): Call set_program_name.
13528 * modules/avltree-list-tests (Depends-on): Add progname.
13529 * tests/test-avltree_list.c: Include progname.h.
13530 (main): Call set_program_name.
13532 * modules/array-oset-tests (Depends-on): Add progname.
13533 * tests/test-array_oset.c: Include progname.h.
13534 (main): Call set_program_name.
13536 * modules/array-list-tests (Depends-on): Add progname.
13537 * tests/test-array_list.c: Include progname.h.
13538 (main): Call set_program_name.
13540 * modules/argp-tests (Depends-on): Add progname.
13541 * tests/test-argp.c: Include argp.h first. Include progname.h.
13542 (main): Call set_program_name.
13544 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
13546 * doc/gnulib-tool.texi (Initial import): Reword description of
13547 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
13548 limited effect even if defined after the first system include.
13550 2007-03-01 Bruno Haible <bruno@clisp.org>
13552 * build-aux/config.libpath: Update to libtool-1.5.22.
13553 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13555 2007-03-01 Bruno Haible <bruno@clisp.org>
13557 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
13559 Reported by Ralf Wildenhues.
13561 2007-03-01 Bruno Haible <bruno@clisp.org>
13563 * build-aux/install-reloc: Remove object files left over by some
13565 Reported by Ralf Wildenhues.
13567 2007-03-01 Bruno Haible <bruno@clisp.org>
13569 * build-aux/install-reloc: Break long lines.
13571 2007-03-01 Bruno Haible <bruno@clisp.org>
13573 * doc/relocatable.texi: Document that it may not work on OpenBSD.
13574 Reported by Ralf Wildenhues.
13576 2007-03-01 Bruno Haible <bruno@clisp.org>
13578 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
13579 include ordering constraints.
13581 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
13583 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
13584 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
13585 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
13586 as another example.
13587 * lib/time_.h: Fix misspelling.
13588 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
13589 Require gl_HEADER_TIME_H_DEFAULTS.
13590 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
13591 * m4/time_r.m4 (gl_TIME_R): Likewise.
13592 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
13594 2007-03-01 Bruno Haible <bruno@clisp.org>
13596 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
13597 * m4/utimens.m4 (gl_UTIMENS): Likewise.
13599 2007-03-01 Jim Meyering <jim@meyering.net>
13601 * modules/xreadlink (Maintainer): Add my name.
13602 * modules/xreadlink-with-size (Depends-on): Alphabetize.
13604 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
13605 Bruno Haible <bruno@clisp.org>
13607 * build-aux/install-reloc: Compile also c-ctype.c.
13608 * build-aux/relocatable.sh.in: New file.
13609 * doc/relocatable.texi: New file.
13610 * doc/relocatable-maint.texi: New file.
13611 * doc/gnulib.texi: Include relocatable-maint.texi.
13612 * lib/progreloc.c: Include unistd.h unconditionally.
13613 * lib/relocwrapper.c: Include unistd.h unconditionally.
13615 (add_dotbin): Use c_tolower.
13616 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
13617 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
13618 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
13619 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
13620 to m4/relocatable-lib.m4.
13621 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
13622 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
13623 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
13624 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
13625 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
13626 * modules/relocatable: New file.
13627 * modules/relocatable-lib: New file.
13628 * modules/relocatable-script: New file.
13630 2007-02-28 Bruno Haible <bruno@clisp.org>
13632 Import --enable-relocatable infrastructure.
13633 * build-aux/config.libpath: New file, from GNU gettext.
13634 * build-aux/install-reloc: New file, from GNU gettext.
13635 * build-aux/reloc-ldflags: New file, from GNU gettext.
13636 * lib/relocatable.h: New file, from GNU gettext.
13637 * lib/relocatable.c: New file, from GNU gettext.
13638 * lib/relocwrapper.c: New file, from GNU gettext.
13639 * m4/relocatable.m4: New file, from GNU gettext.
13641 2007-02-28 Bruno Haible <bruno@clisp.org>
13643 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
13645 * modules/xreadlink: New file, from GNU gettext with modifications.
13646 * lib/xreadlink.c: New file, from GNU gettext.
13647 * lib/xreadlink.h: Add comments.
13648 (xreadlink): New declaration.
13650 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
13651 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
13652 lib/xreadlink-with-size.c.
13653 (configure.ac): Remove gl_XREADLINK invocation.
13654 (Makefile.am): Augment lib_SOURCES.
13655 * m4/xreadlink.m4: Remove file.
13656 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
13657 (xreadlink_with_size): Renamed from xreadink.
13658 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
13659 * modules/canonicalize (Depends-on): Replace xreadlink with
13660 xreadlink-with-size.
13661 * lib/canonicalize.c (canonicalize_filename_mode): Update.
13663 2007-02-25 Jim Meyering <jim@meyering.net>
13665 * build-aux/announce-gen: When complaining about excess arguments,
13668 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
13670 * README: Document signed integer overflow situation more
13673 2007-02-25 Bruno Haible <bruno@clisp.org>
13675 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
13676 'a' or 'A' conversion.
13678 2007-02-25 Bruno Haible <bruno@clisp.org>
13680 * modules/filename: Renamed from modules/pathname.
13681 (Files): Replace lib/pathname.h with lib/filename.h. Replace
13682 lib/concatpath.c with lib/concat-filename.c.
13683 (Makefile.am): Update.
13684 (Include): Replace pathname.h with filename.h.
13685 * lib/filename.h: Renamed from lib/pathname.h.
13686 (concatenated_filename): Renamed from concatenated_pathname.
13687 * lib/concat-filename.c: Renamed from lib/concatpath.c.
13688 (concatenated_filename): Renamed from concatenated_pathname.
13689 * lib/findprog.c: Include filename.h instead of pathname.h.
13690 (find_in_path): Update.
13691 * lib/javacomp.c: Include filename.h instead of pathname.h.
13692 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
13693 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
13694 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
13695 is_oldgcj_14_13_usable, is_javac_usable): Update.
13696 * lib/javaexec.c: Include filename.h instead of pathname.h.
13697 (execute_java_class): Update.
13698 * modules/findprog: Update.
13699 * modules/javacomp: Update.
13700 * modules/javaexec: Update.
13701 * MODULES.html.sh (File system functions): Add 'filename', remove
13704 2007-02-25 Bruno Haible <bruno@clisp.org>
13706 * modules/printf-frexpl-tests: New file.
13707 * tests/test-printf-frexpl.c: New file.
13709 * modules/printf-frexpl: New file.
13710 * lib/printf-frexpl.h: New file.
13711 * lib/printf-frexpl.c: New file.
13712 * m4/printf-frexpl.m4: New file.
13714 2007-02-25 Bruno Haible <bruno@clisp.org>
13716 * modules/printf-frexp-tests: New file.
13717 * tests/test-printf-frexp.c: New file.
13719 * modules/printf-frexp: New file.
13720 * lib/printf-frexp.h: New file.
13721 * lib/printf-frexp.c: New file.
13722 * m4/printf-frexp.m4: New file.
13724 2007-02-25 Bruno Haible <bruno@clisp.org>
13726 Assume automake >= 1.10 for the tests.
13727 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
13728 * modules/arctwo-tests: Likewise.
13729 * modules/argp-tests: Likewise.
13730 * modules/avltree-list-tests: Likewise.
13731 * modules/avltree-oset-tests: Likewise.
13732 * modules/avltreehash-list-tests: Likewise.
13733 * modules/carray-list-tests: Likewise.
13734 * modules/crc-tests: Likewise.
13735 * modules/des-tests: Likewise.
13736 * modules/gc-arcfour-tests: Likewise.
13737 * modules/gc-arctwo-tests: Likewise.
13738 * modules/gc-des-tests: Likewise.
13739 * modules/gc-hmac-md5-tests: Likewise.
13740 * modules/gc-hmac-sha1-tests: Likewise.
13741 * modules/gc-md2-tests: Likewise.
13742 * modules/gc-md4-tests: Likewise.
13743 * modules/gc-md5-tests: Likewise.
13744 * modules/gc-pbkdf2-sha1-tests: Likewise.
13745 * modules/gc-rijndael-tests: Likewise.
13746 * modules/gc-sha1-tests: Likewise.
13747 * modules/gc-tests: Likewise.
13748 * modules/getaddrinfo-tests: Likewise.
13749 * modules/hmac-md5-tests: Likewise.
13750 * modules/hmac-sha1-tests: Likewise.
13751 * modules/linked-list-tests: Likewise.
13752 * modules/linkedhash-list-tests: Likewise.
13753 * modules/lock-tests: Likewise.
13754 * modules/md2-tests: Likewise.
13755 * modules/md4-tests: Likewise.
13756 * modules/md5-tests: Likewise.
13757 * modules/rbtree-list-tests: Likewise.
13758 * modules/rbtree-oset-tests: Likewise.
13759 * modules/rbtreehash-list-tests: Likewise.
13760 * modules/read-file-tests: Likewise.
13761 * modules/rijndael-tests: Likewise.
13762 * modules/stdint-tests: Likewise.
13763 * modules/tls-tests: Likewise.
13765 2007-02-24 Bruno Haible <bruno@clisp.org>
13767 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
13768 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
13769 function; instead check whether isnan with a double argument links.
13770 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
13771 function; instead check whether isnan with a 'long double' argument
13773 Reported by Eric Blake <ebb9@byu.net>.
13775 2007-02-24 Bruno Haible <bruno@clisp.org>
13777 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
13779 * lib/isnanl.c: Remove all code. Just include isnan.c.
13780 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
13782 2007-02-25 Jim Meyering <jim@meyering.net>
13784 Avoid conflicting types for 'unsetenv' on FreeBSD.
13785 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
13786 conflicting with FreeBSD's (5.0 and 6.1) function declaration
13789 2007-02-24 Bruno Haible <bruno@clisp.org>
13791 * modules/isnanl-nolibm-tests: New file.
13792 * tests/test-isnanl.c: New file.
13794 * modules/isnanl-nolibm: New file.
13795 * lib/isnanl.h: New file.
13796 * lib/isnanl.c: New file.
13797 * m4/isnanl.m4: New file.
13799 2007-02-24 Bruno Haible <bruno@clisp.org>
13801 * modules/isnan-nolibm-tests: New file.
13802 * tests/test-isnan.c: New file.
13804 * modules/isnan-nolibm: New file.
13805 * lib/isnan.h: New file.
13806 * lib/isnan.c: New file.
13807 * m4/isnan.m4: New file.
13809 2007-02-24 Bruno Haible <bruno@clisp.org>
13811 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
13812 assume that an exponent fits in 20 bits.
13814 2007-02-24 Jim Meyering <jim@meyering.net>
13816 * m4/regex.m4: Update the description of the configure-time option,
13817 --without-included-regex, to state accurately what the defaults are,
13818 and perhaps to give people an idea why using this option is risky.
13820 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
13822 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
13823 loops on small arguments. This attempts to avoid the problem
13824 Bruno Haible reported for AIX 4.3.2 in
13825 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
13827 2007-02-23 Bruno Haible <bruno@clisp.org>
13829 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
13830 Needed for help2man.
13832 2007-02-23 Karl Berry <karl@gnu.org>
13834 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
13835 exists, foo.h should be cvs-ignored, not committed.
13837 2007-02-23 Eric Blake <ebb9@byu.net>
13839 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
13840 * lib/stat-time.h (includes): Likewise.
13841 * lib/utimecmp.c (includes): Likewise.
13842 * lib/utimens.h (includes): Likewise.
13843 * lib/getdate.y (includes): Also include "timespec.h" for use
13844 internal to the module.
13845 * modules/utimens (Depends-on): Revert yesterday's patch.
13846 * modules/nanosleep (Depends-on): Add missing dependency.
13848 2007-02-22 Bruno Haible <bruno@clisp.org>
13850 * lib/glob.c: Don't include getlogin_r.h.
13852 2007-02-22 Jim Meyering <jim@meyering.net>
13854 * modules/utimens (Depends-on): Add timespec, required for
13855 utimens.h's inclusion of timespec.h.
13857 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
13859 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
13860 long unreadable paths in GNU/Linux. Problem reported by Andreas
13862 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
13863 I'll try to think of a better way to fix the Solaris problem.
13865 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
13866 like glibc; on Solaris 10, it fails with errno == EINVAL.
13867 POSIX says the behavior is unspecified if the first argument is NULL,
13868 so play it safe and never pass NULL to the system getcwd.
13870 2007-02-21 Jim Meyering <jim@meyering.net>
13872 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
13873 of gettimeofday. It would conflict with the one now always
13874 provided via sys_time_.h. Reported by Matthew Woehlke, as
13875 an IRIX 6.5 build failure.
13877 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
13879 Minor fixups to port to Solaris 10 with Sun C 5.8.
13880 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
13881 * modules/getcwd (Depends-on): Add dirfd.
13882 * lib/putenv.c (putenv): #undef it.
13883 (rpl_putenv): New decl.
13884 (malloc, free): Include <stdlib.h> rather than prototyping separately.
13886 2007-02-20 Bruno Haible <bruno@clisp.org>
13888 * modules/stdio-tests: New file.
13889 * tests/test-stdio.c: New file.
13891 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
13892 (Depends-on): Add stdio.
13893 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
13894 (Include): Use <stdio.h> instead of vsnprintf.h.
13895 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
13896 HAVE_DECL_VSNPRINTF.
13897 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
13899 * modules/snprintf (Files): Remove lib/snprintf.h.
13900 (Depends-on): Add stdio.
13901 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
13902 (Include): Use <stdio.h> instead of snprintf.h.
13903 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
13904 HAVE_DECL_SNPRINTF.
13905 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
13906 * lib/getaddrinfo.c: Likewise.
13908 * modules/stdio: New file.
13909 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
13910 * lib/snprintf.h: Remove file.
13911 * lib/vsnprintf.h: Remove file.
13912 * lib/.cppi-disable: Remove snprintf.h.
13913 * m4/stdio_h.m4: New file.
13914 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
13916 2007-02-20 Jim Meyering <jim@meyering.net>
13918 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
13919 used by e.g., mingw. From Bruno Haible.
13921 2007-02-19 Bruno Haible <bruno@clisp.org>
13923 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
13925 Reported by Ben Pfaff <blp@cs.stanford.edu>.
13927 2007-02-19 Bruno Haible <bruno@clisp.org>
13929 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
13932 2007-02-19 Bruno Haible <bruno@clisp.org>
13934 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
13936 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
13938 2007-02-19 Jim Meyering <jim@meyering.net>
13940 Don't use FD after a successful "fdopendir (fd)".
13941 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
13942 Reset it by calling dirfd on the just-obtained DIR*.
13944 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
13945 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
13947 2007-02-18 Bruno Haible <bruno@clisp.org>
13949 * lib/readlink.c: Include <unistd.h>.
13950 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
13952 * modules/readlink (Depends-on): Add unistd.
13953 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13954 (Include): Add <unistd.h>.
13956 * lib/getlogin_r.h: Remove file.
13957 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
13958 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
13959 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
13960 HAVE_DECL_GETLOGIN_R.
13961 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
13962 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13963 (Include): Use <unistd.h> instead of getlogin_r.h.
13965 * lib/getcwd.h: Remove file.
13966 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
13967 * lib/xgetcwd.c: Likewise.
13968 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
13969 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
13970 * modules/getcwd (Files): Remove lib/getcwd.h.
13971 (Depends-on): Add unistd.
13972 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13973 (Include): Use <unistd.h> instad of getcwd.h.
13975 * lib/ftruncate.c: Include <unistd.h> first.
13976 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
13977 Set HAVE_FTRUNCATE.
13978 * modules/ftruncate (Depends-on): Add unistd.
13979 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13981 * lib/fchdir.c: Include <unistd.h> first.
13982 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
13983 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
13984 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
13985 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13986 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
13988 * lib/dup2.c: Include <unistd.h> first.
13989 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
13991 * modules/dup2 (Depends-on): Add unistd.
13992 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13994 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
13995 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
13996 REPLACE_CHOWN. Don't define chown as a macro here.
13997 * modules/chown (Depends-on): Add unistd.
13998 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14000 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
14001 Add definition for GL_LINK_WARNING.
14002 (chown, dup2): New declarations.
14003 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
14005 (ftruncate): New declaration.
14006 (getcwd): New declaration, taken from old getcwd.h.
14007 (getlogin_r): New declaration, taken from old getlogin_r.h.
14008 (readlink): New declaration.
14009 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
14010 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
14011 (gl_PREREQ_UNISTD): Remove macro.
14012 (gl_UNISTD_MODULE_INDICATOR): New macro.
14013 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
14014 many new variables. Don't set UNISTD_H.
14015 * modules/unistd (Description): Change.
14016 (Depends-on): Add link-warning.
14017 (configure.ac): Update.
14018 (Makefile.am): Create unistd.h always. Substitute many new variables
14021 2007-02-18 Bruno Haible <bruno@clisp.org>
14023 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
14024 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
14026 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
14027 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
14028 * lib/getsubopt.h: Remove file.
14029 * modules/getsubopt (Files): Remove lib/getsubopt.h.
14030 (Depends-on): Add stdlib.
14031 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
14032 (Includes): Use <stdlib.h> instead of getsubopt.h.
14033 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
14034 Set HAVE_GETSUBOPT.
14035 * lib/getsubopt.c: Don't include getsubopt.h.
14037 2007-02-18 Bruno Haible <bruno@clisp.org>
14039 * modules/fchdir (Depends-on): Add dup2.
14041 2007-02-18 Bruno Haible <bruno@clisp.org>
14043 * lib/stdlib_.h: Handle glibc's special invocation convention
14046 2007-02-18 Bruno Haible <bruno@clisp.org>
14048 * modules/stdlib-tests: New file.
14049 * tests/test-stdlib.c: New file.
14051 * modules/mkstemp (Files): Remove lib/mkstemp.h.
14052 (Depends-on): Add stdlib.
14053 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
14054 (Includes): Use <stdlib.h> instead of mkstemp.h.
14055 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
14056 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
14057 * lib/mkstemp.c: Don't include mkstemp.h.
14058 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
14059 * lib/stdlib--.h: Don't include mkstemp.h.
14061 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
14062 (Depends-on): Add stdlib.
14063 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
14064 (Includes): Use <stdlib.h> instead of mkdtemp.h.
14065 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
14067 * lib/mkdtemp.c: Don't include mkdtemp.h.
14068 * lib/clean-temp.c: Don't include mkdtemp.h.
14070 * modules/exit (Files): Remove lib/exit.h.
14071 (Depends-on): Add stdlib.
14072 (Makefile.am): Remove lib_SOURCES.
14073 (Include): Use <stdlib.h> instead of exit.h.
14074 * lib/argmatch.c: Don't include exit.h.
14075 * lib/execute.c: Likewise.
14076 * lib/pagealign_alloc.c: Likewise.
14077 * lib/pipe.c: Likewise.
14078 * lib/wait-process.c: Likewise.
14079 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
14080 * lib/exitfail.c: Likewise.
14081 * lib/savewd.c: Likewise.
14082 * lib/xsetenv.c: Likewise.
14084 * modules/stdlib: New file.
14085 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
14086 and extra comments about mkstemp().
14087 * lib/exit.h: Remove file.
14088 * lib/mkdtemp.h: Remove file.
14089 * lib/mkstemp.h: Remove file.
14090 * m4/stdlib_h.m4: New file.
14091 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
14093 2007-02-18 Bruno Haible <bruno@clisp.org>
14095 * modules/math-tests: New file.
14096 * tests/test-math.c: New file.
14098 * modules/math: New file.
14099 * modules/mathl (Files): Remove lib/mathl.h.
14100 (Depends-on): Add math.
14101 (Makefile.am): Don't mention mathl.h.
14102 (Include): Use <math.h> instead of mathl.h.
14103 * lib/math_.h: New file.
14104 * lib/mathl.h: Remove file.
14105 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
14107 * lib/asinl.c: Likewise.
14108 * lib/atanl.c: Likewise.
14109 * lib/ceill.c: Likewise.
14110 * lib/cosl.c: Likewise.
14111 * lib/expl.c: Likewise.
14112 * lib/floorl.c: Likewise.
14113 * lib/frexpl.c: Likewise.
14114 * lib/ldexpl.c: Likewise.
14115 * lib/logl.c: Likewise.
14116 * lib/sincosl.c: Likewise.
14117 * lib/sinl.c: Likewise.
14118 * lib/sqrtl.c: Likewise.
14119 * lib/tanl.c: Likewise.
14120 * lib/trigl.c: Likewise.
14121 * m4/math_h.m4: New file.
14122 * MODULES.html.sh (Mathematics): Add math.
14124 2007-02-17 Bruno Haible <bruno@clisp.org>
14126 * modules/wctype-tests: New file.
14127 * tests/test-wctype.c: New file.
14129 * modules/wchar-tests: New file.
14130 * tests/test-wchar.c: New file.
14132 * modules/unistd-tests: New file.
14133 * tests/test-unistd.c: New file.
14135 * modules/time-tests: New file.
14136 * tests/test-time.c: New file.
14138 * modules/sysexits-tests: New file.
14139 * tests/test-sysexits.c: New file.
14141 * modules/sys_time-tests: New file.
14142 * tests/test-sys_time.c: New file.
14144 * modules/sys_stat-tests: New file.
14145 * tests/test-sys_stat.c: New file.
14147 * modules/sys_socket-tests: New file.
14148 * tests/test-sys_socket.c: New file.
14150 * modules/sys_select-tests: New file.
14151 * tests/test-sys_select.c: New file.
14153 * modules/string-tests: New file.
14154 * tests/test-string.c: New file.
14156 * modules/stdbool-tests: New file.
14157 * tests/test-stdbool.c: New file.
14159 * modules/netinet_in-tests: New file.
14160 * tests/test-netinet_in.c: New file.
14162 * modules/inttypes-tests: New file.
14163 * tests/test-inttypes.c: New file.
14165 * modules/fcntl-tests: New file.
14166 * tests/test-fcntl.c: New file.
14168 * modules/byteswap-tests: New file.
14169 * tests/test-byteswap.c: New file.
14171 * modules/arpa_inet-tests: New file.
14172 * tests/test-arpa_inet.c: New file.
14174 2007-02-17 Bruno Haible <bruno@clisp.org>
14176 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
14177 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
14178 if the corresponding module is not enabled. Emit link warnings if
14179 the function is used nevertheless.
14180 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
14181 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
14182 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
14183 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
14184 * modules/inttypes (Depends-on): Add link-warning.
14185 (Makefile.am): Copy the contents of build-aux/link-warning.h into
14186 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
14187 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
14188 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
14189 * modules/imaxdiv (configure.ac): Likewise.
14190 * modules/strtoimax (configure.ac): Likewise.
14191 * modules/strtoumax (configure.ac): Likewise.
14193 2007-02-17 Bruno Haible <bruno@clisp.org>
14195 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
14196 gl_STRING_MODULE_INDICATOR_DEFAULTS.
14197 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
14198 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
14200 2007-02-17 Bruno Haible <bruno@clisp.org>
14202 * modules/link-warning: New file.
14203 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
14204 * lib/string_.h (GL_LINK_WARNING): Remove definition.
14205 * modules/string (Depends-on): Add link-warning.
14206 (Makefile.am): Copy the contents of build-aux/link-warning.h into
14208 * MODULES.html.sh (Support for building libraries and executables): Add
14211 2007-02-17 Bruno Haible <bruno@clisp.org>
14213 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
14214 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
14215 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
14218 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
14219 Bruno Haible <bruno@clisp.org>
14221 * modules/tmpfile: New file.
14222 * lib/tmpfile.c: New file.
14223 * m4/tmpfile.m4: New file.
14224 * MODULES.html.sh (func_all_modules): New section "Input/output".
14226 2007-02-15 Bruno Haible <bruno@clisp.org>
14228 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
14229 (supports_delete_on_close): New function.
14230 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
14232 2007-02-14 Bruno Haible <bruno@clisp.org>
14234 * modules/mbspcasecmp-tests: New file.
14235 * tests/test-mbspcasecmp.sh: New file.
14236 * tests/test-mbspcasecmp.c: New file.
14238 New module mbspcasecmp.
14239 * modules/mbspcasecmp: New file.
14240 * lib/mbspcasecmp.c: New file.
14241 * lib/string_.h (strncasecmp): Change warning message.
14242 (mbspcasecmp): New declaration.
14243 * m4/mbspcasecmp.m4: New file.
14244 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14245 GNULIB_MBSPCASECMP.
14246 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
14247 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
14249 2007-02-14 Bruno Haible <bruno@clisp.org>
14251 * modules/mbsncasecmp-tests: New file.
14252 * tests/test-mbsncasecmp.sh: New file.
14253 * tests/test-mbsncasecmp.c: New file.
14255 New module mbsncasecmp.
14256 * modules/mbsncasecmp: New file.
14257 * lib/mbsncasecmp.c: New file.
14258 * lib/string_.h (mbsncasecmp): New declaration.
14259 * m4/mbsncasecmp.m4: New file.
14260 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14261 GNULIB_MBSNCASECMP.
14262 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
14263 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
14265 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
14267 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
14268 Verify that it doesn't overlap with our flags.
14269 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
14270 do not have the desired effect in multibyte locales; instead, use
14272 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
14273 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
14274 we don't require GNU fnmatch ourselves (if our users require it, they
14275 should do so explicitly).
14277 Fix regex code so it doesn't rely on strcasecmp.
14278 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
14279 Otherwise, include gnulib's langinfo.h.
14280 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
14281 undesirable behavior in non-C locales. Instead, rely on localecharset.
14282 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
14283 * modules/regex (FILES): Remove m4/codeset.m4.
14284 (Depends-on): Add localcharset. Remove strcase.
14286 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14288 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
14289 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14291 2007-02-13 Bruno Haible <bruno@clisp.org>
14293 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
14294 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14296 2007-02-12 Bruno Haible <bruno@clisp.org>
14298 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
14299 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
14300 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
14301 time warning rather than a link error.
14303 2007-02-12 Bruno Haible <bruno@clisp.org>
14305 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
14306 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14307 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14309 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
14311 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
14314 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
14316 New module 'time', so that apps can include <time.h> as per
14317 POSIX and GNU instead of separate include files like time_r.h
14318 and timegm.h. This implementation tries out a simpler approach
14319 for replacing decls in standard include files (as compared to
14320 the string module), somewhat as an experiment.
14322 * config/srclist.txt: Comment out mktime.c for now.
14323 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
14324 since it doesn't apply any more. Use generic wording instead.
14325 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
14327 * lib/time_.h, m4/time_h.m4, modules/time: New files.
14328 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
14329 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
14330 Don't include <sys/types.h>; no longer needed since we assume C89.
14331 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
14332 * lib/strftime.c: Likewise.
14333 * lib/time_r.c: Likewise.
14334 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
14335 * lib/nanosleep.c: Include <time.h> first, to check interface.
14336 * lib/strptime.c: Likewise.
14337 * lib/time_r.c: Likewise.
14338 * lib/timegm.c: Likewise.
14339 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
14341 * lib/timegm.c: Don't include timegm.h; no longer needed.
14342 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
14343 time.h now handles any problems in that area.
14344 (struct timespec, nanosleep): Remove; time.h now arranges for these.
14345 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
14346 that time.h defines struct timespec.
14347 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
14348 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
14350 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
14351 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
14352 needed. Set REPLACE_LOCALTIME.
14353 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
14354 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
14355 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
14356 nanosleep; time_h.m4 now does that. Don't require
14357 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
14358 module handles this now.
14359 * modules/getdate (Depends-on): Remove timespec. Add time.
14360 * modules/nanosleep (Depends-on): Likewise.
14361 * modules/stat-time (Depends-on): Likewise.
14362 * modules/nanosleep (Include): Include time.h, not timespec.h.
14363 * modules/strptime (Files): Remove lib/strptime.h.
14364 (Depends-on): Add extensions, time.
14365 (Include): Include time.h, not strptime.h.
14366 * modules/time_r (Files): Remove lib/time_r.h.
14367 (Depends-on): Add time.
14368 (Include): Include time.h, not time_r.h.
14369 * modules/timegm: Likewise.
14370 * modules/timespec (Description): Now does timespec-related decls
14371 of our own, instead of struct timespec itself.
14372 (Depends-on): Add time; remove extensions.
14373 (Maintainer): Add self.
14374 * modules/utimecmp (Depends-on): Add time; remove timespec.
14375 * modules/utimens (Depends-on): Likewise.
14376 * modules/xnanosleep (Depends-on): Likewise.
14378 2007-02-11 Bruno Haible <bruno@clisp.org>
14380 * lib/c-strstr.c: Include allocsa.h.
14381 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
14382 * lib/c-strcasestr.c: Include allocsa.h.
14383 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
14384 * lib/strcasestr.c: Include allocsa.h.
14385 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
14386 * lib/mbsstr.c: Include allocsa.h.
14387 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
14388 allocsa/freesa instead of malloc/free.
14389 * lib/mbscasestr.c: Include allocsa.h.
14390 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
14391 allocsa/freesa instead of malloc/free.
14392 * modules/c-strstr (Depends-on): Add allocsa.
14393 * modules/c-strcasestr (Depends-on): Likewise.
14394 * modules/strcasestr (Depends-on): Likewise.
14395 * modules/mbsstr (Depends-on): Likewise.
14396 * modules/mbscasestr (Depends-on): Likewise.
14398 2007-02-11 Bruno Haible <bruno@clisp.org>
14400 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
14402 * modules/mbsspn-tests: New file.
14403 * tests/test-mbsspn.sh: New file.
14404 * tests/test-mbsspn.c: New file.
14406 2007-02-11 Bruno Haible <bruno@clisp.org>
14408 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
14410 * modules/mbspbrk-tests: New file.
14411 * tests/test-mbspbrk.sh: New file.
14412 * tests/test-mbspbrk.c: New file.
14414 2007-02-11 Bruno Haible <bruno@clisp.org>
14416 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
14419 * modules/mbscspn-tests: New file.
14420 * tests/test-mbscspn.sh: New file.
14421 * tests/test-mbscspn.c: New file.
14423 2007-02-11 Bruno Haible <bruno@clisp.org>
14425 * modules/mbscasecmp-tests: New file.
14426 * tests/test-mbscasecmp.sh: New file.
14427 * tests/test-mbscasecmp.c: New file.
14429 2007-02-11 Bruno Haible <bruno@clisp.org>
14431 Ensure O(n) worst-case complexity of mbscasestr.
14432 * lib/mbscasestr.c: Include stdbool.h.
14433 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
14435 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
14436 the bookkeeping indicates that it's worth it.
14437 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
14439 * modules/mbscasestr-tests: New file.
14440 * tests/test-mbscasestr1.c: New file.
14441 * tests/test-mbscasestr2.sh: New file.
14442 * tests/test-mbscasestr2.c: New file.
14443 * tests/test-mbscasestr3.sh: New file.
14444 * tests/test-mbscasestr3.c: New file.
14445 * tests/test-mbscasestr4.sh: New file.
14446 * tests/test-mbscasestr4.c: New file.
14447 * m4/locale-tr.m4: New file.
14449 2007-02-11 Bruno Haible <bruno@clisp.org>
14451 Ensure O(n) worst-case complexity of mbsstr.
14452 * lib/mbsstr.c: Include stdbool.h.
14453 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
14455 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
14456 bookkeeping indicates that it's worth it.
14457 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
14459 * modules/mbsstr-tests: New file.
14460 * tests/test-mbsstr1.c: New file.
14461 * tests/test-mbsstr2.sh: New file.
14462 * tests/test-mbsstr2.c: New file.
14463 * tests/test-mbsstr3.sh: New file.
14464 * tests/test-mbsstr3.c: New file.
14465 * m4/locale-fr.m4: New file.
14467 2007-02-11 Bruno Haible <bruno@clisp.org>
14469 * lib/mbsrchr.c (mbsrchr): Fix bug.
14471 * modules/mbsrchr-tests: New file.
14472 * tests/test-mbsrchr.sh: New file.
14473 * tests/test-mbsrchr.c: New file.
14475 2007-02-11 Bruno Haible <bruno@clisp.org>
14477 * lib/mbschr.c (mbschr): Fix bug.
14479 * modules/mbschr-tests: New file.
14480 * tests/test-mbschr.sh: New file.
14481 * tests/test-mbschr.c: New file.
14482 * m4/locale-zh.m4: New file.
14484 2007-02-11 Bruno Haible <bruno@clisp.org>
14486 Support for copying multibyte string iterators.
14487 * lib/mbiter.h: Include <string.h>.
14488 (mbiter_multi_copy): New function.
14489 (mbi_copy): New macro.
14490 * lib/mbuiter.h: Include <string.h>.
14491 (mbuiter_multi_copy): New function.
14492 (mbui_copy): New macro.
14494 2007-02-11 Bruno Haible <bruno@clisp.org>
14497 * modules/mbslen: New file.
14498 * lib/mbslen.c: New file.
14499 * lib/string_.h (mbslen): New declaration.
14500 * m4/mbslen.m4: New file.
14501 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14503 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
14504 * MODULES.html.sh (Internationalization functions): Add mbslen.
14506 2007-02-11 Bruno Haible <bruno@clisp.org>
14508 Ensure O(n) worst-case complexity of strcasestr substitute.
14509 * lib/strcasestr.c: Include stdbool.h.
14510 (knuth_morris_pratt): New function.
14511 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
14512 bookkeeping indicates that it's worth it.
14513 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
14515 * modules/strcasestr-tests: New file.
14516 * tests/test-strcasestr.c: New file.
14518 2007-02-11 Bruno Haible <bruno@clisp.org>
14520 Ensure O(n) worst-case complexity of c_strcasestr.
14521 * lib/c-strcasestr.c: Include stdbool.h, string.h.
14522 (knuth_morris_pratt): New function.
14523 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
14524 the bookkeeping indicates that it's worth it.
14525 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
14527 * modules/c-strcasestr-tests: New file.
14528 * tests/test-c-strcasestr.c: New file.
14530 2007-02-11 Bruno Haible <bruno@clisp.org>
14532 Ensure O(n) worst-case complexity of c_strstr.
14533 * lib/c-strstr.c: Include stdbool.h, string.h.
14534 (knuth_morris_pratt): New function.
14535 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
14536 bookkeeping indicates that it's worth it.
14537 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
14539 * lib/c-strstr.c: Complete rewrite for maintainability.
14541 * modules/c-strstr-tests: New file.
14542 * tests/test-c-strstr.c: New file.
14544 2007-02-11 Bruno Haible <bruno@clisp.org>
14546 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
14547 5.2.1 and earlier, whereby \055 was treated just like the range
14549 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
14551 2007-02-08 Bruno Haible <bruno@clisp.org>
14553 * modules/regex (Depends-on): Add stdbool.
14554 Reported by Dalibor Topic <robilad@kaffe.org>.
14556 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
14558 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
14559 Prefer returning from main to exiting from it.
14560 Remove unnecessary parens after sizeof.
14562 2007-02-05 Bruno Haible <bruno@clisp.org>
14565 * modules/mbssep: New file.
14566 * lib/mbssep.c: New file.
14567 * lib/string_.h (strsep): Add a conditional link warning.
14568 (mbssep): New declaration.
14569 * m4/mbssep.m4: New file.
14570 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14572 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
14573 * MODULES.html.sh (Internationalization functions): Add mbssep.
14575 2007-02-05 Bruno Haible <bruno@clisp.org>
14577 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
14578 Optimize search in case of 1 delimiter.
14580 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
14582 * lib/acl.h: Include sys/types.h before sys/acl.h.
14584 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
14586 Merge upstream fix for glibc bugzilla #3957:
14588 2007-02-05 Jakub Jelinek <jakub@redhat.com>
14590 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
14591 bit for RE_HAT_LISTS_NOT_NEWLINE.
14592 (build_charclass_op): Remove bogus comment.
14594 2007-02-05 Simon Josefsson <simon@josefsson.org>
14596 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
14598 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
14600 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
14601 * lib/memmem.c [!defined _LIBC]: Include config.h.
14603 2007-02-04 Bruno Haible <bruno@clisp.org>
14605 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
14608 2007-02-04 Bruno Haible <bruno@clisp.org>
14610 New module mbstok_r.
14611 * modules/mbstok_r: New file.
14612 * lib/mbstok_r.c: New file.
14613 * lib/string_.h (strtok_r): Change argument names to match the
14614 comments. Add a conditional link warning.
14615 (mbstok_r): New declaration.
14616 * m4/mbstok_r.m4: New file.
14617 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14619 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
14620 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
14622 2007-02-04 Bruno Haible <bruno@clisp.org>
14625 * modules/mbsspn: New file.
14626 * lib/mbsspn.c: New file.
14627 * lib/string_.h (strspn): Add a conditional link warning.
14628 (mbsspn): New declaration.
14629 * m4/mbsspn.m4: New file.
14630 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14632 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
14633 * MODULES.html.sh (Internationalization functions): Add mbsspn.
14635 2007-02-04 Bruno Haible <bruno@clisp.org>
14637 New module mbspbrk.
14638 * modules/mbspbrk: New file.
14639 * lib/mbspbrk.c: New file.
14640 * lib/string_.h (strpbrk): Add a conditional link warning.
14641 (mbspbrk): New declaration.
14642 * m4/mbspbrk.m4: New file.
14643 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14645 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
14646 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
14648 2007-02-04 Bruno Haible <bruno@clisp.org>
14650 New module mbscspn.
14651 * modules/mbscspn: New file.
14652 * lib/mbscspn.c: New file.
14653 * lib/string_.h (strcspn): Add a conditional link warning.
14654 (mbscspn): New declaration.
14655 * m4/mbscspn.m4: New file.
14656 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14658 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
14659 * MODULES.html.sh (Internationalization functions): Add mbscspn.
14661 2007-02-04 Bruno Haible <bruno@clisp.org>
14663 New module mbscasestr, reduced goal of strcasestr.
14664 * modules/mbscasestr: New file.
14665 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
14666 (mbscasestr): Renamed from strcasestr.
14667 * lib/strcasestr.c: Don't include mbuiter.h.
14668 (strcasestr): Remove support for multibyte locales.
14669 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
14670 Change the conditional link warning.
14671 (mbscasestr): New declaration.
14672 * m4/mbscasestr.m4: New file.
14673 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
14674 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
14675 REPLACE_STRCASESTR.
14676 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
14677 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14678 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
14679 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
14680 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
14681 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
14682 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
14683 (Depends-on): Remove mbuiter.
14684 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
14686 2007-02-04 Bruno Haible <bruno@clisp.org>
14688 Simplify handling of strncasecmp.
14689 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
14690 the conditional link warning.
14691 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14692 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
14693 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
14694 * modules/strcase (configure.ac): Don't invoke
14695 gl_STRING_MODULE_INDICATOR.
14696 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
14698 2007-02-04 Bruno Haible <bruno@clisp.org>
14700 New module mbscasecmp, reduced goal of strcasecmp.
14701 * modules/mbscasecmp: New file.
14702 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
14703 (mbscasecmp): Renamed from strcasecmp.
14704 * lib/strcasecmp.c: Don't include mbuiter.h.
14705 (strcasecmp): Remove support for multibyte locales.
14706 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
14707 Change the conditional link warning.
14708 (mbscasecmp): New declaration.
14709 * m4/mbscasecmp.m4: New file.
14710 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
14711 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
14712 REPLACE_STRCASECMP.
14713 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
14714 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14716 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
14717 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
14718 * modules/strcase (Files): Remove m4/mbrtowc.m4.
14719 (Depends-on): Remove mbuiter.
14720 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
14722 2007-02-04 Bruno Haible <bruno@clisp.org>
14724 New module mbsstr. Remove module strstr.
14725 * modules/mbsstr: New file.
14726 * modules/strstr: Remove file.
14727 * lib/mbsstr.c: Renamed from lib/strstr.c.
14728 (mbsstr): Renamed from strstr.
14729 * lib/string_.h (strstr): Remove declaration. Change the conditional
14731 (mbsstr): New declaration.
14732 * m4/mbsstr.m4: New file.
14733 * m4/strstr.m4: Remove file.
14734 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
14736 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
14737 Don't initialize GNULIB_STRSTR.
14738 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
14739 substitute GNULIB_STRSTR and REPLACE_STRSTR.
14740 * MODULES.html.sh (Internationalization functions): Add mbsstr.
14741 (Support for systems lacking ANSI C 89): Remove strstr.
14743 2007-02-04 Bruno Haible <bruno@clisp.org>
14745 New module mbsrchr.
14746 * modules/mbsrchr: New file.
14747 * lib/mbsrchr.c: New file.
14748 * lib/string_.h (strrchr): Add a conditional link warning.
14749 (mbsrchr): New declaration.
14750 * m4/mbsrchr.m4: New file.
14751 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14753 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
14754 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
14756 2007-02-04 Bruno Haible <bruno@clisp.org>
14759 * modules/mbschr: New file.
14760 * lib/mbschr.c: New file.
14761 * lib/string_.h (strchr): Add a conditional link warning.
14762 (mbschr): New declaration.
14763 * m4/mbschr.m4: New file.
14764 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14766 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
14767 * MODULES.html.sh (Internationalization functions): Add mbschr.
14769 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
14771 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
14773 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
14775 2007-02-04 Bruno Haible <bruno@clisp.org>
14777 New module description section 'configure.ac-early'.
14778 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
14779 (func_get_autoconf_early_snippet): New function.
14780 (func_import, func_create_testdir): Use it. Remove special cases for
14781 modules 'extensions' and 'lock'.
14782 * modules/extensions (configure.ac-early): Require
14783 gl_USE_SYSTEM_EXTENSIONS.
14784 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
14786 2007-02-04 Bruno Haible <bruno@clisp.org>
14788 Make use of gcj-4.3's -fsource and -ftarget option.
14789 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
14790 and if so try the options -fsource and -ftarget.
14791 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
14792 source_version, ftarget_option, target_version arguments.
14793 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
14794 (is_envjavac_oldgcj_14_14_usable): Renamed from
14795 is_envjavac_gcj_14_14_usable.
14796 (is_envjavac_oldgcj_14_13_usable): Renamed from
14797 is_envjavac_gcj_14_13_usable.
14798 (is_gcj_present): Update.
14799 (is_gcj_43, is_gcj43_usable): New functions.
14800 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
14801 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
14802 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
14803 try the options -fsource and -ftarget.
14805 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
14807 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
14808 checking code. Set N = ceil (1.5 * N) rather than to a slightly
14811 2007-02-03 Jim Meyering <jim@meyering.net>
14813 Give tools a better chance to allocate space for very large buffers.
14814 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
14816 Make pwd and readlink work also when run with an unreadable parent dir
14817 on systems with openat support.
14818 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
14819 provided getcwd function, even when we have openat support.
14820 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
14822 2007-02-02 Bruno Haible <bruno@clisp.org>
14824 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
14825 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
14826 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
14827 portability problems if one of these functions is only used on specific
14829 Reported by Paul Eggert.
14831 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
14833 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
14834 is causing more trouble than it's curing.
14835 * lib/regex_internal.h (__mempcpy): Remove.
14836 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
14837 (and make the code a tad smaller to boot).
14838 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
14840 2007-02-02 Jim Meyering <jim@meyering.net>
14842 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
14843 section, not in the Makefile.am: one.
14845 2007-02-02 Eric Blake <ebb9@byu.net>
14847 * lib/strchrnul.c: Always include config.h first.
14849 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
14850 gnulib strstr is not necessary here.
14852 2007-02-02 Simon Josefsson <simon@josefsson.org>
14854 * m4/socklen.m4: Fix typo.
14856 2007-02-02 Eric Blake <ebb9@byu.net>
14858 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
14859 * modules/netinet_in (Makefile.am): Likewise.
14861 2007-02-01 Bruno Haible <bruno@clisp.org>
14863 * lib/string_.h (GL_LINK_WARNING): New macro.
14864 (strcasecmp, strstr, strcasestr): If provided by the system,
14865 conditionally define as a macro that leads to a warning instead of to
14867 (strncasecmp): Conditionally define as a macro that leads to a warning.
14869 2007-02-01 Karl Berry <karl@gnu.org>
14871 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
14873 2007-02-01 Bruno Haible <bruno@clisp.org>
14875 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
14878 2007-02-01 Eric Blake <ebb9@byu.net>
14880 * modules/regex (Depends-on): Revert dependence on mempcpy.
14881 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
14882 module's definition of mempcpy.
14883 Reported by Paul Eggert.
14885 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
14887 * lib/string_.h: If the gnulib module XYZ is not present, undefine
14888 the symbol XYZ before redefining it. This fixes a problem with
14889 programs that don't use XYZ, when compiled on systems that define
14890 XYZ to something else.
14892 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
14894 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
14895 occurs when "mkdir -m foo" creates a setgid directory that is (1)
14896 writeable to group or other and (2) is intended to have a special
14897 mode bit that is set or cleared. In such a case, the directory
14898 should be neither group- nor other-writeable until the special
14899 mode bits are right.
14901 2007-01-31 Eric Blake <ebb9@byu.net>
14903 * modules/mountlist (Depends-on): Add strstr.
14905 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
14907 * modules/string (Makefile.am): Remove redundant replacement.
14908 * modules/regex (Depends-on): Add mempcpy.
14910 2007-01-31 Bruno Haible <bruno@clisp.org>
14912 New module description field 'Link'.
14913 * gnulib-tool (func_usage): Document --extract-link-directive.
14914 (sed_extract_prog): Recognize 'Link' directive.
14915 (func_get_link_directive): New function.
14916 (func_import): Show summary of link directives.
14917 Handle --extract-link-directive option.
14918 * modules/acl (Link): New section.
14919 * modules/clock-time (Link): New section.
14920 * modules/euidaccess (Link): New section.
14921 * modules/gettext (Link): New section.
14922 * modules/iconv (Link): New section.
14923 * modules/lock (Link): New section.
14924 * modules/nanosleep (Link): New section.
14925 * modules/readline (Link): New section.
14927 2007-01-27 Bruno Haible <bruno@clisp.org>
14929 Enforce the use of gnulib modules for unportable <string.h> functions.
14930 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
14931 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
14932 (gl_HEADER_STRING_H_BODY): Require it.
14933 * lib/string_.h: If the gnulib module XYZ is not present, redefine
14934 the symbol XYZ to one that gives a link error.
14935 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
14936 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
14937 * modules/mempcpy (configure.ac): Likewise.
14938 * modules/memrchr (configure.ac): Likewise.
14939 * modules/stpcpy (configure.ac): Likewise.
14940 * modules/stpncpy (configure.ac): Likewise.
14941 * modules/strcase (configure.ac): Likewise.
14942 * modules/strcasestr (configure.ac): Likewise.
14943 * modules/strchrnul (configure.ac): Likewise.
14944 * modules/strdup (configure.ac): Likewise.
14945 * modules/strndup (configure.ac): Likewise.
14946 * modules/strnlen (configure.ac): Likewise.
14947 * modules/strpbrk (configure.ac): Likewise.
14948 * modules/strsep (configure.ac): Likewise.
14949 * modules/strstr (configure.ac): Likewise.
14950 * modules/strtok_r (configure.ac): Likewise.
14952 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
14954 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
14956 2007-01-30 Jim Meyering <jim@meyering.net>
14958 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
14960 2007-01-29 Bruno Haible <bruno@clisp.org>
14962 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
14963 * lib/execute.c: Likewise.
14964 * lib/pipe.c: Likewise.
14965 * lib/printf-args.h: Likewise.
14966 * lib/printf-args.c: Likewise.
14967 * lib/printf-parse.c: Likewise.
14968 * lib/vasnprintf.c: Likewise.
14970 2007-01-29 Eric Blake <ebb9@byu.net>
14972 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
14975 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
14977 * lib/strptime.h (strptime): Use 'restrict' for args where
14978 POSIX requires this.
14979 * lib/strptime.c (strptime): Likewise.
14980 Change license notice from LGPL to GPL, since gnulib-tool will
14981 change this as needed.
14982 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
14984 Include "strptime.h" first, to check interface.
14985 Do not #undef _LIBC and _NL_CURRENT.
14986 Do not include <stdlib.h>; no longer needed.
14987 Include "time_r.h" and declare ptime_locale_status
14988 only if _LIBC is not defined.
14989 (__P): Remove unused macro.
14990 (match_string): Bring back glibc version, but use it only if _LIBC
14992 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
14993 Remove unnecessary assertion and abort() call.
14994 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
14995 * m4/strptime.m4: Fix serial number comment.
14996 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
14997 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
14998 (Depends-on): Add time_r.
15000 2007-01-29 Bruno Haible <bruno@clisp.org>
15002 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15004 * modules/strptime (Depends-on): Add stdbool.
15005 * lib/strptime.h: Include <time.h> always. Add comments.
15007 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
15009 * modules/strptime: New file.
15010 * lib/strptime.h: New file.
15011 * lib/strptime.c: New file.
15012 * m4/strptime.m4: New file.
15014 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
15016 * MODULES.html.sh: New module mpsort.
15017 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
15019 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
15020 a circularity problem with HP-UX ia64 reported by Bob Proulx in
15021 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
15023 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
15025 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
15027 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
15028 the parameter matches the prototype.
15030 2007-01-28 Jim Meyering <jim@meyering.net>
15032 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
15033 sys/time.h here, reverting that part of the previous patch:
15034 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
15036 2007-01-28 Bruno Haible <bruno@clisp.org>
15038 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
15039 value of $(SYS_TIME_H).
15040 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
15041 remove it conditionally, too. [added by Jim Meyering]
15042 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
15043 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
15044 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
15045 GETTIMEOFDAY_REPLACEMENT to 1.
15047 2007-01-28 Bruno Haible <bruno@clisp.org>
15049 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
15050 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
15051 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
15052 Set UNISTD_H instead of UNISTD_H2.
15053 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
15055 2007-01-28 Bruno Haible <bruno@clisp.org>
15057 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
15058 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
15060 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15062 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
15063 (func_create_testdir): Ensure C locale for `grep' and `tr'
15065 (func_create_megatestdir): Avoid one `grep'. Fix bug in
15066 ACLOCAL_AMFLAGS parsing state machine.
15068 2007-01-27 Bruno Haible <bruno@clisp.org>
15070 * modules/unistr/base: Update.
15072 2007-01-27 Bruno Haible <bruno@clisp.org>
15074 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
15075 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
15076 * modules/unistr/u32-mbtouc-unsafe: Renamed from
15077 modules/unistr/u32-mbtouc.
15078 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
15079 * lib/unistr.h: Update.
15080 * lib/linebreak.c: Update.
15081 * modules/unistr/u32-mbtouc: Renamed from
15082 modules/unistr/u32-mbtouc-safe.
15083 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
15084 * lib/unistr.h: Update.
15085 * lib/unistr/u32-to-u8.c: Update.
15086 * lib/unistr/u32-to-u16.c: Update.
15088 2007-01-27 Bruno Haible <bruno@clisp.org>
15090 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
15091 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
15092 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
15093 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
15094 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
15095 * modules/unistr/u16-mbtouc-unsafe: Renamed from
15096 modules/unistr/u16-mbtouc.
15097 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
15098 * lib/unistr.h: Update.
15099 * lib/linebreak.c: Update.
15100 * modules/linebreak: Update.
15101 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
15102 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
15103 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
15104 * modules/unistr/u16-mbtouc: Renamed from
15105 modules/unistr/u16-mbtouc-safe.
15106 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
15107 * lib/unistr.h: Update.
15108 * lib/unistr/u16-to-u8.c: Update.
15109 * modules/unistr/u16-to-u8: Update.
15110 * lib/unistr/u16-to-u32.c: Update.
15111 * modules/unistr/u16-to-u32: Update.
15113 2007-01-27 Bruno Haible <bruno@clisp.org>
15115 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
15116 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
15117 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
15118 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
15119 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
15120 * modules/unistr/u8-mbtouc-unsafe: Renamed from
15121 modules/unistr/u8-mbtouc.
15122 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
15123 * lib/unistr.h: Update.
15124 * lib/striconveh.c: Update.
15125 * modules/striconveh: Update.
15126 * lib/linebreak.c: Update.
15127 * modules/linebreak: Update.
15128 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
15129 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
15130 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
15131 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
15132 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
15133 * lib/unistr.h: Update.
15134 * lib/striconveh.c: Update.
15135 * modules/striconveh: Update.
15136 * lib/unistr/u8-to-u16.c: Update.
15137 * modules/unistr/u8-to-u16: Update.
15138 * lib/unistr/u8-to-u32.c: Update.
15139 * modules/unistr/u8-to-u32: Update.
15141 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15144 * lib/argz.c: Do not include strings.h nor memory.h, include
15145 string.h unconditionally. Patch by Simon Josefsson.
15147 2007-01-27 Bruno Haible <bruno@clisp.org>
15149 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
15150 from gl_HEADER_STRING_H_BODY.
15151 (gl_HEADER_STRING_H_BODY): Require it.
15152 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
15153 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
15154 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
15155 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
15156 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15157 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
15158 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15159 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
15160 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
15161 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
15162 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
15163 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
15164 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
15165 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
15166 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
15168 2007-01-27 Bruno Haible <bruno@clisp.org>
15170 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
15171 check_PROGRAMS into noinst_PROGRAMS.
15172 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
15173 check_PROGRAMS in this case.
15174 (func_import): Set for_test to false.
15175 (func_create_testdir): Set for_test to true.
15177 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15178 Bruno Haible <bruno@clisp.org>
15180 * modules/strcasestr (Files): Remove lib/strcasestr.h.
15181 (Depends-on): Add string.
15182 (Includes): Use <string.h> instead of strcasestr.h.
15183 * modules/string (Makefile.am): Also substitute the value of
15184 REPLACE_STRCASESTR.
15185 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
15186 assume strcasestr is declared in <string.h> not <strings.h>. Also
15187 set REPLACE_STRCASESTR.
15188 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
15189 REPLACE_STRCASESTR.
15190 * lib/strcasestr.h: Remove file.
15191 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
15192 * lib/string_.h (strcasestr): New declaration.
15194 2007-01-27 Bruno Haible <bruno@clisp.org>
15196 * lib/string_.h: Use 'extern'.
15198 2007-01-27 Jim Meyering <jim@meyering.net>
15200 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
15201 of set-but-not-used local, "q".
15203 * lib/mempcpy.c: Include <config.h> before <string.h>.
15204 This fixes a compilation error on HP-UX, due to the system's
15205 "restrict"-using mempcpy prototype.
15207 2007-01-26 Bruno Haible <bruno@clisp.org>
15209 Small optimization.
15210 * lib/javacomp.c: Include c-strstr.h.
15211 (is_envjavac_gcj): Use c_strstr instead of strstr.
15212 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
15214 2007-01-26 Bruno Haible <bruno@clisp.org>
15216 * MODULES.html.sh (Unicode string functions): Add the new modules.
15218 * modules/uniconv/u32-strconv-to-locale: New file.
15219 * lib/uniconv/u32-strconv-to-locale.c: New file.
15221 * modules/uniconv/u16-strconv-to-locale: New file.
15222 * lib/uniconv/u16-strconv-to-locale.c: New file.
15224 * modules/uniconv/u8-strconv-to-locale: New file.
15225 * lib/uniconv/u8-strconv-to-locale.c: New file.
15227 * modules/uniconv/u32-strconv-from-locale: New file.
15228 * lib/uniconv/u32-strconv-from-locale.c: New file.
15230 * modules/uniconv/u16-strconv-from-locale: New file.
15231 * lib/uniconv/u16-strconv-from-locale.c: New file.
15233 * modules/uniconv/u8-strconv-from-locale: New file.
15234 * lib/uniconv/u8-strconv-from-locale.c: New file.
15236 * modules/uniconv/u32-strconv-to-enc: New file.
15237 * lib/uniconv/u32-strconv-to-enc.c: New file.
15238 * modules/uniconv/u32-strconv-to-enc-tests: New file.
15239 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
15241 * modules/uniconv/u16-strconv-to-enc: New file.
15242 * lib/uniconv/u16-strconv-to-enc.c: New file.
15243 * lib/uniconv/u-strconv-to-enc.h: New file.
15244 * modules/uniconv/u16-strconv-to-enc-tests: New file.
15245 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
15247 * modules/uniconv/u8-strconv-to-enc: New file.
15248 * lib/uniconv/u8-strconv-to-enc.c: New file.
15249 * modules/uniconv/u8-strconv-to-enc-tests: New file.
15250 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
15252 * modules/uniconv/u32-strconv-from-enc: New file.
15253 * lib/uniconv/u32-strconv-from-enc.c: New file.
15254 * modules/uniconv/u32-strconv-from-enc-tests: New file.
15255 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
15257 * modules/uniconv/u16-strconv-from-enc: New file.
15258 * lib/uniconv/u16-strconv-from-enc.c: New file.
15259 * modules/uniconv/u16-strconv-from-enc-tests: New file.
15260 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
15262 * modules/uniconv/u8-strconv-from-enc: New file.
15263 * lib/uniconv/u8-strconv-from-enc.c: New file.
15264 * lib/uniconv/u-strconv-from-enc.h: New file.
15265 * modules/uniconv/u8-strconv-from-enc-tests: New file.
15266 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
15268 * modules/uniconv/u32-conv-from-enc: New file.
15269 * lib/uniconv/u32-conv-from-enc.c: New file.
15270 * modules/uniconv/u32-conv-from-enc-tests: New file.
15271 * tests/uniconv/test-u32-conv-from-enc.c: New file.
15273 * modules/uniconv/u16-conv-from-enc: New file.
15274 * lib/uniconv/u16-conv-from-enc.c: New file.
15275 * lib/uniconv/u-conv-from-enc.h: New file.
15276 * modules/uniconv/u16-conv-from-enc-tests: New file.
15277 * tests/uniconv/test-u16-conv-from-enc.c: New file.
15279 * modules/uniconv/u8-conv-from-enc: New file.
15280 * lib/uniconv/u8-conv-from-enc.c: New file.
15281 * modules/uniconv/u8-conv-from-enc-tests: New file.
15282 * tests/uniconv/test-u8-conv-from-enc.c: New file.
15284 * modules/uniconv/base: New file.
15285 * lib/uniconv.h: New file.
15287 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
15289 * doc/gnulib-tool.texi (Initial import): Update to match current
15290 behavior with strdup module.
15291 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
15292 * lib/memmem.h: Remove; all uses removed. This is now done
15294 * lib/mempcpy.h: Likewise.
15295 * lib/memrchr.h: Likewise.
15296 * lib/stpcpy.h: Likewise.
15297 * lib/stpncpy.h: Likewise.
15298 * lib/strcase.h: Likewise.
15299 * lib/strchrnul.h: Likewise.
15300 * lib/strdup.h: Likewise.
15301 * lib/strndup.h: Likewise.
15302 * lib/strnlen.h: Likewise.
15303 * lib/strpbrk.h: Likewise.
15304 * lib/strsep.h: Likewise.
15305 * lib/strstr.h: Likewise.
15306 * lib/strtok_r.h: Likewise.
15307 * lib/string_.h: New file.
15308 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
15309 Rely on <string.h> instead.
15310 * lib/canon-host.c: Likewise.
15311 * lib/chdir-long.c: Likewise.
15312 * lib/concatpath.c: Likewise.
15313 * lib/exclude.c: Likewise.
15314 * lib/fchdir.c: Likewise.
15315 * lib/getaddrinfo.c: Likewise.
15316 * lib/getcwd.c: Likewise.
15317 * lib/getsubopt.c: Likewise.
15318 * lib/glob.c: Likewise.
15319 * lib/hard-locale.c: Likewise.
15320 * lib/iconvme.c: Likewise.
15321 * lib/javacomp.c: Likewise.
15322 * lib/mempcpy.c: Likewise.
15323 * lib/memrchr.c: Likewise.
15324 * lib/regex_internal.h: Likewise.
15325 * lib/stpncpy.c: Likewise.
15326 * lib/strcasecmp.c: Likewise.
15327 * lib/strchrnul.c: Likewise.
15328 * lib/strdup.c: Likewise.
15329 * lib/striconv.c: Likewise.
15330 * lib/striconveh.c: Likewise.
15331 * lib/striconveha.c: Likewise.
15332 * lib/strncasecmp.c: Likewise.
15333 * lib/strndup.c: Likewise.
15334 * lib/strnlen.c: Likewise.
15335 * lib/strsep.c: Likewise.
15336 * lib/strstr.c: Likewise.
15337 * lib/strtok_r.c: Likewise.
15338 * lib/userspec.c: Likewise.
15339 * lib/w32spawn.h: Likewise.
15340 * lib/xstrndup.c: Likewise.
15341 * lib/mountlist.c (strstr): Remove decl.
15342 * m4/string_h.m4: New file.
15343 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
15344 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
15345 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
15346 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
15347 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
15348 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
15349 Set REPLACE_STRCASECMP if necessary.
15350 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
15351 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
15352 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
15353 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
15354 HAVE_DECL_STRDUP if necessary.
15355 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
15356 since gl_FUNC_STRNDUP does that now.
15357 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
15358 Check for decl here...
15359 (gl_PREREQ_STRNLEN): ... not here.
15360 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
15361 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
15362 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
15363 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
15365 * modules/string: New file.
15366 * modules/memmem (Files): Remove special-purpose include file.
15367 (Depends-on): Add string.
15368 (Include): Include <string.h>, not the removed file.
15369 * modules/mempcpy: Likewise.
15370 * modules/memrchr: Likewise.
15371 * modules/stpcpy: Likewise.
15372 * modules/stpncpy: Likewise.
15373 * modules/strcase: Likewise.
15374 * modules/strchrnul: Likewise.
15375 * modules/strdup: Likewise.
15376 * modules/strndup: Likewise.
15377 * modules/strnlen: Likewise.
15378 * modules/strpbrk: Likewise.
15379 * modules/strsep: Likewise.
15380 * modules/strstr: Likewise.
15381 * modules/strtok_r: Likewise.
15382 * tests/test-dirname.c: Don't include "strdup.h", since
15383 <string.h> now suffices.
15384 * tests/test-memmem.c: Don't include "memmem.h", since
15385 <string.h> now suffices.
15387 2007-01-25 Bruno Haible <bruno@clisp.org>
15389 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
15392 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
15393 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
15394 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
15395 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
15397 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
15398 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
15399 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
15400 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
15401 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
15402 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
15404 2007-01-24 Bruno Haible <bruno@clisp.org>
15406 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
15407 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
15408 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
15409 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
15411 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
15412 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
15413 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
15414 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
15415 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
15416 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
15418 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
15420 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
15421 Reported by Ralf Wildenhues.
15423 2007-01-24 Bruno Haible <bruno@clisp.org>
15425 Drop AC_REQUIRE calls that are redundant with the module dependencies.
15426 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
15428 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
15429 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
15430 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
15432 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
15434 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
15435 Don't use 'exit'; just return from 'main'.
15436 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
15438 * lib/fnmatch_.h: Readjust white space and comments to match
15439 glibc, to avoid spurious diffs.
15441 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
15443 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
15444 2004-12-01 change by Jakub Jelinek, since this code won't compile
15445 if !LIBC. Problem reported by Bob Proulx.
15447 2007-01-23 Bruno Haible <bruno@clisp.org>
15449 * lib/striconveh.c: Include c-strcaseeq.h.
15450 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
15451 * modules/striconveh (Depends-on): Add c-strcaseeq.
15453 2007-01-23 Bruno Haible <bruno@clisp.org>
15455 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
15457 * modules/c-strcaseeq: New file.
15458 * lib/c-strcaseeq.h: New file.
15460 * modules/streq: New file.
15461 * lib/streq.h: New file.
15463 2007-01-23 Bruno Haible <bruno@clisp.org>
15465 * modules/striconveha-tests: New file.
15466 * tests/test-striconveha.c: New file.
15468 * lib/striconveha.h: Include <stdbool.h>.
15469 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
15470 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
15471 (mem_iconveha_notranslit): Renamed from mem_iconveha.
15472 (mem_iconveha): New function.
15473 (str_iconveha_notranslit): Renamed from str_iconveha.
15474 (str_iconveha): New function.
15475 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
15478 2007-01-23 Bruno Haible <bruno@clisp.org>
15480 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
15481 encodings without forgiving before trying any encoding with handler.
15482 (str_iconveha): Try all encodings without forgiving before trying any
15483 encoding with handler.
15485 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
15487 Import the following changes from libc.
15489 2005-10-14 Ulrich Drepper <drepper@redhat.com>
15491 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
15493 2004-12-01 Jakub Jelinek <jakub@redhat.com>
15495 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
15496 normal_bracket label.
15498 2004-09-01 Jakub Jelinek <jakub@redhat.com>
15501 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
15502 to normal_bracket after fetching the next character.
15504 2007-01-22 Bruno Haible <bruno@clisp.org>
15506 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
15508 * lib/striconveh.c (iconv_carefully_1): New function.
15509 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
15511 (str_cd_iconveh): Update.
15512 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
15513 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
15514 * tests/test-striconveh.c (MAGIC): New macro.
15515 (new_offsets): New function.
15516 (main): Test call with and without offsets.
15518 2007-01-22 Bruno Haible <bruno@clisp.org>
15520 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
15521 * modules/sys_select (Makefile.am): Likewise.
15522 * modules/sys_socket (Makefile.am): Likewise.
15523 * modules/sys_time (Makefile.am): Likewise.
15525 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
15527 * modules/gettimeofday (License): Change from GPL to LGPL, since
15528 gettimeofday is a library function.
15530 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15532 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
15534 2007-01-21 Bruno Haible <bruno@clisp.org>
15536 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
15538 2007-01-21 Bruno Haible <bruno@clisp.org>
15540 * modules/striconveha: New file.
15541 * lib/striconveha.h: New file.
15542 * lib/striconveha.c: New file.
15543 * MODULES.html.sh (Internationalization functions): Add striconveha.
15544 * lib/striconv.c (str_iconv): Optimize the case of an empty input
15546 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
15548 2007-01-21 Bruno Haible <bruno@clisp.org>
15550 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
15551 * lib/striconveh.c (str_iconveh): Likewise.
15553 2007-01-21 Bruno Haible <bruno@clisp.org>
15555 * lib/striconveh.h (mem_iconveh): New declaration.
15556 * lib/striconveh.c (mem_iconveh): New function.
15557 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
15559 2007-01-21 Bruno Haible <bruno@clisp.org>
15561 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
15563 * lib/striconveh.h (mem_cd_iconveh): Change specification.
15564 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
15565 original result buffer.
15566 (str_cd_iconveh): Update.
15567 * tests/test-striconveh.c (main): Update.
15569 * lib/striconv.h (mem_cd_iconv): Change specification.
15570 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
15572 (str_cd_iconv): Update.
15573 * tests/test-striconv.c (main): Update.
15575 2007-01-21 Bruno Haible <bruno@clisp.org>
15577 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
15579 2007-01-20 Jim Meyering <jim@meyering.net>
15581 * lib/userspec.c (parse_with_separator): If a user or group string
15582 starts with "+", skip the corresponding name-to-ID look-up, since
15583 such a look-up must fail: user and group names may not include "+".
15585 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
15587 * lib/poll.c: Include sys/time.h and time.h unconditionally,
15588 since we now assume the sys_time module.
15589 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
15590 check for sys/time.h; no longer needed.
15591 * modules/poll (Depends-on): Depend on sys_time.
15593 2007-01-18 Bruno Haible <bruno@clisp.org>
15595 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
15596 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
15598 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
15601 * tests/test-gettimeofday.c: Include <time.h>.
15602 (dummy): Remove variable.
15604 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
15605 gl_HEADER_SYS_TIME_H.
15606 (gl_HEADER_SYS_TIME_H): New macro.
15608 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
15609 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15610 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
15611 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
15612 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15613 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
15614 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
15615 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15616 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
15617 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
15618 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15620 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
15621 last change; it caused a compilation error when cross-compiling to
15624 2007-01-18 Jim Meyering <jim@meyering.net>
15626 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
15627 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
15628 than the race-prone "test -d sys || mkdir sys".
15629 (configure.ac): Use AC_PROG_MKDIR_P.
15630 * modules/sys_select: Likewise.
15631 * modules/sys_socket: Likewise.
15632 * modules/sys_time: Likewise.
15634 2007-01-18 Eric Blake <ebb9@byu.net>
15636 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
15637 replace gettimeofday.
15638 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
15639 name, to avoid infinite recursion.
15641 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
15643 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
15645 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
15646 assume timespec.h defines struct timeval.
15647 * lib/settime.c: Likewise.
15648 * lib/utimens.c: Likewise.
15649 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
15650 since we now assume the gettimeofday module.
15651 * lib/tempname.c (__gen_tempname): Likewise.
15652 * lib/gettimeofday.h: Remove.
15653 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
15654 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
15655 Include <time.h>, for 'time()'.
15656 (localtime_buffer_addr): Also use this workaround if
15657 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
15658 to simplify the uses. All uses changed.
15659 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
15660 that #undef is inside {}, and 'const' follows type name consistently.
15661 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
15662 (gettimeofday): Do not use the maximum possible value for
15663 tv->tv_usec, since that might break usages other than ls.c.
15664 Instead, we'll leave ls.c alone. This undoes today's patch
15665 by Bruno. Add a compile-time warning for 1s-clock resolution;
15666 we've never observed the problem but might as well keep the
15668 * lib/nanosleep.c: Include timespec.h first, for interface check.
15669 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
15670 now assume the sys_time module.
15671 * lib/tempname.c: Likewise.
15672 * lib/timespec.h: Likewise.
15673 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
15675 * lib/strftime.c: Likewise.
15676 * lib/timespec.h: Likewise.
15677 * lib/posixtm.c: Include posixtm.h first, for interface check.
15678 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
15679 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
15680 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
15681 * lib/sys_time_.h: New file.
15682 * lib/timespec.h (struct timespec): Use long int, not long.
15683 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
15684 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
15685 Remove obsolescent call to AC_HEADER_TIME.
15686 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15687 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15688 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
15689 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
15691 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
15692 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
15693 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
15694 into the sys_time module. Check for gettimeofday just once.
15695 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
15696 for gettimeofday signature to just check the signature. Merely
15697 compile it, since linking doesn't test signature. Improve test for
15698 whether gettimeofday.o is actually needed.
15699 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
15700 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
15701 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
15702 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15703 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
15704 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
15705 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
15706 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
15707 than worrying about sys/time.h.
15708 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
15709 Don't bother worrying about TIME_WITH_SYS_TIME.
15710 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
15711 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
15712 * m4/sys_time_h.m4: New file.
15713 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
15714 Don't include sys/time.h. Return from main rather than exiting.
15715 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
15717 * modules/gethrxtime (Depends-on): Add sys_time.
15718 * modules/gettime (Depends-on): Likewise.
15719 * modules/gettimeofday (Depends-on): Likewise.
15720 * modules/nanosleep (Depends-on): Likewise.
15721 * modules/settime (Depends-on): Likewise.
15722 * modules/tempname (Depends-on): Likewise.
15723 * modules/utimens (Depends-on): Likewise.
15724 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
15725 (Include:) Change back to <sys/time.h>.
15726 (Maintainer:) Add self.
15727 * modules/sys_time: New file.
15728 * modules/tempname (Depends-on): Add gettimeofday.
15729 * tests/test-gettimeofday.c: Include <sys/time.h>
15730 rather than gettimeofday.h.
15732 2007-01-17 Bruno Haible <bruno@clisp.org>
15734 * gnulib-tool (func_get_license): Revert last patch. Instead, let
15735 the license default to GPL.
15736 (func_create_testdir): Don't complain if a module is LGPL and its
15737 tests module depends on GPLed modules.
15739 2007-01-17 Bruno Haible <bruno@clisp.org>
15741 * lib/gettimeofday.c (gettimeofday): Add code for the case
15742 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
15743 maximum possible value for tv->tv_usec, rather than the minimum one.
15745 2005-10-08 Martin Lambers <marlam@marlam.de>
15746 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
15747 2007-01-16 Bruno Haible <bruno@clisp.org>
15749 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
15750 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
15751 gl_FUNC_GETTIMEOFDAY.
15752 (Include): Add gettimeofday.h.
15753 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
15754 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
15755 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
15756 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
15757 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
15758 * lib/gettimeofday.h: New file.
15759 * lib/gettimeofday.c: Include <sys/timeb.h>.
15760 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
15761 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15762 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
15763 fall back on time().
15765 * tests/test-gettimeofday.c: New file.
15766 * modules/gettimeofday-tests: New file.
15768 2007-01-16 Eric Blake <ebb9@byu.net>
15770 * modules/fnmatch (Depends-on): Depend on wchar.
15771 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
15772 * m4/fnmatch.m4: Likewise.
15773 * modules/mbchar (Makefile.am): Assume <wchar.h>.
15774 * m4/mbchar.m4: Likewise.
15775 * modules/mbswidth (Depends-on): Depend on wchar.
15776 * lib/mbswidth.c: Assume <wchar.h>.
15777 * m4/mbswidth.m4: Likewise.
15778 * modules/quotearg (Depends-on): Depend on wchar.
15779 * lib/quotearg.c: Assume <wchar.h>.
15780 * m4/quotearg.m4: Likewise.
15781 * modules/regex (Depends-on): Depend on wchar.
15782 * lib/regex_internal.h: Assume <wchar.h>.
15783 * m4/regex.m4: Likewise.
15784 * modules/stdint (Depends-on): Depend on wchar.
15785 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
15786 * m4/stdint.m4: Likewise.
15787 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
15788 * modules/strftime (Depends-on): Depend on wchar.
15789 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
15790 * modules/strtol (Depends-on): Depend on wchar.
15791 * lib/strtol.c: Assume <wchar.h>.
15792 * modules/wcwidth (Depends-on): Depend on wchar.
15793 * lib/wcwidth.h: Assume <wchar.h>.
15794 * m4/wcwidth.m4: Likewise.
15796 2007-01-16 Bruno Haible <bruno@clisp.org>
15798 * modules/csharpexec-script: New, created from...
15799 * modules/csharpexec: ... this.
15801 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
15803 * modules/javaexec-script: New, created from...
15804 * modules/javaexec: ... this.
15806 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15808 * modules/poll (Dependencies): Add sys_select.
15810 2007-01-15 Jim Meyering <jim@meyering.net>
15812 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
15813 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
15814 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
15815 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
15817 2007-01-15 Bruno Haible <bruno@clisp.org>
15819 * modules/striconveh: New file.
15820 * lib/striconveh.h: New file.
15821 * lib/striconveh.c: New file.
15822 * MODULES.html.sh (Internationalization functions): Add striconveh.
15824 * modules/striconveh-tests: New file.
15825 * tests/test-striconveh.c: New file.
15827 2007-01-15 Bruno Haible <bruno@clisp.org>
15829 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
15830 not from GNU libiconv or GNU libc.
15832 2007-01-15 Bruno Haible <bruno@clisp.org>
15834 * doc/gnulib-intro.texi (Copyright): Explain the different license
15835 terms for module descriptions, autoconf macros, tests, documentation.
15837 2007-01-14 Bruno Haible <bruno@clisp.org>
15839 * modules/striconv-tests: New file.
15840 * tests/test-striconv.c: New file.
15842 2007-01-14 Bruno Haible <bruno@clisp.org>
15844 * modules/iconv-tests: New file.
15845 * tests/test-iconv.c: New file.
15847 2007-01-14 Bruno Haible <bruno@clisp.org>
15849 * gnulib-tool (func_get_license): For test modules, use the license of
15852 2007-01-14 Bruno Haible <bruno@clisp.org>
15854 * modules/iconv (Include): Clarify that <iconv.h> can only be included
15855 if iconv is found to exist.
15857 2007-01-14 Bruno Haible <bruno@clisp.org>
15859 * modules/c-ctype-tests: New file.
15860 * tests/test-c-ctype.c: New file.
15862 2007-01-14 Bruno Haible <bruno@clisp.org>
15864 * modules/binary-io-tests: New file.
15865 * tests/test-binary-io.sh: New file.
15866 * tests/test-binary-io.c: New file.
15868 2007-01-14 Bruno Haible <bruno@clisp.org>
15870 * modules/array-oset-tests: New file.
15871 * tests/test-array_oset.c: New file.
15873 2007-01-14 Bruno Haible <bruno@clisp.org>
15875 * modules/array-list-tests: New file.
15876 * tests/test-array_list.c: New file.
15878 2007-01-14 Bruno Haible <bruno@clisp.org>
15880 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
15882 Reported by Simon Josefsson in
15883 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
15885 2007-01-14 Bruno Haible <bruno@clisp.org>
15887 * modules/allocsa-tests: New file.
15888 * tests/test-allocsa.c: New file.
15890 2007-01-14 Bruno Haible <bruno@clisp.org>
15892 * modules/fchdir (Depends-on): Add absolute-header.
15893 * modules/unistd (Depends-on): Likewise.
15895 2006-12-30 Bruno Haible <bruno@clisp.org>
15897 * modules/fchdir: New file.
15898 * modules/unistd (Files): Add lib/unistd_.h.
15899 (Makefile.am): Generate unistd.h from unistd_.h.
15900 * lib/fchdir.c: New file.
15901 * lib/dirent_.h: New file.
15902 * lib/unistd_.h: New file.
15903 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
15904 * m4/fchdir.m4: New file.
15905 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
15906 (gl_HEADER_UNISTD): Invoke it.
15907 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
15909 * lib/backupfile.c (opendir, closedir): Undefine.
15910 * lib/chown.c (open, close): Undefine.
15911 * lib/clean-temp.c (open, close): Undefine.
15912 * lib/copy-file.c (open, close): Undefine.
15913 * lib/execute.c (open, close): Undefine.
15914 * lib/fsusage.c (open, close): Undefine.
15915 * lib/gc-gnulib.c (open, close): Undefine.
15916 * lib/getcwd.c (opendir, closedir): Undefine.
15917 * lib/glob.c (opendir, closedir): Undefine.
15918 * lib/javacomp.c (open, close): Undefine.
15919 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
15920 * lib/openat-proc.c (open, close): Undefine.
15921 * lib/pagealign_alloc.c (open, close): Undefine.
15922 * lib/pipe.c (open, close): Undefine.
15923 * lib/progreloc.c (open, close): Undefine.
15924 * lib/savedir.c (opendir, closedir): Undefine.
15925 * lib/utime.c (open, close): Undefine.
15926 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
15928 2007-01-10 Bruno Haible <bruno@clisp.org>
15930 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
15932 2007-01-12 Eric Blake <ebb9@byu.net>
15934 Provide a robust <wchar.h>. Further simplifications are now
15935 possible in other modules, but not included here.
15936 * modules/wchar: New module.
15937 * m4/wchar.m4: New file.
15938 * lib/wchar_.h: Likewise.
15939 * modules/mbchar (Depends-on): Depend on wchar, as the first use
15941 * MODULES.html.sh (Extended multibyte and wide character utilities):
15944 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
15946 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
15947 to a reasonable default for memory allocation.
15948 (xreadlink): Don't allocate a huge buffer, to work around a buggy
15949 file system that reports garbage st_size values for symlinks.
15950 Problem reported by Liyang Hu.
15952 2007-01-11 Simon Josefsson <simon@josefsson.org>
15954 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
15955 Emacs .#* auto-save files).
15957 2007-01-11 Bruno Haible <bruno@clisp.org>
15959 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
15962 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
15964 Use @...@ consistently in lib/wctype_.h.
15965 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
15966 on it being set to 1 or 0.
15967 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
15968 go back to AC_SUBSTing it.
15969 * modules/wctype (Makefile.am): Undo previous change.
15971 2007-01-10 Eric Blake <ebb9@byu.net>
15973 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
15974 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
15975 * modules/wctype (Makefile.am): Likewise.
15976 Reported by Chris McGuire.
15978 2007-01-10 Jim Meyering <jim@meyering.net>
15980 fts.c: a small readability/maintainability improvement
15981 * lib/fts.c (fts_read): Make this code slightly more readable and
15982 maintainable by hoisting the "sp->fts_cur = p" assignments to
15983 immediately follow the statements that set P. Derived from
15984 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
15986 2007-01-10 Eric Blake <ebb9@byu.net>
15988 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
15989 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
15990 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15991 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
15992 Reported by Chris McGuire.
15994 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15996 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
15999 2007-01-09 Bruno Haible <bruno@clisp.org>
16001 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
16002 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
16004 (func_module): Use them.
16006 2007-01-09 Bruno Haible <bruno@clisp.org>
16008 * modules/unistr/base: New file.
16009 * lib/unistr.h: New file.
16011 * modules/unistr/u8-to-u16: New file.
16012 * lib/unistr/u8-to-u16.c: New file.
16014 * modules/unistr/u8-to-u32: New file.
16015 * lib/unistr/u8-to-u32.c: New file.
16017 * modules/unistr/u16-to-u8: New file.
16018 * lib/unistr/u16-to-u8.c: New file.
16020 * modules/unistr/u16-to-u32: New file.
16021 * lib/unistr/u16-to-u32.c: New file.
16023 * modules/unistr/u32-to-u8: New file.
16024 * lib/unistr/u32-to-u8.c: New file.
16026 * modules/unistr/u32-to-u16: New file.
16027 * lib/unistr/u32-to-u16.c: New file.
16029 * modules/unistr/u8-check: New file.
16030 * modules/unistr/u16-check: New file.
16031 * modules/unistr/u32-check: New file.
16032 * lib/unistr/u8-check.c: New file.
16033 * lib/unistr/u16-check.c: New file.
16034 * lib/unistr/u32-check.c: New file.
16036 * modules/unistr/u8-chr: New file.
16037 * modules/unistr/u16-chr: New file.
16038 * modules/unistr/u32-chr: New file.
16039 * lib/unistr/u8-chr.c: New file.
16040 * lib/unistr/u16-chr.c: New file.
16041 * lib/unistr/u32-chr.c: New file.
16043 * modules/unistr/u8-cmp: New file.
16044 * modules/unistr/u16-cmp: New file.
16045 * modules/unistr/u32-cmp: New file.
16046 * lib/unistr/u8-cmp.c: New file.
16047 * lib/unistr/u16-cmp.c: New file.
16048 * lib/unistr/u32-cmp.c: New file.
16050 * modules/unistr/u8-cpy: New file.
16051 * modules/unistr/u16-cpy: New file.
16052 * modules/unistr/u32-cpy: New file.
16053 * lib/unistr/u8-cpy.c: New file.
16054 * lib/unistr/u16-cpy.c: New file.
16055 * lib/unistr/u32-cpy.c: New file.
16056 * lib/unistr/u-cpy.h: New file.
16058 * modules/unistr/u8-cpy-alloc: New file.
16059 * modules/unistr/u16-cpy-alloc: New file.
16060 * modules/unistr/u32-cpy-alloc: New file.
16061 * lib/unistr/u8-cpy-alloc.c: New file.
16062 * lib/unistr/u16-cpy-alloc.c: New file.
16063 * lib/unistr/u32-cpy-alloc.c: New file.
16064 * lib/unistr/u-cpy-alloc.h: New file.
16066 * modules/unistr/u8-endswith: New file.
16067 * modules/unistr/u16-endswith: New file.
16068 * modules/unistr/u32-endswith: New file.
16069 * lib/unistr/u8-endswith.c: New file.
16070 * lib/unistr/u16-endswith.c: New file.
16071 * lib/unistr/u32-endswith.c: New file.
16072 * lib/unistr/u-endswith.h: New file.
16074 * modules/unistr/u8-mblen: New file.
16075 * modules/unistr/u16-mblen: New file.
16076 * modules/unistr/u32-mblen: New file.
16077 * lib/unistr/u8-mblen.c: New file.
16078 * lib/unistr/u16-mblen.c: New file.
16079 * lib/unistr/u32-mblen.c: New file.
16081 * modules/unistr/u8-mbtouc: New file.
16082 * modules/unistr/u16-mbtouc: New file.
16083 * modules/unistr/u32-mbtouc: New file.
16084 * lib/unistr/u8-mbtouc.c: New file.
16085 * lib/unistr/u16-mbtouc.c: New file.
16086 * lib/unistr/u32-mbtouc.c: New file.
16088 * modules/unistr/u8-mbtouc-safe: New file.
16089 * modules/unistr/u16-mbtouc-safe: New file.
16090 * modules/unistr/u32-mbtouc-safe: New file.
16091 * lib/unistr/u8-mbtouc-safe.c: New file.
16092 * lib/unistr/u16-mbtouc-safe.c: New file.
16093 * lib/unistr/u32-mbtouc-safe.c: New file.
16095 * modules/unistr/u8-move: New file.
16096 * modules/unistr/u16-move: New file.
16097 * modules/unistr/u32-move: New file.
16098 * lib/unistr/u8-move.c: New file.
16099 * lib/unistr/u16-move.c: New file.
16100 * lib/unistr/u32-move.c: New file.
16101 * lib/unistr/u-move.h: New file.
16103 * modules/unistr/u8-next: New file.
16104 * modules/unistr/u16-next: New file.
16105 * modules/unistr/u32-next: New file.
16106 * lib/unistr/u8-next.c: New file.
16107 * lib/unistr/u16-next.c: New file.
16108 * lib/unistr/u32-next.c: New file.
16110 * modules/unistr/u8-prev: New file.
16111 * modules/unistr/u16-prev: New file.
16112 * modules/unistr/u32-prev: New file.
16113 * lib/unistr/u8-prev.c: New file.
16114 * lib/unistr/u16-prev.c: New file.
16115 * lib/unistr/u32-prev.c: New file.
16117 * modules/unistr/u8-set: New file.
16118 * modules/unistr/u16-set: New file.
16119 * modules/unistr/u32-set: New file.
16120 * lib/unistr/u8-set.c: New file.
16121 * lib/unistr/u16-set.c: New file.
16122 * lib/unistr/u32-set.c: New file.
16123 * lib/unistr/u-set.h: New file.
16125 * modules/unistr/u8-startswith: New file.
16126 * modules/unistr/u16-startswith: New file.
16127 * modules/unistr/u32-startswith: New file.
16128 * lib/unistr/u8-startswith.c: New file.
16129 * lib/unistr/u16-startswith.c: New file.
16130 * lib/unistr/u32-startswith.c: New file.
16131 * lib/unistr/u-startswith.h: New file.
16133 * modules/unistr/u8-stpcpy: New file.
16134 * modules/unistr/u16-stpcpy: New file.
16135 * modules/unistr/u32-stpcpy: New file.
16136 * lib/unistr/u8-stpcpy.c: New file.
16137 * lib/unistr/u16-stpcpy.c: New file.
16138 * lib/unistr/u32-stpcpy.c: New file.
16139 * lib/unistr/u-stpcpy.h: New file.
16141 * modules/unistr/u8-stpncpy: New file.
16142 * modules/unistr/u16-stpncpy: New file.
16143 * modules/unistr/u32-stpncpy: New file.
16144 * lib/unistr/u8-stpncpy.c: New file.
16145 * lib/unistr/u16-stpncpy.c: New file.
16146 * lib/unistr/u32-stpncpy.c: New file.
16147 * lib/unistr/u-stpncpy.h: New file.
16149 * modules/unistr/u8-strcat: New file.
16150 * modules/unistr/u16-strcat: New file.
16151 * modules/unistr/u32-strcat: New file.
16152 * lib/unistr/u8-strcat.c: New file.
16153 * lib/unistr/u16-strcat.c: New file.
16154 * lib/unistr/u32-strcat.c: New file.
16155 * lib/unistr/u-strcat.h: New file.
16157 * modules/unistr/u8-strchr: New file.
16158 * modules/unistr/u16-strchr: New file.
16159 * modules/unistr/u32-strchr: New file.
16160 * lib/unistr/u8-strchr.c: New file.
16161 * lib/unistr/u16-strchr.c: New file.
16162 * lib/unistr/u32-strchr.c: New file.
16164 * modules/unistr/u8-strcmp: New file.
16165 * modules/unistr/u16-strcmp: New file.
16166 * modules/unistr/u32-strcmp: New file.
16167 * lib/unistr/u8-strcmp.c: New file.
16168 * lib/unistr/u16-strcmp.c: New file.
16169 * lib/unistr/u32-strcmp.c: New file.
16171 * modules/unistr/u8-strcpy: New file.
16172 * modules/unistr/u16-strcpy: New file.
16173 * modules/unistr/u32-strcpy: New file.
16174 * lib/unistr/u8-strcpy.c: New file.
16175 * lib/unistr/u16-strcpy.c: New file.
16176 * lib/unistr/u32-strcpy.c: New file.
16177 * lib/unistr/u-strcpy.h: New file.
16179 * modules/unistr/u8-strcspn: New file.
16180 * modules/unistr/u16-strcspn: New file.
16181 * modules/unistr/u32-strcspn: New file.
16182 * lib/unistr/u8-strcspn.c: New file.
16183 * lib/unistr/u16-strcspn.c: New file.
16184 * lib/unistr/u32-strcspn.c: New file.
16185 * lib/unistr/u-strcspn.h: New file.
16187 * modules/unistr/u8-strdup: New file.
16188 * modules/unistr/u16-strdup: New file.
16189 * modules/unistr/u32-strdup: New file.
16190 * lib/unistr/u8-strdup.c: New file.
16191 * lib/unistr/u16-strdup.c: New file.
16192 * lib/unistr/u32-strdup.c: New file.
16193 * lib/unistr/u-strdup.h: New file.
16195 * modules/unistr/u8-strlen: New file.
16196 * modules/unistr/u16-strlen: New file.
16197 * modules/unistr/u32-strlen: New file.
16198 * lib/unistr/u8-strlen.c: New file.
16199 * lib/unistr/u16-strlen.c: New file.
16200 * lib/unistr/u32-strlen.c: New file.
16201 * lib/unistr/u-strlen.h: New file.
16203 * modules/unistr/u8-strmblen: New file.
16204 * modules/unistr/u16-strmblen: New file.
16205 * modules/unistr/u32-strmblen: New file.
16206 * lib/unistr/u8-strmblen.c: New file.
16207 * lib/unistr/u16-strmblen.c: New file.
16208 * lib/unistr/u32-strmblen.c: New file.
16210 * modules/unistr/u8-strmbtouc: New file.
16211 * modules/unistr/u16-strmbtouc: New file.
16212 * modules/unistr/u32-strmbtouc: New file.
16213 * lib/unistr/u8-strmbtouc.c: New file.
16214 * lib/unistr/u16-strmbtouc.c: New file.
16215 * lib/unistr/u32-strmbtouc.c: New file.
16217 * modules/unistr/u8-strncat: New file.
16218 * modules/unistr/u16-strncat: New file.
16219 * modules/unistr/u32-strncat: New file.
16220 * lib/unistr/u8-strncat.c: New file.
16221 * lib/unistr/u16-strncat.c: New file.
16222 * lib/unistr/u32-strncat.c: New file.
16223 * lib/unistr/u-strncat.h: New file.
16225 * modules/unistr/u8-strncmp: New file.
16226 * modules/unistr/u16-strncmp: New file.
16227 * modules/unistr/u32-strncmp: New file.
16228 * lib/unistr/u8-strncmp.c: New file.
16229 * lib/unistr/u16-strncmp.c: New file.
16230 * lib/unistr/u32-strncmp.c: New file.
16232 * modules/unistr/u8-strncpy: New file.
16233 * modules/unistr/u16-strncpy: New file.
16234 * modules/unistr/u32-strncpy: New file.
16235 * lib/unistr/u8-strncpy.c: New file.
16236 * lib/unistr/u16-strncpy.c: New file.
16237 * lib/unistr/u32-strncpy.c: New file.
16238 * lib/unistr/u-strncpy.h: New file.
16240 * modules/unistr/u8-strnlen: New file.
16241 * modules/unistr/u16-strnlen: New file.
16242 * modules/unistr/u32-strnlen: New file.
16243 * lib/unistr/u8-strnlen.c: New file.
16244 * lib/unistr/u16-strnlen.c: New file.
16245 * lib/unistr/u32-strnlen.c: New file.
16246 * lib/unistr/u-strnlen.h: New file.
16248 * modules/unistr/u8-strpbrk: New file.
16249 * modules/unistr/u16-strpbrk: New file.
16250 * modules/unistr/u32-strpbrk: New file.
16251 * lib/unistr/u8-strpbrk.c: New file.
16252 * lib/unistr/u16-strpbrk.c: New file.
16253 * lib/unistr/u32-strpbrk.c: New file.
16254 * lib/unistr/u-strpbrk.h: New file.
16256 * modules/unistr/u8-strrchr: New file.
16257 * modules/unistr/u16-strrchr: New file.
16258 * modules/unistr/u32-strrchr: New file.
16259 * lib/unistr/u8-strrchr.c: New file.
16260 * lib/unistr/u16-strrchr.c: New file.
16261 * lib/unistr/u32-strrchr.c: New file.
16263 * modules/unistr/u8-strspn: New file.
16264 * modules/unistr/u16-strspn: New file.
16265 * modules/unistr/u32-strspn: New file.
16266 * lib/unistr/u8-strspn.c: New file.
16267 * lib/unistr/u16-strspn.c: New file.
16268 * lib/unistr/u32-strspn.c: New file.
16269 * lib/unistr/u-strspn.h: New file.
16271 * modules/unistr/u8-strstr: New file.
16272 * modules/unistr/u16-strstr: New file.
16273 * modules/unistr/u32-strstr: New file.
16274 * lib/unistr/u8-strstr.c: New file.
16275 * lib/unistr/u16-strstr.c: New file.
16276 * lib/unistr/u32-strstr.c: New file.
16277 * lib/unistr/u-strstr.h: New file.
16279 * modules/unistr/u8-strtok: New file.
16280 * modules/unistr/u16-strtok: New file.
16281 * modules/unistr/u32-strtok: New file.
16282 * lib/unistr/u8-strtok.c: New file.
16283 * lib/unistr/u16-strtok.c: New file.
16284 * lib/unistr/u32-strtok.c: New file.
16285 * lib/unistr/u-strtok.h: New file.
16287 * modules/unistr/u8-uctomb: New file.
16288 * modules/unistr/u16-uctomb: New file.
16289 * modules/unistr/u32-uctomb: New file.
16290 * lib/unistr/u8-uctomb.c: New file.
16291 * lib/unistr/u16-uctomb.c: New file.
16292 * lib/unistr/u32-uctomb.c: New file.
16294 * MODULES.html.sh (Unicode string functions): Add the new modules.
16296 2007-01-08 Bruno Haible <bruno@clisp.org>
16298 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
16299 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
16302 2007-01-08 Karl Berry <karl@gnu.org>
16304 * doc/error.texi: mention that main() fns must set program_name
16305 when progname is used.
16307 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
16309 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
16310 WCTYPE_H is empty, for the benefit of builds from non-distclean
16311 directories. Problem reported by Eric Blake in
16312 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
16314 2007-01-08 Bruno Haible <bruno@clisp.org>
16316 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
16317 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
16318 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
16319 PROVIDE_CANONICALIZE_FILENAME_MODE.
16320 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
16322 2007-01-08 Bruno Haible <bruno@clisp.org>
16324 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
16325 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
16326 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
16327 * lib/fts.c: Likewise.
16328 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
16330 2006-12-25 Bruno Haible <bruno@clisp.org>
16332 * modules/utf8-ucs4-safe: New file.
16333 * lib/utf8-ucs4-safe.h: New file.
16334 * lib/unistr/utf8-ucs4-safe.c: New file.
16336 * modules/utf16-ucs4-safe: New file.
16337 * lib/utf16-ucs4-safe.h: New file.
16338 * lib/unistr/utf16-ucs4-safe.c: New file.
16340 * MODULES.html.sh (Unicode string functions): Add the new modules.
16342 2007-01-08 Bruno Haible <bruno@clisp.org>
16344 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
16345 (Depends-on): Add unitypes.
16346 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
16347 (u8_mbtouc_aux): Move out to separate file.
16348 (u8_mbtouc): Use ucs4_t, uint8_t types.
16349 * lib/unistr/utf8-ucs4.c: New file.
16351 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
16352 (Depends-on): Add unitypes.
16353 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
16354 (u16_mbtouc_aux): Move out to separate file.
16355 (u16_mbtouc): Use ucs4_t, uint16_t types.
16356 * lib/unistr/utf16-ucs4.c: New file.
16358 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
16359 (Depends-on): Add unitypes.
16360 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
16361 (u8_uctomb_aux): Move out to separate file.
16362 (u8_uctomb): Use ucs4_t, uint8_t types.
16363 * lib/unistr/ucs4-utf8.c: New file.
16365 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
16366 (Depends-on): Add unitypes.
16367 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
16368 (u16_uctomb_aux): Move out to separate file.
16369 (u16_uctomb): Use ucs4_t, uint16_t types.
16370 * lib/unistr/ucs4-utf16.c: New file.
16372 2006-12-25 Bruno Haible <bruno@clisp.org>
16374 * modules/unitypes: New file.
16375 * lib/unitypes.h: New file.
16376 * MODULES.html.sh (func_all_modules): New section "Unicode string
16377 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
16378 this section. Add unitypes.
16380 2007-01-08 Bruno Haible <bruno@clisp.org>
16382 Avoid variable names that conflict with those from libtool.
16383 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
16384 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
16385 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
16386 library_names_spec to acl_library_names_spec, hardcode_* to
16388 Reported by Ralf Wildenhues.
16390 2007-01-08 Bruno Haible <bruno@clisp.org>
16392 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
16394 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
16396 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
16397 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
16399 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
16401 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
16402 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
16403 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
16404 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
16406 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
16408 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
16409 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
16410 GC_USE_<algorithm>.
16411 * lib/gc-libgcrypt.c: Likewise.
16412 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
16413 * modules/gc-arctwo (configure.ac): Likewise.
16414 * modules/gc-des (configure.ac): Likewise.
16415 * modules/gc-hmac-md5 (configure.ac): Likewise.
16416 * modules/gc-hmac-sha1 (configure.ac): Likewise.
16417 * modules/gc-md2 (configure.ac): Likewise.
16418 * modules/gc-md4 (configure.ac): Likewise.
16419 * modules/gc-md5 (configure.ac): Likewise.
16420 * modules/gc-random (configure.ac): Likewise.
16421 * modules/gc-rijndael (configure.ac): Likewise.
16422 * modules/gc-sha1 (configure.ac): Likewise.
16424 2007-01-08 Bruno Haible <bruno@clisp.org>
16426 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
16428 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
16430 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
16432 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
16433 * modules/fcntl-safer (configure.ac): Likewise.
16434 * modules/fopen-safer (configure.ac): Likewise.
16435 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
16436 GNULIB_FWRITEERROR macro definition.
16438 2007-01-08 Bruno Haible <bruno@clisp.org>
16440 * m4/gnulib-common.m4: New file.
16441 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
16442 (func_get_filelist): Add m4/gnulib-common.m4.
16444 2007-01-08 Bruno Haible <bruno@clisp.org>
16446 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
16449 2007-01-08 Jim Meyering <jim@meyering.net>
16451 Use a more robust test for a "can't happen" condition.
16452 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
16453 narrowed the st_size value. Presuming the "can't happen" condition
16454 is true, that narrowing could conceivably convert an invalid st_size
16455 value into a valid one. Instead, use a change based on Matthew
16456 Woehlke's original patch.
16458 Slight readability improvement: use an assert-like macro
16459 in place of literal "abort ()" uses.
16460 * lib/fts.c (fts_assert): Define.
16461 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
16462 Use this macro instead of a bare 'abort'.
16464 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
16466 Don't worry about using IRIX 5.3's wctype.h broken definitions;
16467 simply work around them.
16468 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
16469 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
16470 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
16472 Don't bother to define as macros, since the standard doesn't require it.
16473 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
16474 longer worry about IRIX 5.3.
16475 (HAVE_WCTYPE_CTMP_BUG): Remove.
16477 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
16479 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
16480 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
16481 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
16482 Problems reported by Georg Schwarz for IRIX 5.3.
16484 * gnulib-tool (autoconf_minversion): Take the maximum version number
16485 found, not the minimum. Problem reported by James Youngman.
16487 2007-01-03 Karl Berry <karl@gnu.org>
16489 * doc/error.texi: new file, explaining interaction with progname.
16490 * doc/gnulib.texi: include it. Update copyright.
16492 2007-01-03 Simon Josefsson <simon@josefsson.org>
16494 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
16495 AC_CANONICAL_HOST, to improve autobuild outputs.
16497 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
16498 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16500 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
16501 sockets, server sockets, and other file descriptors. Count errors
16502 to compute the return value. Reorder the code a bit to be easier
16503 to follow. Don't set event bits that were not requested (except
16504 POLLERR and POLLHUP).
16506 2007-01-01 Bruno Haible <bruno@clisp.org>
16508 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
16510 2007-01-03 Jim Meyering <jim@meyering.net>
16512 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
16514 2007-01-02 Bruno Haible <bruno@clisp.org>
16516 * modules/settime (Include): Require timespec.h.
16517 * modules/nanosleep (Include): Likewise.
16519 2007-01-01 Bruno Haible <bruno@clisp.org>
16521 * gnulib-tool (func_emit_copyright_notice): Bump year.
16522 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
16524 2007-01-01 Bruno Haible <bruno@clisp.org>
16526 Improve support for OpenBSD.
16527 * build-aux/config.rpath (libname_spec): Export.
16528 (library_names_spec): New variable. Export.
16529 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
16530 library_names_spec from the config.rpath output. Locate shared library
16531 through the name pattern in library_names_spec.
16533 2007-01-01 Eric Blake <ebb9@byu.net>
16535 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
16537 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
16539 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
16540 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
16541 assume the C locale, and avoid an "eval" that could cause trouble.
16542 Problem with SORT reported by Bob Proulx.
16544 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
16545 Define. Trivial patch from Henning Nielsen Lund, originally
16546 sent to bug-grep@gnu.org today.
16548 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
16550 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
16551 struct stat. Problem reported by Henning Nielsen Lund.
16552 * lib/acl.c: Include acl.h first, to check interface. Don't
16553 bother to include sys/types.h and sys/stat.h again.
16555 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
16557 Import the following change from libc; problem reported by
16560 2005-10-13 Ulrich Drepper <drepper@redhat.com>
16563 * lib/argp.h: Remove __NTH for __argp_usage inline function.
16565 2006-12-28 Jim Meyering <jim@meyering.net>
16567 * build-aux/announce-gen: Do not assume that the package
16568 builds any of tar.gz, tar.bz2, and .xdelta files.
16569 Suggestion from Simon Josefsson.
16571 2006-12-28 Simon Josefsson <simon@josefsson.org>
16573 * modules/announce-gen: New file.
16575 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
16577 * lib/mbchar.h: Just include <wctype.h>; the wctype module
16578 handles its gotchas now.
16579 * lib/mbswidth.c: Likewise.
16580 * lib/wcwidth.h: Likewise.
16581 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
16582 and iswcntrl; the wctype module does this stuff now.
16583 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
16584 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16585 * modules/mbchar (Depends-on): Add wctype.
16586 * modules/mbswidth (Depends-on): Likewise.
16587 * modules/wcwidth (Depends-on): Likewise.
16589 2006-12-27 Eric Blake <ebb9@byu.net>
16591 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
16592 module uses more than what <wctype.h> is required to provide.
16594 2006-12-26 Eric Blake <ebb9@byu.net>
16596 * gnulib-tool (sed_extract_prog): Avoid space-tab.
16598 2006-12-26 Eric Blake <ebb9@byu.net>
16600 * modules/absolute-header: New module.
16601 * modules/fcntl (Depends-on): Depend on it.
16602 * modules/inttypes (Depends-on): Likewise.
16603 * modules/stdint (Depends-on): Likewise.
16604 * modules/sys_stat (Depends-on): Likewise.
16605 * modules/wctype (Depends-on): Likewise.
16606 * MODULES.html.sh (Support for building libraries and
16607 executables): Document it.
16609 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
16611 * gnulib-tool (SED): Remove, undoing previous change.
16612 The problem was that it broke coreutils on Solaris, because
16613 "sed --posix" leaked into a makefile.
16614 (sed): New alias, if 'alias' and GNU sed.
16616 2006-12-24 Jim Meyering <jim@meyering.net>
16618 Work around an fchownat bug in glibc-2.4:
16619 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
16620 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
16621 in spite of the -P option.
16622 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
16624 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
16625 * modules/openat (Files): Add lib/fchownat.c.
16626 * lib/openat.c (fchownat): Don't define here. Move to...
16627 * lib/fchownat.c: ...this new file.
16629 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
16631 Fix bug reported by Bruno Haible in
16632 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
16633 where quotearg.c didn't compile on Mac OS X 10.2 because it
16634 lacks <wchar.h> and wint_t.
16635 * lib/wctype_.h (__wctype_wint_t): New type.
16636 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
16637 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
16638 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
16639 Arg is now of type __wctype_wint_t, not wint_t.
16640 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
16641 substitute HAVE_WINT_T.
16642 * modules/wctype (Files): Add m4/wint_t.m4.
16643 (wctype.h): Substitute HAVE_WINT_T.
16645 2006-12-23 Bruno Haible <bruno@clisp.org>
16647 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
16649 2006-12-23 Bruno Haible <bruno@clisp.org>
16651 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
16653 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
16656 2006-12-22 Bruno Haible <bruno@clisp.org>
16658 * lib/copy-file.c: Include acl.h.
16659 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
16660 Close the file descriptors only after being done with copy_acl.
16661 * modules/copy-file (Depends-on): Add acl.
16663 2006-12-22 Bruno Haible <bruno@clisp.org>
16665 * gnulib-tool (SED): New variable.
16666 Use $SED instead of sed everywhere.
16668 2006-12-22 Bruno Haible <bruno@clisp.org>
16670 * modules/no-c++: New file.
16671 * m4/no-c++.m4: New file.
16672 * MODULES.html.sh (Support for building libraries and executables):
16675 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
16677 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
16678 Include <limits.h>, and use its INT_MAX to rewrite the
16679 j loop so that it does not overflow 'int'. Problem reported by
16681 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
16682 Play it safe by shifting left by 1 rather than multiplying by 2,
16683 as GCC is less likely to optimize this away when the value
16684 is signed (when it assumes overflow leads to undefined behavior).
16685 Also, don't assume time_t uses two's complement.
16687 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
16689 * MODULES.html.sh: New module wctype.
16690 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
16691 * lib/fnmatch.c: Don't bother to include <wchar.h> before
16692 <wctype.h>, since the new wctype module should fix this.
16693 * lib/quotearg.c: Include <wctype.h> unconditionally, since
16694 the wctype module should arrange for it.
16695 * lib/regex_internal.h: Likewise.
16696 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
16697 since the wctype module should handle this now.
16698 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
16699 * modules/fnmatch (Depends-on): Add wctype.
16700 * modules/quotearg (Depends-on): Likewise.
16701 * modules/regex (Depends-on): Likewise.
16703 2006-12-19 Bruno Haible <bruno@clisp.org>
16705 * lib/strdup.h [C++]: Wrap definitions in extern "C".
16706 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
16708 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16710 * modules/savewd (Depends-on): Fix dependency on fcntl.
16712 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
16714 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
16715 conforms to C99, rather than relying on the user's environment
16716 setting of STDINT_H.
16718 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
16719 and Eric Blake <ebb9@byu.net>
16721 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
16722 This is more consistent with the other defines here.
16723 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
16724 Port to z/OS. Problem reported by Paul Gilmartin.
16725 Change local vars to use gl_ prefix rather than ac_.
16726 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
16727 with other defines.
16728 * modules/double-slash-root: New module.
16729 * modules/dirname (Files): Remove m4/double-slash-root.m4.
16730 (Depends-on): Add double-slash-root.
16731 * MODULES.html.sh (File system functions): Mention new module.
16733 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
16735 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
16736 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
16737 This is for the benefit of gzip, which doesn't do i18n.
16739 2006-12-12 Jim Meyering <jim@meyering.net>
16741 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
16742 Reported by Andreas Schwab <schwab@suse.de>.
16744 2006-12-12 Bruno Haible <bruno@clisp.org>
16746 Merge these changes.
16747 2006-09-05 Bruno Haible <bruno@clisp.org>
16748 * lib/iconvme.c (iconv_string): No need to save and restore errno when
16749 iconv_alloc succeeded.
16750 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
16751 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
16752 test for " && dest " at the end - dest is always != NULL there. Call
16753 iconv with 4xNULL arguments initially, to reset the state. Call iconv
16754 with 2xNULL arguments, also to flush the state storage. Handle the
16755 IRIX iconv behaviour. Realloc the final result, to throw away unused
16758 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
16760 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
16761 and fchmodat unconditionally, since glibc 2.4 has them.
16762 Problem reported by Arkadiusz Miskiewicz.
16764 2006-12-10 Bruno Haible <bruno@clisp.org>
16766 * gnulib-tool (func_import): Show the include files only for those
16767 modules that are copied and specified.
16768 Reported by Karl Berry.
16770 2006-12-08 Jim Meyering <jim@meyering.net>
16772 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
16773 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
16775 * build-aux/announce-gen: Add two new options, both optional:
16776 --bootstrap-tools=TOOL_LIST
16777 a comma-separated list of tools, e.g.,
16778 autoconf,automake,bison,gnulib
16779 --gnulib-snapshot-date=DATE
16780 if gnulib is in the bootstrap tool list,
16781 then report this as the snapshot date.
16782 If not specified, use the current date/time.
16783 If you specify a date here, be sure it's UTC.
16785 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16787 * tests/test-argp-2.sh: Fix test to match actual output.
16788 (func_compare): Fix sed script to be portable.
16790 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
16792 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
16793 workaround for this case. It is not autoconfigured now; offhand
16794 it's hard to see how to autoconfigure it.
16796 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
16798 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
16799 a directory that is about to be chowned. Such a directory's
16800 initial file permissions should permit the owner only and this
16801 should not be changed until after the chown, since the group and
16802 other bits would be incorrect if they granted permission before
16805 Fix porting problem for iswctype reported by Georg Schwarz in:
16806 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
16807 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
16808 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
16809 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
16810 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
16812 2006-12-03 Jim Meyering <jim@meyering.net>
16814 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
16815 p->fts_statp may not yet be defined.
16816 (fts_read): Instead, set it in the caller, once p->fts_statp is
16817 sure to be defined, and corresponds to a top-level directory.
16818 This bug made du -x fail. Here's the coreutils test case:
16819 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
16820 Reported by Mike Frysinger.
16822 2006-12-01 Jim Meyering <jim@meyering.net>
16824 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
16825 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
16826 Reported by Simon Josefsson.
16828 2006-11-30 Jim Meyering <jim@meyering.net>
16830 * m4/warning.m4: Use the all-permissive copyright notice
16831 recommended by RMS (rather than LGPL).
16832 * m4/vararrays.m4: Likewise.
16833 * m4/flexmember.m4: Likewise.
16835 2006-11-29 Bruno Haible <bruno@clisp.org>
16837 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
16838 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
16840 Reported by Simon Josefsson <simon@josefsson.org>.
16842 2006-11-28 James Youngman <jay@gnu.org>
16844 * README: Advise users that they might find the bug-gnulib@gnu.org
16845 and autotools-announce@gnu.org mailing lists useful.
16847 2006-11-28 Bruno Haible <bruno@clisp.org>
16849 * m4/ptrdiff_max.m4: Remove file.
16851 2006-11-21 Bruno Haible <bruno@clisp.org>
16853 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
16855 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
16856 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
16858 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
16859 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
16861 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
16863 2006-11-28 Jim Meyering <jim@meyering.net>
16865 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
16866 warning from "gcc -Wshadow" about shadowing the builtin.
16868 2006-11-27 Bruno Haible <bruno@clisp.org>
16870 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
16872 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
16874 2006-11-27 Bruno Haible <bruno@clisp.org>
16875 Paul Eggert <eggert@cs.ucla.edu>
16877 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
16879 2006-11-26 Bruno Haible <bruno@clisp.org>
16881 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
16882 noinst_LTLIBRARIES.
16884 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
16885 Bruno Haible <bruno@clisp.org>
16887 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
16888 if compiling with "gcc -ansi".
16890 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
16892 Fix some incompatibilities with gcc -ansi -pedantic.
16893 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
16894 if compiling pedantically with GCC, unless it's C99 or later.
16895 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
16896 it mishandles gcc -ansi -pedantic as well.
16897 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
16899 * lib/regexec.c (check_node_accept_bytes): Don't use auto
16900 initializers for struct if -pedantic, unless it's C99 or later.
16902 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
16904 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
16905 Don't close an fd more than once. Identical atimes indicate
16906 success, not failure.
16908 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
16910 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
16912 2006-11-23 Jim Meyering <jim@meyering.net>
16914 * build-aux/announce-gen: New file. From coreutils.
16916 2006-11-22 Jim Meyering <jim@meyering.net>
16918 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
16919 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
16920 (fts_read): Use a temporary to narrow the overused st_size member
16921 before using it in a switch statement. Reported by Matthew Woehlke.
16923 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
16924 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
16926 2006-11-20 Bruno Haible <bruno@clisp.org>
16928 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
16929 changequote instead of pairs of brackets.
16930 Reported by Andreas Schwab <schwab@suse.de>.
16932 2006-11-21 Jim Meyering <jim@meyering.net>
16934 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
16935 so as to remain compatible with older compilers.
16936 Patch from Michael Deutschmann.
16938 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
16940 * MODULES.html.sh (File system functions): Add openat.
16942 * lib/openat.h (rpl_fstatat): New macro, if
16943 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
16944 (fstatat): Define to rpl_fstatat under the same conditions,
16945 unless COMPILING_FSTATAT.
16946 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
16947 seems to have the bug.
16948 * lib/fstatat.c: New file.
16949 * modules/openat (Files): Add it.
16951 2006-11-20 Bruno Haible <bruno@clisp.org>
16953 * Makefile: New file.
16955 2006-11-20 Jim Meyering <jim@meyering.net>
16957 The beginnings of syntax-related checks for gnulib.
16958 * lib/Makefile: New file.
16959 * lib/t-idcache: New script. Ensure that the two halves of
16960 idcache.c stay in sync.
16962 * lib/idcache.c: Adjust comments in user- and group- portions to
16963 be more accurate, and to be consistent with one another.
16965 2006-11-20 Jim Meyering <jim@meyering.net>
16967 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
16968 continue using the flexible array member (thus, this module performs
16969 half as many malloc calls), with the addition that...
16970 (getgroup, getuser): Consistently record a non-match via an empty
16971 "name" string, and map an empty string match to a NULL return value.
16972 * modules/idcache (Depends-on): Re-add flexmember.
16974 * lib/idcache.c (getuser): Remove all uses of the register keyword.
16975 (getuidbyname, getgroup, getgidbyname): Likewise.
16977 Use cleaner syntax: NULL rather than 0.
16978 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
16980 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
16982 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
16983 It mishandled the case where the group was missing.
16984 Problem reported by Greg Schafer.
16985 * modules/idcache: Likewise.
16987 2006-11-18 Jim Meyering <jim@meyering.net>
16989 * check-module (%exempt_header): Add exception for some
16990 conditionally-included headers.
16992 * modules/i-ring (Depends-on): Add verify.
16993 (License): Change to LGPL.
16995 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
16997 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
16998 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
16999 and inttostr.h. Use snprintf rather than uinttostr, so that
17000 LGPLed code doesn't depend on GPLed.
17002 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
17004 * modules/inline (License): Change from GPL to LGPL.
17006 2006-11-17 Jim Meyering <jim@meyering.net>
17008 * modules/d-type (License): Switch to LGPL.
17010 2006-11-15 Bruno Haible <bruno@clisp.org>
17012 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
17014 2006-11-15 Eric Blake <ebb9@byu.net>
17016 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
17017 the module dependency.
17019 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17020 Bruno Haible <bruno@clisp.org>
17022 * gnulib-tool (func_create_testdir): Add license consistency check.
17024 2006-11-15 Eric Blake <ebb9@byu.net>
17026 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
17027 random "(cached)" in configure output.
17029 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17031 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
17032 test for conforming inttypes.h is both announced and cached.
17034 * MODULES.html.sh (seen_modules, seen_files): New variables.
17035 (func_module): Rewrite to use a few less gnulib-tool and sed
17036 invocations. Avoid a couple of quadratic algorithms for ...
17037 (missed_modules, missed_files): ... these, with ...
17038 (func_append, func_tmpdir): ... these new functions, from
17039 gnulib-tool. Analogously, install traps for cleanup.
17041 * tests/test-gc.c (main): Remove unused variables.
17042 * tests/test-read-file.c: Include stdlib.h, for 'free'.
17044 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
17046 * modules/inttostr (License): Change to LGPL.
17048 2006-11-14 Eric Blake <ebb9@byu.net>
17050 * modules/tempname (License): Change to LGPL.
17052 2006-11-14 Eric Blake <ebb9@byu.net>
17054 * doc/functions.texi (Function Portability): *printf functions on
17055 Cygwin now understand all POSIX size specifiers.
17057 2006-11-14 Bruno Haible <bruno@clisp.org>
17059 * modules/c-ctype (License): Change to LGPL.
17061 2006-11-12 Bruno Haible <bruno@clisp.org>
17063 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
17064 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
17065 for GNOME libraries, for which the include files are installed in
17066 subdirectories of $prefix/include.
17068 2006-11-12 Bruno Haible <bruno@clisp.org>
17070 * m4/lib-link.m4: Require at least autoconf-2.54.
17071 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
17072 name to underscores for the --with option.
17074 2006-11-13 Bruno Haible <bruno@clisp.org>
17076 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
17077 the tests directory.
17078 Reported by Ralf Wildenhues.
17080 2006-11-13 Bruno Haible <bruno@clisp.org>
17082 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
17083 (func_emit_initmacro_end): Undo the override here.
17084 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
17085 Works around the famous automake error in coreutils.
17087 2006-11-13 Eric Blake <ebb9@byu.net>
17089 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
17090 element, not its node.
17092 2006-11-12 Bruno Haible <bruno@clisp.org>
17094 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
17095 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
17097 2006-11-12 Bruno Haible <bruno@clisp.org>
17099 * gnulib-tool: New option --local-symlink.
17100 (func_usage): Document it.
17101 (lsymbolic): New variable.
17102 (func_import, func_create_testdir): If --symlink was not specified,
17103 test whether --local-symlink was specified and the file comes from
17104 the local_gnulib_dir.
17106 2006-11-12 Bruno Haible <bruno@clisp.org>
17108 * gnulib-tool (func_ln): New function.
17109 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
17111 2006-11-12 Bruno Haible <bruno@clisp.org>
17113 Finish support for source files in subdirectories.
17114 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
17115 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
17117 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
17119 2006-11-12 Bruno Haible <bruno@clisp.org>
17121 * gnulib-tool (func_get_automake_snippet): Synthesize also an
17122 EXTRA_lib_SOURCES augmentation.
17123 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
17125 2006-11-12 Jim Meyering <jim@meyering.net>
17127 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
17128 file descriptors. This also averts a failure on systems with
17129 native openat support when a traversed directory lacks "x" access.
17130 * lib/fts_.h: Include "i-ring.h"
17131 (struct FTS) [fts_fd_ring]: New member.
17132 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
17133 (FCHDIR): Add parentheses.
17134 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
17135 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
17136 When descending, rather than simply closing the previous
17137 fts_cwd_fd value, push that file descriptor onto the ring.
17138 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
17139 (fts_open): Initialize the new fd_ring member.
17140 (fts_close): Clear the ring.
17141 (fts_safe_changedir): When possible, use our new fd_ring to skip
17142 the diropen and fstat and dev/ino comparison that would normally
17143 accompany a virtual `chdir ("..")'.
17145 * modules/fts (Depends-on): Add i-ring.
17146 * modules/i-ring: New module.
17147 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
17148 * m4/i-ring.m4: New file.
17150 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17152 * gnulib-tool (func_create_testdir): Fix replacement of
17153 `build-aux' in configure.ac. Run autotools in gltests
17155 (func_create_testdir, func_create_megatestdir, test): There is
17156 no need for '--force' in most autotool invocations in a new
17157 tree. Actually fail the whole test if any of the tools, or the
17158 configure or make stages fail.
17160 Sync from Automake.
17161 * build-aux/gnupload: Revert last change. Add pointer to upload
17162 instructions of the GNU Maintenance Instructions.
17163 Suggestion by Karl Berry.
17165 2006-11-10 Jim Meyering <jim@meyering.net>
17167 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
17169 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
17171 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
17172 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
17173 (bind_textdomain_codeset) [! ENABLE_NLS]:
17174 Evaluate all the arguments. That way, callers get compatible behavior
17175 if the arguments have side effects. Also, it avoids some GCC
17176 diagnostics in some cases; Joel E. Denny reported problems when Bison
17177 was configured with --enable-gcc-warnigs.
17179 2006-11-10 Jim Meyering <jim@meyering.net>
17181 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
17182 relevant options in CFLAGS (like -O, -fno-inline) are taken into
17185 2006-11-10 Jim Meyering <jim@meyering.net>
17187 * modules/inline: New file/module.
17188 * modules/xalloc (Files): Remove m4/inline.m4.
17189 (Depends-on): Add inline, instead.
17190 * modules/oset: Likewise.
17191 * modules/list: Likewise.
17193 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
17195 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
17196 Problem reported by Matthew Woehlke.
17198 2006-11-09 Bruno Haible <bruno@clisp.org>
17200 * lib/tempname.c (gen_tempname): Remove variant that invokes
17202 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
17205 2006-11-08 Bruno Haible <bruno@clisp.org>
17207 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
17208 to 'yes' instead of 'cross-compiling'.
17210 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
17212 * lib/quotearg.h (quotearg_free): New decl.
17213 * lib/quotearg.c (quotearg_free): New function.
17214 (slot0, nslots, slotvec0, slotvec):
17215 Now file-scope so that quotearg_free can get at them.
17217 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17219 Sync from Automake.
17220 * build-aux/gnupload: Add missing 'gnu' to example URL.
17221 Report by Karl Berry.
17223 2006-11-08 Bruno Haible <bruno@clisp.org>
17225 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
17226 Suggested by Paul Eggert.
17228 2006-11-08 Jim Meyering <jim@meyering.net>
17230 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
17231 It's already included if !_LIBC.
17232 (fts_safe_changedir): Add a comment.
17234 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
17236 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
17237 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
17240 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
17241 definitions up, to avoid colliding with change below.
17242 (static_inline) [HAVE_INLINE]: New macro.
17243 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
17244 Provide extern decls when !HAVE_INLINE. Do not define unless
17245 static_inline is defined, either by us or by xmalloc.c. Use
17246 static_inline rather than static inline.
17247 (XCALLOC): Optimize sizeof(T) = 1 case.
17248 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
17250 2006-11-07 Bruno Haible <bruno@clisp.org>
17252 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
17253 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
17255 * modules/xalloc (Files): Add m4/inline.m4.
17257 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17259 * README: Fix typo.
17260 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
17261 (Miscellanous Notes): ...from this.
17263 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
17265 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
17266 Mention that offsetof should be used instead of sizeof.
17269 2006-11-07 Bruno Haible <bruno@clisp.org>
17271 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
17273 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
17275 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
17276 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
17277 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
17278 (gl_tree_add_before, gl_tree_add_after):
17279 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
17280 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
17281 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
17282 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
17283 (gl_linked_add_after, gl_linked_add_at): Likewise.
17284 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
17285 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
17286 (gl_tree_add_before, gl_tree_add_after): Likewise.
17287 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
17288 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
17289 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
17291 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17293 * lib/gl_oset.h: Use C comment style, not C++ comment style.
17295 2006-11-06 Bruno Haible <bruno@clisp.org>
17297 * m4/inline.m4: New file.
17298 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
17299 * modules/list (Files): Add m4/inline.m4.
17300 * modules/oset (Files): Likewise.
17302 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
17304 * lib/idcache.c: Include <stddef.h>, for offsetof.
17305 (struct userid.name): Change from char * to a flexible array member.
17307 * modules/idcache (Depends-on): Add flexmember.
17309 * MODULES.html.sh (Core language properties): New module flexmember.
17310 * modules/flexmember, m4/flexmember.m4: New files.
17312 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
17313 inline functions that are identical with the old xnmalloc_inline,
17314 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
17315 that we can avoid some unnecessary integer multiplications and
17316 divisions in the common case where the element size is known at
17318 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
17320 (xnboundedmalloc): Remove.
17321 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
17322 arguments, for consistency with rest of this header.
17323 (xcharalloc): Rewrite using XNMALLOC.
17324 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
17325 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
17326 versions have been moved to lib/xalloc.h and renamed to be the
17327 non-*_inline versions.
17328 (xmalloc, xrealloc): Implement without reference to the xnmalloc
17329 and xnrealloc functions, since those functions are now inline and
17331 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
17332 renaming described above.
17333 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
17334 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
17335 captures the dependency in AC_C_INLINE.
17337 New module canonicalize-lgpl, proposed by Charles Wilson in
17338 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
17339 with a few small changes afterwards.
17340 * MODULES.html.sh (File system functions): New module
17342 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
17343 and canonicalize_file_name.
17344 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
17345 * modules/canonicalize-lgpl: New files.
17347 2006-11-05 Bruno Haible <bruno@clisp.org>
17349 * gnulib-tool (func_import, func_create_testdir): Create directories
17350 also for files in subdirectories of lib/.
17352 2006-11-05 Bruno Haible <bruno@clisp.org>
17354 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
17357 2006-11-03 Bruno Haible <bruno@clisp.org>
17359 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
17360 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
17361 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
17362 (xnboundedmalloc): New inline function.
17363 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
17364 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
17366 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
17368 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
17369 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
17370 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
17372 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
17373 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
17375 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
17376 gl_tree_add_after): Use XMALLOC instead of xmalloc.
17377 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
17379 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
17380 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
17381 gl_tree_add_after): Use XMALLOC instead of xmalloc.
17382 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
17383 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
17384 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
17385 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
17387 2006-11-03 Bruno Haible <bruno@clisp.org>
17389 * lib/c-ctype.h [C++]: Define functions without name mangling.
17390 * lib/fwriteerror.h [C++]: Likewise.
17391 * lib/gcd.h [C++]: Likewise.
17392 * lib/linebreak.h [C++]: Likewise.
17394 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
17396 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
17397 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
17398 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
17399 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
17400 Check for functions and headers just once.
17401 Check for declaration of canonicalize_file_name.
17402 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
17404 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
17406 * gnulib-tool (func_import): Fix typo in actioncmd.
17408 2006-11-02 Bruno Haible <bruno@clisp.org>
17410 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
17411 newline sequence in the Makefile.am snippet as a space, like "make"
17413 Reported by Roger Persson <perrog@gmail.com>.
17415 2006-11-01 Bruno Haible <bruno@clisp.org>
17417 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
17418 already declared in <string.h>.
17419 * lib/strcase.h (strncasecmp): Don't declare it if yes.
17421 2006-11-01 Bruno Haible <bruno@clisp.org>
17423 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
17424 * lib/strcase.h: Include <string.h>.
17425 (strcasecmp): Define to rpl_strcasecmp here.
17427 2006-11-01 Bruno Haible <bruno@clisp.org>
17429 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
17431 2006-11-01 Eric Blake <ebb9@byu.net>
17433 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
17435 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
17437 2006-10-29 Bruno Haible <bruno@clisp.org>
17439 Make it compile in C++ mode.
17440 * lib/full-write.c (full_rw): Add a cast.
17442 2006-11-01 Bruno Haible <bruno@clisp.org>
17444 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
17445 be POSIX compliant.
17446 Reported by Roger Persson <perrog@gmail.com>.
17448 2006-11-01 Eric Blake <ebb9@byu.net>
17450 * lib/getopt_.h: Fix comments.
17452 2006-10-31 Eric Blake <ebb9@byu.net>
17454 * modules/tmpdir (Depends-on): Add sys_stat.
17455 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
17456 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
17457 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
17458 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
17461 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
17463 Avoid some C++ diagnostics reported by Bruno Haible.
17464 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
17466 (quotearg_alloc): Use xcharalloc rather than xmalloc.
17467 (struct slotvec): Move to top level.
17468 (quotearg_n_options): Rewrite to avoid xmalloc.
17469 * lib/xalloc.h (xcharalloc): New function.
17470 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
17471 [defined __cplusplus]: Add function template that provides result
17472 type propagation. This part of the change is from Bruno Haible.
17474 2006-10-29 Bruno Haible <bruno@clisp.org>
17476 Make it compile in C++ mode.
17477 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
17478 * lib/strnlen1.c (strnlen1): Cast memchr result.
17479 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
17480 * lib/clean-temp.c (string_equals, string_hash): Add casts.
17481 (create_temp_dir): Rename local variable 'template'.
17482 (compile_csharp_using_sscli): Add cast.
17483 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
17484 * lib/findprog.c (find_in_path): Likewise.
17485 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
17486 * lib/wait-process.c (register_slave_subprocess): Likewise.
17488 2006-10-22 Bruno Haible <bruno@clisp.org>
17490 * modules/tsearch: New file.
17491 * lib/tsearch.h: New file.
17492 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
17493 * m4/tsearch.m4: New file.
17494 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
17496 2006-10-29 Eric Blake <ebb9@byu.net>
17498 * lib/arcfour.c: Assume config.h.
17499 * lib/arctwo.c: Likewise.
17500 * lib/base64.c: Likewise.
17501 * lib/check-version.c: Likewise.
17502 * lib/crc.c: Likewise.
17503 * lib/des.c: Likewise.
17504 * lib/gc-gnulib.c: Likewise.
17505 * lib/gc-libgcrypt.c: Likewise.
17506 * lib/gc-pbkdf2-sha1.c: Likewise.
17507 * lib/getaddrinfo.c: Likewise.
17508 * lib/getdelim.c: Likewise.
17509 * lib/getline.c: Likewise.
17510 * lib/hmac-md5.c: Likewise.
17511 * lib/hmac-sha1.c: Likewise.
17512 * lib/iconvme.c: Likewise.
17513 * lib/md2.c: Likewise.
17514 * lib/md4.c: Likewise.
17515 * lib/memxor.c: Likewise.
17516 * lib/read-file.c: Likewise.
17517 * lib/readline.c: Likewise.
17518 * lib/rijndael-alg-fst.c: Likewise.
17519 * lib/rijndael-api-fst.c: Likewise.
17520 * lib/xgetdomainname.c: Likewise.
17522 2006-10-28 Eric Blake <ebb9@byu.net>
17524 * lib/xstrndup.c: Assume config.h.
17526 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
17528 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
17529 stat-macros.h is now for our own macros, whereas stat_h is for
17530 macros in the <sys/stat.h> name space.
17531 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
17532 (STAT_MACROS_H): Remove.
17533 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
17534 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
17535 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
17536 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
17537 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
17538 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
17539 Move these macros to ...
17540 * lib/stat_.h: here. Don't include stat-macros.h.
17541 * lib/canonicalize.c: Don't include stat-macros.h.
17542 * lib/chown.c: Likewise.
17543 * lib/euidaccess.c: Likewise.
17544 * lib/file-type.c: Likewise.
17545 * lib/filemode.c: Likewise.
17546 * lib/glob.c: Likewise.
17547 * lib/isapipe.c: Likewise.
17548 * lib/lchown.c: Likewise.
17549 * lib/lstat.c: Likewise.
17550 * lib/mkdir-p.c: Likewise.
17551 * lib/rmdir.c: Likewise.
17552 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
17553 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
17554 unless mkdir isn't declared, to speed up 'configure'.
17555 Always create sys/stat.h, since it's unlikely any real sys/stat.h
17556 would define all the S_* symbols.
17557 * modules/canonicalize (Depends-on):
17558 Depend on sys_stat, not stat-macros.
17559 * modules/chown: Likewise.
17560 * modules/euidaccess: Likewise.
17561 * modules/filemode: Likewise.
17562 * modules/file-type: Likewise.
17563 * modules/glob: Likewise.
17564 * modules/isapipe: Likewise.
17565 * modules/lchown: Likewise.
17566 * modules/lstat: Likewise.
17567 * modules/mkancesdirs: Likewise.
17568 * modules/rmdir: Likewise.
17569 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
17570 * modules/modechange: Likewise.
17571 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
17572 (configure.ac): Remove gl_STAT_MACROS.
17573 * modules/sys_stat (Depends-on): Remove stat-macros.
17575 2006-10-27 Bruno Haible <bruno@clisp.org>
17577 * m4/signed.m4: Remove file.
17578 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
17580 * modules/vasnprintf (Files): Remove m4/signed.m4.
17582 2006-10-27 Bruno Haible <bruno@clisp.org>
17584 Update to GNU gettext 0.16.
17585 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
17586 m4/inttypes-h.m4, m4/signed.m4.
17587 * m4/gettext.m4: Update to GNU gettext 0.16.
17588 * m4/intl.m4: New file, from GNU gettext.
17589 * m4/intldir.m4: New file, from GNU gettext.
17590 * config/srclist.txt: Update
17592 2006-10-27 Eric Blake <ebb9@byu.net>
17594 * MODULES.html.sh: Document tempname.
17595 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
17597 (Files): Move lib/tempname.c...
17598 * modules/tempname: ...to this new module.
17599 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
17600 (gl_PREREQ_TEMPNAME): Move...
17601 * m4/tempname.m4: ...to this new file.
17602 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
17603 * modules/sys_stat (Depends-on): Add stat-macros.
17604 * lib/stat_.h (includes): Pick up stat macros.
17605 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
17606 if stat macros are broken.
17607 * lib/tempname.c (includes): No need to include "stat-macros.h".
17608 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
17609 (direxists, __path_search) [!_LIBC]: Don't compile these in
17610 gnulib; the tmpdir module covers that.
17611 * lib/tempname.h: New file.
17613 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
17615 * COPYING: Explain how gnulib-tool converts licence headers.
17616 Almost all wording by Eric Blake.
17618 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
17620 * lib/mbchar.h (is_basic_table): Make read-only.
17621 * lib/mbchar.c (is_basic_table): Likewise.
17622 Reported by John Darrington.
17624 2006-10-25 Bruno Haible <bruno@clisp.org>
17626 * lib/progname.h (set_program_name): Undefine before defining.
17628 2006-10-25 Bruno Haible <bruno@clisp.org>
17630 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
17631 false for non-gcc C++ compilers.
17632 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
17634 2006-10-24 Bruno Haible <bruno@clisp.org>
17636 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
17637 iconv implementations like Irix iconv.
17639 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
17641 * modules/vararrays: New file.
17642 * m4/vararrays.m4: New file, taken from diffutils.
17643 * MODULES.html.sh: New module vararrays.
17645 2006-10-24 Karl Berry <karl@gnu.org>
17647 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
17648 Don't call GNU Unix.
17650 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17652 * users.txt: Add Libtool.
17656 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
17658 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
17659 to gnulib's policy of including config.h unconditionally.
17661 2006-10-24 Bruno Haible <bruno@clisp.org>
17663 * modules/wcwidth (Files): Add m4/wint_t.m4.
17664 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
17665 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
17667 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
17669 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
17670 to pacify GCC with some -W flags enabled. Problem reported by
17673 2006-10-24 Jim Meyering <jim@meyering.net>
17675 * MODULES.html.sh: Remove uinttostr. It's not a module.
17676 Reported by Karl Berry.
17678 2006-10-23 Bruno Haible <bruno@clisp.org>
17680 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
17682 2006-10-24 Bruno Haible <bruno@clisp.org>
17684 * lib/gl_list.h: Use C comment style, not C++ comment style.
17686 2006-10-23 Eric Blake <ebb9@byu.net>
17688 * lib/getaddrinfo.c (includes): Add missing include.
17690 2006-10-23 Bruno Haible <bruno@clisp.org>
17691 Paul Eggert <eggert@cs.ucla.edu>
17693 Ability to rename obstack_free.
17694 * lib/obstack.h (__obstack_free): New macro. Declare instead of
17696 (obstack_free): Invoke the __obstack_free macro.
17697 * lib/obstack.c (obstack_free): Use __obstack_free macro.
17699 2006-10-23 Bruno Haible <bruno@clisp.org>
17700 Paul Eggert <eggert@cs.ucla.edu>
17702 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
17703 __argc, __argv from the declaration. (They are defined as macros on
17706 2006-10-22 Bruno Haible <bruno@clisp.org>
17708 * doc/gnulib-intro.texi: New file.
17709 * doc/gnulib.texi: Include it.
17711 2006-10-21 Bruno Haible <bruno@clisp.org>
17713 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
17714 "Introduction", "Miscellanous Notes", "Particular Modules".
17716 2006-10-21 Bruno Haible <bruno@clisp.org>
17718 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17719 Change mostlyclean-local rule to avoid sh syntax error from bash
17720 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
17722 2006-10-23 Jim Meyering <jim@meyering.net>
17724 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
17725 in place of snprintf.
17727 * modules/inttostr (Files): Add lib/uinttostr.c.
17728 * lib/uinttostr.c (inttostr): New file/function.
17729 * lib/inttostr.h (uinttostr): Declare.
17730 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
17731 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
17733 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
17735 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
17737 * lib/canonicalize.c (ELOOP): Define if not already defined.
17738 Problem reported by Bruno Haible in
17739 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
17741 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
17743 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
17744 Problem reported by Perry Smith and Ville Laurikari.
17746 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
17749 2006-10-19 Bruno Haible <bruno@clisp.org>
17751 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
17754 2006-10-19 Bruno Haible <bruno@clisp.org>
17756 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
17759 2006-10-19 Bruno Haible <bruno@clisp.org>
17761 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
17763 2006-10-19 Bruno Haible <bruno@clisp.org>
17765 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
17768 2006-10-19 Bruno Haible <bruno@clisp.org>
17770 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
17773 2006-10-19 Bruno Haible <bruno@clisp.org>
17775 * gnulib-tool (func_create_testdir): Don't include ftruncate and
17776 mountlist by default.
17778 2006-10-16 Bruno Haible <bruno@clisp.org>
17780 * lib/c-strstr.c: Include c-strstr.h.
17782 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
17784 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
17787 2006-10-18 Bruno Haible <bruno@clisp.org>
17789 * lib/lock.h [C++]: Wrap definitions in extern "C".
17791 2006-10-18 Bruno Haible <bruno@clisp.org>
17793 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
17796 2006-10-18 Bruno Haible <bruno@clisp.org>
17798 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
17800 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
17802 * lib/xstrtol.h: Include gettext.h.
17803 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
17804 Problem reported by Eric Blake.
17805 * modules/xstrtol (Depends-on): Add gettext-h.
17807 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
17809 * lib/strftime.c (advance): New macro.
17810 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
17811 incomplete type, so you can't add 0 to it. Problem and patch
17812 reported by Eelco Dolstra for dietlibc.
17814 2006-10-18 Jim Meyering <jim@meyering.net>
17816 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
17817 type for a local, and rename it: s/up/user_proc/.
17819 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
17821 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
17822 READ_UTMP_USER_PROCESS.
17823 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
17825 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
17827 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
17828 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
17830 2006-10-17 Eric Blake <ebb9@byu.net>
17832 * lib/sigprocmask.c (sigprocmask): Fix typo.
17834 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
17836 * modules/clean-temp (Makefile.am): Don't add to make output...
17837 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
17840 2006-10-17 Bruno Haible <bruno@clisp.org>
17842 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
17843 differently if DEFAULT_TEXT_DOMAIN is set.
17845 2006-10-16 Bruno Haible <bruno@clisp.org>
17847 * lib/clean-temp.c: Include fwriteerror.h.
17849 2006-10-16 Bruno Haible <bruno@clisp.org>
17851 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
17853 2006-10-16 Bruno Haible <bruno@clisp.org>
17855 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
17856 * lib/sigprocmask.h: Include <sys/types.h>.
17857 (sigset_t): Use the system's definition if present.
17859 2006-10-17 Eric Blake <ebb9@byu.net>
17861 * lib/xvasprintf.c (includes): Assume config.h.
17862 * lib/xasprintf.c (includes): Likewise.
17864 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
17866 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
17867 at least as wide as intmax_t.
17869 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
17871 (Imported from Automake.)
17872 * build-aux/gnupload: Update to version 1.1 of directive file.
17874 2006-10-16 Eric Blake <ebb9@byu.net>
17876 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
17877 match Automake 1.10a.
17879 2006-10-14 Bruno Haible <bruno@clisp.org>
17881 * modules/sigprocmask: New file.
17882 * lib/sigprocmask.h: New file.
17883 * lib/sigprocmask.c: New file.
17884 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
17885 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
17886 request sigprocmask.o.
17887 (gl_PREREQ_SIGPROCMASK): New macro.
17888 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
17889 (Depends-on): Add sigprocmask.
17890 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
17891 gt_SIGNALBLOCKING. Test for 'raise' only once.
17892 * lib/fatal-signal.c: Include sigprocmask.h.
17893 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
17894 unblock_fatal_signals): Define always.
17895 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17898 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
17900 Sync from Automake.
17901 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
17902 which incorrectly sets the mode of an existing destination
17903 directory. In some cases the unpatched install-sh could do the
17904 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
17905 system. We hope this is rare in practice, but it's clearly worth
17906 fixing. Problem reported by Alex Unleashed in
17907 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
17908 Also, don't bother to check for -m bugs unless we're using -m;
17909 suggested by Stepan Kasal.
17911 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17913 Sync from Automake.
17914 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
17915 `-c' flag, so they appear at the same position as in %FASTDEP%
17916 mode in depend2.am. Fixes build failure for FreeBSD's c89,
17917 which ignores unknown options only after the first non-option.
17918 Bug report against M4 by Nelson H. F. Beebe.
17920 2006-10-13 Jim Meyering <jim@meyering.net>
17922 Fix a bug in yesterday's change.
17923 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
17924 p->fts_statp->st_dev would be used uninitialized.
17925 Ensures that we always call fts_stat on the very first entry.
17926 Miklos Szeredi reported that find -xdev stopped working.
17928 2006-10-12 Bruno Haible <bruno@clisp.org>
17930 * gnulib-tool (func_get_automake_snippet): Append an automatically
17931 computed EXTRA_DIST augmentation.
17932 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
17933 * modules/alloca-opt (Makefile.am): Likewise.
17934 * modules/allocsa (Makefile.am): Likewise.
17935 * modules/arcfour (Makefile.am): Likewise.
17936 * modules/arctwo (Makefile.am): Likewise.
17937 * modules/argmatch (Makefile.am): Likewise.
17938 * modules/argz (Makefile.am): Likewise.
17939 * modules/atexit (Makefile.am): Likewise.
17940 * modules/backupfile (Makefile.am): Likewise.
17941 * modules/byteswap (Makefile.am): Likewise.
17942 * modules/c-strtod (Makefile.am): Likewise.
17943 * modules/c-strtold (Makefile.am): Likewise.
17944 * modules/calloc (Makefile.am): Likewise.
17945 * modules/canon-host (Makefile.am): Likewise.
17946 * modules/canonicalize (Makefile.am): Likewise.
17947 * modules/chdir-long (Makefile.am): Likewise.
17948 * modules/chdir-safer (Makefile.am): Likewise.
17949 * modules/check-version (Makefile.am): Likewise.
17950 * modules/chown (Makefile.am): Likewise.
17951 * modules/cloexec (Makefile.am): Likewise.
17952 * modules/close-stream (Makefile.am): Likewise.
17953 * modules/closeout (Makefile.am): Likewise.
17954 * modules/crc (Makefile.am): Likewise.
17955 * modules/csharpexec (Makefile.am): Likewise.
17956 * modules/cycle-check (Makefile.am): Likewise.
17957 * modules/des (Makefile.am): Likewise.
17958 * modules/dev-ino (Makefile.am): Likewise.
17959 * modules/dirfd (Makefile.am): Likewise.
17960 * modules/dirname (Makefile.am): Likewise.
17961 * modules/dup2 (Makefile.am): Likewise.
17962 * modules/eealloc (Makefile.am): Likewise.
17963 * modules/error (Makefile.am): Likewise.
17964 * modules/euidaccess (Makefile.am): Likewise.
17965 * modules/exclude (Makefile.am): Likewise.
17966 * modules/exitfail (Makefile.am): Likewise.
17967 * modules/fcntl-safer (Makefile.am): Likewise.
17968 * modules/fcntl (Makefile.am): Likewise.
17969 * modules/file-type (Makefile.am): Likewise.
17970 * modules/fileblocks (Makefile.am): Likewise.
17971 * modules/filemode (Makefile.am): Likewise.
17972 * modules/filenamecat (Makefile.am): Likewise.
17973 * modules/fnmatch (Makefile.am): Likewise.
17974 * modules/fopen-safer (Makefile.am): Likewise.
17975 * modules/fpending (Makefile.am): Likewise.
17976 * modules/fprintftime (Makefile.am): Likewise.
17977 * modules/free (Makefile.am): Likewise.
17978 * modules/fsusage (Makefile.am): Likewise.
17979 * modules/ftruncate (Makefile.am): Likewise.
17980 * modules/fts (Makefile.am): Likewise.
17981 * modules/gc-arcfour (Makefile.am): Likewise.
17982 * modules/gc-des (Makefile.am): Likewise.
17983 * modules/gc-hmac-md5 (Makefile.am): Likewise.
17984 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
17985 * modules/gc-md4 (Makefile.am): Likewise.
17986 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
17987 * modules/gc-sha1 (Makefile.am): Likewise.
17988 * modules/gc (Makefile.am): Likewise.
17989 * modules/getaddrinfo (Makefile.am): Likewise.
17990 * modules/getcwd (Makefile.am): Likewise.
17991 * modules/getdelim (Makefile.am): Likewise.
17992 * modules/getdomainname (Makefile.am): Likewise.
17993 * modules/getgroups (Makefile.am): Likewise.
17994 * modules/gethostname (Makefile.am): Likewise.
17995 * modules/gethrxtime (Makefile.am): Likewise.
17996 * modules/getline (Makefile.am): Likewise.
17997 * modules/getloadavg (Makefile.am): Likewise.
17998 * modules/getlogin_r (Makefile.am): Likewise.
17999 * modules/getndelim2 (Makefile.am): Likewise.
18000 * modules/getopt (Makefile.am): Likewise.
18001 * modules/getpagesize (Makefile.am): Likewise.
18002 * modules/getpass-gnu (Makefile.am): Likewise.
18003 * modules/getpass (Makefile.am): Likewise.
18004 * modules/getsubopt (Makefile.am): Likewise.
18005 * modules/gettime (Makefile.am): Likewise.
18006 * modules/gettimeofday (Makefile.am): Likewise.
18007 * modules/getugroups (Makefile.am): Likewise.
18008 * modules/getusershell (Makefile.am): Likewise.
18009 * modules/glob (Makefile.am): Likewise.
18010 * modules/group-member (Makefile.am): Likewise.
18011 * modules/hard-locale (Makefile.am): Likewise.
18012 * modules/hash (Makefile.am): Likewise.
18013 * modules/hmac-md5 (Makefile.am): Likewise.
18014 * modules/hmac-sha1 (Makefile.am): Likewise.
18015 * modules/human (Makefile.am): Likewise.
18016 * modules/idcache (Makefile.am): Likewise.
18017 * modules/imaxabs (Makefile.am): Likewise.
18018 * modules/imaxdiv (Makefile.am): Likewise.
18019 * modules/inet_ntop (Makefile.am): Likewise.
18020 * modules/inet_pton (Makefile.am): Likewise.
18021 * modules/intprops (Makefile.am): Likewise.
18022 * modules/inttostr (Makefile.am): Likewise.
18023 * modules/inttypes (Makefile.am): Likewise.
18024 * modules/isapipe (Makefile.am): Likewise.
18025 * modules/javaversion (Makefile.am): Likewise.
18026 * modules/lchmod (Makefile.am): Likewise.
18027 * modules/lchown (Makefile.am): Likewise.
18028 * modules/localcharset (Makefile.am): Likewise.
18029 * modules/long-options (Makefile.am): Likewise.
18030 * modules/lstat (Makefile.am): Likewise.
18031 * modules/malloc (Makefile.am): Likewise.
18032 * modules/mathl (Makefile.am): Likewise.
18033 * modules/mbchar (Makefile.am): Likewise.
18034 * modules/md2 (Makefile.am): Likewise.
18035 * modules/md4 (Makefile.am): Likewise.
18036 * modules/md5 (Makefile.am): Likewise.
18037 * modules/memcasecmp (Makefile.am): Likewise.
18038 * modules/memchr (Makefile.am): Likewise.
18039 * modules/memcmp (Makefile.am): Likewise.
18040 * modules/memcoll (Makefile.am): Likewise.
18041 * modules/memcpy (Makefile.am): Likewise.
18042 * modules/memmem (Makefile.am): Likewise.
18043 * modules/memmove (Makefile.am): Likewise.
18044 * modules/mempcpy (Makefile.am): Likewise.
18045 * modules/memrchr (Makefile.am): Likewise.
18046 * modules/memset (Makefile.am): Likewise.
18047 * modules/memxor (Makefile.am): Likewise.
18048 * modules/mkancesdirs (Makefile.am): Likewise.
18049 * modules/mkdir-p (Makefile.am): Likewise.
18050 * modules/mkdir (Makefile.am): Likewise.
18051 * modules/mkdtemp (Makefile.am): Likewise.
18052 * modules/mkstemp (Makefile.am): Likewise.
18053 * modules/mktime (Makefile.am): Likewise.
18054 * modules/modechange (Makefile.am): Likewise.
18055 * modules/mountlist (Makefile.am): Likewise.
18056 * modules/nanosleep (Makefile.am): Likewise.
18057 * modules/obstack (Makefile.am): Likewise.
18058 * modules/openat (Makefile.am): Likewise.
18059 * modules/pagealign_alloc (Makefile.am): Likewise.
18060 * modules/pathmax (Makefile.am): Likewise.
18061 * modules/physmem (Makefile.am): Likewise.
18062 * modules/poll (Makefile.am): Likewise.
18063 * modules/posixtm (Makefile.am): Likewise.
18064 * modules/posixver (Makefile.am): Likewise.
18065 * modules/putenv (Makefile.am): Likewise.
18066 * modules/quote (Makefile.am): Likewise.
18067 * modules/quotearg (Makefile.am): Likewise.
18068 * modules/raise (Makefile.am): Likewise.
18069 * modules/read-file (Makefile.am): Likewise.
18070 * modules/readline (Makefile.am): Likewise.
18071 * modules/readlink (Makefile.am): Likewise.
18072 * modules/readtokens (Makefile.am): Likewise.
18073 * modules/readutmp (Makefile.am): Likewise.
18074 * modules/realloc (Makefile.am): Likewise.
18075 * modules/regex (Makefile.am): Likewise.
18076 * modules/rename-dest-slash (Makefile.am): Likewise.
18077 * modules/rename (Makefile.am): Likewise.
18078 * modules/rijndael (Makefile.am): Likewise.
18079 * modules/rmdir (Makefile.am): Likewise.
18080 * modules/rpmatch (Makefile.am): Likewise.
18081 * modules/safe-read (Makefile.am): Likewise.
18082 * modules/safe-write (Makefile.am): Likewise.
18083 * modules/same-inode (Makefile.am): Likewise.
18084 * modules/same (Makefile.am): Likewise.
18085 * modules/save-cwd (Makefile.am): Likewise.
18086 * modules/savedir (Makefile.am): Likewise.
18087 * modules/setenv (Makefile.am): Likewise.
18088 * modules/settime (Makefile.am): Likewise.
18089 * modules/sha1 (Makefile.am): Likewise.
18090 * modules/sig2str (Makefile.am): Likewise.
18091 * modules/snprintf (Makefile.am): Likewise.
18092 * modules/stat-macros (Makefile.am): Likewise.
18093 * modules/stat-time (Makefile.am): Likewise.
18094 * modules/stdbool (Makefile.am): Likewise.
18095 * modules/stdint (Makefile.am): Likewise.
18096 * modules/stdlib-safer (Makefile.am): Likewise.
18097 * modules/stpcpy (Makefile.am): Likewise.
18098 * modules/stpncpy (Makefile.am): Likewise.
18099 * modules/strcase (Makefile.am): Likewise.
18100 * modules/strcasestr (Makefile.am): Likewise.
18101 * modules/strchrnul (Makefile.am): Likewise.
18102 * modules/strcspn (Makefile.am): Likewise.
18103 * modules/strdup (Makefile.am): Likewise.
18104 * modules/strerror (Makefile.am): Likewise.
18105 * modules/strftime (Makefile.am): Likewise.
18106 * modules/strndup (Makefile.am): Likewise.
18107 * modules/strnlen (Makefile.am): Likewise.
18108 * modules/strpbrk (Makefile.am): Likewise.
18109 * modules/strsep (Makefile.am): Likewise.
18110 * modules/strstr (Makefile.am): Likewise.
18111 * modules/strtod (Makefile.am): Likewise.
18112 * modules/strtoimax (Makefile.am): Likewise.
18113 * modules/strtok_r (Makefile.am): Likewise.
18114 * modules/strtol (Makefile.am): Likewise.
18115 * modules/strtoll (Makefile.am): Likewise.
18116 * modules/strtoul (Makefile.am): Likewise.
18117 * modules/strtoull (Makefile.am): Likewise.
18118 * modules/strtoumax (Makefile.am): Likewise.
18119 * modules/strverscmp (Makefile.am): Likewise.
18120 * modules/sys_socket (Makefile.am): Likewise.
18121 * modules/sys_stat (Makefile.am): Likewise.
18122 * modules/sysexits (Makefile.am): Likewise.
18123 * modules/time_r (Makefile.am): Likewise.
18124 * modules/timegm (Makefile.am): Likewise.
18125 * modules/timespec (Makefile.am): Likewise.
18126 * modules/tmpfile-safer (Makefile.am): Likewise.
18127 * modules/trim (Makefile.am): Likewise.
18128 * modules/unistd-safer (Makefile.am): Likewise.
18129 * modules/unlinkdir (Makefile.am): Likewise.
18130 * modules/unlocked-io (Makefile.am): Likewise.
18131 * modules/userspec (Makefile.am): Likewise.
18132 * modules/utime (Makefile.am): Likewise.
18133 * modules/utimecmp (Makefile.am): Likewise.
18134 * modules/utimens (Makefile.am): Likewise.
18135 * modules/vasnprintf (Makefile.am): Likewise.
18136 * modules/vasprintf (Makefile.am): Likewise.
18137 * modules/vsnprintf (Makefile.am): Likewise.
18138 * modules/xalloc (Makefile.am): Likewise.
18139 * modules/xgetcwd (Makefile.am): Likewise.
18140 * modules/xnanosleep (Makefile.am): Likewise.
18141 * modules/xreadlink (Makefile.am): Likewise.
18142 * modules/xstrtod (Makefile.am): Likewise.
18143 * modules/xstrtol (Makefile.am): Likewise.
18144 * modules/xstrtold (Makefile.am): Likewise.
18145 * modules/yesno (Makefile.am): Likewise.
18146 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
18148 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
18150 * modules/error (Makefile.am): Distribute files through
18151 EXTRA_DIST, not lib_SOURCES.
18153 2006-10-12 Eric Blake <ebb9@byu.net>
18155 * modules/error (Makefile.am): Distribute files in /lib.
18156 * modules/obstack (Makefile.am): Likewise.
18158 2006-10-12 Bruno Haible <bruno@clisp.org>
18160 * modules/acl (Makefile.am): Distribute all files in lib/ through
18162 * modules/arcfour (Makefile.am): Likewise.
18163 * modules/arctwo (Makefile.am): Likewise.
18164 * modules/argmatch (Makefile.am): Likewise.
18165 * modules/argz (Makefile.am): Likewise.
18166 * modules/atexit (Makefile.am): Likewise.
18167 * modules/backupfile (Makefile.am): Likewise.
18168 * modules/c-strtod (Makefile.am): Likewise.
18169 * modules/c-strtold (Makefile.am): Likewise.
18170 * modules/calloc (Makefile.am): Likewise.
18171 * modules/canon-host (Makefile.am): Likewise.
18172 * modules/canonicalize (Makefile.am): Likewise.
18173 * modules/chdir-long (Makefile.am): Likewise.
18174 * modules/chdir-safer (Makefile.am): Likewise.
18175 * modules/check-version (Makefile.am): Likewise.
18176 * modules/chown (Makefile.am): Likewise.
18177 * modules/cloexec (Makefile.am): Likewise.
18178 * modules/close-stream (Makefile.am): Likewise.
18179 * modules/closeout (Makefile.am): Likewise.
18180 * modules/crc (Makefile.am): Likewise.
18181 * modules/cycle-check (Makefile.am): Likewise.
18182 * modules/des (Makefile.am): Likewise.
18183 * modules/dirfd (Makefile.am): Likewise.
18184 * modules/dirname (Makefile.am): Likewise.
18185 * modules/dup2 (Makefile.am): Likewise.
18186 * modules/euidaccess (Makefile.am): Likewise.
18187 * modules/exclude (Makefile.am): Likewise.
18188 * modules/exitfail (Makefile.am): Likewise.
18189 * modules/fcntl-safer (Makefile.am): Likewise.
18190 * modules/file-type (Makefile.am): Likewise.
18191 * modules/fileblocks (Makefile.am): Likewise.
18192 * modules/filemode (Makefile.am): Likewise.
18193 * modules/filenamecat (Makefile.am): Likewise.
18194 * modules/fnmatch (Makefile.am): Likewise.
18195 * modules/fopen-safer (Makefile.am): Likewise.
18196 * modules/fpending (Makefile.am): Likewise.
18197 * modules/fprintftime (Makefile.am): Likewise.
18198 * modules/free (Makefile.am): Likewise.
18199 * modules/fsusage (Makefile.am): Likewise.
18200 * modules/ftruncate (Makefile.am): Likewise.
18201 * modules/fts (Makefile.am): Likewise.
18202 * modules/gc (Makefile.am): Likewise.
18203 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
18204 * modules/getaddrinfo (Makefile.am): Likewise.
18205 * modules/getcwd (Makefile.am): Likewise.
18206 * modules/getdelim (Makefile.am): Likewise.
18207 * modules/getdomainname (Makefile.am): Likewise.
18208 * modules/getgroups (Makefile.am): Likewise.
18209 * modules/gethostname (Makefile.am): Likewise.
18210 * modules/gethrxtime (Makefile.am): Likewise.
18211 * modules/getline (Makefile.am): Likewise.
18212 * modules/getloadavg (Makefile.am): Likewise.
18213 * modules/getlogin_r (Makefile.am): Likewise.
18214 * modules/getopt (Makefile.am): Likewise.
18215 * modules/getpass (Makefile.am): Likewise.
18216 * modules/getpass-gnu (Makefile.am): Likewise.
18217 * modules/getsubopt (Makefile.am): Likewise.
18218 * modules/gettime (Makefile.am): Likewise.
18219 * modules/gettimeofday (Makefile.am): Likewise.
18220 * modules/getugroups (Makefile.am): Likewise.
18221 * modules/getusershell (Makefile.am): Likewise.
18222 * modules/glob (Makefile.am): Likewise.
18223 * modules/group-member (Makefile.am): Likewise.
18224 * modules/hard-locale (Makefile.am): Likewise.
18225 * modules/hash (Makefile.am): Likewise.
18226 * modules/hmac-md5 (Makefile.am): Likewise.
18227 * modules/hmac-sha1 (Makefile.am): Likewise.
18228 * modules/human (Makefile.am): Likewise.
18229 * modules/idcache (Makefile.am): Likewise.
18230 * modules/imaxabs (Makefile.am): Likewise.
18231 * modules/imaxdiv (Makefile.am): Likewise.
18232 * modules/inet_ntop (Makefile.am): Likewise.
18233 * modules/inet_pton (Makefile.am): Likewise.
18234 * modules/inttostr (Makefile.am): Likewise.
18235 * modules/isapipe (Makefile.am): Likewise.
18236 * modules/lchown (Makefile.am): Likewise.
18237 * modules/long-options (Makefile.am): Likewise.
18238 * modules/lstat (Makefile.am): Likewise.
18239 * modules/malloc (Makefile.am): Likewise.
18240 * modules/mathl (Makefile.am): Likewise.
18241 * modules/mbchar (Makefile.am): Likewise.
18242 * modules/md2 (Makefile.am): Likewise.
18243 * modules/md4 (Makefile.am): Likewise.
18244 * modules/md5 (Makefile.am): Likewise.
18245 * modules/memcasecmp (Makefile.am): Likewise.
18246 * modules/memchr (Makefile.am): Likewise.
18247 * modules/memcmp (Makefile.am): Likewise.
18248 * modules/memcoll (Makefile.am): Likewise.
18249 * modules/memcpy (Makefile.am): Likewise.
18250 * modules/memmem (Makefile.am): Likewise.
18251 * modules/memmove (Makefile.am): Likewise.
18252 * modules/mempcpy (Makefile.am): Likewise.
18253 * modules/memrchr (Makefile.am): Likewise.
18254 * modules/memset (Makefile.am): Likewise.
18255 * modules/memxor (Makefile.am): Likewise.
18256 * modules/mkancesdirs (Makefile.am): Likewise.
18257 * modules/mkdir (Makefile.am): Likewise.
18258 * modules/mkdir-p (Makefile.am): Likewise.
18259 * modules/mkdtemp (Makefile.am): Likewise.
18260 * modules/mkstemp (Makefile.am): Likewise.
18261 * modules/mktime (Makefile.am): Likewise.
18262 * modules/modechange (Makefile.am): Likewise.
18263 * modules/mountlist (Makefile.am): Likewise.
18264 * modules/nanosleep (Makefile.am): Likewise.
18265 * modules/openat (Makefile.am): Likewise.
18266 * modules/pagealign_alloc (Makefile.am): Likewise.
18267 * modules/physmem (Makefile.am): Likewise.
18268 * modules/poll (Makefile.am): Likewise.
18269 * modules/posixtm (Makefile.am): Likewise.
18270 * modules/posixver (Makefile.am): Likewise.
18271 * modules/putenv (Makefile.am): Likewise.
18272 * modules/quote (Makefile.am): Likewise.
18273 * modules/quotearg (Makefile.am): Likewise.
18274 * modules/raise (Makefile.am): Likewise.
18275 * modules/read-file (Makefile.am): Likewise.
18276 * modules/readline (Makefile.am): Likewise.
18277 * modules/readlink (Makefile.am): Likewise.
18278 * modules/readtokens (Makefile.am): Likewise.
18279 * modules/readutmp (Makefile.am): Likewise.
18280 * modules/realloc (Makefile.am): Likewise.
18281 * modules/regex (Makefile.am): Likewise.
18282 * modules/rename (Makefile.am): Likewise.
18283 * modules/rename-dest-slash (Makefile.am): Likewise.
18284 * modules/rijndael (Makefile.am): Likewise.
18285 * modules/rmdir (Makefile.am): Likewise.
18286 * modules/rpmatch (Makefile.am): Likewise.
18287 * modules/safe-read (Makefile.am): Likewise.
18288 * modules/safe-write (Makefile.am): Likewise.
18289 * modules/same (Makefile.am): Likewise.
18290 * modules/save-cwd (Makefile.am): Likewise.
18291 * modules/savedir (Makefile.am): Likewise.
18292 * modules/setenv (Makefile.am): Likewise.
18293 * modules/settime (Makefile.am): Likewise.
18294 * modules/sha1 (Makefile.am): Likewise.
18295 * modules/sig2str (Makefile.am): Likewise.
18296 * modules/snprintf (Makefile.am): Likewise.
18297 * modules/stdlib-safer (Makefile.am): Likewise.
18298 * modules/stpcpy (Makefile.am): Likewise.
18299 * modules/stpncpy (Makefile.am): Likewise.
18300 * modules/strcase (Makefile.am): Likewise.
18301 * modules/strcasestr (Makefile.am): Likewise.
18302 * modules/strchrnul (Makefile.am): Likewise.
18303 * modules/strcspn (Makefile.am): Likewise.
18304 * modules/strdup (Makefile.am): Likewise.
18305 * modules/strerror (Makefile.am): Likewise.
18306 * modules/strftime (Makefile.am): Likewise.
18307 * modules/strndup (Makefile.am): Likewise.
18308 * modules/strnlen (Makefile.am): Likewise.
18309 * modules/strpbrk (Makefile.am): Likewise.
18310 * modules/strsep (Makefile.am): Likewise.
18311 * modules/strstr (Makefile.am): Likewise.
18312 * modules/strtod (Makefile.am): Likewise.
18313 * modules/strtoimax (Makefile.am): Likewise.
18314 * modules/strtok_r (Makefile.am): Likewise.
18315 * modules/strtol (Makefile.am): Likewise.
18316 * modules/strtoll (Makefile.am): Likewise.
18317 * modules/strtoul (Makefile.am): Likewise.
18318 * modules/strtoull (Makefile.am): Likewise.
18319 * modules/strtoumax (Makefile.am): Likewise.
18320 * modules/strverscmp (Makefile.am): Likewise.
18321 * modules/time_r (Makefile.am): Likewise.
18322 * modules/timegm (Makefile.am): Likewise.
18323 * modules/tmpfile-safer (Makefile.am): Likewise.
18324 * modules/unistd-safer (Makefile.am): Likewise.
18325 * modules/unlinkdir (Makefile.am): Likewise.
18326 * modules/userspec (Makefile.am): Likewise.
18327 * modules/utime (Makefile.am): Likewise.
18328 * modules/utimecmp (Makefile.am): Likewise.
18329 * modules/utimens (Makefile.am): Likewise.
18330 * modules/vasnprintf (Makefile.am): Likewise.
18331 * modules/vasprintf (Makefile.am): Likewise.
18332 * modules/vsnprintf (Makefile.am): Likewise.
18333 * modules/xalloc (Makefile.am): Likewise.
18334 * modules/xgetcwd (Makefile.am): Likewise.
18335 * modules/xnanosleep (Makefile.am): Likewise.
18336 * modules/xreadlink (Makefile.am): Likewise.
18337 * modules/xstrtod (Makefile.am): Likewise.
18338 * modules/xstrtol (Makefile.am): Likewise.
18339 * modules/xstrtold (Makefile.am): Likewise.
18340 * modules/yesno (Makefile.am): Likewise.
18342 2006-10-12 Jim Meyering <jim@meyering.net>
18344 * m4/getloadavg.m4: Revert the change below.
18346 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
18347 lib/getloadavg.c using "ls -L", not "test -f". The latter would
18348 fail with a symlink, which is what coreutils' ./bootstrap now
18349 creates by default.
18351 2006-10-12 Bruno Haible <bruno@clisp.org>
18353 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
18355 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
18356 MSVC and mingw explicitly.
18358 2006-10-11 Simon Josefsson <jas@extundo.com>
18359 Bruno Haible <bruno@clisp.org>
18361 Add support for multiple gnulib-tool invocations in the scope of a
18362 single configure.ac file.
18363 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
18364 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
18365 with the same contents as the _LIBADD variable.
18366 (func_emit_initmacro_start, func_emit_initmacro_end,
18367 func_emit_initmacro_done): New functions.
18368 (func_import, func_create_testdir): Invoke them. Allow the identifiers
18369 gl_LIBOBJS and gl_LTLIBOBJS.
18371 2006-10-11 Bruno Haible <bruno@clisp.org>
18373 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
18374 (func_create_testdir): Don't create po/Makefile.am, don't invoke
18375 autoreconf. Instead, invoke autopoint explicitly but move back the
18376 *.m4 files from gnulib.
18378 2006-10-11 Bruno Haible <bruno@clisp.org>
18380 * gnulib-tool (func_usage): Make module names after --create-testdir
18382 (func_create_testdir): If no module was specified, use nearly all
18385 2006-10-12 Jim Meyering <jim@meyering.net>
18387 Big performance improvement for fts-based tools that use FTS_NOSTAT.
18388 Avoid spurious inode-mismatch problems on non-POSIX file systems.
18389 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
18390 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
18391 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
18392 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
18393 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
18394 (fts_set_stat_required): New function.
18395 (fts_open): Defer the calls to fts_stat, if possible or requested.
18396 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
18397 into fts_stat itself.
18398 (fts_read): Perform any required (deferred) fts_stat call.
18399 (fts_build): Likewise, for the directory we're about to open and read.
18400 In the readdir loop, carefully decide whether each entry will require
18401 an eventual call to fts_stat, using dirent.d_type info if available.
18402 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
18403 a command line argument into this function. Update all callers.
18404 Map a return value of FTS_DOT to FTS_D for a command line argument.
18405 * modules/fts (Depends-on): Add d-type. Alphabetize.
18406 Thanks to Miklos Szeredi for his tenacity and for the initial
18407 bug report about "find" failing on a FUSE-based file system.
18409 * lib/fts.c (fts_open): Use consistent indentation.
18411 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
18413 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
18414 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
18415 reported by Jim Meyering. All uses of cache variables renamed
18416 to match Autoconf's.
18417 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
18420 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
18421 Fix misspelling in diagnostic.
18423 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
18425 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
18426 defined. Problem reported by Matthew Woehlke.
18428 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
18429 Add support for Tandem NonStop R series.
18430 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
18433 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
18434 (has_trailing_slash): Omit size arg; all callers changed.
18435 Omit 'inline', since it doesn't help performance and we'd
18436 need to configure it.
18437 Don't count //, ///, etc. as having a trailing slash.
18438 As a side effect, this removes a C99ism reported by Matthew Woehlke.
18439 (rpl_rename_dest_slash): On failure, use rename's errno rather
18440 than (in some cases) an incorrect or junk errno.
18441 Simplify code by removing need to compute length; this does
18442 cause it to make two passes instead of one over the file name,
18445 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
18446 change, since Autoconf's version may no longer be appropriate now
18447 that we are using CVS Autoconf's version. Add support for Tandem.
18449 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
18450 Bruno Haible <bruno@clisp.org>
18452 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
18453 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
18454 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
18455 gl_AC_TYPE_LONG_LONG.
18457 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
18458 instead of HAVE_LONG_LONG.
18459 * lib/printf-args.c (printf_fetchargs): Likewise.
18460 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18461 * lib/vasnprintf.c (VASNPRINTF): Likewise.
18462 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
18463 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
18464 gl_AC_TYPE_LONG_LONG.
18466 2006-10-11 Bruno Haible <bruno@clisp.org>
18468 * m4/longlong.m4: Add comments.
18469 * m4/ulonglong.m4: Likewise.
18471 2006-10-10 Bruno Haible <bruno@clisp.org>
18473 Make it possible to #define stpcpy, strdup to aliases.
18474 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
18475 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
18477 2006-10-10 Bruno Haible <bruno@clisp.org>
18479 Make it possible to #define gcd to an alias.
18480 * lib/gcd.c: Include config.h.
18482 2006-10-10 Bruno Haible <bruno@clisp.org>
18484 Make it possible to #define c_isascii to an alias.
18485 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
18486 defined. Undefine the macros before defining them, to avoid gcc
18488 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
18489 define NO_C_CTYPE_MACROS early.
18491 2006-10-10 Bruno Haible <bruno@clisp.org>
18493 Make it possible to #define set_program_name to an alias.
18494 * lib/progname.c: Don't undefine set_program_name; instead, undefine
18495 ENABLE_RELOCATABLE early.
18497 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
18499 Port to Tandem NSK OSS, which has 64-bit signed int but at most
18500 32-bit unsigned int. Problem reported by Matthew Woehlke in:
18501 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
18502 More generally, don't assume that 64-bit signed int is available
18503 if unsigned int is, and vice versa.
18504 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
18505 unsigned symbols, not on their signed counterparts.
18506 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
18507 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
18508 (UINT64_C, UINTMAX_C):
18510 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
18511 unsigned counterparts.
18512 (Have_long_long, Unsigned): New macros.
18513 (Int): Renamed from INT.
18514 (strtoimax): Use the new macros.
18515 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
18516 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
18517 * modules/inttypes (inttypes.h): Substitute
18518 HAVE_UNSIGNED_LONG_LONG_INT.
18519 * modules/stdint (stdint.h): Likewise.
18520 (Files): Add m4/ulonglong.m4.
18522 2006-10-10 Bruno Haible <bruno@clisp.org>
18524 Fix a gcc -Wshadow warning.
18525 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
18527 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
18528 gl_linked_indexof_from_to): Likewise.
18529 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
18531 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
18533 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
18534 Reported by Eric Blake.
18536 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
18538 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
18539 for NetBSD. Problem reported by Bruno Haible.
18541 2006-10-09 Jim Meyering <jim@meyering.net>
18543 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
18544 Patch from Bruno Haible.
18546 2006-10-09 Jim Meyering <jim@meyering.net>
18548 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
18549 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
18550 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
18552 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
18554 Don't include <config.h> twice; this doesn't work in some cases,
18555 e.g., when config.h has "#define intmax_t long long int" and
18556 we include <config.h>, <inttypes.h>, <config.h> in that order.
18557 Problem reported by Matthew Woehlke in:
18558 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
18559 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
18560 * lib/fts-cycle.c: Don't include config.h.
18561 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
18562 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
18563 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
18564 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
18566 * lib/xstrtoumax.c: Likewise.
18567 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
18568 __strtol and the like, so that this module is more like its siblings.
18569 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
18570 Remove; no longer needed now that we assume gnulib inttypes.h.
18572 2006-10-08 Bruno Haible <bruno@clisp.org>
18574 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
18577 2006-10-07 Jim Meyering <jim@meyering.net>
18579 * modules/inttypes (inttypes.h): Revert what seems to have been
18580 an inadvertent part of today's change: use "|", not "/" in the
18581 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
18583 2006-10-07 Bruno Haible <bruno@clisp.org>
18585 * modules/sublist: New file.
18587 2006-10-07 Bruno Haible <bruno@clisp.org>
18589 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
18590 * modules/argz (argz.h): Likewise.
18591 * modules/arpa_inet (arpa/inet.h): Likewise.
18592 * modules/byteswap (byteswap.h): Likewise.
18593 * modules/configmake (configmake.h): Likewise.
18594 * modules/fcntl (fcntl.h): Likewise.
18595 * modules/fnmatch (fnmatch.h): Likewise.
18596 * modules/getopt (getopt.h): Likewise.
18597 * modules/glob (glob.h): Likewise.
18598 * modules/inttypes (inttypes.h): Likewise.
18599 * modules/netinet_in (netinet/in.h): Likewise.
18600 * modules/poll (poll.h): Likewise.
18601 * modules/stdbool (stdbool.h): Likewise.
18602 * modules/stdint (stdint.h): Likewise.
18603 * modules/sys_select (sys/select.h): Likewise.
18604 * modules/sys_socket (sys/socket.h): Likewise.
18605 * modules/sys_stat (sys/stat.h): Likewise.
18606 * modules/sysexits (sysexits.h): Likewise.
18607 * modules/unistd (unistd.h): Likewise.
18608 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18609 Add a "DO NOT EDIT" comment to the generated file.
18610 (func_import): Likewise for gnulib-comp.m4.
18612 2006-10-07 Bruno Haible <bruno@clisp.org>
18614 * lib/gl_sublist.h: New file.
18615 * lib/gl_sublist.c: New file.
18617 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
18619 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
18620 name (relative to the original working directory) and the file
18621 name component (relative to the temporary working directory). All
18623 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
18624 * lib/mkdir-p.c (make_dir_parents): Likewise.
18625 * lib/mkdir-p.h (make_dir_parents): Likewise.
18627 2006-10-06 Eric Blake <ebb9@byu.net>
18629 Define several macros for use by the clean-temp module.
18630 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
18631 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
18632 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
18634 * lib/clean-temp.h (close_stream_temp): New declaration.
18635 * lib/clean-temp.c (includes): Pull in headers according to what
18636 other modules are in use.
18637 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
18639 2006-10-06 Bruno Haible <bruno@clisp.org>
18641 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
18642 instead of fopen, fwriteerror.
18644 2006-10-06 Bruno Haible <bruno@clisp.org>
18646 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
18647 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
18649 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
18650 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
18651 Return an error indicator.
18652 Suggested by Eric Blake.
18654 2006-10-06 Bruno Haible <bruno@clisp.org>
18656 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
18657 Reported by Eric Blake.
18659 2006-10-06 Bruno Haible <bruno@clisp.org>
18661 * modules/closeout (Description): Mention stderr too.
18663 2006-10-06 Bruno Haible <bruno@clisp.org>
18664 and Paul Eggert <eggert@cs.ucla.edu>
18666 * lib/closeout.c (close_stdout): Also close stderr.
18667 * lib/closeout.h: Update comment.
18669 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
18671 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
18672 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
18673 * lib/dirchownmod.c: Include lchown.h.
18674 * lib/lchown.c: Don't include files that lchown.h now includes.
18675 Don't declare chown, since lchown.h now does that.
18676 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
18677 (lchown): Define to rpl_chown if lchown is declared but
18678 does not exist. Declare using a prototype if lchown is not
18679 declared. Add a copyright notice.
18680 * lib/mkstemp.h: Include <unistd.h>.
18681 * lib/openat.c: Include lchown.h.
18683 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
18684 we now test for that separately.
18685 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
18686 rather than O_NOFOLLOW, when testing whether it's possible to
18687 avoid a race condition reliably.
18688 * lib/savewd.c (savewd_chdir): Likewise.
18690 Remove macros that are no longer needed now that stdint.h is
18692 * lib/fsusage.c (UINTMAX_MAX): Remove.
18693 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
18694 * lib/utimecmp.c (SIZE_MAX): Remove.
18696 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
18698 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
18699 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
18702 2006-10-05 Bruno Haible <bruno@clisp.org>
18704 * lib/gl_list.h (gl_sortedlist_search_from_to,
18705 gl_sortedlist_indexof_from_to): New declarations.
18706 (gl_list_implementation): New fields sortedlist_search_from_to,
18707 sortedlist_indexof_from_to.
18708 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
18710 * lib/gl_list.c (gl_sortedlist_search_from_to,
18711 gl_sortedlist_indexof_from_to): New functions.
18712 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
18714 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
18715 (gl_array_sortedlist_search_from_to): New function.
18716 (gl_array_list_implementation): Update.
18717 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
18719 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
18720 (gl_carray_sortedlist_search_from_to): New function.
18721 (gl_carray_list_implementation): Update.
18722 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
18723 gl_linked_sortedlist_indexof_from_to): New functions.
18724 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
18725 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
18726 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
18727 gl_tree_sortedlist_indexof_from_to): New functions.
18728 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
18729 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
18731 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
18732 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
18735 2006-10-05 Bruno Haible <bruno@clisp.org>
18737 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
18738 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
18739 (struct gl_list_implementation): Add fields search_from_to,
18740 indexof_from_to. Remove fields search, indexof.
18741 (gl_list_search): Use the search_from_to method.
18742 (gl_list_search_from, gl_list_search_from_to): New functions.
18743 (gl_list_indexof): Use the indexof_from_to method.
18744 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
18745 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
18746 (gl_list_search_from, gl_list_search_from_to): New functions.
18747 (gl_list_indexof): Use the indexof_from_to method.
18748 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
18749 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
18750 gl_array_indexof. Add start_index, end_index arguments.
18751 (gl_array_search_from_to): Renamed from gl_array_search. Add
18752 start_index, end_index arguments.
18753 (gl_array_remove, gl_array_list_implementation): Update.
18754 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
18755 gl_carray_indexof. Add start_index, end_index arguments.
18756 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
18757 start_index, end_index arguments.
18758 (gl_carray_remove, gl_carray_list_implementation): Update.
18759 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
18760 gl_linked_search. Add start_index, end_index arguments.
18761 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
18762 start_index, end_index arguments.
18763 (gl_linked_remove): Update.
18764 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
18765 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
18766 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
18768 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
18769 gl_tree_search. Add start_index, end_index arguments.
18770 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
18771 start_index, end_index arguments.
18772 (gl_tree_remove): Update.
18773 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
18774 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
18775 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
18777 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
18778 gl_tree_search. Add start_index, end_index arguments.
18779 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
18780 start_index, end_index arguments.
18781 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
18783 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
18785 2006-10-05 Bruno Haible <bruno@clisp.org>
18787 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
18789 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
18790 fwriteerror_temp): New declarations.
18791 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
18792 (descriptors): New variable.
18793 (cleanup): First, close the descriptors.
18794 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
18795 fclose_temp, fwriteerror_temp): New functions.
18797 2006-10-04 Jim Meyering <jim@meyering.net>
18799 * lib/fts.c (fts_open): Tiny comment change.
18801 2006-10-04 Bruno Haible <bruno@clisp.org>
18803 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
18804 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
18806 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
18807 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
18808 gl_LOCK_EARLY_BODY.
18809 (gl_LOCK): Require gl_LOCK_BODY.
18811 2006-10-04 Bruno Haible <bruno@clisp.org>
18813 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
18814 (gl_oset_search_atleast): New declaration.
18815 (struct gl_oset_implementation): Add field 'search_atleast'.
18816 (gl_oset_search_atleast): New inline function.
18817 * lib/gl_oset.c (gl_oset_search_atleast): New function.
18818 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
18819 (gl_array_oset_implementation): Update.
18820 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
18821 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
18822 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
18824 2006-10-04 Bruno Haible <bruno@clisp.org>
18826 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
18828 2006-10-03 Bruno Haible <bruno@clisp.org>
18830 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
18831 from gl_avltreehash_list_implementation.
18833 2006-10-03 Bruno Haible <bruno@clisp.org>
18835 * lib/gl_oset.c (gl_oset_add): Fix return type.
18837 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
18839 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
18841 2006-10-02 Eric Blake <ebb9@byu.net>
18843 * modules/strnlen (Depends-on): Add extensions.
18845 2006-10-02 Eric Blake <ebb9@byu.net>
18847 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
18848 definition in 2.60+.
18850 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
18852 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
18855 2006-10-02 Bruno Haible <bruno@clisp.org>
18857 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
18858 to the AUTOMAKE_OPTIONS.
18859 Reported by Jim Meyering.
18861 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
18863 Work around bug in Solaris 10 /proc file system:
18864 /proc/self/fd/NNN/.. isn't the parent directory of
18865 the directory whose file descriptor is NNN. This needs to
18866 be worked around at run time, not compile time, since a
18867 program might be built on Solaris 8, where things work, and
18869 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
18870 to use the following interface instead:
18871 (OPENAT_BUFFER_SIZE): New macro.
18872 (openat_proc_name): New function.
18873 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
18874 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
18876 * lib/openat-proc.c: New file.
18877 * modules/openat (Files): Add lib/openat-proc.c.
18878 (Depends-on): Add same-inode, stdbool.
18879 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
18881 2006-09-29 Bruno Haible <bruno@clisp.org>
18883 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
18884 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
18885 argument. Set stdout_closed before testing for ferror, not after.
18886 (fwriteerror, fwriteerror_no_ebadf): New functions.
18888 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18890 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
18892 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
18894 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
18895 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
18897 2006-09-28 Jim Meyering <jim@meyering.net>
18899 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
18900 Include <unistd.h>.
18902 2006-09-28 Bruno Haible <bruno@clisp.org>
18904 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
18905 * modules/linkedhash-list (Depends-on): Likewise.
18906 * modules/rbtreehash-list (Depends-on): Likewise.
18908 2006-09-28 Bruno Haible <bruno@clisp.org>
18910 * lib/strndup.h: Simplify the redefinition of strndup.
18911 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
18912 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
18914 2006-09-28 Bruno Haible <bruno@clisp.org>
18916 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
18917 * lib/gl_linkedhash_list.c: Likewise.
18918 * lib/gl_rbtreehash_list.c: Likewise.
18920 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
18922 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
18925 * lib/__fpending.h: Don't include <stdio_ext.h> unless
18926 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
18927 it causes <stdio_ext.h> to cause a compile-time error.
18928 Problem reported by Nelson H. F. Beebe.
18929 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
18930 of HAVE_DECL___PENDING.
18932 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
18933 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
18936 2006-09-27 Jim Meyering <jim@meyering.net>
18938 This file could end up with a definition for a function
18939 named __strndup, rather than rpl_strndup on a system with
18940 incomplete weak_alias support.
18941 * lib/strndup.c (strndup): Rename from __strndup.
18942 Remove #defines that used to map __strndup to strndup.
18943 Don't use K&R prototypes.
18944 Remove LIBC-related code, since this file is not sync'd with glibc.
18945 * lib/strndup.h: Revamp, accordingly.
18946 * m4/strndup.m4: Modernize.
18948 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
18950 * modules/savewd (Depends-on): Add 'raise'.
18951 * lib/savewd.c: Include <signal.h>, for 'raise'.
18953 2006-09-26 Jim Meyering <jim@meyering.net>
18955 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
18956 when we detect Darwin 8.7.0's acl_get_file bug.
18957 Rearrange to perform the new (below) run-test while $LIBS
18958 contains any acl-related library. Set USE_ACL at the end.
18959 (gl_ACL_GET_FILE): New function.
18961 2006-09-26 Eric Blake <ebb9@byu.net>
18963 * lib/verror.c: Include <config.h> unconditionally.
18965 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
18967 * modules/clock-time (Maintainer): Add self.
18968 * modules/getlogin_r (Depends-on): Add extensions.
18970 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18972 * modules/clock-time: New module.
18973 * modules/nanosleep (Depends-on): Add clock-time.
18974 * modules/gethrxtime (Depends-on): Likewise.
18975 * modules/gettime (Depends-on): Likewise.
18976 * modules/settime (Depends-on): Likewise.
18978 * modules/fts-lgpl: Depend on openat.
18979 * modules/mkancesdirs: Depend on savewd.
18980 * modules/mkdir-p: Likewise.
18982 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18984 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
18986 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
18987 `gl_have_arbitrary_file_name_length_limit' to
18988 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
18989 actually works between configure runs.
18991 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18992 Bruno Haible <bruno@clisp.org>
18994 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
18996 2006-09-25 Jim Meyering <jim@meyering.net>
18998 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
18999 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
19001 2006-09-25 Eric Blake <ebb9@byu.net>
19003 * gnulib-tool (func_import, func_create_testdir): Fix typos in
19004 exec's in 2006-09-18 patch when shuffling fds.
19006 2006-09-25 Bruno Haible <bruno@clisp.org>
19008 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
19009 Reported by Jim Meyering.
19011 2006-09-24 Jim Meyering <jim@meyering.net>
19013 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
19014 compare a pointer against a literal "0". That caused failures with
19015 at least HP-UX's hpcc.
19017 2006-09-22 Simon Josefsson <jas@extundo.com>
19021 * modules/gc-hmac-sha1:
19022 * modules/gc-hmac-md5:
19024 * modules/gc-arcfour: Distribute more files.
19026 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19028 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
19029 (gl_linked_iterator_from_to): Initialize struct completely.
19030 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
19031 (gl_tree_iterator_from_to): Likewise
19032 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
19033 * lib/gl_array_list.c [lint] (gl_array_iterator)
19034 (gl_array_iterator_from_to): Likewise.
19035 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
19036 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
19037 (gl_carray_iterator_from_to): Likewise.
19039 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
19040 * lib/md4.c (md4_process_block): Remove unused variable.
19041 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
19042 parentheses for clarity.
19044 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19046 * modules/bison-i18n (Depends-on): Add gettext.
19048 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19050 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
19051 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
19052 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
19053 also add missing comma that caused broken test.
19054 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
19055 stdlib.h, for `abort'.
19056 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
19058 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
19059 include unistd.h if present, for `rmdir'.
19060 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
19062 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
19063 in the process include standard headers for prototypes.
19064 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
19065 gets declared on GNU/Linux.
19066 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
19067 unistd.h, for `rmdir'.
19068 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
19070 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
19072 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
19074 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
19076 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19078 * gnulib-tool (func_version): Create output all at once. This
19079 may help avoid triggering unnecessary SIGPIPEs, and at any
19080 rate it doesn't hurt.
19082 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19083 Bruno Haible <bruno@clisp.org>
19085 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
19086 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19087 * m4/signed.m4 (bh_C_SIGNED): Likewise.
19089 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
19090 (gl_FUNC_VASPRINTF): Invoke it.
19092 2006-09-22 Bruno Haible <bruno@clisp.org>
19094 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
19095 getloadavg.c as first argument.
19097 2006-09-22 Bruno Haible <bruno@clisp.org>
19099 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
19100 at the beginning of the gl_INIT macro.
19101 * modules/getloadavg (configure.ac): Pass $gl_source_base to
19104 2006-09-22 Bruno Haible <bruno@clisp.org>
19106 * gnulib-tool (func_create_megatestdir): Don't include the config-h
19108 Suggested by Ralf Wildenhues.
19110 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
19112 Import this patch from libc:
19114 2006-09-06 Jakub Jelinek <jakub@redhat.com>
19116 * lib/regex_internal.c (re_string_reconstruct): Handle
19117 offset < pstr->valid_raw_len && pstr->offsets_needed case.
19118 Ensure no bytes read before raw_mbs array. Pass a saved copy of
19119 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
19120 re_string_context_at.
19122 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
19124 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
19125 gl_REGEX now does it for us.
19126 (gl_REGEX): Add test taken from
19127 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
19129 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
19130 Check that large offsets work. Modernize Autoconf usages.
19131 Prefer "yes" to mean a good thing rather than a bad.
19132 Don't put "#define mkstemp" in config.h, as this might interfere
19133 with standard system headers that "#define mkstemp mkstemp64".
19135 * modules/mkstemp (Depends-on): Add extensions, so that
19136 mkstemp is visible on some platforms.
19137 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
19138 (Include): Change to "mkstemp.h" from <stdlib.h>.
19139 (Files): Add mkstemp.h.
19141 * lib/mkstemp.h: New file, since some standard headers
19143 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
19144 Include "mkstemp.h".
19145 Make the _LIBC code resemble glibc original more,
19146 e.g., use K&R style.
19147 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
19148 (mkstemp): Remove, since mkstemp.h does this for us.
19149 * lib/stdlib--.h: Include mkstemp.h.
19151 Import this patch from libc:
19153 2006-04-07 Ulrich Drepper <drepper@redhat.com>
19155 * lib/tempname.c (__gen_tempname): Change attempts_min
19156 into a macro. Use preprocessor to decide how to initialize
19157 attempts [Coverity CID 67].
19159 2006-09-20 Bruno Haible <bruno@clisp.org>
19161 * lib/mkdtemp.c: Import from libc.
19162 2006-04-07 Ulrich Drepper <drepper@redhat.com>
19163 * sysdeps/posix/tempname.c (__gen_tempname): Change
19164 attempts_min into a macro. Use preprocessor to decide how to
19165 initialize attempts [Coverity CID 67].
19166 2001-11-27 Paul Eggert <eggert@twinsun.com>
19167 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
19168 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
19170 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19172 * gnulib-tool (func_exit): New function, to allow to pass the
19173 exit status portably through the trap. Use everywhere.
19174 (--help, --version): Signal a write error.
19175 (trap): catch SIGPIPE, for write errors.
19176 Exit at the end of the trap, with the correct exit status.
19178 2006-09-19 Karl Berry <karl@gnu.org>
19180 * doc/gnulib.texi: note about the license texinfo files.
19182 2006-09-19 Eric Blake <ebb9@byu.net>
19184 * gnulib-tool: Avoid space-tab.
19186 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
19188 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
19189 that prevented coreutils 6.1 from building. Problem reported
19190 by Petter Reinholdtsen.
19192 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
19194 * gnulib-tool (avoidlist): Fix typo that broke options like
19195 --avoid=lock that are used by coreutils bootstrap.
19197 2006-09-18 Mark D. Baushke <mdb@gnu.org>
19199 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
19200 more systematically.
19202 2006-09-18 Jim Meyering <jim@meyering.net>
19204 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
19206 2006-09-18 Bruno Haible <bruno@clisp.org>
19208 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
19210 2006-09-18 Bruno Haible <bruno@clisp.org>
19212 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
19213 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
19214 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
19215 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
19216 * m4/gettext.m4: Require autoconf >= 2.52.
19217 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
19218 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
19219 of gl_cv_header_inttypes_h.
19221 2006-09-18 Bruno Haible <bruno@clisp.org>
19223 * lib/javaversion.c: Include configmake.h.
19225 2006-09-18 Bruno Haible <bruno@clisp.org>
19227 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
19228 avoid that the while loops be executed in a subshell.
19230 2006-09-18 Bruno Haible <bruno@clisp.org>
19232 * MODULES.html.sh (func_module): Break long lines.
19233 Suggested by Bruce Korb <bkorb@gnu.org>.
19235 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19237 Speed up by a factor of 1.12.
19238 * gnulib-tool (nl): New variable.
19239 (func_import): Rewrite include directive extraction to only read each
19242 2006-09-17 Bruno Haible <bruno@clisp.org>
19244 * modules/javaversion (Makefile.am): Remove DEFS setting.
19245 (Depends-on): Add configmake, for PKGDATADIR definition.
19247 2006-09-17 Bruno Haible <bruno@clisp.org>
19249 * gnulib-tool (func_create_testdir): Rewrite all files at once.
19251 2006-09-17 Bruno Haible <bruno@clisp.org>
19253 * gnulib-tool (func_append): New function, stolen from libtool.m4.
19254 (func_modules_transitive_closure, func_modules_add_dummy,
19255 func_modules_to_filelist, func_import, func_create_testdir,
19256 func_create_megatestdir, ...): Use it wherever possible.
19257 Suggested by Ralf Wildenhues.
19259 2006-09-16 Karl Berry <karl@gnu.org>
19261 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
19262 to avoid sectioning errors.
19263 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
19264 [ifinfo]: blank line after @center-ed titles.
19265 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
19266 Spell FSF address consistently with others.
19267 (These changes approved by rms.)
19269 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19271 Speed up by a factor of 1.61.
19272 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
19273 already checked module names again.
19275 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19277 Speed up by a factor of 1.13.
19278 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
19279 for new_files, and the input to func_add_or_update.
19281 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19283 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
19284 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
19286 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
19288 * modules/mkancesdirs (Depends-on): Add fcntl.
19289 * modules/savewd: New file.
19290 * MODULES.html.sh (File system functions): Add savewd.
19292 * modules/configmake (Makefile.am): Add support for the
19293 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
19295 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
19297 * m4/savewd.m4: New file.
19299 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
19301 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
19302 (dirchownmod): New arg FD. All callers changed.
19303 Use FD rather than opening the directory ourself, as opening is
19304 now the caller's responsibility.
19305 * lib/dirchownmod.h: Likewise.
19306 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
19307 hosts that require <sys/types.h> before <sys/stat.h>. Include
19308 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
19309 (test_dir): Remove.
19310 (mkancesdirs): Return length of prefix of FILE that has already
19311 been made, or -2 if there is a child doing the work. Redo
19312 algorithm so that it is O(N) rather than O(N**2). Optimize away
19313 ".", and treat ".." specially since it might stray back into
19314 already-created areas. Use a subprocess if necessary. New arg
19315 WD; all users changed. MAKE_DIR function should now return 1
19316 if it creates a directory that is not readable. Return -2 if
19317 a child process is spun off.
19318 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
19319 Adjust signature to match code.
19320 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
19321 (make_dir_parents): Use a subprocess if necessary. New arg WD;
19323 * lib/savewd.c, lib/savewd.h: New files.
19325 2006-09-15 Jim Meyering <jim@meyering.net>
19327 * modules/rename-dest-slash: New module.
19328 * MODULES.html.sh (posix_compat): Add it here.
19330 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
19332 2006-09-15 Jim Meyering <jim@meyering.net>
19334 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
19337 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
19339 2006-09-15 Jim Meyering <jim@meyering.net>
19341 * lib/rename-dest-slash.c (has_trailing_slash): Use
19342 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
19343 (rpl_rename_dest_slash): Perform the cheaper trailing slash
19344 test before testing whether SRC is a directory.
19345 Suggestions from Bruno Haible.
19347 Avoid a warning about an unused variable.
19348 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
19349 into the #ifdef block where it's used.
19351 * lib/rename-dest-slash.c: New file.
19353 2006-09-14 Bruno Haible <bruno@clisp.org>
19355 * lib/allocsa.c: Include <config.h> unconditionally.
19356 * lib/asnprintf.c: Likewise.
19357 * lib/asprintf.c: Likewise.
19358 * lib/c-strcasecmp.c: Likewise.
19359 * lib/c-strcasestr.c: Likewise.
19360 * lib/c-strncasecmp.c: Likewise.
19361 * lib/c-strstr.c: Likewise.
19362 * lib/classpath.c: Likewise.
19363 * lib/clean-temp.c: Likewise.
19364 * lib/concatpath.c: Likewise.
19365 * lib/copy-file.c: Likewise.
19366 * lib/csharpcomp.c: Likewise.
19367 * lib/csharpexec.c: Likewise.
19368 * lib/execute.c: Likewise.
19369 * lib/fatal-signal.c: Likewise.
19370 * lib/findprog.c: Likewise.
19371 * lib/fwriteerror.c: Likewise.
19372 * lib/gl_array_list.c: Likewise.
19373 * lib/gl_array_oset.c: Likewise.
19374 * lib/gl_avltree_list.c: Likewise.
19375 * lib/gl_avltree_oset.c: Likewise.
19376 * lib/gl_avltreehash_list.c: Likewise.
19377 * lib/gl_carray_list.c: Likewise.
19378 * lib/gl_linked_list.c: Likewise.
19379 * lib/gl_linkedhash_list.c: Likewise.
19380 * lib/gl_list.c: Likewise.
19381 * lib/gl_oset.c: Likewise.
19382 * lib/gl_rbtree_list.c: Likewise.
19383 * lib/gl_rbtree_oset.c: Likewise.
19384 * lib/gl_rbtreehash_list.c: Likewise.
19385 * lib/imaxabs.c: Likewise.
19386 * lib/imaxdiv.c: Likewise.
19387 * lib/javacomp.c: Likewise.
19388 * lib/javaexec.c: Likewise.
19389 * lib/javaversion.c: Likewise.
19390 * lib/linebreak.c: Likewise.
19391 * lib/localcharset.c: Likewise.
19392 * lib/lock.c: Likewise.
19393 * lib/mbchar.c: Likewise.
19394 * lib/mbswidth.c: Likewise.
19395 * lib/mkdtemp.c: Likewise.
19396 * lib/pipe.c: Likewise.
19397 * lib/printf-args.c: Likewise.
19398 * lib/printf-parse.c: Likewise.
19399 * lib/progname.c: Likewise.
19400 * lib/progreloc.c: Likewise.
19401 * lib/readlink.c: Likewise.
19402 * lib/sh-quote.c: Likewise.
19403 * lib/stpcpy.c: Likewise.
19404 * lib/stpncpy.c: Likewise.
19405 * lib/strcasecmp.c: Likewise.
19406 * lib/strcasestr.c: Likewise.
19407 * lib/strcspn.c: Likewise.
19408 * lib/striconv.c: Likewise.
19409 * lib/strncasecmp.c: Likewise.
19410 * lib/strnlen1.c: Likewise.
19411 * lib/strstr.c: Likewise.
19412 * lib/strtok_r.c: Likewise.
19413 * lib/tls.c: Likewise.
19414 * lib/tmpdir.c: Likewise.
19415 * lib/unicodeio.c: Likewise.
19416 * lib/unsetenv.c: Likewise.
19417 * lib/vasnprintf.c: Likewise.
19418 * lib/vasprintf.c: Likewise.
19419 * lib/wait-process.c: Likewise.
19420 * lib/xallocsa.c: Likewise.
19421 * lib/xsetenv.c: Likewise.
19422 * lib/xstriconv.c: Likewise.
19424 2006-09-13 Simon Josefsson <jas@extundo.com>
19426 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
19427 that internally, suggested by Ralf Wildenhues
19428 <Ralf.Wildenhues@gmx.de>.
19430 2006-09-13 Simon Josefsson <jas@extundo.com>
19432 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
19434 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19436 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
19438 * lib/_fpending.c: Include <config.h> unconditionally, since we no
19439 longer worry about uses that don't define HAVE_CONFIG_H.
19440 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
19441 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
19442 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
19443 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
19444 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
19445 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
19446 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
19447 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
19448 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
19449 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
19450 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
19451 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
19452 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
19453 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
19454 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
19455 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
19456 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
19457 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
19458 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
19459 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
19460 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
19461 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
19462 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
19463 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
19464 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
19465 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
19466 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
19467 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
19468 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
19469 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
19470 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
19471 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
19472 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
19473 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
19474 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
19475 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
19476 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
19477 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
19478 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
19479 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
19480 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
19483 2006-09-13 Eric Blake <ebb9@byu.net>
19485 * lib/getopt.c: Fix typo in last commit.
19487 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
19489 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
19492 2006-09-12 Jim Meyering <jim@meyering.net>
19494 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
19495 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
19496 Reported by Nelson H. F. Beebe.
19498 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
19500 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
19501 program_invocation_name and program_invocation_short_name are
19503 * lib/argp-namefrob.h: Move declarations of program_invocation_name
19504 and program_invocation_short_name to argp.h, so they are visible
19506 * lib/argp.h: Likewise
19508 2006-09-10 Bruno Haible <bruno@clisp.org>
19510 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
19511 m4/inttypes_h.m4, m4/uintmax_t.m4.
19513 2006-09-10 Bruno Haible <bruno@clisp.org>
19515 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
19516 gl_AC_TYPE_UINTMAX_T.
19518 2006-09-10 Bruno Haible <bruno@clisp.org>
19520 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
19522 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
19524 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
19525 convention. Text proposed by Bruno Haible.
19526 (struct argp_option): Document the use of N_() wrappers.
19528 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
19529 '\v', and translate the two parts separately, instead of feeding
19530 the whole string to gettext. This allows to exclude
19531 '\v' from the strings visible to the translator by writing doc
19532 strings as N_("..") "\v" N_("..").
19534 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
19536 * config/srclist.txt: Undo latest change; the bug was fixed.
19538 2006-09-09 Bruno Haible <bruno@clisp.org>
19540 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
19541 assignments if building a library without libtool.
19542 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
19543 in func_emit_lib_Makefile_am.
19544 (func_import): When building a static library libfoo.a, arrange to
19545 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
19546 (func_create_testdir): Likewise.
19547 * modules/gc (configure.ac, Makefile.am): If building statically,
19548 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
19549 * modules/iconvme (configure.ac, Makefile.am): Likewise.
19550 * modules/striconv (configure.ac, Makefile.am): Likewise.
19551 Based on a suggestion by Ralf Wildenhues.
19553 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
19555 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
19556 Check for unistd.h too, since Autoconf doesn't assume POSIX.
19559 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
19560 Add year_2050_test to catch glibc bug 2821
19561 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
19563 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
19564 Prefer #ifdef to #if.
19566 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
19567 Return from 'main' instead of calling 'exit'.
19569 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
19571 * lib/mktime.c (guess_time_tm): Fix bug where mktime
19572 returned the maximum time_t value rather than (time_t) -1.
19573 Problem originally reported by William Bardwell
19574 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
19576 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
19578 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
19581 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
19583 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
19586 2006-09-08 Jim Meyering <jim@meyering.net>
19588 Don't make generated files read-only. That would bother too many
19589 people. However, do retain the ability to work when targets are
19590 read-only: remove the destination and temporary files before writing
19591 them (when generated via sed or echo), or by using the -f option for
19592 both cp and mv commands. Suggestion to use -f from Paul Eggert.
19593 * modules/alloca-opt, modules/argz, modules/arpa_inet:
19594 * modules/byteswap, modules/configmake, modules/fcntl:
19595 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
19596 * modules/localcharset, modules/netinet_in, modules/poll:
19597 * modules/stdbool, modules/stdint, modules/sys_select:
19598 * modules/sys_socket, modules/sys_stat, modules/sysexits:
19600 2006-09-08 Jim Meyering <jim@meyering.net>
19602 Avoid new build failure on FreeBSD 6.0.
19603 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
19604 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
19605 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
19607 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19609 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
19611 2006-09-07 Jim Meyering <jim@meyering.net>
19613 Fix global typo in last change: use chmod u-w, not chmod u-x.
19614 Spotted by Paul Eggert and Bruce Korb.
19615 * modules/alloca-opt, modules/argz, modules/arpa_inet:
19616 * modules/byteswap, modules/configmake, modules/fcntl:
19617 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
19618 * modules/localcharset, modules/netinet_in, modules/poll:
19619 * modules/stdbool, modules/stdint, modules/sys_select:
19620 * modules/sys_socket, modules/sys_stat, modules/sysexits:
19622 2006-09-06 Jim Meyering <jim@meyering.net>
19624 Make generated files be read-only.
19625 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
19626 Ensure that each generated file is now read-only.
19627 * modules/argz: Likewise.
19628 * modules/arpa_inet: Likewise.
19629 * modules/byteswap: Likewise.
19630 * modules/configmake: Likewise.
19631 * modules/fcntl: Likewise.
19632 * modules/fnmatch: Likewise.
19633 * modules/getopt: Likewise.
19634 * modules/glob: Likewise.
19635 * modules/inttypes: Likewise.
19636 * modules/netinet_in: Likewise.
19637 * modules/poll: Likewise.
19638 * modules/stdbool: Likewise.
19639 * modules/stdint: Likewise.
19640 * modules/sys_select: Likewise.
19641 * modules/sys_socket: Likewise.
19642 * modules/sys_stat: Likewise.
19643 * modules/sysexits: Likewise.
19644 * modules/localcharset: Same as above, but continue using temporary
19645 file named "t-$@" (why different?) rather than the "$@-t" used
19648 * modules/sysexits (Makefile.am): Replace literal occurrences
19649 of "sysexit.h" more readable, and more consistent, "$@".
19651 2006-09-06 Bruno Haible <bruno@clisp.org>
19653 * modules/striconv: New file.
19654 * modules/xstriconv: New file.
19655 * MODULES.html.sh (Internationalization functions): Add striconv,
19658 2006-09-06 Bruno Haible <bruno@clisp.org>
19660 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
19661 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
19662 not using libtool correctly.
19664 2006-09-06 Bruno Haible <bruno@clisp.org>
19666 * lib/striconv.h: New file.
19667 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
19669 * lib/xstriconv.h: New file.
19670 * lib/xstriconv.c: New file.
19672 2006-09-06 Bruno Haible <bruno@clisp.org>
19674 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
19677 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19679 * lib/argz_.h: Sync from Libtool.
19681 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
19682 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19684 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
19686 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
19688 * modules/trim: New file.
19690 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
19692 * lib/trim.h: New file.
19693 * lib/trim.c: New file.
19695 2006-09-05 Bruno Haible <bruno@clisp.org>
19697 * MODULES.html.sh (String handling): Add trim.
19699 2006-09-04 Karl Berry <karl@gnu.org>
19701 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
19702 until next release.
19704 2006-09-03 Bruno Haible <bruno@clisp.org>
19706 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
19709 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
19711 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
19712 not gl_GETLOADAVG. Omit unneeded semicolons.
19713 Problems reported by Ralf Wildenhues in
19714 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
19715 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
19716 at the end, which is the usual gnulib style.
19718 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
19719 of doing all the work ourselves.
19720 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
19721 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
19723 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
19725 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
19726 Problem reported by Ralf Wildenhues in
19727 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
19729 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
19730 HAVE_STRUCT_STATFS_F_FSTYPENAME.
19732 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
19734 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
19735 yesterday's patch by changing test -n to test -z.
19737 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
19739 * modules/getloadavg (Files): Add m4/getloadavg.m4.
19740 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
19741 the former is now obsolescent.
19743 * modules/chdir-long (Depends-on): Add fcntl.
19745 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
19747 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
19748 obsolescent, and programs should use gnulib instead.
19749 * m4/getloadavg.m4: New file, with contents taken from Autoconf
19750 but with prefixes changed.
19752 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
19754 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
19755 or stdbool.h, because they might not exist while configuring.
19757 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
19758 Don't include unistd.h or limits.h; not needed, since chdir-long.h
19760 (O_DIRECTORY): Remove.
19762 2006-08-31 Eric Blake <ebb9@byu.net>
19764 * gnulib-tool: Don't let emacs change spaces to TAB.
19766 2006-08-31 Bruno Haible <bruno@clisp.org>
19768 * gnulib-tool: When calling func_import more than once, do it in a
19770 Reported by Eric Blake <ebb9@byu.net>.
19772 2006-08-31 Bruno Haible <bruno@clisp.org>
19774 * gnulib-tool (nl): Remove variable.
19775 (sed_transform_lib_file): Use more robust test for config-h module.
19776 (func_import): Fix typo in 2006-08-25 patch.
19778 2006-08-31 Bruno Haible <bruno@clisp.org>
19780 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
19781 specified, augment Makefile.am variables instead of assigning them.
19783 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
19785 Work around a bug in both the Linux and SunOS 64-bit kernels:
19786 nanosleep mishandles sleeps for longer than 2**31 seconds.
19787 Problem reported by Frank v Waveren in
19788 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
19789 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
19790 Check for nanosleep bug.
19791 (LIB_NANOSLEEP): Append clock_gettime library if needed.
19793 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
19795 Work around a bug in both the Linux and SunOS 64-bit kernels:
19796 nanosleep mishandles sleeps for longer than 2**31 seconds.
19797 Problem reported by Frank v Waveren in
19798 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
19799 * lib/nanosleep.c (BILLION): New constant.
19800 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
19801 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
19804 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
19806 * modules/nanosleep (Depends-on): Add gettime.
19808 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
19809 and Simon Josefsson <jas@extundo.com>
19810 and Oskar Liljeblad <oskar@osk.mine.nu>
19812 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
19813 * gnulib-tool (func_import): New license type 'unmodifiable license
19815 * modules/fdl: Use it. Longer description.
19816 * module/gpl, module/lgpl: New files.
19818 2006-08-30 Jim Meyering <jim@meyering.net>
19820 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
19821 shadowing the parameter.
19823 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19827 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19829 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
19830 sharing with gnulib. Report by Eric Blake.
19832 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
19834 * modules/isapipe: New file.
19835 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
19837 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
19839 * modules/configmake (Makefile.am): Add a comment, and omit
19840 the CONFIGMAKE_ prefix from generated macro names. Suggested
19843 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
19845 * m4/isapipe.m4: New file.
19847 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
19849 * lib/isapipe.c, lib/isapipe.h: New files.
19851 2006-08-29 Jim Meyering <jim@meyering.net>
19853 * modules/configmake (Makefile.am): Make configmake.h depend on
19854 Makefile. Otherwise, a stale configmake.h could hang around.
19856 2006-08-29 Eric Blake <ebb9@byu.net>
19858 * lib/error.c (error_at_line, print_errno_message): Match libc, after
19859 resolution of upstream bug 3044.
19861 2006-08-29 Bruno Haible <bruno@clisp.org>
19863 * modules/localcharset (Depends-on): Add configmake.
19864 (Makefile.am): Remove setting of LIBDIR through DEFS.
19866 2006-08-29 Bruno Haible <bruno@clisp.org>
19868 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
19871 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
19873 * modules/fcntl: New file.
19874 * modules/chdir-safer (Depends-on): Add fcntl.
19875 * modules/fts: Likewise.
19876 * modules/mkdir-p: Likewise.
19878 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
19879 This undoes the most recent change, since we're now addressing the
19880 problem in a different way.
19882 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
19883 into output, since the output might be called Makefile.am even
19884 if $makefile_name is something different.
19885 (func_import): Use $makefile_am rather than
19886 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
19889 * modules/inttypes (Files): Add m4/inttypes-h.m4.
19891 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
19893 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
19894 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
19895 recent change to stdint.m4, since we're now addressing the problem in a
19898 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
19900 * m4/fcntl_h.m4: New file.
19902 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
19904 * lib/fcntl_.h: New file.
19905 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
19907 * lib/dirchownmod.c: Likewise.
19908 * lib/fts.c: Likewise.
19910 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
19911 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
19912 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
19913 just before including <inttypes.h>, to avoid circular inclusion.
19915 2006-08-28 Jim Meyering <jim@meyering.net>
19917 * doc/visibility.texi: Actually read and correct the grammar of the
19918 sentence affected by yesterday's change.
19920 2006-08-28 Eric Blake <ebb9@byu.net>
19922 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
19925 2006-08-28 Eric Blake <ebb9@byu.net>
19927 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
19929 2006-08-28 Eric Blake <ebb9@byu.net>
19931 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
19933 2006-08-28 Bruno Haible <bruno@clisp.org>
19935 * modules/c-strstr: New file, from GNU gettext.
19936 * MODULES.html.sh (String handling): Add c-strstr.
19938 2006-08-28 Bruno Haible <bruno@clisp.org>
19940 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
19942 Reported by Eric Blake.
19944 2006-08-28 Bruno Haible <bruno@clisp.org>
19946 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
19947 (VASNPRINTF): Return a string of length > INT_MAX without failing.
19948 * lib/vasprintf.c: Include errno.h, limits.h.
19949 (EOVERFLOW): New fallback definition.
19950 (vasprintf): Test here whether the string length is > INT_MAX.
19951 * lib/vsnprintf.c: Include errno.h, limits.h.
19952 (EOVERFLOW): New fallback definition.
19953 (vsnprintf): Fix bug when generated string was too long for the buffer.
19954 Test here whether the string length is > INT_MAX.
19956 2006-08-28 Bruno Haible <bruno@clisp.org>
19958 * lib/inttypes_.h (SCNX*): Remove definitions.
19959 Reported by Eric Blake.
19961 2006-08-28 Bruno Haible <bruno@clisp.org>
19963 * lib/c-strstr.h: New file, from GNU gettext.
19964 * lib/c-strstr.c: New file, from GNU gettext.
19966 2006-08-28 Bruno Haible <bruno@clisp.org>
19968 * gnulib-tool: Reorder some statements.
19970 2006-08-28 Bruno Haible <bruno@clisp.org>
19972 * gnulib-tool: New option --makefile-name.
19973 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
19975 (func_import): Write $makefile_name to the cache file, and read it from
19976 there unless explicitly specified. Use $makefile_name as file name
19977 instead of Makefile.am. Adjust the recommendations accordingly.
19979 2006-08-28 Bruno Haible <bruno@clisp.org>
19981 * gnulib-tool (func_verify_module): Check against misapplying patch.
19983 2006-08-28 Bruno Haible <bruno@clisp.org>
19985 * gnulib-tool (func_relativize, func_relconcat): New functions.
19986 Give an error if --local-dir is given with --update.
19987 Remove trailing slashes from $local_gnulib_dir.
19988 (func_import): Store the relativized $local_gnulib_dir in
19989 gnulib-cache.m4, and read it from there if not specified explicitly.
19991 2006-08-28 Bruno Haible <bruno@clisp.org>
19993 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
19994 is the current directory. Respect also $local_gnulib_dir.
19996 2006-08-28 Bruno Haible <bruno@clisp.org>
19997 Simon Josefsson <jas@extundo.com>
20000 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
20002 2006-08-27 Jim Meyering <jim@meyering.net>
20004 * doc/visibility.texi: Remove duplicate word: "pointer".
20006 2006-08-26 Bruno Haible <bruno@clisp.org>
20008 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
20009 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
20010 (Makefile.am): Create inttypes.h from inttypes_.h.
20011 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
20013 * modules/imaxabs: New file.
20015 * modules/imaxdiv: New file.
20017 2006-08-26 Bruno Haible <bruno@clisp.org>
20019 * m4/inttypes.m4: New file.
20020 * m4/_inttypes_h.m4: Remove file.
20021 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
20023 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
20025 * m4/imaxabs.m4: New file.
20027 * m4/imaxdiv.m4: New file.
20029 2006-08-26 Bruno Haible <bruno@clisp.org>
20031 * lib/inttypes_.h: New file.
20032 * lib/inttypes.h: Remove file.
20033 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
20035 * lib/imaxabs.c: New file.
20037 * lib/imaxdiv.c: New file.
20039 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
20041 New config-h module, so that "make" output needn't be cluttered
20042 by -DHAVE_CONFIG_H.
20043 * MODULES.html.sh (Support for building libraries and executables):
20045 * modules/config-h: New file.
20046 * gnulib-tool (nl, sed_transform_lib_file): New vars.
20047 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
20048 the config-h module is used.
20050 New configmake module, so that "make" output needn't be cluttered
20051 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
20052 * MODULES.html.sh (Support for building libraries and executables):
20054 * modules/configmake: New file.
20056 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
20058 * m4/config-h.m4: New file.
20060 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
20062 * config/srclist.txt: Add elisp-comp.
20064 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
20066 * MODULES.html.sh (Support for building libraries and executables):
20068 * build-aux/elisp-comp: New file.
20069 * modules/elisp-comp: New file.
20071 2006-08-24 Bruno Haible <bruno@clisp.org>
20073 * gnulib-tool (func_create_testdir): Use non-default values of
20074 sourcebase and m4base.
20076 2006-08-24 Bruno Haible <bruno@clisp.org>
20078 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
20081 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
20083 * modules/openat (Depends-on): Add lchown.
20085 2006-08-23 Bruno Haible <bruno@clisp.org>
20087 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
20088 of gl_LOCK_EARLY instead of gl_LOCK.
20090 2006-08-23 Bruno Haible <bruno@clisp.org>
20092 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
20094 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
20096 2006-08-23 Bruno Haible <bruno@clisp.org>
20098 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
20101 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
20102 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
20103 (gl_LOCK): New macro.
20105 2006-08-22 Simon Josefsson <jas@extundo.com>
20107 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
20110 2006-08-22 Simon Josefsson <jas@extundo.com>
20112 * MODULES.html.sh: Add "Support for maintaining and release
20115 * build-aux/gnupload: New file, from coreutils.
20117 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
20119 Avoid the need for AC_LIBSOURCES in m4 macros.
20120 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
20121 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
20122 * modules/check-version (EXTRA_DIST): Add check-version.h.
20123 * modules/crc (EXTRA_DIST): Add crc.h.
20124 * modules/des (EXTRA_DIST): Add des.h.
20125 * modules/gc (EXTRA_DIST): Add gc.h.
20126 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
20127 * modules/getline (EXTRA_DIST): Add getline.h.
20128 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
20129 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
20130 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
20131 * modules/md2 (EXTRA_DIST): Add md2.h.
20132 * modules/md4 (EXTRA_DIST): Add md4.h.
20133 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
20134 * modules/read-file (EXTRA_DIST): Add read-file.h.
20135 * modules/readline (EXTRA_DIST): Add readline.h.
20136 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
20137 rijndael-api-fst.h.
20139 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
20141 * m4/rijndael.m4 (gl_ARCFOUR):
20142 * m4/arctwo.m4 (gl_ARCTWO):
20143 * m4/check-version.m4 (gl_CHECK_VERSION):
20144 * m4/crc.m4 (gl_CRC):
20145 * m4/des.m4 (gl_DES):
20146 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
20147 * m4/gc.m4 (gl_GC):
20148 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
20149 * m4/getline.m4 (gl_FUNC_GETLINE):
20150 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
20151 * m4/hmac-md5.m4 (gl_HMAC_MD5):
20152 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
20153 * m4/md2.m4 (gl_MD2):
20154 * m4/md4.m4 (gl_MD4):
20155 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
20156 * m4/read-file.m4 (gl_FUNC_READ_FILE):
20157 * m4/readline.m4 (gl_FUNC_READLINE):
20158 * m4/rijndael.m4 (gl_RIJNDAEL):
20159 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
20160 to get the necessary .h files and whatnot.
20162 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
20164 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
20165 gnulib rather than the other way around.
20166 * config/srclistvars.sh (COREUTILS): Remove.
20168 2006-08-22 Jim Meyering <jim@meyering.net>
20170 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
20172 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
20174 2006-08-22 Eric Blake <ebb9@byu.net>
20176 * modules/regexprops-generic: New file.
20177 * MODULES.html.sh (Support for building documentation): List it.
20179 2006-08-22 Eric Blake <ebb9@byu.net>
20181 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
20182 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
20183 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
20184 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
20186 2006-08-22 Bruno Haible <bruno@clisp.org>
20188 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
20189 and lib_LTLIBRARIES like the other lib_* variables.
20191 2006-08-22 Bruno Haible <bruno@clisp.org>
20193 * build-aux/x-to-1.in: New file, from GNU gettext.
20195 2006-08-22 Bruno Haible <bruno@clisp.org>
20197 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
20200 2006-08-22 Bruno Haible <bruno@clisp.org>
20202 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
20205 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
20208 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
20210 Problem reported by Bruno Haible.
20212 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
20214 Avoid the need for AC_LIBSOURCES in m4 macros.
20215 * modules/acl (EXTRA_DIST): Add acl.h.
20216 * modules/argmatch (Files): Add m4/argmatch.m4.
20217 (configure.ac): Add gl_ARGMATCH.
20218 (EXTRA_DIST): Renamed from lib_SOURCES, for
20219 consistency with the other modules. Remove argmatch.c.
20220 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
20221 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
20222 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
20223 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
20224 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
20225 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
20226 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
20227 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
20228 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
20229 * modules/closeout (EXTRA_DIST): Add closeout.h.
20230 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
20231 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
20232 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
20233 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
20234 dirname.h; remove basename.c and stripslash.c.
20235 * modules/exclude (EXTRA_DIST): Add exclude.h.
20236 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
20237 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
20238 * modules/file-type (EXTRA_DIST): Add file-type.h.
20239 * modules/filemode (EXTRA_DIST): Add filemode.h.
20240 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
20241 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
20242 * modules/fpending (EXTRA_DIST): Add __fpending.h.
20243 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
20244 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
20245 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
20246 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
20247 * modules/getdate (EXTRA_DIST): Add getdate.c.
20248 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
20249 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
20250 * modules/getpass (EXTRA_DIST): Add getpass.h.
20251 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
20252 * modules/group-member (EXTRA_DIST): Add group-member.h.
20253 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
20254 * modules/hash (EXTRA_DIST): Add hash.h.
20255 * modules/human (EXTRA_DIST): Add human.h.
20256 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
20257 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
20258 * modules/lchown (EXTRA_DIST): Add lchown.h.
20259 * modules/long-options (EXTRA_DIST): Add long-options.h.
20260 * modules/lstat (EXTRA_DIST): Add lstat.h.
20261 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
20262 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
20263 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
20264 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
20265 * modules/memxor (EXTRA_DIST): Add memxor.h.
20266 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
20267 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
20268 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
20269 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
20270 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
20271 * modules/physmem (EXTRA_DIST): Add physmem.h.
20272 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
20273 * modules/posixver (EXTRA_DIST): Add posixver.h.
20274 * modules/quote (EXTRA_DIST): Add quote.h.
20275 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
20276 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
20277 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
20278 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
20279 regex_internal.h regexec.c.
20280 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
20281 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
20282 * modules/same (EXTRA_DIST): Add same.h.
20283 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
20284 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
20285 * modules/savedir (EXTRA_DIST): Add savedir.h.
20286 * modules/sha1 (EXTRA_DIST): Add sha1.h.
20287 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
20288 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
20289 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
20290 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
20291 * modules/strdup (EXTRA_DIST): Add strdup.h.
20292 * modules/strftime (EXTRA_DIST): Add strftime.h.
20293 * modules/strndup (EXTRA_DIST): Add strndup.h.
20294 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
20295 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
20296 * modules/time_r (EXTRA_DIST): Add time_r.h.
20297 * modules/timespec (EXTRA_DIST): Add timespec.h.
20298 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
20299 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
20300 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
20301 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
20302 * modules/userspec (EXTRA_DIST): Add userspec.h.
20303 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
20304 * modules/utimens (EXTRA_DIST): Add utimens.h.
20305 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
20306 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
20307 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
20308 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
20309 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
20310 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
20311 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
20312 * modules/yesno (EXTRA_DIST): Add yesno.h.
20314 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
20316 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
20318 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
20319 * m4/dev-ino.m4, same-inode.m4: Remove.
20321 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
20322 * m4/acl.m4 (AC_FUNC_ACL):
20323 * m4/backupfile.m4 (gl_BACKUPFILE):
20324 * m4/c-strtod.m4 (gl_C99_STRTOLD):
20325 * m4/canon-host.m4 (gl_CANON_HOST):
20326 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
20327 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
20328 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
20329 * m4/cloexec.m4 (gl_CLOEXEC):
20330 * m4/close-stream.m4 (gl_CLOSE_STREAM):
20331 * m4/closeout.m4 (gl_CLOSEOUT):
20332 * m4/dirfd.m4 (gl_FUNC_DIRFD):
20333 * m4/dirname.m4 (gl_DIRNAME):
20334 * m4/exclude.m4 (gl_EXCLUDE):
20335 * m4/exitfail.m4 (gl_EXITFAIL):
20336 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
20337 * m4/file-type.m4 (gl_FILE_TYPE):
20338 * m4/filemode.m4 (gl_FILEMODE):
20339 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
20340 * m4/fpending.m4 (gl_FUNC_FPENDING):
20341 * m4/fprintftime.m4 (gl_FPRINTFTIME):
20342 * m4/fts.m4 (gl_FUNC_FTS):
20343 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
20344 * m4/getdate.m4 (gl_GETDATE):
20345 * m4/gethrxtime.m4 (gl_GETHRXTIME):
20346 * m4/getpagesize.m4 (gl_GETPAGESIZE):
20347 * m4/getpass.m4 (gl_FUNC_GETPASS):
20348 * m4/gettime.m4 (gl_GETTIME):
20349 * m4/getugroups.m4 (gl_GETUGROUPS):
20350 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
20351 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
20352 * m4/hard-locale.m4 (gl_HARD_LOCALE):
20353 * m4/hash.m4 (gl_HASH):
20354 * m4/idcache.m4 (gl_IDCACHE):
20355 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
20356 * m4/lchown.m4 (gl_FUNC_LCHOWN):
20357 * m4/long-options.m4 (gl_LONG_OPTIONS):
20358 * m4/lstat.m4 (gl_FUNC_LSTAT):
20359 * m4/md5.m4 (gl_MD5):
20360 * m4/memcasecmp.m4 (gl_MEMCASECMP):
20361 * m4/memcoll.m4 (gl_MEMCOLL):
20362 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
20363 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
20364 * m4/memxor.m4 (gl_MEMXOR):
20365 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
20366 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
20367 * m4/modechange.m4 (gl_MODECHANGE):
20368 * m4/mountlist.m4 (gl_MOUNTLIST):
20369 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
20370 * m4/openat.m4 (gl_FUNC_OPENAT):
20371 * m4/pathmax.m4 (gl_PATHMAX):
20372 * m4/physmem.m4 (gl_PHYSMEM):
20373 * m4/posixtm.m4 (gl_POSIXTM):
20374 * m4/posixver.m4 (gl_POSIXVER):
20375 * m4/quote.m4 (gl_QUOTE):
20376 * m4/quotearg.m4 (gl_QUOTEARG):
20377 * m4/readtokens.m4 (gl_READTOKENS):
20378 * m4/readutmp.m4 (gl_READUTMP):
20379 * m4/regex.m4 (gl_REGEX):
20380 * m4/safe-read.m4 (gl_SAFE_READ):
20381 * m4/safe-write.m4 (gl_SAFE_WRITE):
20382 * m4/same.m4 (gl_SAME):
20383 * m4/save-cwd.m4 (gl_SAVE_CWD):
20384 * m4/savedir.m4 (gl_SAVEDIR):
20385 * m4/settime.m4 (gl_SETTIME):
20386 * m4/sha1.m4 (gl_SHA1):
20387 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
20388 * m4/stat-macros.m4 (gl_STAT_MACROS):
20389 * m4/stat-time.m4 (gl_STAT_TIME):
20390 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
20391 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
20392 * m4/strdup.m4 (gl_FUNC_STRDUP):
20393 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
20394 * m4/strndup.m4 (gl_FUNC_STRNDUP):
20395 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
20396 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
20397 * m4/time_r.m4 (gl_TIME_R):
20398 * m4/timespec.m4 (gl_TIMESPEC):
20399 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
20400 * m4/unlinkdir.m4 (gl_UNLINKDIR):
20401 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
20402 * m4/userspec.m4 (gl_USERSPEC):
20403 * m4/utimecmp.m4 (gl_UTIMECMP):
20404 * m4/utimens.m4 (gl_UTIMENS):
20405 * m4/xalloc.m4 (gl_XALLOC):
20406 * m4/xgetcwd.m4 (gl_XGETCWD):
20407 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
20408 * m4/xreadlink.m4 (gl_XREADLINK):
20409 * m4/xstrtod.m4 (gl_XSTRTOD):
20410 * m4/yesno.m4 (gl_YESNO):
20411 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
20412 to get the necessary .h files and whatnot.
20414 2006-08-21 Mark D. Baushke <mdb@gnu.org>
20415 Bruno Haible <bruno@clisp.org>
20417 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
20418 /bin/sh understanding of '!' conditional negation.
20420 2006-08-21 Jim Meyering <jim@meyering.net>
20422 * modules/openat (Depends-on): Really alphabetize.
20424 * modules/acl (Depends-on): Add error and quote.
20426 * check-module (find_included_lib_files): Add at-func.c to the
20427 ok-to-include-more-than-once white list.
20429 * modules/openat (Depends-on): Add lstat. Alphabetize.
20431 2006-08-21 Bruno Haible <bruno@clisp.org>
20433 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20434 Emit a pkgdata_DATA variable only if some snippets add contents to it.
20435 Reported by Martin Lambers <marlam@marlam.de>.
20437 2006-08-21 Bruno Haible <bruno@clisp.org>
20439 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
20440 specify an installation location, don't emit a noinst_LIBRARIES or
20441 noinst_LTLIBRARIES assignment.
20443 2006-08-21 Bruno Haible <bruno@clisp.org>
20446 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
20447 BeOS has mbrtowc() but no <wctype.h>.
20449 2006-08-21 Bruno Haible <bruno@clisp.org>
20452 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
20455 2006-08-21 Bruno Haible <bruno@clisp.org>
20458 * lib/mbchar.h: Include <wctype.h> only if it exists.
20460 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
20462 Remove files that are no longer needed by their respective modules.
20463 * m4/obstack.m4: Remove.
20464 * m4/strerror_r.m4: Remove.
20465 * m4/uint32_t.m4: Remove.
20466 * m4/uintptr_t.m4: Remove.
20467 * m4/ullong_max.m4: Remove.
20468 * m4/xstrtoimax.m4: Remove.
20469 * m4/xstrtoumax.m4: Remove.
20471 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
20472 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
20473 dependencies now capture this.
20475 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
20476 Do not use AC_LIBSOURCES, since gnulib modules now do this.
20477 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
20478 * m4/human.m4 (gl_HUMAN): Likewise.
20479 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
20480 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
20482 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
20484 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
20485 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
20487 * m4/human.m4 (gl_HUMAN): Likewise.
20488 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
20489 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
20490 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
20491 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
20492 * m4/xstrtol (gl_XSTRTOL): Likewise.
20494 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
20495 AC_TYPE_LONG_LONG_INT.
20496 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
20497 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
20498 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
20499 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
20501 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
20504 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
20505 (gl_PREREQ_XSTRTOUL): Remove.
20507 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
20509 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
20512 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
20514 Add and change modules to make it easier for coreutils to use
20516 * modules/backupfile (Files): Remove m4/d-ino.m4.
20517 (Depends-on): Add d-ino.
20518 * modules/cycle-check (Depends-on): Add stdint.
20519 (lib_SOURCES): Add cycle-check.h.
20520 * modules/d-ino: New module.
20521 * modules/d-type: New module.
20522 * modules/error (Files): Remove m4/strerror_r.m4.
20523 * modules/filemode (Files): Add m4/st_dm_mode.m4.
20524 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
20525 m4/inttypes_h.m4, m4/uintmax_t.m4.
20526 (Depends-on): Add stdint.
20527 (lib_SOURCES): Add fsusage.h.
20528 * modules/getcwd (Files): Remove d-ino.m4.
20529 (Depends-on): Add d-ino.
20530 * modules/getndelim2 (Depends-on): Add stdint.
20531 * modules/glob (Files): Remove m4/d-type.m4.
20532 (Depends-on): Add d-type.
20533 * modules/host-os: New module.
20534 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
20535 m4/inttypes_h.m4, m4/uintmax_t.m4.
20536 * Depends-on: Add stdint.
20537 (lib_SOURCES): Add human.h.
20538 * modules/inttostr (Files): Remove m4/intmax_t.m4,
20539 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
20540 m4/uintmax_t.m4, m4/ulonglong.m4.
20541 (Depends-on): Add stdint.
20542 (EXTRA_DIST): Add inttostr.h.
20543 * modules/lchmod: New module.
20544 * modules/link-follow: New module.
20545 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
20546 (Depends-on): Add lchmod.
20547 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
20548 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
20549 (Depends-on): Add stdint.
20550 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
20551 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
20552 (Depends-on): Add stdint.
20553 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
20554 * modules/perl: New module.
20555 * modules/regex (Depends-on): Add stdint.
20556 * modules/rmdir-errno: New module.
20557 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
20559 (Depends-on): Add stdint.
20560 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
20562 (Depends-on): Add stdint.
20563 * modules/unlink-busy: New module.
20564 * modules/utimecmp (Depends-on): Add stdint.
20565 * modules/uptime: New module.
20566 * modules/winsz-ioctl: New module.
20567 * modules/winsz-termios: New module.
20568 * modules/xnanosleep (Depends-on): Add nanosleep.
20569 * modules/ullong_max: Remove.
20570 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
20571 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
20572 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
20573 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
20574 (Depends-on): Add inttypes.
20575 (lib_SOURCES): Add xstrtol.h.
20576 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
20577 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
20578 * MODULES.html.sh: Move 'assert' into the assert section.
20579 Move 'dummy' into the linking section.
20581 Add section for compatibility checks for POSIX:2001 functions,
20582 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
20583 winsz-ioctl, and winsz-termios into it.
20585 Add top-level Misc section and put host-os, perl, and uptime
20588 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
20590 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
20591 now assume the stdint module. Do not include inttypes.h.
20592 * lib/fsusage.h: Likewise.
20593 * lib/getndelim2.c: Likewise.
20594 * lib/human.h: Likewise.
20595 * lib/inttostr.h: Likewise.
20596 * lib/obstack.c: Likewise.
20597 * lib/regex_internal.h: Likewise.
20598 * lib/tempname.c: Likewise.
20599 * lib/utimecmp.c: Likewise.
20600 * lib/xstrtol.h: Likewise.
20602 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
20604 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
20605 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
20606 * lib/xtime.h: Likewise.
20608 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
20610 * modules/openat (Files): Add lib/fchmodat.c.
20611 Fixes problem reported by Jay Youngman.
20613 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
20615 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
20616 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
20618 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
20619 Bruno Haible <bruno@clisp.org>
20621 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
20622 and is a script that invokes bison. Tighten the code. Add comments.
20624 2006-08-18 Jim Meyering <jim@meyering.net>
20626 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
20627 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
20628 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
20629 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
20631 2006-08-18 Bruno Haible <bruno@clisp.org>
20633 * modules/bison-i18n: New file.
20634 * MODULES.html.sh (Internationalization functions): Add it.
20636 2006-08-18 Bruno Haible <bruno@clisp.org>
20638 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
20639 sys/statvfs.h. When getmntinfo was found, check its declaration and
20640 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
20642 2006-08-18 Bruno Haible <bruno@clisp.org>
20644 * m4/bison-i18n.m4: New file, from bison.
20646 2006-08-18 Bruno Haible <bruno@clisp.org>
20648 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
20649 (ME_DUMMY): Treat "kernfs" as a dummy.
20650 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
20652 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
20654 Update from coreutils.
20656 2006-08-15 Jim Meyering <jim@meyering.net>
20658 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
20660 2006-01-17 Jim Meyering <jim@meyering.net>
20662 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
20664 2006-01-11 Jim Meyering <jim@meyering.net>
20666 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
20667 Check for the lchmod function.
20669 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
20671 Update from coreutils.
20673 * lib/__fpending.h: Add copyright notice.
20674 * lib/fprintftime.h: Likewise.
20675 * lib/savedir.c: Use (C) in copyright notice.
20676 * lib/savedir.h: Likewise.
20678 2006-08-15 Jim Meyering <jim@meyering.net>
20680 * lib/at-func.c: New file, with the logic of all emulated at-functions.
20681 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
20682 in support of the EXPECTED_ERRNO macro.
20683 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
20684 definitions. Instead, define the appropriate symbols and include
20686 * lib/mkdirat.c (mkdirat): Likewise.
20687 * lib/fchmodat.c (fchmodat): Likewise.
20688 (ENOSYS): Remove definition.
20689 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
20690 it. Don't include "unistd--.h" -- it wasn't ever used.
20692 2006-01-17 Jim Meyering <jim@meyering.net>
20694 Rewrite fts.c not to change the current working directory,
20695 by using openat, fstatat, fdopendir, etc..
20697 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
20698 (HAVE_OPENAT_SUPPORT): Define.
20699 [_LIBC] (fchdir): Don't undef or define; no longer used.
20700 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
20701 Now, this `function' always succeeds, and consumes its file descriptor
20702 parameter -- so callers must not close such FDs. Update callers.
20703 (diropen_fd, opendirat, cwd_advance_fd): New functions.
20704 (diropen): Add parameter, SP. Adjust all callers.
20705 Implement using diropen_fd, rather than open.
20706 (fts_open): Initialize new member, fts_cwd_fd.
20707 Remove fts_rft-setting code.
20708 (fts_close): Close fts_cwd_fd, if necessary.
20709 (__opendir2): Define in terms of opendir or opendirat,
20710 depending on whether the FST_NOCHDIR flag is set.
20711 (fts_build): Since fts_safe_changedir consumes its FD, and since
20712 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
20713 and close the dup'd file descriptor upon failure.
20714 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
20715 (fts_safe_changedir): Tweak semantics to reflect that this function
20716 now calls cwd_advance_fd and hence consumes its FD argument.
20717 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
20718 [struct FTS] (fts_rft): Remove now-unused member.
20719 [struct FTS] (fts_cycle.state): Improve comment.
20721 * lib/openat.c (openat_needs_fchdir): New function.
20722 * lib/openat.h (openat_needs_fchdir): Declare it.
20724 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
20726 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
20727 Problem and fix reported by Pádraig Brady in
20728 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
20730 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
20732 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
20734 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
20736 * lib/memcoll.c (memcoll): Optimize for the common case where the
20737 arguments are bytewise equal.
20739 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
20741 * doc/regexprops-generic.texi: Add a copyright notice.
20743 2006-08-15 Bruno Haible <bruno@clisp.org>
20745 * modules/tmpdir (License): Change to LGPL.
20747 2006-08-15 Bruno Haible <bruno@clisp.org>
20749 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
20752 2006-08-14 Simon Josefsson <jas@extundo.com>
20754 * config/srclist.txt: Add gnupload.
20756 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
20758 Change copyright notice from LGPL 2 to GPL 2, since that's the
20759 standard form used in the gnulib repository.
20760 * tests/test-lock.c: Likewise.
20761 * tests/test-stdint.c: Likewise.
20762 * tests/test-tls.c: Likewise.
20764 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
20765 prelude-manager. User shorter URLs for GNU projects, without '?'.
20766 Add copyright notice.
20768 * check-module: Add copyright notice. Output a copyright
20769 notice if "--version" is specified.
20770 * modules/COPYING: New file.
20771 * tests/test-getaddrinfo.c: Add copyright notice.
20772 * tests/test-verify.c: Likewise.
20774 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
20776 Change copyright notice from LGPL 2 to GPL 2, since that's the
20777 standard form used in the gnulib repository.
20778 * lib/lock.c: LGPL -> GPL.
20779 * lib/lock.h: Likewise.
20780 * lib/strnlen1.c: Likewise.
20781 * lib/strnlen1.h: Likewise.
20782 * lib/tls.c: Likewise.
20783 * lib/tls.h: Likewise.
20784 * lib/tmpdir.c: Likewise.
20786 * lib/TODO: Remove; this belongs only in coreutils.
20788 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
20790 Add copyright notices to long-enough files that lack them, since
20791 otherwise the files aren't clearly free. Use the same notice that
20792 getdate.texi already uses.
20793 * doc/alloca-opt.texi: Add copyright notice.
20794 * doc/alloca.texi: Likewise.
20795 * doc/ctime.texi: Likewise.
20796 * doc/functions.texi: Likewise.
20797 * doc/gcd.texi: Likewise.
20798 * doc/gnulib-tool.texi: Likewise.
20799 * doc/inet_ntoa.texi: Likewise.
20800 * doc/visibility.texi: Likewise.
20802 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
20803 * doc/quote.texi: Add copyright notice.
20805 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
20806 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
20807 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
20808 Mention SunOS 5.11. Mention that everything before SunOS 5.7
20809 is now obsolete, and give a pointer to the Sun list.
20810 Add copyright notice.
20812 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
20814 * config/srclistvars.sh: Add copyright notice.
20816 2006-08-14 Eric Blake <ebb9@byu.net>
20818 Import the following change from libc:
20820 2006-08-12 Ulrich Drepper <drepper@redhat.com>
20823 * lib/misc/error.c: Add space between program name and message if file
20826 2006-08-12 Karl Berry <karl@gnu.org>
20828 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
20829 remove, these originate in gnulib now.
20831 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20833 * doc/Makefile (standards.info standards.html standards.dvi):
20834 Also depend on make-stds.texi.
20836 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
20838 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
20839 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
20841 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
20842 in wchar_t. Problem reported by Eric Blake.
20844 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
20845 LEN is smaller than SIZE. Suggested by Bruno Haible.
20846 Also, help the compiler to keep LEN in a register.
20848 2006-08-11 Eric Blake <ebb9@byu.net>
20850 * users.txt: Sort. Add tar.
20852 2006-08-11 Bruno Haible <bruno@clisp.org>
20854 * users.txt: New file.
20856 2006-08-11 Bruno Haible <bruno@clisp.org>
20858 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
20859 before <wchar.h>. Needed for OSF/1 and BSD/OS.
20861 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
20863 * modules/snprintf (Depends-on): Remove minmax.
20864 (Maintainer): Add self and Bruno.
20866 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
20868 * lib/.cppi-disable: Add snprintf.h, socket_.h.
20869 * lib/snprintf.c: Include <errno.h> and <limits.h>.
20870 (EOVERFLOW): Define if the system does not.
20871 Do not include "minmax.h"; it wasn't used.
20872 (snprintf): Don't assume size_t promotes to an unsigned type.
20873 Fix bug when generated string was too long for the buffer: the
20874 buffer's contents are supposed to be the initial prefix of the
20875 output. Don't assume vasnprintf returns EOVERFLOW if the size
20876 exceeds INT_MAX; do the check ourselves.
20878 Import the following changes from libc:
20880 2006-06-02 Jakub Jelinek <jakub@redhat.com>
20882 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
20883 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
20884 set wc to the byte which couldn't be converted.
20885 (re_string_reconstruct): Don't clear valid_raw_len before calling
20886 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
20887 tip_context using re_string_context_at.
20889 2006-05-02 Ulrich Drepper <drepper@redhat.com>
20891 * lib/posix/regex.h: g++ still cannot handled [restrict].
20893 2006-04-21 Ulrich Drepper <drepper@redhat.com>
20895 * lib/posix/regex.h: Remove special handling for VMS.
20897 2006-08-10 Jim Meyering <jim@meyering.net>
20899 * modules/same-inode: New module.
20900 * modules/dev-ino: New module.
20901 * modules/cycle-check: Depend on these modules, rather than simply
20902 including their .h files.
20903 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
20904 required via m4/cycle-check.m4.
20905 * modules/same: Depend on new same-inode module, rather than
20906 including same-inode.h.
20907 * modules/chdir-safer: New file.
20909 * modules/chown (Depends-on): Add stat-macros.
20911 2006-08-10 Jim Meyering <jim@meyering.net>
20913 * m4/cycle-check.m4: New file.
20914 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
20915 * m4/dev-ino.m4, m4/same-inode.m4: New files.
20917 2006-08-10 Eric Blake <ebb9@byu.net>
20919 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
20920 in from original proposal.
20922 2006-08-10 Eric Blake <ebb9@byu.net>
20923 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20925 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
20928 2006-08-10 Bruno Haible <bruno@clisp.org>
20930 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
20933 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
20935 Sync from coreutils.
20937 2006-07-19 Mike Frysinger <vapier@gentoo.org>
20939 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
20940 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
20942 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
20944 * modules/restrict: Remove; no longer needed now that we assume
20945 Autoconf 2.59 or later.
20946 * MODULES.html.sh: Remove 'restrict'.
20947 * modules/argp (Depends-on): Remove 'restrict'.
20948 * modules/base64 (Depends-on): Likewise.
20949 * modules/gc (Depends-on): Likewise.
20950 * modules/getaddrinfo (Depends-on): Likewise.
20951 * modules/glob (Depends-on): Likewise.
20952 * modules/inet_ntop (Depends-on): Likewise.
20953 * modules/inet_pton (Depends-on): Likewise.
20954 * modules/memxor (Depends-on): Likewise.
20955 * modules/regex (Depends-on): Likewise.
20956 * modules/strtok_r (Depends-on): Likewise.
20957 * modules/time_r (Depends-on): Likewise.
20959 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
20961 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
20962 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
20963 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
20964 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
20965 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
20966 * m4/memxor.m4 (gl_MEMXOR): Likewise.
20967 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
20968 gl_C_RESTRICT replaced by AC_C_RESTRICT.
20970 Merge from coreutils.
20971 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
20972 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
20973 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
20974 * m4/time_r.m4 (gl_TIME_R): Likewise.
20976 2006-08-09 Karl Berry <karl@gnu.org>
20978 * config/srclist.txt: no more gettext-tools, per Bruno.
20980 2006-08-08 Eric Blake <ebb9@byu.net>
20982 * modules/verror: New module.
20983 * MODULES.html.sh: Document it.
20985 2006-08-08 Eric Blake <ebb9@byu.net>
20987 * lib/verror.h, lib/verror.c: New files.
20989 2006-08-08 Eric Blake <ebb9@byu.net>
20991 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
20992 verror_at_line output complies with GNU Coding Standards even when
20995 2006-08-07 Bruno Haible <bruno@clisp.org>
20997 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
20999 Reported by Ralf Wildenhues.
21001 2006-08-07 Bruno Haible <bruno@clisp.org>
21003 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
21004 in an AC_DEFUN. Needed so that the autoconf snippets can use
21007 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21009 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21010 Initialize pkgdata_DATA.
21011 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
21014 2006-08-06 Eric Blake <ebb9@byu.net>
21016 * lib/error.h: Fold in some upstream changes from glibc.
21017 * lib/error.c: Likewise.
21019 2006-08-04 Bruno Haible <bruno@clisp.org>
21021 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21022 Make the mostlyclean-local rule depend on mostlyclean-generic.
21023 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
21025 2006-07-31 Bruno Haible <bruno@clisp.org>
21027 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
21028 <stdlib.h>, <string.h>.
21030 2006-07-30 Bruno Haible <bruno@clisp.org>
21032 * modules/readlink (License): Change to LGPL.
21034 2006-07-30 Bruno Haible <bruno@clisp.org>
21036 * modules/javaversion (Makefile.am): Distribute javaversion.java and
21037 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
21038 set PKGDATADIR to point to it.
21040 2006-07-30 Bruno Haible <bruno@clisp.org>
21042 * modules/csharpexec (configure.ac): Comment out macro invocation.
21043 * modules/javaexec (configure.ac): Likewise.
21044 * modules/javacomp-script (configure.ac): Likewise.
21046 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
21048 2006-07-30 Bruno Haible <bruno@clisp.org>
21050 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
21053 2006-07-30 Bruno Haible <bruno@clisp.org>
21055 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
21057 2006-07-30 Bruno Haible <bruno@clisp.org>
21059 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21060 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
21063 2006-07-29 Bruno Haible <bruno@clisp.org>
21065 Make it possible for gnulib-tool to work with locally modified or
21066 augmented gnulib repositories.
21067 * gnulib-tool (func_usage): Document --local-dir option.
21068 (local_gnulib_dir): New variable.
21069 Handle --local-dir option.
21070 (func_lookup_file): New function.
21071 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
21072 (func_get_description, func_get_filelist, func_get_description,
21073 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
21074 func_get_automake_snippet, func_get_include_directive,
21075 func_get_license, func_get_maintainer): Use func_lookup_file.
21076 (func_import, func_create_testdir): Use func_lookup_file.
21078 2006-07-29 Bruno Haible <bruno@clisp.org>
21080 * modules/setenv (Depends-on): Add unistd.
21082 2006-07-29 Bruno Haible <bruno@clisp.org>
21084 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
21086 2006-07-29 Bruno Haible <bruno@clisp.org>
21088 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
21090 2006-07-29 Bruno Haible <bruno@clisp.org>
21092 * gnulib-tool (import, update): If there is no Makefile.am, look at
21093 aclocal.m4, instead of bailing out.
21095 2006-07-29 Bruno Haible <bruno@clisp.org>
21097 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
21098 Categorize the options by when they are useful.
21100 2006-07-29 Bruno Haible <bruno@clisp.org>
21102 * gnulib-tool (func_usage): Document option --no-libtool.
21103 Handle option --no-libtool.
21104 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
21105 for changed semantics of $libtool variable.
21106 (func_import): Likewise. If libtool is not used, show this through
21107 an option --no-libtool.
21108 (func_create_testdir): Update.
21110 2006-07-29 Bruno Haible <bruno@clisp.org>
21112 * gnulib-tool (func_import): Extend error message about missing
21115 2006-07-29 Bruno Haible <bruno@clisp.org>
21117 * gnulib-tool (func_import): Don't create the $docbase directory if
21118 there is no file to store there.
21120 2006-07-29 Bruno Haible <bruno@clisp.org>
21122 * gnulib-tool (autoconf_minversion): If a --dir option is given and
21123 relevant, look for configure.ac there, not in the current directory.
21124 Also use a simple search for AC_PREREQ, not "autoconf --trace".
21126 2006-07-29 Bruno Haible <bruno@clisp.org>
21128 * gnulib-tool (SORT): New variable.
21129 (func_usage): Undocument --assume-autoconf option.
21130 Remove --assume-autoconf option handling.
21131 (autoconf_minversion): Determine from the contents of configure.ac.
21132 (func_import): Remove autoconf_minversion handling.
21133 Suggested by Eric Blake.
21135 2006-07-29 Bruno Haible <bruno@clisp.org>
21137 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
21139 2006-07-29 Bruno Haible <bruno@clisp.org>
21141 * config/srclist.txt (*setenv.[ch]): Remove rules.
21143 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21145 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
21147 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21149 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
21152 2006-07-28 Simon Josefsson <jas@extundo.com>
21154 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
21155 * modules/inet_pton (Depends-on): Likewise.
21157 2006-07-28 Simon Josefsson <jas@extundo.com>
21159 * m4/netinet_in_h.m4: New file.
21161 2006-07-28 Simon Josefsson <jas@extundo.com>
21163 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
21166 2006-07-28 Simon Josefsson <jas@extundo.com>
21168 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
21171 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
21173 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
21174 setgid on directories only if they set these bits.
21175 * lib/modechange.h: Remove obsolete comment about masks.
21177 2006-07-28 Eric Blake <ebb9@byu.net>
21179 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
21182 2006-07-28 Bruno Haible <bruno@clisp.org>
21184 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
21186 2006-07-28 Bruno Haible <bruno@clisp.org>
21188 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
21190 2006-07-28 Bruno Haible <bruno@clisp.org>
21192 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
21193 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
21195 Avoids link error on FreeBSD 4.x.
21196 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21198 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
21200 * lib/mbswidth.c (iswcntrl): Likewise.
21202 2006-07-27 Bruno Haible <bruno@clisp.org>
21204 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
21207 2006-07-27 Bruno Haible <bruno@clisp.org>
21209 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
21210 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
21213 2006-07-26 Eric Blake <ebb9@byu.net>
21215 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
21217 2006-07-26 Eric Blake <ebb9@byu.net>
21219 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
21220 like mingw that lack mkstemp.
21221 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
21222 avoid compilation warning on mingw.
21224 2006-07-26 Bruno Haible <bruno@clisp.org>
21226 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
21227 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
21228 INT_FAST*_MIN, INTPTR_MIN.
21230 2006-07-25 Bruno Haible <bruno@clisp.org>
21232 * modules/version-etc (Depends-on): Add stdarg.
21234 2006-07-25 Bruno Haible <bruno@clisp.org>
21236 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
21239 2006-07-25 Bruno Haible <bruno@clisp.org>
21241 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
21242 defined in <stdarg.h> or config.h.
21244 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
21246 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
21247 (gl_STDIO_SAFER): Remove.
21249 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
21251 * MODULES.html.sh (File stream based Input/Output):
21252 Add fopen-safer, tmpfile-safer; remove stdio-safer.
21253 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
21254 * modules/fopen-safer, modules/tmpfile-safer: New files.
21255 * modules/stdio-safer: Remove.
21257 2006-07-24 Bruno Haible <bruno@clisp.org>
21259 * modules/tmpdir: New file.
21260 * MODULES.html.sh (File system functions): Add it.
21262 2006-07-24 Bruno Haible <bruno@clisp.org>
21264 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
21265 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
21267 2006-07-24 Bruno Haible <bruno@clisp.org>
21269 * modules/clean-temp: New file.
21271 2006-07-24 Bruno Haible <bruno@clisp.org>
21273 * m4/tmpdir.m4: New file, from GNU gettext.
21275 2006-07-24 Bruno Haible <bruno@clisp.org>
21277 * lib/tmpdir.h: New file, from GNU gettext.
21278 * lib/tmpdir.c: New file, from GNU gettext.
21280 2006-07-24 Bruno Haible <bruno@clisp.org>
21282 * lib/clean-temp.h: New file, from GNU gettext.
21283 * lib/clean-temp.c: New file, from GNU gettext.
21285 2006-07-23 Eric Blake <ebb9@byu.net>
21287 * modules/stdio-safer (Files): Add tmpfile-safer.c.
21288 (Depends-on): Add binary-io.
21290 2006-07-23 Eric Blake <ebb9@byu.net>
21292 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
21294 2006-07-23 Eric Blake <ebb9@byu.net>
21296 * lib/tmpfile-safer.c: New file.
21297 * lib/stdio-safer.h (fopen_safer): Add prototype.
21298 * lib/stdio--.h (tmpfile): Make safer.
21300 2006-07-23 Bruno Haible <bruno@clisp.org>
21302 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
21303 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
21304 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
21305 gl_linked_remove_at): Use it.
21307 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21308 and Simon Josefsson <jas@extundo.com>
21310 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
21312 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
21314 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
21316 * modules/close-stream: New file.
21317 * modules/closeout (Description): Make it clear that it exits
21318 with a diagnostic on error.
21319 (Depends-on): Add close-stream. Remove fpending, stdbool.
21320 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
21322 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
21324 * m4/close-stream.m4: New file.
21326 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
21328 * lib/close-stream.c, lib/close-stream.h: New files.
21330 2006-07-22 Bruno Haible <bruno@clisp.org>
21332 Merge from GNU gettext 0.15.
21334 2006-05-01 Bruno Haible <bruno@clisp.org>
21336 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
21338 2006-07-22 Bruno Haible <bruno@clisp.org>
21340 * modules/javaversion: New file.
21341 * MODULES.html.sh (Java): Add javaversion.
21343 2006-03-12 Bruno Haible <bruno@clisp.org>
21345 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
21347 2005-12-04 Bruno Haible <bruno@clisp.org>
21349 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
21352 2006-06-21 Bruno Haible <bruno@clisp.org>
21354 Avoid warnings from recent versions of mcs.
21355 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
21356 -o, -L, -r any more. Use options documented since mcs-1.0
21357 instead. Similarly for -g.
21359 2005-12-04 Bruno Haible <bruno@clisp.org>
21361 * build-aux/csharpcomp.sh.in: Suffix for resources is
21362 .resources, not .resource.
21364 2005-07-09 Bruno Haible <bruno@clisp.org>
21366 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
21368 Reported by Mark Junker <mjscod@gmx.de>.
21370 2006-07-22 Bruno Haible <bruno@clisp.org>
21372 * modules/gettext: Upgrade to gettext-0.15.
21373 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
21375 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
21377 2006-07-22 Bruno Haible <bruno@clisp.org>
21379 Merge from GNU gettext 0.15.
21381 2006-03-25 Bruno Haible <bruno@clisp.org>
21383 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
21385 2006-07-21 Bruno Haible <bruno@clisp.org>
21387 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
21390 2006-05-09 Bruno Haible <bruno@clisp.org>
21392 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
21393 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
21394 for the conftestver execution.
21396 2006-05-01 Bruno Haible <bruno@clisp.org>
21398 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
21399 optional target-version argument. Verify that the compiler
21400 groks source of the specified source-version, or add -source
21401 option as necessary. Verify that the compiler produces
21402 bytecode in the specified target-version, or add -target and
21403 -source options as necessary. Make the result of the test
21404 available as variable CONF_JAVAC. Also log error output in
21407 2006-03-11 Bruno Haible <bruno@clisp.org>
21409 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
21411 2006-05-09 Bruno Haible <bruno@clisp.org>
21413 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
21414 CLASSPATH_SEPARATOR to a semicolon.
21416 2006-03-12 Bruno Haible <bruno@clisp.org>
21418 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
21419 available as variable CONF_JAVA, for subsequent autoconf
21420 tests. Also log error output in config.log.
21422 2006-07-19 Bruno Haible <bruno@clisp.org>
21424 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
21425 that getline works on glibc2 systems. Needed to avoid trouble
21427 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
21429 2005-12-04 Bruno Haible <bruno@clisp.org>
21431 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
21432 launcher (untested).
21434 2005-12-04 Bruno Haible <bruno@clisp.org>
21436 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
21438 2006-07-22 Bruno Haible <bruno@clisp.org>
21440 * gettext.m4: Update from GNU gettext-0.15.
21441 * nls.m4: Likewise.
21443 * inttypes-pri.m4: Likewise.
21444 * inttypes-h.m4: Renamed from inttypes.m4.
21445 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
21447 2006-07-22 Bruno Haible <bruno@clisp.org>
21449 Merge from GNU gettext 0.15.
21451 2005-07-05 Bruno Haible <bruno@clisp.org>
21453 * printf-args.c (printf_fetchargs): Work around broken
21454 definition of wint_t on mingw.
21456 2005-02-12 Bruno Haible <bruno@clisp.org>
21458 * xallocsa.h: Add extern "C" for C++.
21460 2006-05-17 Bruno Haible <bruno@clisp.org>
21462 Cygwin portability.
21463 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
21465 2006-04-30 Bruno Haible <bruno@clisp.org>
21467 * progreloc.c: Include <mach-o/dyld.h> if available.
21468 (find_executable): Use _NSGetExecutablePath when possible.
21470 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
21472 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
21475 2005-12-29 Bruno Haible <bruno@clisp.org>
21477 * progreloc.c (set_program_name_and_installdir): Fix
21480 2005-12-04 Bruno Haible <bruno@clisp.org>
21482 Cygwin portability.
21483 * progreloc.c: Include <windows.h> also on Cygwin.
21484 (find_executable): Add support for Cygwin.
21485 (set_program_name_and_installdir): Handle also platforms with
21488 2006-07-11 Bruno Haible <bruno@clisp.org>
21490 * javacomp.c: Fix a comment.
21491 Reported by Jim Meyering.
21493 2006-04-30 Bruno Haible <bruno@clisp.org>
21495 * javacomp.h (compile_java_class): Add source_version,
21496 target_version arguments.
21497 * javacomp.c: Rewritten to choose only a compiler that
21498 respects the specified source_version and target_version.
21500 2006-06-27 Bruno Haible <bruno@clisp.org>
21502 Assume correct S_ISDIR macro.
21503 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
21505 2006-07-22 Bruno Haible <bruno@clisp.org>
21507 * javaversion.h: New file, from GNU gettext.
21508 * javaversion.c: New file, from GNU gettext.
21509 * javaversion.java: New file, from GNU gettext.
21510 * javaversion.class: New file, from GNU gettext.
21512 2006-05-17 Bruno Haible <bruno@clisp.org>
21514 Cygwin portability.
21515 * javaexec.c (execute_java_class): Test for jview program
21518 2006-04-09 Bruno Haible <bruno@clisp.org>
21520 * fatal-signal.c: Don't include string.h.
21521 (at_fatal_signal): Use a copying loop instead of memcpy.
21523 2005-12-04 Bruno Haible <bruno@clisp.org>
21525 * csharpexec.c: Add support for 'clix' launcher (untested).
21526 (execute_csharp_using_sscli): New function.
21527 (execute_csharp_program): Call it.
21529 2006-06-21 Bruno Haible <bruno@clisp.org>
21531 Avoid warnings from recent versions of mcs.
21532 * csharpcomp.c (compile_csharp_using_mono): Don't use options
21533 -o, -L, -r any more. Use options documented since mcs-1.0
21534 instead. Similarly for -g.
21536 2005-07-09 Bruno Haible <bruno@clisp.org>
21538 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
21540 Reported by Mark Junker <mjscod@gmx.de>.
21542 2006-06-17 Bruno Haible <bruno@clisp.org>
21544 * config.charset: Update for NetBSD 3.0.
21546 2006-05-17 Bruno Haible <bruno@clisp.org>
21548 Cygwin portability.
21549 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
21551 2006-05-16 Bruno Haible <bruno@clisp.org>
21553 * localcharset.c [CYGWIN]: Include <windows.h>.
21554 (get_charset_aliases): For Cygwin, return the same CPxxx
21555 aliases list as under WIN32.
21556 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
21557 the environment variables. Fall back to GetACP().
21559 2006-04-05 Bruno Haible <bruno@clisp.org>
21561 * config.charset: Update Juan Manuel Guerrero's address.
21563 2005-02-12 Bruno Haible <bruno@clisp.org>
21565 * allocsa.h: Add extern "C" for C++.
21567 2005-02-10 Bruno Haible <bruno@clisp.org>
21569 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
21570 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
21572 2006-07-22 Bruno Haible <bruno@clisp.org>
21574 * gettext.h: Update to GNU gettext-0.15.
21576 2006-07-22 Bruno Haible <bruno@clisp.org>
21578 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
21579 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
21580 lib-prefix.m4, longdouble.m4, ssize_t.m4.
21582 2006-07-21 Eric Blake <ebb9@byu.net>
21584 * modules/stdlib-safer: New file.
21585 * MODULES.html.sh (File stream based Input/Output): Add
21588 2006-07-21 Eric Blake <ebb9@byu.net>
21590 * lib/stdlib-safer.h: New file from coreutils, required by
21593 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
21595 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
21597 2006-07-20 Bruno Haible <bruno@clisp.org>
21599 * gnulib-tool: Recognize new option --assume-autoconf.
21600 (autoconf_minversion): New variable.
21601 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
21603 2006-07-20 Bruno Haible <bruno@clisp.org>
21605 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
21607 2006-07-19 Derek R. Price <derek@ximbiot.com>
21609 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
21610 Reindent and repaginate.
21612 2006-07-19 Derek Price <derek@ximbiot.com>
21614 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
21617 2006-07-17 Bruno Haible <bruno@clisp.org>
21619 * modules/list: New file.
21620 * modules/array-list: New file.
21621 * modules/carray-list, modules/carray-list-tests: New files.
21622 * modules/linked-list, modules/linked-list-tests: New files.
21623 * modules/avltree-list, modules/avltree-list-tests: New files.
21624 * modules/rbtree-list, modules/rbtree-list-tests: New files.
21625 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
21626 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
21627 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
21628 * modules/oset: New file.
21629 * modules/array-oset: New file.
21630 * modules/avltree-oset, modules/avltree-oset-tests: New files.
21631 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
21632 * tests/test-carray_list.c: New file.
21633 * tests/test-linked_list.c: New file.
21634 * tests/test-avltree_list.c: New file.
21635 * tests/test-rbtree_list.c: New file.
21636 * tests/test-linkedhash_list.c: New file.
21637 * tests/test-avltreehash_list.c: New file.
21638 * tests/test-rbtreehash_list.c: New file.
21639 * tests/test-avltree_oset.c: New file.
21640 * tests/test-rbtree_oset.c: New file.
21641 * MODULES.html.sh (Container data structures): New section.
21643 2006-07-17 Bruno Haible <bruno@clisp.org>
21645 * m4/gl_list.m4: New file.
21647 2006-07-17 Bruno Haible <bruno@clisp.org>
21649 * lib/gl_list.h: New file.
21650 * lib/gl_list.c: New file.
21651 * lib/gl_array_list.h: New file.
21652 * lib/gl_array_list.c: New file.
21653 * lib/gl_carray_list.h: New file.
21654 * lib/gl_carray_list.c: New file.
21655 * lib/gl_linked_list.h: New file.
21656 * lib/gl_linked_list.c: New file.
21657 * lib/gl_anylinked_list1.h: New file.
21658 * lib/gl_anylinked_list2.h: New file.
21659 * lib/gl_avltree_list.h: New file.
21660 * lib/gl_avltree_list.c: New file.
21661 * lib/gl_anyavltree_list1.h: New file.
21662 * lib/gl_anyavltree_list2.h: New file.
21663 * lib/gl_rbtree_list.h: New file.
21664 * lib/gl_rbtree_list.c: New file.
21665 * lib/gl_anyrbtree_list1.h: New file.
21666 * lib/gl_anyrbtree_list2.h: New file.
21667 * lib/gl_anytree_list1.h: New file.
21668 * lib/gl_anytree_list2.h: New file.
21669 * lib/gl_linkedhash_list.h: New file.
21670 * lib/gl_linkedhash_list.c: New file.
21671 * lib/gl_anyhash_list1.h: New file.
21672 * lib/gl_anyhash_list2.h: New file.
21673 * lib/gl_avltreehash_list.h: New file.
21674 * lib/gl_avltreehash_list.c: New file.
21675 * lib/gl_rbtreehash_list.h: New file.
21676 * lib/gl_rbtreehash_list.c: New file.
21677 * lib/gl_anytreehash_list1.h: New file.
21678 * lib/gl_anytreehash_list2.h: New file.
21680 * lib/gl_oset.h: New file.
21681 * lib/gl_oset.c: New file.
21682 * lib/gl_array_oset.h: New file.
21683 * lib/gl_array_oset.c: New file.
21684 * lib/gl_avltree_oset.h: New file.
21685 * lib/gl_avltree_oset.c: New file.
21686 * lib/gl_rbtree_oset.h: New file.
21687 * lib/gl_rbtree_oset.c: New file.
21688 * lib/gl_anytree_oset.h: New file.
21690 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
21692 * m4/mkancesdirs.m4: New file.
21693 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
21694 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
21695 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
21698 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
21700 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
21701 * lib/mkancesdirs.h: New files.
21702 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
21703 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
21704 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
21705 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
21706 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
21707 callers changed. Revamp internals significantly, by not
21708 attempting to create directories that are temporarily more
21709 permissive than the final results. Do not attempt to use
21710 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
21711 This removes some race conditions, fixes some bugs, and simplifies
21712 things. Use new dirchownmod function to do owner and mode changes.
21713 * lib/mkdir-p.h: Likewise.
21714 * lib/modechange.c (octal_to_mode): New function.
21715 (struct mode_change): New member mentioned.
21716 (make_node_op_equals): New arg mentioned. All callers changed.
21717 (mode_compile): Keep track of which mode bits the user has explicitly
21719 (mode_adjust): New arg DIR, so that we implement the X op correctly.
21720 New arg PMODE_BITS, to keep track of which mode bits the user
21721 mentioned; it treats S_ISUID and S_ISGID speciall.
21722 All callers changed.
21723 * lib/modechange.h: Likewise.
21725 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
21727 * MODULES.html.sh: Add mkancestors.
21728 * modules/mkancesdirs: New module.
21729 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
21730 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
21731 The chdir-safer and afs files are now orphans; I'll remove them
21732 unless someone speaks up.
21733 Add lib/dirchownmod.c, lib/dirchownmod.h.
21734 (Depends-on): Remove alloca, chown, save-cwd, dirname.
21735 Add lchown, mkancesdirs.
21736 (Maintainer): Add self.
21738 2006-07-15 Karl Berry <karl@gnu.org>
21740 * gnulib-tool: help message wording/arrangement.
21742 2006-07-14 Simon Josefsson <jas@extundo.com>
21744 * doc/gnulib.texi (Libtool and Windows): New section.
21746 2006-07-12 Simon Josefsson <jas@extundo.com>
21748 * modules/gendocs (License): Fix license, approved by Karl.
21750 2006-07-12 Eric Blake <ebb9@byu.net>
21752 * MODULES.html.sh: Add gendocs.
21754 2006-07-11 Eric Blake <ebb9@byu.net>
21756 * modules/fdl: New module, to install doc/fdl.texi.
21757 * MODULES.html.sh: Add new section for documentation modules.
21758 * gnulib-tool: Avoid space-tab.
21759 (--doc-base): New option, to manage files from doc.
21761 2006-07-11 Eric Blake <ebb9@byu.net>
21763 * m4/absolute-header.m4: Fix comments to match recent change.
21765 2006-07-11 Eric Blake <ebb9@byu.net>
21767 * gnulib-tool: List --doc-base before --tests-base.
21769 2006-07-11 Derek R. Price <derek@ximbiot.com>
21771 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
21773 2006-07-11 Bruno Haible <bruno@clisp.org>
21775 * README: Mention where to put documentation.
21777 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21779 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
21781 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
21783 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
21786 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
21788 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
21789 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
21790 "no/such/file/stdint.h" when there is no such file, so that
21791 the resulting C code can be parsed by dodgy compilers.
21792 Problems reported by Bob Proulx.
21794 2006-07-10 Derek R. Price <derek@ximbiot.com>
21796 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
21797 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
21798 macros into the GNU _D_EXACT_NAMLEN.
21799 * lib/savedir.c: Likewise.
21800 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
21802 2006-07-10 Derek R. Price <derek@ximbiot.com>
21803 and Paul Eggert <eggert@cs.ucla.edu>
21805 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
21807 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
21808 macros into the GNU _D_EXACT_NAMLEN.
21810 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
21812 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
21813 around the absolute name, to work around a problem with the HP-UX
21814 11.23 native C compiler, reported by Bob Proulx.
21816 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
21818 * doc/maintain.texi, make-stds.texi: Sync from
21819 <http://savannah.gnu.org/projects/gnustandards>.
21821 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
21823 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
21825 2006-07-09 Jim Meyering <jim@meyering.net>
21827 * m4/glob.m4: Remove a doubled word in a comment.
21829 2006-07-09 Jim Meyering <jim@meyering.net>
21831 * lib/argp-pv.c: Remove a doubled word in a comment.
21832 * lib/check-version.c (check_version): Likewise.
21833 * lib/javacomp.c (compile_java_class): Likewise.
21835 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
21837 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
21838 for the benefit of people using Autoconf 2.60. If you want to
21839 support older Autoconf versions you can copy m4/onceonly_2_57.m4
21840 (or m4/onceonly.m4, if pre-2.57) manually.
21842 2006-07-08 Jim Meyering <jim@meyering.net>
21844 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
21846 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
21847 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
21850 2006-07-08 Jim Meyering <jim@meyering.net>
21852 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
21854 2006-07-07 Simon Josefsson <jas@extundo.com>
21856 * tests/test-crc.c: Change expected crc value, the test vector
21857 were probably computed using the old broken crc.c?
21859 2006-07-06 Simon Josefsson <jas@extundo.com>
21861 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
21862 now the canonical place for the M4 file).
21864 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
21865 from the sys_socket dependency now.
21867 * modules/inet_pton (Files): Ditto.
21869 * modules/inet_ntop (Files): Ditto.
21871 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
21873 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
21874 not gl_PREREQ_GETUSERSHELL.
21876 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21878 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
21879 with only one argument, for Autoconf 2.60.
21880 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
21881 expand to nothing, so add a shell command to avoid syntax error.
21882 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
21884 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21886 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
21888 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
21890 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
21891 no longer needed. Check for isblank decl.
21892 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
21893 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
21896 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
21898 * lib/getloadavg.c: Use __VMS, not VMS.
21899 * lib/getopt.c: Likewise.
21900 * lib/getpagesize.h: Likewise.
21901 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
21902 and probably does not work.
21904 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
21906 * lib/.cppi-disable: Add wcwidth.
21907 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
21908 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
21909 (ISGRAPH): Remove. All uses changed to isgraph.
21910 (FOLD) [!defined _LIBC]: Remove special case.
21911 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
21912 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
21914 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
21917 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
21919 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
21920 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
21921 brackets. Other minor changes to suppress some compiler
21924 2006-07-06 Derek R. Price <derek@ximbiot.com>
21925 and Paul Eggert <eggert@cs.ucla.edu>
21927 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
21928 of invoking obsolescent AC_HEADER_DIRENT macro.
21929 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
21930 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
21931 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21932 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
21933 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
21934 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
21935 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
21936 * m4/readdir.m4: Remove; no longer needed.
21938 2006-07-06 Derek R. Price <derek@ximbiot.com>
21939 and Paul Eggert <eggert@cs.ucla.edu>
21941 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
21942 Don't worry about this obsolete case any more.
21943 (HAVE_DIR): Remove. All uses removed; we now assume you can read
21945 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
21946 worry about this obsolete case any more.
21947 * lib/fts.c: Likewise.
21948 * lib/getcwd.c: Likewise.
21949 * lib/glob.h: Likewise.
21950 * lib/savedir.c: Likewise.
21952 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
21954 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
21955 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
21956 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
21959 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
21960 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
21961 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
21963 * m4/getdate.m4 (gl_GETDATE): Likewise.
21964 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
21965 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
21966 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
21967 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
21968 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
21969 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
21970 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
21973 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
21975 * lib/memcasecmp.c: Include <limits.h>.
21976 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
21977 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
21978 Don't assume isdigit succeeds only on '0' through '9'.
21980 2006-07-05 Eric Blake <ebb9@byu.net>
21982 * modules/getaddrinfo (Depends-on): Add snprintf.
21984 2006-07-05 Eric Blake <ebb9@byu.net>
21986 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
21987 to avoid 'header present but could not be compiled' on cygwin.
21989 2006-07-05 Eric Blake <ebb9@byu.net>
21991 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
21992 missing from netdb.h.
21993 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
21995 2006-07-05 Derek R. Price <derek@ximbiot.com>
21997 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
21999 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
22000 * m4/getdate.m4 (gl_GETDATE): Likewise.
22001 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
22002 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
22003 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
22004 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
22005 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
22007 2006-07-05 Derek R. Price <derek@ximbiot.com>
22009 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
22010 All uses of is_space replaced by isspace.
22011 * lib/exit.h: Don't talk about STDC_HEADERS.
22012 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
22013 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
22014 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
22015 replaced by isprint etc.
22016 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
22017 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
22018 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
22019 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
22020 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
22021 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
22023 2006-07-05 Bruno Haible <bruno@clisp.org>
22025 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
22026 the function exists, before testing against AIX.
22027 Reported by Martin Lambers <marlam@marlam.de>.
22029 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
22031 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
22032 From Mark D. Baushke.
22034 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
22036 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
22037 to the absolute name, not just one, to bypass Sun C 5.8's
22038 "warning: #include of /usr/include/... may be non-portable".
22040 2006-07-04 Eric Blake <ebb9@byu.net>
22042 * modules/dirname-tests: New test module.
22043 * tests/test-dirname.c: New file, replacing dirname.c
22044 TEST_DIRNAME section that was recently deleted.
22046 2006-07-04 Bruno Haible <bruno@clisp.org>
22048 Assume ANSI C header files and <ctype.h> functions.
22049 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
22050 (mbsnwidth): Use isprint, iscntrl instead.
22052 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
22054 Merge from coreutils.
22055 * MODULES.html.sh: Add xstrtold.
22056 * modules/xstrtold: New file.
22057 * modules/cycle-check (Files): Add lib/same-inode.h.
22058 * modules/dirname (Files): Add m4/double-slash-root.m4.
22059 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
22060 * modules/mkdir-p (Files): Add lib/same-inode.h.
22061 * modules/same (Files): Add lib/same-inode.h.
22063 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
22065 * m4/absolute-header.m4: Renamed from full-header-path.m4.
22066 This is to keep the terminology clean; POSIX talks about
22067 "absolute pathnames", not "full pathnames", but the GNU
22068 Coding Standards say to use "path" for something else;
22069 so use "absolute" to keep both sides happy.
22070 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
22071 Set gl_absolute_header, not gl_full_header_path.
22072 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
22073 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
22076 Merge from coreutils.
22078 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
22080 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
22081 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
22082 want to require the building of c-strtod.o.
22083 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
22084 needs -lm directly.
22085 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
22087 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
22089 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
22090 --as-needed option if available. Problem reported by Albert Chin in
22091 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
22092 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
22093 cc merely issues a bunch of annoying warnings for --as-needed
22094 (this problem was reported by Bob Proulx). Also, try linking with
22095 -lm to detect a bug in binutils 2.16 (this problem was reported
22096 by Ralf Wildenhues).
22098 2006-06-18 Jim Meyering <jim@meyering.net>
22100 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
22101 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
22103 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
22104 also check for glibc-2.4's abort-inducing bug.
22106 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
22107 Low-probability clean-up should be to use rmdir to get rid of
22108 the just-created directory, not unlink.
22110 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
22111 configure fail, and request a bug report to inform us about it.
22112 Add a comment that, barring reports to the contrary, in 2007 we'll
22113 assume ftruncate is universally available.
22115 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
22117 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
22119 2006-03-12 Jim Meyering <jim@meyering.net>
22121 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
22122 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
22123 * m4/same.m4 (gl_SAME): Likewise.
22124 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
22126 2006-03-11 Eric Blake <ebb9@byu.net>
22128 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
22129 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
22130 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
22131 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
22133 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
22135 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
22136 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
22137 reported by Mark D. Baushke, one in
22138 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
22140 Merge from coreutils.
22142 * lib/.cppi-disable: Add stdint_.h.
22143 * lib/.cvsignore: Add stdint.h.
22145 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
22147 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
22148 both double and long double versions.
22149 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
22150 * lib/xstrtold.c: New file.
22151 * lib/xstrtod.h (xstrtold): New decl.
22153 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
22155 * lib/filemode.c (setst): Remove.
22156 (strmode): Rewrite to avoid setst. This makes the code shorter,
22157 (arguably) clearer, and the generated code is a bit smaller on my
22158 Debian GNU/Linux stable x86 host.
22160 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
22162 * lib/filemode.c: Include "filemode.h" first, to test the interface.
22163 Assume that filemode.h includes sys/types.h and sys/stat.h.
22164 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
22165 (ftypelet): Reorder to put common cases first, for efficiency.
22166 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
22168 (strmode): Renamed from mode_string, and now stores 12 bytes instead
22169 of 10, for compatibility with FreeBSD. All callers changed.
22170 (filemodestring): Now stores 12 bytes instead of 10, and sets file
22171 types that can't be deduced solely from st_mode. First arg is now a
22173 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
22174 (strmode): Renamed from mode_string.
22175 (filemodestring): New decl.
22176 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
22177 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
22179 (S_ISPORT, S_ISWHT): New macros, if not already defined.
22181 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
22183 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
22184 fsusage.h now does that. Include fsusage.h first, to test interface.
22185 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
22186 at most one method (the old code could have generated decls that
22187 didn't conform to C89, not that this was ever exercised).
22188 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
22190 2006-03-19 Jim Meyering <jim@meyering.net>
22192 Work even in a chroot where d_ino values for entries in "/"
22193 don't match the stat.st_ino values for the same names.
22194 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
22195 number, iterate through all entries again, using lstat instead.
22196 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
22197 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
22199 * lib/getcwd.c (__getcwd): Clarify a comment.
22200 Use memcpy in place of a call to strcpy.
22202 2006-03-12 Jim Meyering <jim@meyering.net>
22204 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
22205 matches that of the current directory (which we're about to chdir ".."
22206 out of), then save the dev-ino of the parent, instead.
22208 * lib/same-inode.h (SAME_INODE): New file/macro.
22209 * lib/chdir-safer.c (SAME_INODE): Remove definition.
22210 Include "same-inode.h", instead.
22211 * lib/same.c: Likewise.
22212 * lib/cycle-check.h: Include "same-inode.h".
22213 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
22214 * lib/cycle-check.c (SAME_INODE): Remove definition.
22215 * lib/root-dev-ino.h: Include "same-inode.h".
22217 2006-03-11 Eric Blake <ebb9@byu.net>
22219 * lib/same.c (same_name): s/base_name/last_component/
22220 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
22221 * lib/filenamecat.c (file_name_concat): Likewise.
22223 2006-03-11 Eric Blake <ebb9@byu.net>,
22224 Paul Eggert <eggert@cs.ucla.edu>
22226 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
22227 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
22229 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
22230 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
22231 (last_component): New method.
22232 * lib/dirname.c (dir_len): Determine when drive letters need a
22233 subsequent slash. Preserve // when it is special.
22234 (dir_name): Don't append dot when drive letter is absolute.
22235 [TEST_DIRNAME]: Move into a full-blown gnulib test.
22236 * lib/basename.c (base_name): New semantics - malloc the result.
22237 Preserve // when it is special. Preserve relative files that look
22238 like drive letters.
22239 (base_len): Preserve // when it is special.
22240 (last_component): New method, similar to old base_name semantics.
22241 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
22242 base_name. Strip redundant slashes from ///.
22244 2006-07-03 Jim Meyering <jim@meyering.net>
22246 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
22247 macro is used before the first cycle_check call.
22249 2006-07-03 Eric Blake <ebb9@byu.net>
22251 * modules/dirname (Depends-on): Add xstrndup.
22253 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
22255 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
22256 test cases, so that config.log is a bit easier to follow.
22258 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
22260 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
22261 both are 64 bits, since this seems to be the tradition, and this
22262 prevents gcc -Wformat from warning about usages with PRIuMAX. If
22263 we ever run into a host that prefers long long to long in this
22264 case, we'll need another configure-time test. Problem reported by
22267 2006-07-02 Eric Blake <ebb9@byu.net>
22269 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
22271 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
22273 * modules/inttypes (Depends-on): No longer depends on stdint.
22274 * modules/stdint (Description): Say more about assumptions.
22275 Say that the fast types might differ. Say macros are used.
22276 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
22277 (Makefile.am): Revise list of substituted symbols to match
22279 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
22280 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
22281 * tests/test-stdint.c (verify_same_types)
22282 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
22283 the code conforms to C99/C89.
22284 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
22285 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
22287 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
22289 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
22290 but fix a bug, by requiring at least 64 bits.
22291 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
22292 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
22293 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
22294 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
22296 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
22297 changes. Make 2.59 a prerequisite. Check and substitute for
22298 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
22299 inttypes.h. Do not use special include files; just use the
22300 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
22301 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
22302 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
22303 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
22304 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
22305 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
22306 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
22307 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
22308 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
22309 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
22310 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
22311 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
22312 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
22313 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
22314 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
22315 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
22316 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
22317 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
22318 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
22319 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
22320 WINT_MAX. Check for C99 conformance more strictly, by detecting
22321 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
22322 not check for things that C99 does not require, e.g., int8_t. If
22323 a test isn't needed unless <stdint.h> isn't working, and is
22324 unlikely to be needed for any other reason, then don't do it
22325 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
22326 size_t, since we assume C89 freestanding at least. Do not check
22327 for sig_atomic_t, wchar_t, or wint_t, since the code now does
22328 the right thing even if the types are not defined. Instead use:
22329 (gl_STDINT_TYPE_PROPERTIES): New macro.
22330 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
22331 testing whether <sys/types.h> clashes, as Autoconf does this for
22332 us now. All uses removed.
22333 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
22334 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
22335 (gl_CHECK_TYPE_SAME):
22336 Remove; no longer needed.
22337 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
22338 exists, since we'll return 0 anyway in that case.
22339 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
22341 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
22343 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
22344 possible collision with system files.
22345 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
22346 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
22347 WCHAR_MIN and WCHAR_MAX in this case.
22348 (<stddef.h>): Do not include; no longer needed.
22349 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
22350 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
22351 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
22352 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
22353 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
22354 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
22355 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
22356 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
22357 !defined(__c99))]: Include in this case too, since it's harmless
22359 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
22360 dangerous to do so.
22361 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
22362 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
22363 (_STDINT_MIN, _STDINT_MAX): New macros.
22364 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
22365 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
22366 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
22367 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
22368 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
22369 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
22370 macros, not typedefs; this simplifies things quite a bit.
22371 Use long int for all types narrower than int64_t.
22372 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
22373 Define in terms of long long int or int64_t or long int,
22374 not int64_t or int32_t. This saves some compile-time testing.
22375 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
22376 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
22377 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
22378 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
22379 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
22380 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
22381 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
22382 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
22383 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
22384 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
22385 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
22386 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
22387 undef any previous version and define our own version, for
22388 simplicity and consistency with the new macros for types.
22389 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
22390 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
22391 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
22392 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
22393 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
22394 @WINT_T_SUFFIX@ to keep things simple here.
22395 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
22396 Simplify by assuming typical 8/16/32/64 host, since we're
22397 already doing that elsewhere anyway.
22398 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
22399 and assume long long int is 64 bits if available. This
22400 speeds up 'configure'.
22402 2006-07-01 Eric Blake <ebb9@byu.net>
22404 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
22405 Reported by Andreas Buening.
22407 2006-07-01 Eric Blake <ebb9@byu.net>
22409 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
22411 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
22413 * lib/getaddrinfo.c: fixed typo
22415 2006-06-29 Jim Meyering <jim@meyering.net>
22417 * modules/strftime (Maintainer): Add my name, since with the
22418 FPRINTFTIME changes strftime.c has forked from glibc.
22420 2006-06-29 Eric Blake <ebb9@byu.net>
22422 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
22424 2006-06-29 Eric Blake <ebb9@byu.net>
22426 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
22428 2006-06-29 Eric Blake <ebb9@byu.net>
22430 * lib/stat_.h: New file.
22432 2006-06-29 Eric Blake <ebb9@byu.net>
22434 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
22435 unused static function.
22437 2006-06-29 Eric Blake <ebb9@byu.net>
22439 * doc/functions.texi (Function Portability): Document missing lstat
22442 2006-06-29 Eric Blake <ebb9@byu.net>
22444 * MODULES.html.sh: Add sys_stat.
22445 * modules/sys_stat: New module.
22446 * modules/mkstemp (Depends-on): Add sys_stat.
22448 2006-06-29 Derek R. Price <derek@ximbiot.com>
22450 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
22452 2006-06-29 Derek R. Price <derek@ximbiot.com>
22454 * m4/c-bs-a.m4: Removed.
22456 2006-06-29 Derek R. Price <derek@ximbiot.com>
22458 * lib/strftime.c: Assume strftime() exists.
22460 2006-06-29 Derek Price <derek@ximbiot.com>
22462 * modules/c-bs-a: Removed - \a is C89.
22463 * MODULES.html.sh: Remove c-bs-a.
22465 2006-06-29 Bruno Haible <bruno@clisp.org>
22467 * modules/wcwidth (License): Change to LGPL.
22469 2006-06-28 Simon Josefsson <jas@extundo.com>
22471 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
22474 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
22477 2006-06-28 Simon Josefsson <jas@extundo.com>
22479 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
22481 2006-06-28 Simon Josefsson <jas@extundo.com>
22483 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
22484 functions there. It will succeed on Windows XP, but on Windows
22485 2000 and (presumably) earlier, it will fail, and use the internal
22487 (use_win32_p): New function.
22488 (getaddrinfo): Use strtoul on servname, to support numeric ports.
22489 Support AI_NUMERICSERV to disable getservbyname.
22490 (getnameinfo): New function, only supports
22491 NI_NUMERICHOST|NI_NUMERICSERV for now.
22493 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
22494 only have some of them. Add AI_NUMERICSERV. Add prototype for
22497 2006-06-28 Eric Blake <ebb9@byu.net>
22499 * modules/wcwidth: New file.
22500 * modules/mbchar (Depends-on): Add wcwidth.
22501 * modules/mbswidth (Depends-on): Add wcwidth.
22502 * MODULES.html.sh: Add wcwidth.
22504 2006-06-28 Eric Blake <ebb9@byu.net>
22506 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
22507 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
22509 2006-06-28 Eric Blake <ebb9@byu.net>
22511 * lib/xvasprintf.h: Fix comments.
22513 2006-06-28 Eric Blake <ebb9@byu.net>
22515 * lib/mbchar.h (wcwidth): Include wcwidth.h.
22516 * lib/mbswidth.c (wcwidth): Move from here...
22517 * lib/wcwidth.h: ...to this new file.
22519 2006-06-28 Derek R. Price <derek@ximbiot.com>
22521 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
22523 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
22525 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
22527 2006-06-28 Derek R. Price <derek@ximbiot.com>
22529 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
22530 Autoconf 2.60 says this stuff was obsolete.
22532 2006-06-28 Bruno Haible <bruno@clisp.org>
22534 * modules/wcwidth (Files): Add m4/wchar_t.m4.
22536 2006-06-28 Bruno Haible <bruno@clisp.org>
22538 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
22541 2006-06-28 Bruno Haible <bruno@clisp.org>
22543 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
22544 declaration for wcwidth.
22545 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
22547 2006-06-28 Bruno Haible <bruno@clisp.org>
22549 * lib/mkdtemp.c [MINGW]: Include <io.h>.
22550 (mkdir): Define using _mkdir.
22552 2006-06-28 Bruno Haible <bruno@clisp.org>
22554 * lib/getaddrinfo.h: Fix POSIX URL.
22555 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
22557 (use_win32_p): Make static.
22558 (getaddrinfo): Reject service name if it is empty or does not consist
22559 solely of decimal digits, or if its value is > 65535.
22560 (getnameinfo): Remove useless casts.
22562 2006-06-27 Simon Josefsson <jas@extundo.com>
22564 * modules/sys_select: New file, suggested by Bruno Haible, Paul
22565 Eggert and Martin Lambers.
22567 2006-06-27 Simon Josefsson <jas@extundo.com>
22569 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
22570 Eggert and Martin Lambers.
22572 2006-06-27 Bruno Haible <bruno@clisp.org>
22574 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
22575 result to 0, not to empty.
22576 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
22578 2006-06-27 Bruno Haible <bruno@clisp.org>
22580 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
22582 2006-06-26 Simon Josefsson <jas@extundo.com>
22584 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
22587 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
22589 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
22590 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
22591 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
22593 2006-06-26 Mark D. Baushke <mdb@gnu.org>
22595 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
22597 2006-06-26 Bruno Haible <bruno@clisp.org>
22599 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
22601 2006-06-26 Bruno Haible <bruno@clisp.org>
22603 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
22605 2006-06-26 Bruno Haible <bruno@clisp.org>
22607 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
22608 SGI C compiler in pre-C99 mode.
22609 Suggested by Mark D. Baushke and Larry Jones.
22611 2006-06-26 Bruno Haible <bruno@clisp.org>
22613 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
22615 Reported by Mark D. Baushke and Larry Jones.
22617 2006-06-26 Bruno Haible <bruno@clisp.org>
22619 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
22621 Suggested by Mark D. Baushke and Larry Jones.
22623 2006-06-23 Simon Josefsson <jas@extundo.com>
22624 Bruno Haible <bruno@clisp.org>
22626 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
22627 Emit mostlyclean-local rule.
22628 (func_emit_tests_Makefile_am): Likewise.
22629 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
22631 2006-06-23 Mark D. Baushke <mdb@gnu.org>
22633 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
22635 2006-06-23 Bruno Haible <bruno@clisp.org>
22637 * tests/test-stdint.c: Update to match ISO C 99 Technical
22640 2006-06-23 Bruno Haible <bruno@clisp.org>
22642 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
22644 2006-06-23 Bruno Haible <bruno@clisp.org>
22646 * lib/stdint_.h: Treat IRIX like OpenBSD.
22648 2006-06-23 Bruno Haible <bruno@clisp.org>
22650 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
22651 ISO C 99 Technical Corrigendum 1.
22653 2006-06-22 Simon Josefsson <jas@extundo.com>
22655 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
22658 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
22660 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
22661 needed. Some compiler complained about some of them. Problem reported
22663 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
22665 2006-06-21 Simon Josefsson <jas@extundo.com>
22667 * tests/test-getaddrinfo.c: New file.
22669 * modules/getaddrinfo-tests: New file.
22671 * MODULES.html.sh: Add inet_pton.
22673 * modules/inet_pton: New file.
22675 2006-06-21 Simon Josefsson <jas@extundo.com>
22677 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
22678 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
22679 of using the (limited) gnulib implementation on Windows XP.
22681 * m4/inet_pton.m4: New file.
22683 2006-06-21 Simon Josefsson <jas@extundo.com>
22685 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
22688 * lib/socket_.h: Don't define WINVER.
22690 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
22691 slightly modified to work in gnulib.
22693 2006-06-21 Simon Josefsson <jas@extundo.com>
22695 * doc/gnulib.texi (Windows sockets): Add.
22697 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
22699 * lib/read-file.c (fread_file): Start with buffer allocation of
22700 0 bytes rather than 1 byte; this simplifies the code.
22701 Don't invoke feof; it's not needed. Refactor to avoid duplicate
22702 code to free buffer and save/restore errno.
22703 (internal_read_file): Remove unused local.
22705 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
22707 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
22708 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
22709 Problem reported by Denis Excoffier in
22710 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
22712 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
22714 * modules/sys_socket, modules/socklen: Include sys/types since
22715 FreeBSD 4.x's sys/socket.h needs it.
22717 2006-06-19 Simon Josefsson <jas@extundo.com>
22719 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
22721 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
22723 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
22725 2006-06-19 Bruno Haible <bruno@clisp.org>
22727 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
22728 and FULL_PATH_INTTYPES_H in angle brackets.
22729 Reported by Mark D. Baushke <mdb@gnu.org>.
22731 2006-06-17 Eric Blake <ebb9@byu.net>
22733 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
22736 2006-06-17 Bruno Haible <bruno@clisp.org>
22738 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
22741 2006-06-17 Bruno Haible <bruno@clisp.org>
22743 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
22744 whether errno is declared. Assume <errno.h> declares errno.
22746 2006-06-17 Bruno Haible <bruno@clisp.org>
22748 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
22750 2006-06-17 Bruno Haible <bruno@clisp.org>
22752 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
22753 problem on Solaris 2.5.1.
22755 2006-06-16 Eric Blake <ebb9@byu.net>
22757 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
22758 * lib/unicodeio.c [!defined errno]: Likewise.
22759 * lib/strtol.c [!defined errno]: Likewise.
22760 * lib/strtod.c [!defined errno]: Likewise.
22762 2006-06-15 Eric Blake <ebb9@byu.net>
22764 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
22766 2006-06-15 Eric Blake <ebb9@byu.net>
22768 * config/srclist.txt (ssize_t.m4): Lose sync.
22770 2006-06-15 Bruno Haible <bruno@clisp.org>
22772 * modules/stdint (Files): Include m4/full-header-path.m4,
22773 m4/size_max.m4, m4/wchar_t.m4.
22774 (Makefile.am): Many more substitutions.
22775 * modules/stdint-tests: New file.
22776 * tests/test-stdint.c: New file.
22778 2006-06-15 Bruno Haible <bruno@clisp.org>
22780 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
22781 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
22782 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
22783 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
22784 gl_CHECK_TYPE_SAME): New macros.
22786 2006-06-15 Bruno Haible <bruno@clisp.org>
22788 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
22790 2006-06-15 Bruno Haible <bruno@clisp.org>
22792 * lib/stdint_.h: Rewritten to be fully auto-configured.
22793 Fixes bug on HP-UX/IA64.
22795 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
22797 * lib/getdate.y (__attribute__): Don't define if already defined.
22798 Problem reported by Larry Jones.
22799 * lib/utimens.c (__attribute__): Likewise.
22801 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
22803 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
22804 reported by Andreas Schwab.
22806 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22807 Bruno Haible <bruno@clisp.org>
22809 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
22810 check for the declaration of strnlen and a run test that exposes the
22811 AIX 5.1 strnlen bug. In the failure case, #define strndup to
22814 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22815 Bruno Haible <bruno@clisp.org>
22817 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
22819 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22821 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
22822 compile test, for Tru64 4.0D.
22824 2006-05-28 Karl Berry <karl@gnu.org>
22826 * config/srclist.txt (printf-args.c): lose sync.
22828 2006-05-26 Martin Lambers <marlam@marlam.de>
22830 * lib/getpass.c: Updates the test for the native W32 API, and adds
22831 missing includes, thus fixing compilation warnings.
22833 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
22835 * lib/exclude.c (exclude_fnmatch): New function.
22836 (excluded_file_name): Call exclude_fnmatch.
22837 * lib/exclude.h (excluded_file_name): New prototype
22839 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
22841 * lib/tempname.c (small_open, large_open): New macros.
22842 (__open, __open64) [!_LIBC]: Remove.
22843 (__gen_tempname): Use small_open and large_open instead of __open
22844 and __open64. This fixes a portability bug on HP-UX 11.11i
22845 reported by Simon Wing-Tang in
22846 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
22848 2006-05-24 Bruno Haible <bruno@clisp.org>
22850 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
22851 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
22852 Reported by Thorsten Maerz <torte@netztorte.de> via
22853 Aaron Stone <aaron@serendipity.cx>.
22855 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
22857 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
22858 gl_ rather than jm_. Link, don't run, so that cross-compiles are
22859 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
22860 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
22861 not really conditional on the cache.
22862 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
22864 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
22866 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
22867 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
22868 (my_usleep): Don't mishandle maximum value.
22870 2006-05-19 Jim Meyering <jim@meyering.net>
22872 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
22874 2006-05-17 Bruno Haible <bruno@clisp.org>
22876 Cygwin portability.
22877 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
22879 2006-05-17 Bruno Haible <bruno@clisp.org>
22881 * lib/stdint_.h: Fix recognition of Cygwin.
22883 2006-05-15 Bruno Haible <bruno@clisp.org>
22885 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
22886 on libtool patch by Ralf Wildenhues.
22888 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
22890 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
22891 test for C99 conformance; (bool) 0.5 is an integer constant
22892 expression, but (bool) -0.5 is not. Problem reported by Fedor
22893 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
22895 2006-05-11 Simon Josefsson <jas@extundo.com>
22897 * m4/xvasprintf.m4: Fix obvious typo.
22899 2006-05-11 Jim Meyering <jim@meyering.net>
22901 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
22904 2006-05-10 Simon Josefsson <jas@extundo.com>
22906 * lib/md4.c: Typo fix, update copyright years.
22907 (K1, K2): Don't use L because it turn computations into 64-bit on
22910 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
22912 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
22913 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
22914 unwanted sign propagation, e.g., on hosts with 64-bit int.
22915 There still are some problems with reeelly weird theoretical hosts
22916 (e.g., 33-bit int) but it's not worth worrying about now.
22917 * lib/sha1.c (rol): Likewise.
22918 (K1, K2, K3, K4): Remove unnecessary L suffix.
22920 2006-05-10 Bruno Haible <bruno@clisp.org>
22922 * lib/des.c: Cast to avoid warnings.
22924 2006-05-09 Bruno Haible <bruno@clisp.org>
22926 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
22927 (Depends-on): Depend also on xsize, stdarg.
22928 (configure.ac): Add gl_XVASPRINTF.
22930 2006-05-09 Bruno Haible <bruno@clisp.org>
22932 * m4/xvasprintf.m4: New file.
22934 2006-05-09 Bruno Haible <bruno@clisp.org>
22936 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
22937 (EOVERFLOW): Define fallback value.
22938 (xstrcat): New function.
22939 (xvasprintf): Recognize the special case of a string concatenation.
22941 2006-05-08 Eric Blake <ebb9@byu.net>
22943 * gnulib-tool (func_version): Base copyright year on CVS date.
22944 (func_emit_copyright_notice): New function.
22945 (func_emit_lib_Makefile_am): Use it.
22946 (func_emit_tests_Makefile_am): Likewise.
22947 (func_import): Likewise.
22949 2006-05-08 Bruno Haible <bruno@clisp.org>
22951 * modules/stdarg: New file.
22952 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
22954 2006-05-08 Bruno Haible <bruno@clisp.org>
22956 * m4/stdarg.m4: New file, from GNU gettext.
22958 2006-05-08 Bruno Haible <bruno@clisp.org>
22960 * config/srclist.txt (build-aux/config.rpath): different from latest
22963 2006-05-08 Bruno Haible <bruno@clisp.org>
22965 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
22967 2006-05-05 Jim Meyering <jim@meyering.net>
22969 * m4/warning.m4: New file, derived from bison's file by the same name.
22971 2006-05-03 Bruno Haible <bruno@clisp.org>
22973 * lib/stdint_.h: Shorter URL.
22974 * lib/inttypes.h: Likewise.
22976 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
22978 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
22980 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
22982 * lib/verify.h: Document the internals better. Most of this change
22983 was written by Bruno Haible.
22985 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
22987 * doc/verify.texi: New file, partly based on a proposal by
22990 2006-05-02 Bruno Haible <bruno@clisp.org>
22992 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
22994 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
22996 2006-04-29 Bruno Haible <bruno@clisp.org>
22998 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
22999 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
23001 2006-04-29 Bruno Haible <bruno@clisp.org>
23003 * gnulib-tool: Make --update option actually work.
23005 2006-04-29 Bruno Haible <bruno@clisp.org>
23007 * doc/gcd.texi: New file.
23008 * doc/gnulib.texi: Include it.
23010 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
23012 * lib/getdate.y (get_date): When adding relative date, start with the
23013 initial time, not with the result of the first mktime call.
23015 2006-04-25 Bruno Haible <bruno@clisp.org>
23017 * gnulib-tool (func_import): Output the include directives in three
23018 blocks, sorted separately.
23019 Reported by Ben Pfaff <blp@cs.stanford.edu>.
23021 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
23023 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
23024 to define main with arguments, for C++. Reported by Eric Blake.
23025 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
23026 Prefer 'int main ()' to 'int main (void)', for C++.
23027 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23028 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
23029 for 'main', for C99 and C++.
23031 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
23033 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
23034 Don't assume that exit status -1 is valid.
23035 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23036 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23037 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
23038 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
23039 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
23040 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
23041 not AC_TRY_RUN. Use return, not exit. Don't assume that
23042 functions can be used without declaring them, or that you can
23043 exit with status -1.
23044 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
23046 2006-04-24 Karl Berry <karl@gnu.org>
23048 * config/srclist.txt (longdouble.m4): sync lost.
23050 2006-04-24 Eric Blake <ebb9@byu.net>
23052 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
23054 2006-04-24 Bruno Haible <bruno@clisp.org>
23056 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
23057 poll() implementation in AIX.
23058 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23060 2006-04-24 Bruno Haible <bruno@clisp.org>
23062 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
23063 assigned exactly once.
23065 2006-04-23 Claudio Fontana <claudio@gnu.org>
23066 Bruno Haible <bruno@clisp.org>
23068 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
23069 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
23072 2006-04-23 Bruno Haible <bruno@clisp.org>
23074 * modules/copy-file: Depend on unistd.
23075 * modules/execute: Likewise.
23076 * modules/fatal-signal: Likewise.
23077 * modules/findprog: Likewise.
23078 * modules/mkdtemp : Likewise.
23079 * modules/pipe: Likewise.
23080 * modules/wait-process: Likewise.
23082 2006-04-23 Bruno Haible <bruno@clisp.org>
23084 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
23085 condition was already detected.
23086 Reported by Ben Pfaff <blp@cs.stanford.edu>.
23088 2006-04-23 Bruno Haible <bruno@clisp.org>
23090 * lib/copy-file.c: Include <unistd.h> unconditionally.
23091 * lib/execute.c: Likewise.
23092 * lib/fatal-signal.c: Likewise.
23093 * lib/findprog.c: Likewise.
23094 * lib/mkdtemp.c: Likewise.
23095 * lib/pipe.h: Likewise.
23096 * lib/pipe.c: Likewise.
23097 * lib/wait-process.h: Likewise.
23099 2006-04-23 Bruno Haible <bruno@clisp.org>
23101 * gnulib-tool (func_usage): Fix --import description. Document
23103 (func_import): Create temporary file in a temporary directory, if
23104 --dry-run is specified. Silence errors from 'grep' when there are no
23105 m4 files in $m4dir.
23106 (func_create_testdir): Silence errors from 'grep' when there are no
23107 m4 files in $m4dir.
23108 Reported by Karl Berry <karl@freefriends.org>.
23110 2006-04-20 Bruno Haible <bruno@clisp.org>
23112 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
23113 one argument, so that the code will be portable to Autoconf 2.60.
23114 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
23115 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
23116 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
23118 2006-04-19 Derek Price <derek@ximbiot.com>
23119 Eric Blake <ebb9@byu.net>
23121 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
23122 rather than "/full/path.h". Update comment to match. Shorten &
23123 generalize m4_translit call via AS_TR_CPP.
23125 2006-04-19 Derek Price <derek@ximbiot.com>
23126 Eric Blake <ebb9@byu.net>
23128 * lib/inttypes.h: Correct grammar in comment.
23130 2006-04-18 Derek Price <derek@ximbiot.com>
23131 Paul Eggert <eggert@cs.ucla.edu>
23133 * modules/inttypes: New file.
23134 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
23136 2006-04-18 Derek Price <derek@ximbiot.com>
23137 Paul Eggert <eggert@cs.ucla.edu>
23139 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
23142 2006-04-18 Derek Price <derek@ximbiot.com>
23143 Paul Eggert <eggert@cs.ucla.edu>
23145 * lib/inttypes.h: New file.
23146 * lib/strtoimax.c: Assume <inttypes.h>.
23148 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
23150 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
23151 isn't mounted. Problem reported by Kir Kolyshkin.
23153 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
23155 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
23156 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
23158 * lib/regex.h (RE_DUP_MAX): Update comment to match current
23161 2006-04-12 Eric Blake <ebb9@byu.net>
23163 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
23164 is now done automatically by the corresponding Autoconf macro.
23166 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
23168 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
23171 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
23173 Merge regex changes from libc, removing some of our
23174 POSIX-conformance changes that were rejected and redoing them in a
23175 less-intrusive way.
23177 * lib/regcomp.c (re_compile_internal, init_dfa):
23178 Length arg is now size_t, not Idx. All uses changed.
23179 (peek_token): Forward decl now says internal_function.
23180 (__re_error_msgid, __re_error_msgid_idx):
23181 Now static rather than extern with attribute_hidden.
23182 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
23183 For some reason libc prefers K&R style defns for external functions.
23184 (regerror) [!defined _LIBC]: Likewise.
23185 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
23186 (seek_collating_symbol_entry, lookup_collation_sequence_value):
23187 (build_range_exp, build_collating_symbol):
23188 Use K&R-style defn.
23189 (re_compile_fastmap): Use '\0' to memset, not 0.
23190 (utf8_sb_map): Make the calculations more obvious.
23191 (init_dfa, parse_bracket_exp, build_charclass_op):
23192 Call calloc and cast result, as glibc does.
23193 (init_word_char, fetch_token, peek_token, peek_token_bracket):
23194 (build_range_exp, build_collating_symbol):
23195 Now internal functions.
23197 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
23199 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
23200 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
23201 Don't depend on VMS; depend on __VMS instead, for POSIX
23202 namespace cleanness.
23203 (regoff_t): Define to ssize_t, not long int.
23205 Remove the REG_ macros named below. Instead, make the old names
23206 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
23208 (REG_BACKSLASH_ESCAPE_IN_LISTS):
23209 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
23210 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
23211 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
23212 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
23213 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
23214 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
23215 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
23216 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
23217 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
23218 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
23219 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
23220 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
23221 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
23222 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
23223 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
23224 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
23226 Remove. All uses replaced by the old RE_* names.
23227 (RE_BACKSLASH_ESCAPE_IN_LISTS):
23228 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
23229 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
23230 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
23231 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
23232 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
23233 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
23234 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
23235 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
23236 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
23237 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
23238 Don't bother having these macros be independent of each others'
23239 values, since they no longer exist in the POSIX name space.
23241 Rename the following member names back to their old names,
23242 unless !__USE_GNU_REGEX. All uses changed back.
23243 (buffer): Renamed from re_buffer.
23244 (allocated): Renamed from re_allocated.
23245 (used): Renamed from re_used.
23246 (syntax): Renamed from re_syntax.
23247 (fastmap): Renamed from re_fastmap.
23248 (translate): Renamed from re_translate.
23249 (can_be_null): Renamed from re_can_be_null.
23250 (regs_allocated): Renamed from re_regs_allocated.
23251 (fastmap_accurate): Renamed from re_fastmap_accurate.
23252 (no_sub): Renamed from re_no_sub.
23253 (not_bol): Renamed from re_not_bol.
23254 (not_eol): Renamed from re_not_eol.
23255 (newline_anchor): Renamed from re_newline_anchor.
23256 (num_regs): Renamed from rm_num_regs.
23257 (start): Renamed from rm_start.
23258 (end): Renamed from rm_end.
23260 (free_state): Move up a bit.
23262 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
23263 #define to be empty.
23264 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
23265 when that is what is intended.
23266 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
23267 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
23269 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
23270 All uses changed back to re_malloc, etc. It's now the caller's
23271 responsibility to check for overflow; all callers changed.
23272 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
23273 (re_x2nrealloc): Remove.
23274 (free_state): Remove decl.
23276 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
23277 (re_set_registers, re_exec):
23278 Use K&R-style defn.
23280 2006-01-31 Roland McGrath <roland@redhat.com>
23282 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
23283 Reported by Mike Frysinger <vapier@gentoo.org>.
23285 2006-01-15 Andreas Jaeger <aj@suse.de>
23288 * lib/regex_internal.c (re_string_reconstruct): Adjust for
23289 build_wcs_upper_buffer change.
23290 (build_wcs_upper_buffer): Change return type.
23292 2005-12-10 Ulrich Drepper <drepper@redhat.com>
23294 * lib/regex_internal.h: Include <stdint.h> if available.
23296 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
23298 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
23300 2005-10-14 Ulrich Drepper <drepper@redhat.com>
23302 * lib/regcomp.c: Adjust for changed secondary hash function.
23304 2005-09-30 Ulrich Drepper <drepper@redhat.com>
23306 * lib/regex.h: Pretty printing.
23307 Clean up namespace a bit.
23309 2005-09-30 Jakub Jelinek <jakub@redhat.com>
23311 * lib/regexec.c (update_cur_sifted_state, check_arrival,
23312 check_arrival_add_next_nodes): Avoid using uninitialized variable.
23314 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
23315 Ulrich Drepper <drepper@redhat.com>
23318 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
23320 (bitset_word_t): Renamed from bitset_word. All uses changed.
23322 2005-09-22 Ulrich Drepper <drepper@redhat.com>
23325 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
23326 * lib/regcomp.c: Remove unnecessary uses of
23327 unsigned RE_TRANSLATE_TYPE.
23328 * lib/regex_internal.h: Likewise.
23329 * lib/regex_internal.c: Likewise.
23330 * lib/regexec.c: Likewise.
23331 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
23333 2005-09-07 Ulrich Drepper <drepper@redhat.com>
23335 * lib/regexec.c (find_recover_state): Remove unnecessary
23337 (transit_state_bkref): Make DFA a const pointer.
23338 (get_subexp): Likewise.
23339 (check_arrival): Likewise.
23340 (update_cur_sifted_state): Likewise.
23341 (re_search_internal): Likewise.
23342 (prune_impossible_nodes): Likewise.
23343 (acquire_init_state_context): Likewise.
23344 (proceed_next_node): Likewise.
23345 (set_regs): Likewise.
23346 (free_fail_stack_return): Likewise.
23347 (check_arrival_expand_ecl): Mark DFA parameter as const.
23348 (check_arrival_expand_ecl_sub): Likewise.
23349 (check_subexp_limits): Likewise.
23350 (sub_epsilon_src_nodes): Likewise.
23351 (add_epsilon_src_nodes): Likewise.
23352 (merge_state_array): Likewise.
23353 (update_regs): Likewise.
23354 (build_trtable): Likewise.
23355 (sift_states_backward): Mark MCTX parameter as const.
23356 (build_sifted_states): Likewise.
23357 (update_cur_sifted_state): Likewise.
23358 (sift_states_mkref): Likewise.
23359 (check_arrival_expand_ecl): Mark eclosure as const.
23360 (check_dst_limits_calc_pos_1): Likewise.
23361 * lib/regex_internal.h (re_match_context_t): Make dfa a const
23364 2005-09-06 Ulrich Drepper <drepper@redhat.com>
23366 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
23367 (transit_state_sb): Likewise.
23368 (transit_state_mb): Likewise.
23369 (sift_states_iter_mb): Likewise.
23370 (check_arrival_add_next_nodes): Likewise.
23371 (check_node_accept_bytes): Change first parameter to pointer-to-const.
23372 [_LIBC] (re_search_2_stub): Use mempcpy.
23374 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
23375 mbrtowc for very simple UTF-8 case.
23377 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
23378 a pointer-to-const.
23379 (re_acquire_state_context): Likewise.
23380 * lib/regex_internal.h: Adjust prototypes.
23382 * lib/regex.c: Prevent using C++ compilers.
23384 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
23385 (re_acquire_state_context): Likewise.
23387 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
23389 * modules/regex (Depends-on): Add ssize_t.
23391 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
23393 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
23396 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
23398 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
23400 2006-03-29 Mark D. Baushke <mdb@gnu.org>
23401 Bruno Haible <bruno@clisp.org>
23403 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
23404 <sys/types.h> and <inttypes.h>.
23406 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23408 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
23409 `__error_t_defined', so argp.h will not typedef the former.
23411 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
23413 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
23414 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
23415 glibc names. Even if glibc is changed to conform to POSIX, the
23416 traditional names will be available anyway, since regex depends on
23417 the extensions module. Also, fix a longstanding typo in the
23418 implementation of Spencer ERE test #75 from grep 2.3. Problems
23419 reported by Emanuele Giaquinta. Also, change sense of cached
23420 variable, so that the message makes sense.
23422 2006-03-24 Simon Josefsson <jas@extundo.com>
23424 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
23425 including some doc fixes.
23426 (base64_encode_alloc): Fix +1 bug on allocation failures.
23428 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23430 * lib/base64.c (base64_encode): Do not read past end of array with
23431 unsanitized input on systems with CHAR_BIT > 8.
23433 2006-03-24 Eric Blake <ebb9@byu.net>
23435 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
23437 2006-03-22 Karl Berry <karl@gnu.org>
23439 * config/srclist.txt (*setenv.[ch]): get from coreutils.
23440 * config/srclistvars.sh (COREUTILS): new var.
23442 2006-03-17 Jim Meyering <jim@meyering.net>
23444 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
23445 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
23447 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
23449 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
23450 no longer needs it. Instead, check that regoff_t is as least
23451 as wide as ptrdiff_t.
23453 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
23454 so that our regex.h stays compatible with the installed regex.
23455 This is helpful for installers who configure --without-included-regex.
23456 Problem reported by Emanuele Giaquinta.
23458 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
23460 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
23461 Typedef to long int, not to off_, as POSIX will likely change
23464 2006-03-15 Eric Blake <ebb9@byu.net>
23466 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
23468 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
23470 * lib/argp-help.c (validate_uparams): Fix typo
23471 * lib/argp-parse.c (argp_default_options): Consistently begin help
23472 messages with a lowercase letter.
23474 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
23476 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
23477 overrun buffers and shouldn't be used (much as gets shouldn't be
23479 * lib/time_r.c (asctime_r, ctime_r): Likewise.
23481 2006-03-08 Simon Josefsson <jas@extundo.com>
23483 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
23484 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23486 2006-03-08 Simon Josefsson <jas@extundo.com>
23488 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
23489 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23491 2006-03-08 Simon Josefsson <jas@extundo.com>
23493 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
23494 signal that configure disabled the device.
23496 2006-03-08 Simon Josefsson <jas@extundo.com>
23498 * build-aux/maint.mk: Fix refresh-po, to handle no translated
23501 2006-03-07 Simon Josefsson <jas@extundo.com>
23503 * modules/getopt (Depends-on): Add unistd.
23505 * modules/unistd: New file.
23507 2006-03-07 Simon Josefsson <jas@extundo.com>
23509 * modules/gc-random: New file.
23511 2006-03-07 Simon Josefsson <jas@extundo.com>
23513 * m4/unistd_h.m4: New file.
23515 2006-03-07 Simon Josefsson <jas@extundo.com>
23517 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
23518 test to be side-effect free by storing the result in the cache
23519 variable gl_cv_lib_readline, and moving the assignment of
23520 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
23521 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23523 2006-03-07 Simon Josefsson <jas@extundo.com>
23525 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
23526 error on missing devices (the functions will return an error).
23528 * m4/gc.m4: Move random stuff to gc-random.m4
23530 2006-03-07 Simon Josefsson <jas@extundo.com>
23532 * lib/unistd_.h: New file.
23534 2006-03-07 Simon Josefsson <jas@extundo.com>
23536 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
23538 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
23540 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
23541 Problem reported by Juan Manuel Guerrero.
23543 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
23545 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
23547 * lib/getlogin_r.c: Likewise.
23548 * lib/getlogin_r.h: Likewise.
23549 * lib/glob.c: Likewise.
23550 * lib/pagealign_alloc.c: Likewise.
23551 * lib/unistd_.h: Remove; no longer needed.
23553 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
23555 * MODULES.html.sh (Support for systems lacking POSIX:2001):
23557 * modules/c-stack (Depends-on): Add unistd.
23558 * modules/getlogin_r: Likewise.
23559 * modules/glob: Likewise.
23560 * modules/pagealign_alloc: Likewise.
23561 * modules/unistd (Files): Remove lib/unistd_.h.
23562 (EXTRA_DIST): Remove.
23563 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
23565 (MOSTLYCLEANFILES): Remove unistd.h-t.
23567 2006-03-03 Simon Josefsson <jas@extundo.com>
23569 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
23571 2006-03-03 Simon Josefsson <jas@extundo.com>
23573 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
23576 2006-03-03 Simon Josefsson <jas@extundo.com>
23578 * build-aux/maint.mk: Add indent target.
23580 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
23582 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
23583 our replacement poll.h in any case, to avoid a differing
23584 declaration from a system header. Seen on AIX.
23586 2006-03-01 Simon Josefsson <jas@extundo.com>
23588 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
23591 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
23593 * modules/gettime (Depends-on): Add extensions module.
23594 * modules/nanosleep (Depends-on): Likewise.
23595 * modules/settime (Depends-on): Likewise.
23597 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
23599 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
23600 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
23602 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23603 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
23605 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
23606 not "==". Reported by Ralf Wildenhues.
23608 2006-03-01 Karl Berry <karl@gnu.org>
23610 * doc/Copyright/request-*: new files, synced from gnuorg.
23612 2006-03-01 Karl Berry <karl@gnu.org>
23614 * config/srclist.txt (Copyright/*): new entries.
23616 2006-02-28 Simon Josefsson <jas@extundo.com>
23618 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
23620 2006-02-27 Simon Josefsson <jas@extundo.com>
23622 * lib/base64.h: Indent #define's. From Jim Meyering
23623 <jim@meyering.net>.
23625 2006-02-27 Jim Meyering <jim@meyering.net>
23627 Revert the change of 2006-02-24, so these files can continue
23628 to be sync'd from gettext.
23629 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
23632 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
23634 * modules/intprops: New file.
23635 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
23637 * modules/getloadavg (Files): Remove lib/intprops.h.
23638 (Depends-on): Add intprops.
23639 * modules/human: Likewise.
23640 * modules/inttostr: Likewise.
23641 * modules/openat: Likewise.
23642 * modules/sig2str: Likewise.
23643 * modules/userspec: Likewise.
23644 * modules/utimecmp: Likewise.
23645 * modules/xnanosleep: Likewise.
23646 * modules/xstrtol: Likewise.
23648 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
23650 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
23651 * modules/lock-tests (TESTS): Use $(EXEEXT).
23652 * modules/tls-tests: Likewise.
23653 * modules/argp-tests: Likewise.
23654 (check_PROGRAMS): New var, replacing...
23655 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
23657 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23659 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
23662 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
23664 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
23666 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23668 Sync from coreutils.
23669 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
23672 2006-02-22 Jim Meyering <jim@meyering.net>
23674 Sync from coreutils.
23675 * m4/chdir-safer.m4: New file.
23677 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
23679 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
23680 AT_FDCWD exceeds INT_MAX.
23681 * lib/openat.h (AT_FDCWD): Likewise.
23683 2006-02-17 Eric Blake <address@hidden>
23685 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
23687 2006-02-16 Simon Josefsson <jas@extundo.com>
23689 * modules/getaddrinfo (Depends-on): Add sys_socket.
23691 2006-02-15 Simon Josefsson <jas@extundo.com>
23693 * build-aux/maint.mk: Add dsyntax-check rule.
23695 2006-02-15 Eric Blake <ebb9@byu.net>
23697 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
23698 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
23699 'present but cannot compile' warnings on cygwin.
23700 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
23701 use ws2tcpip.h if sys/socket.h works.
23702 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
23703 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
23705 2006-02-14 Simon Josefsson <jas@extundo.com>
23707 * modules/maintainer-makefile (Files): Rename.
23709 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
23710 and (the local) Makefile.cfg to maint-cfg.mk.
23712 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
23715 * modules/maintainer-makefile: New module.
23717 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
23718 severaly stripped to make it possible to build it up from scratch
23719 with reliable tests.
23721 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
23722 fixes to permit overriding the default actions when configure and
23723 makefile are not available.
23725 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
23727 Sync from coreutils.
23728 * modules/lstat (Depends-on): Don't depend on xalloc.
23729 (License): Change from GPL to LGPL, since this is now simply a
23730 replacement for a libc function.
23732 2006-02-14 Jim Meyering <jim@meyering.net>
23734 Sync from coreutils.
23736 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
23737 failure on deficient systems, and simplify gnulib lgpl dependencies.
23738 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
23739 xmalloc/lstat combination. Based on a patch from Bruno Haible.
23741 * lib/xalloc-die.c: Remove unused definition of N_.
23743 2006-02-14 Jim Meyering <jim@meyering.net>
23745 Sync from coreutils.
23746 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
23747 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
23748 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
23749 double-quote uses of that variable, to accommodate the rare case in
23750 which getmntent is available in none of the libraries checked. This
23751 happens at least on FreeBSD 5.0.
23753 2006-02-13 Simon Josefsson <jas@extundo.com>
23755 * gnulib-tool (Usage): Fix --import, from
23756 karl@freefriends.org (Karl Berry).
23758 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
23760 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
23762 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
23764 * lib/argp-namefrob.h: Restore changes accidentally lost during the
23765 "autoupdate" on 2005-12-12.
23767 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
23769 * modules/closeout (Depends-on): Remove atexit.
23771 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
23773 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
23774 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
23776 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
23778 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
23779 __EXTENSIONS__ if this causes compilation to fail. Problem
23780 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
23781 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
23783 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
23785 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
23786 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
23787 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
23790 2006-01-26 Simon Josefsson <jas@extundo.com>
23792 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
23793 prototype is visible on mingw32.
23795 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
23798 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
23801 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
23803 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
23804 attempt to open for write; this always fails, at least on POSIX
23805 hosts. This reinstates the 2006-01-09 change, which was
23806 inadvertently removed.
23808 2006-01-26 Bruno Haible <bruno@clisp.org>
23810 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
23811 Reported by Paul Eggert.
23813 2006-01-26 Bruno Haible <bruno@clisp.org>
23814 Paul Eggert <eggert@cs.ucla.edu>
23816 * lib/stdbool_.h (_Bool)
23817 [(! (defined __cplusplus || defined __BEOS__)
23818 && !defined __GNUC__
23819 && !(defined __HP_cc || defined __xlc__
23820 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
23821 || defined __sgi))]:
23822 #define to signed char in these cases too; this simplifies
23823 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
23824 etc., separately) and makes it more conservative.
23826 2006-01-25 Simon Josefsson <jas@extundo.com>
23828 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
23829 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
23830 ws2tcpip.h with WINVER=0x0501. All for mingw32.
23832 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
23834 * lib/argp-namefrob.h: Bugfix. Remove stray #
23836 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
23838 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
23839 so that we test the test.
23840 Check for yet another HP-UX cc bug involving *bool |= bool.
23842 2006-01-25 Karl Berry <karl@gnu.org>
23844 * config/srclist.txt (vasnprintf.c): sync lost.
23846 2006-01-25 Jim Meyering <jim@meyering.net>
23848 Sync from the stable (b5) branch of coreutils:
23850 * lib/fts.c (fts_children): Don't let close() clobber errno from
23853 * lib/fts.c (fts_stat): When following a symlink-to-directory,
23854 don't necessarily interpret stat-fails+lstat-succeeds as indicating
23855 a dangling symlink. That can also happen at least for ELOOP.
23856 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
23857 FYI, this bug predates the inclusion of fts.c in coreutils.
23859 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
23860 in their own block, so pre-c99 compilers don't object.
23862 Avoid the double-free (first in fts_read, second in fts_close) that
23863 would occur when an `active' directory is made inaccessible (e.g.,
23864 via chmod a-x) during a traversal.
23865 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
23866 before returning. Reproduce this failure by
23867 mkdir -p a/b; cd a; chmod a-x . b
23868 Reported by Stavros Passas.
23870 2006-01-25 Jim Meyering <jim@meyering.net>
23872 * lib/fileblocks.c: Remove more useless parentheses.
23873 * lib/readutmp.h: Likewise.
23875 2006-01-25 Bruno Haible <bruno@clisp.org>
23877 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
23879 Reported by Paul Eggert.
23881 2006-01-25 Bruno Haible <bruno@clisp.org>
23883 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
23884 rid of a trap command. For Solaris sh.
23885 Reported by Mark D. Baushke <mdb@gnu.org>.
23887 2006-01-24 Simon Josefsson <jas@extundo.com>
23889 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
23892 2006-01-24 Karl Berry <karl@gnu.org>
23894 * config/srclist.txt (argp-namefrob.h): sync lost.
23896 2006-01-24 Jim Meyering <jim@meyering.net>
23898 * modules/openat (Files): Add lib/intprops.h.
23899 From Mark D. Baushke.
23901 2006-01-24 Jim Meyering <jim@meyering.net>
23903 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
23904 Reported by Mark D. Baushke.
23906 2006-01-24 Jim Meyering <jim@meyering.net>
23908 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
23910 2006-01-24 Bruno Haible <bruno@clisp.org>
23912 * modules/strnlen (Maintainer): Change from glibc to all.
23914 2006-01-24 Bruno Haible <bruno@clisp.org>
23916 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
23917 Patch by Paul Eggert.
23919 2006-01-24 Bruno Haible <bruno@clisp.org>
23921 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
23923 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
23926 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
23927 'signed char' to avoid problems with the built-in _Bool type.
23928 Reported by Paul Eggert on 2005-11-26.
23930 2006-01-24 Bruno Haible <bruno@clisp.org>
23932 * gnulib-tool (func_import): Avoid constructing complicated sed
23933 expressions inside backquote.
23934 Report and solution by Mark D. Baushke <mdb@gnu.org>.
23936 2006-01-23 Ulrich Drepper <drepper@redhat.com>
23938 These changes imported from libc.
23939 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
23940 test and two separate function calls.
23941 * lib/strndup.c (__strndup): Add libc_hidden_def.
23943 2006-01-23 Simon Josefsson <jas@extundo.com>
23945 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
23946 Remove the test_*_SOURCES variable: automake infers it by default.
23947 * modules/tls-tests: Likewise.
23949 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
23951 Work around porting bugs reported by Dieter in
23952 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
23953 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
23954 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
23955 Include "getopt.h" first, to check interface.
23956 (getenv): Declare only if defined HAVE_DECL_GETENV &&
23958 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
23959 (__strndup): Revert to K&R-style function dfns, the glibc style.
23960 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
23961 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
23962 Include strnlen.h first, to get prototype properly.
23963 (strnlen): Renamed from __strnlen.
23966 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
23968 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
23970 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
23972 * config/srclist.txt: Adjust to reflect glibc reorganization.
23973 This affects only comments.
23975 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
23977 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
23978 Reported by Bruce Korb <bkorb@gnu.org>.
23980 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
23982 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
23983 to pacify gcc -Wswitch-default.
23985 2006-01-22 Bruno Haible <bruno@clisp.org>
23987 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
23988 temporary buffer for sprintf, take into account the precision also
23989 for 'd', 'i', 'u', 'o', 'x', 'X'.
23991 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
23993 * modules/argp-tests: New module
23994 * tests/test-argp.c: New file
23995 * tests/test-argp-2.sh: New file
23997 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
23999 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
24000 (__argp_base_name): Removed
24001 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
24003 (__argp_base_name): Provide macro definition or extern declaration
24004 depending on the configuration
24006 2006-01-20 Simon Josefsson <jas@extundo.com>
24008 * modules/inet_ntop (Depends-on): Depend on sys_socket.
24010 2006-01-20 Simon Josefsson <jas@extundo.com>
24012 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
24014 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
24016 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
24017 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
24018 Suggested by Bruno Haible.
24020 2006-01-20 Karl Berry <karl@gnu.org>
24022 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
24023 until changes propagate, I guess.
24025 2006-01-19 Simon Josefsson <jas@extundo.com>
24027 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
24029 2006-01-19 Simon Josefsson <jas@extundo.com>
24031 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
24033 2006-01-19 Simon Josefsson <jas@extundo.com>
24035 * gnulib-tool: Set check_PROGRAMS.
24037 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
24038 modules/des-tests, modules/gc-arcfour-tests,
24039 modules/gc-arctwo-tests, modules/gc-des-tests,
24040 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
24041 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
24042 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
24043 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
24044 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
24045 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
24046 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
24049 2006-01-18 Simon Josefsson <jas@extundo.com>
24051 * modules/socklen (Depends-on): Depend on sys_socket.
24053 2006-01-18 Simon Josefsson <jas@extundo.com>
24055 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
24056 modules/des-tests, modules/gc-arcfour-tests,
24057 modules/gc-arctwo-tests, modules/gc-des-tests,
24058 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
24059 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
24060 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
24061 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
24062 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
24063 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
24064 $(EXEEXT) to automake TESTS variable, for mingw32.
24066 2006-01-17 Simon Josefsson <jas@extundo.com>
24068 * modules/socklen (Include): Need sys/socket.h.
24070 2006-01-17 Bruno Haible <bruno@clisp.org>
24072 * modules/ssize_t (Include): Add <sys/types.h>.
24074 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
24076 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
24077 it's not portable and it doesn't work with cross-compiles.
24078 Problem reported by Bruno Haible. Fix missing-$ typo in
24079 'test "gl_cv_ignore_unused_libraries" ...' that prevented
24080 -zignore from being used with Sun's C compiler.
24082 2006-01-12 Simon Josefsson <jas@extundo.com>
24084 * lib/base64.c: Fix warning, reported by Bruno Haible
24085 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
24087 2006-01-12 Bruno Haible <bruno@clisp.org>
24089 * modules/ldd: New file.
24090 * build-aux/ldd.sh.in: New file.
24091 * MODULES.html.sh (Support for building libraries and executables): Add
24094 2006-01-12 Bruno Haible <bruno@clisp.org>
24096 * m4/ldd.m4: New file.
24098 2006-01-12 Bruno Haible <bruno@clisp.org>
24100 * gnulib-tool (func_import, func_create_testdir): Don't go into an
24101 endless loop while replacing $auxdir with build-aux.
24103 2006-01-11 Simon Josefsson <jas@extundo.com>
24105 * lib/stdint_.h (SIZE_MAX): Add missing (.
24107 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
24109 Sync from coreutils.
24110 * lib/md5.c: Fix commentary typos.
24111 (alignof, UNALIGNED_P): No need for a GCC-specific version.
24112 * lib/md5.h (__attribute__): Remove; unused.
24113 * lib/sha1.c: Fix commentary to match md5 better.
24114 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
24115 so that we don't need to worry about alignment. All uses changed.
24116 This merges the 2005-10-28 md5 change into sha1.
24118 2006-01-11 Jim Meyering <jim@meyering.net>
24120 Sync from coreutils.
24121 * lib/md5.c (OP): Fix spacing.
24123 2006-01-11 Bruno Haible <bruno@clisp.org>
24125 Ensure automatic ordering between gl_LOCK and gl_ARGP.
24126 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
24127 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
24129 2006-01-11 Bruno Haible <bruno@clisp.org>
24131 Ensure automatic ordering between gl_LOCK and gl_ARGP.
24132 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
24133 the "early" section as well.
24135 2006-01-11 Bruno Haible <bruno@clisp.org>
24137 Avoid "ar: no archive members specified" error on MacOS X.
24138 * gnulib-tool (func_modules_add_dummy): New function.
24139 (func_import, func_create_testdir): Invoke it.
24141 2006-01-11 Bruno Haible <bruno@clisp.org>
24143 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
24144 with $auxdir in AC_CONFIG_FILES statements.
24146 2006-01-11 Bruno Haible <bruno@clisp.org>
24148 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24149 Initialize also noinst_HEADERS to empty.
24151 2006-01-11 Bruno Haible <bruno@clisp.org>
24153 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
24155 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
24158 2006-01-11 Bruno Haible <bruno@clisp.org>
24160 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
24161 overridable by the user.
24162 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24164 2006-01-10 Simon Josefsson <jas@extundo.com>
24166 * modules/sys_socket: New file.
24168 2006-01-10 Simon Josefsson <jas@extundo.com>
24170 * m4/sys_socket_h.m4: New file.
24172 2006-01-10 Simon Josefsson <jas@extundo.com>
24174 * lib/socket_.h: New file.
24176 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
24178 * modules/readutmp (Maintainer): Add myself.
24180 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
24182 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
24183 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
24184 People who are still concerned with buggy memcmp implementations
24185 can invoke gl_FUNC_MEMCMP themselves.
24187 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
24189 * lib/regex_internal.h (BITSET_WORD_BITS):
24190 Work around a bug in 64-bit PGC (before version 6.1-2), where the
24191 preprocessor mishandles large unsigned values as if they were signed.
24192 Problem reported by Claudio Fontana in
24193 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
24195 2006-01-10 Jim Meyering <jim@meyering.net>
24197 Avoid the double-free (first in fts_read, second in fts_close) that
24198 would occur when an `active' directory is made inaccessible (e.g.,
24199 via chmod a-x) during a traversal.
24200 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
24201 before returning. Reproduce this failure by
24202 mkdir -p a/b; cd a; chmod a-x . b
24203 Reported by Stavros Passas.
24205 Sync from coreutils.
24206 * lib/sha1.c: Tweak grammar in a comment.
24208 2006-01-10 Jim Meyering <jim@meyering.net>
24210 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
24211 Patch by Joerg Sonnenberger.
24213 2006-01-10 Bruno Haible <bruno@clisp.org>
24215 * modules/readutmp: Depend on module free.
24216 * modules/strtok_r: Depend on module restrict.
24218 2006-01-10 Bruno Haible <bruno@clisp.org>
24220 * modules/gettext (configure.ac): Add an invocation of
24221 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
24223 2006-01-10 Bruno Haible <bruno@clisp.org>
24225 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
24226 Reported by Werner Lemberg <wl@gnu.org>.
24228 2006-01-10 Bruno Haible <bruno@clisp.org>
24230 * lib/localcharset.c: Update from GNU gettext.
24232 2006-01-10 Bruno Haible <bruno@clisp.org>
24234 * lib/argp.h (__const): Remove macro. Use const instead.
24235 * lib/argp-fmtstream.h (__const): Likewise.
24236 * lib/glob_.h (__const): Remove macro.
24237 * lib/glob-libc.h: Use const instead of __const.
24239 2006-01-10 Bruno Haible <bruno@clisp.org>
24241 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
24243 Needed to avoid an automake error regarding the 'gettext' module.
24245 2006-01-09 Simon Josefsson <jas@extundo.com>
24247 * modules/inet_ntop (Depends-on): Add restrict.
24249 2006-01-09 Simon Josefsson <jas@extundo.com>
24251 * modules/gc-rijndael-tests (License): Put under LGPL.
24253 * modules/gc-des-tests (License): Likewise.
24255 * modules/gc-arcfour-tests (License): Likewise.
24257 * modules/gc-arctwo-tests (License): Likewise.
24259 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
24261 * modules/gc-hmac-sha1-tests (Files): Likewise.
24263 * modules/gc-hmac-md5-tests (License): Likewise.
24265 * modules/gc-sha1-tests (License): Likewise.
24267 * modules/gc-md5-tests (License): Likewise.
24269 * modules/gc-md4-tests (License): Likewise.
24271 * modules/gc-md2-tests (License): Likewise.
24273 * modules/gc-tests (License): Likewise.
24275 * modules/des-tests (License): Likewise.
24277 * modules/md4-tests (License): Likewise.
24279 * modules/md2-tests (License): Likewise.
24281 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
24283 Sync from coreutils:
24285 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
24286 * modules/lib-ignore: New file.
24287 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
24288 chdir-safer.m4, lchmod.m4.
24289 * modules/openat: Add mkdirat.c, openat-priv.h.
24291 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
24293 Sync from coreutils.
24294 * m4/lib-ignore.m4: New file.
24295 * m4/lchmod.m4: New file.
24297 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
24299 Sync from coreutils.
24300 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
24301 for write access: POSIX says that must fail.
24302 * lib/fts.c (diropen): Likewise.
24303 * lib/save-cwd.c (save_cwd): Likewise.
24304 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
24305 well, for minor improvements on hosts that lack O_DIRECTORY.
24306 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
24307 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
24308 Fall back on chown if open failed with EACCES.
24310 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
24311 Report an error at compile-time if only a 1-second nominal clock
24312 resolution is found.
24314 * lib/lchmod.h: New file.
24315 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
24316 (make_dir_parents): Use lchown rather than chown, and
24317 lchmod rather than chmod.
24319 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
24320 dummies too. Problem with "none" reported by Bob Proulx. Problem with
24321 "proc" reported by n0dalus.
24323 * lib/mountlist.c: Include <limits.h>.
24324 (dev_from_mount_options)
24325 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
24326 New function. It no longer assumes "dev=" has the System V meaning
24327 on Linux (since it doesn't). It also parses "dev=" more carefully.
24328 (read_file_system_list)
24329 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
24330 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
24333 * lib/posixtm.h (PDS_PRE_2000): New macro.
24334 * lib/posixtm.c (year): Arg is now syntax_bits rather than
24335 allow_century. All usages changed. Reject dates outside the range
24336 1969-1999 if PDS_PRE_2000 is used.
24338 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
24340 Sync from coreutils.
24341 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
24342 (Time of day items): Mention the possibility of leap seconds.
24343 Problem reported by Dr. David Alan Gilbert.
24345 2006-01-09 Jim Meyering <jim@meyering.net>
24347 Sync from coreutils.
24349 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
24351 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
24353 * lib/modechange.c (mode_compile): Reject an invalid mode string
24354 that starts with an octal digit. From Andreas Gruenbacher.
24356 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
24357 and dup to open_safer and dup_safer, respectively.
24358 (openat_permissive): Fix typo in comment.
24360 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
24361 "gettext.h"; either no longer needed or are guaranteed by openat.h.
24362 (_): Remove; no longer needed.
24363 (openat): Renamed from rpl_openat; no need for rpl_openat
24364 since openat.h renames openat for us.
24365 Replace most of the body with a call to openat_permissive,
24366 to avoid duplicate code.
24367 Port to (probably hypothetical) environments were mode_t is
24369 (openat_permissive): Require mode arg, so that we can check
24370 types better. Put it just after flags. Change cwd failure
24371 indicator from pointer-to-bool to pointer-to-errno-value.
24372 All callers changed.
24373 Invoke openat_save_fail and/or openat_restore_fail if
24374 cwd_errno is null, so that openat can call us.
24375 (openat_permissive, fdopendir, fstatat, unlinkat):
24376 Simplify errno handling to avoid some duplicate code,
24377 as it's OK to set errno on success.
24378 * lib/openat.h: Revamp code so that function macros depend on
24379 __OPENAT_PREFIX only, not also on AT_FDCWD.
24380 (openat_ro): Remove. Caller changed to use openat_permissive.
24381 (openat_permissive): Now a macro, if not a function.
24382 (openat_restore_fail, openat_save_fail): Now always functions,
24383 since mkdirat needs them even if __OPENAT_PREFIX is defined.
24385 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
24387 * lib/mkdirat.c: Include openat-priv.h.
24388 Remove definitions of macros defined therein.
24389 * lib/openat.c: Likewise.
24391 * lib/mkdirat.c (mkdirat): New file and function.
24392 * lib/openat.h (mkdirat): Declare.
24394 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
24396 * lib/openat.h (openat_permissive): Declare.
24397 (openat_ro): Define.
24399 * lib/openat.c (EXPECTED_ERRNO): New macro.
24400 (openat_permissive): New function -- used in remove.c rewrite.
24401 (all functions): Set errno just before returning, only if there
24402 was an actual failure.
24403 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
24405 Emulate openat-family functions using Linux's procfs, if possible.
24406 Idea and some code based on Ulrich Drepper's glibc changes.
24408 * lib/openat.c: (BUILD_PROC_NAME): New macro.
24409 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
24410 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
24411 before falling back on save_cwd and restore_cwd.
24412 (fdopendir, fstatat, unlinkat): Likewise.
24414 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
24415 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
24417 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
24418 as second argument to va_arg. Otherwise, some versions of gcc
24419 warn that `if this code is reached, the program will abort'.
24421 2006-01-09 Jim Meyering <jim@meyering.net>
24423 Sync from coreutils.
24424 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
24425 Require openat-priv.h.
24427 2006-01-09 Bruno Haible <bruno@clisp.org>
24429 * modules/strnlen (Include): Use strnlen.h.
24431 2006-01-09 Bruno Haible <bruno@clisp.org>
24433 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
24435 2006-01-09 Bruno Haible <bruno@clisp.org>
24437 * lib/sysexit_.h (EX_OK): New macro.
24438 Suggested by Martin Lambers <marlam@marlam.de>.
24440 2006-01-09 Bruno Haible <bruno@clisp.org>
24442 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
24443 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
24445 2006-01-09 Bruno Haible <bruno@clisp.org>
24447 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
24450 2006-01-09 Bruno Haible <bruno@clisp.org>
24452 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
24453 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
24454 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
24455 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
24457 2006-01-09 Bruno Haible <bruno@clisp.org>
24459 * build-aux/javacomp.sh.in: New file, moved from lib/.
24460 * modules/javacomp-script (Files): Update.
24461 (configure.ac): Add AC_CONFIG_FILES invocation.
24462 (EXTRA_DIST): Remove variable.
24464 * build-aux/javaexec.sh.in: New file, moved from lib/.
24465 * modules/javaexec (Files): Update.
24466 (configure.ac): Add AC_CONFIG_FILES invocation.
24467 (EXTRA_DIST): Remove javaexec.sh.in.
24469 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
24470 * modules/csharpcomp-script (Files): Update.
24471 (configure.ac): Add AC_CONFIG_FILES invocation.
24472 (EXTRA_DIST): Remove variable.
24474 * build-aux/csharpexec.sh.in: New file, moved from lib/.
24475 * modules/csharpexec (Files): Update.
24476 (configure.ac): Add AC_CONFIG_FILES invocation.
24477 (EXTRA_DIST): Remove csharpexec.sh.in.
24479 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
24481 Sync from coreutils.
24483 Add POSIX ACL support
24484 * lib/acl.h (copy_acl, set_acl): Add declarations.
24485 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
24486 systems other than Linux.
24487 (chmod_or_fchmod): New function: use fchmod when possible,
24488 and chmod otherwise.
24489 (file_has_acl): Add a POSIX ACL implementation, with a
24490 Linux-specific subcase.
24491 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
24492 S_ISVTX from one file to another. Fall back to fchmod/chmod when
24493 acls are unsupported.
24494 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
24495 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
24498 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
24500 Sync from coreutils.
24501 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
24503 2006-01-07 Bruno Haible <bruno@clisp.org>
24505 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
24508 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
24510 * lib/strftime.c (tzname): Don't declare if it is already #defined.
24511 Problem reported for Mingw by Mark Junker.
24513 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
24515 * README: Gnulib normally doesn't generate a tarball.
24517 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
24519 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
24520 long int, not int, for nanosecond counts, so that people who are
24521 used to POSIX struct timespec won't be surprised. Reported by Jim
24524 2005-12-28 Bruno Haible <bruno@clisp.org>
24526 * build-aux/config.rpath: Update from GNU gettext.
24528 2005-12-16 Jim Meyering <jim@meyering.net>
24530 * modules/fprintftime: New module.
24531 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
24533 2005-12-16 Jim Meyering <jim@meyering.net>
24535 * m4/fprintftime.m4: New file.
24537 2005-12-16 Jim Meyering <jim@meyering.net>
24539 * lib/fprintftime.c, lib/fprintftime.h: New files.
24541 2005-12-15 Simon Josefsson <jas@extundo.com>
24543 * modules/socklen (configure.ac): Fix M4 macro name, to align with
24546 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
24548 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
24549 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
24551 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
24553 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
24554 * lib/argp-help.c (fill_in_uparams): Check if the constructed
24555 struct uparams is valid. Fall back to the default values if it is
24558 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
24560 * modules/argp (Files): Add argp-pin.c
24561 (Depends-on): dirname
24562 (lib_SOURCES): Add argp-pin.c
24564 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
24566 * m4/argp.m4: Check if program_invocation_name and
24567 program_invocation_short_name are declared and define appropriate
24568 macros if they are not.
24570 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
24572 * lib/argp-help.c (__argp_base_name): New function
24573 (__argp_short_program_name): Rewrite using __argp_base_name
24574 * lib/argp-namefrob.h: Define program_invocation_name and
24575 program_invocation_short_name if requested
24576 (__argp_base_name): Add prototype
24577 * lib/argp-parse.c (argp_def): Use gettext wrappers
24578 (argp_default_parser): Use __argp_base_name
24579 * lib/argp-pin.c: New file. Defines program_invocation_name and
24580 program_invocation_short_name on systems that lack them.
24582 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
24584 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
24585 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
24586 porting problem reported by Georg Schwarz in
24587 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
24589 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
24591 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
24592 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
24593 porting problem reported by Georg Schwarz in
24594 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
24596 2005-12-05 Bruno Haible <bruno@clisp.org>
24598 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
24599 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
24600 Reported by Mark Junker <mjscod@gmx.de>.
24602 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
24604 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
24605 Use implementation from Albert Chin, with some
24606 comments/corrections by Stepan Kasal and myself.
24608 2005-12-02 Bruno Haible <bruno@clisp.org>
24610 * gnulib-tool (func_import): Accept GPLed build tool modules when
24612 * modules/csharpcomp-script: New file.
24613 * modules/csharpcomp: Depend on it.
24614 * modules/javacomp-script: New file.
24615 * modules/javacomp: Depend on it.
24616 Suggested by Simon Josefsson.
24618 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
24620 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
24621 statement, to work around an HP-UX 10.20 compiler bug reported by
24624 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
24626 * modules/savedir (Depends-on): Add openat.
24628 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
24630 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
24631 (uintmax_t) [defined uintmax_t]: Do not declare.
24632 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
24633 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
24634 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
24635 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
24636 sake of portability to weird hosts that C allows (though we don't
24637 know of any practical examples).
24639 * lib/savedir.h (fdsavedir): New decl.
24640 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
24641 contains most of the former guts of savedir.
24642 (savedir): Use savedirstream.
24643 Include "openat.h".
24645 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
24647 * modules/obstack (Files): Add m4/ulonglong.m4.
24648 Problem reported by Davide Angelocola.
24650 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
24652 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
24653 coreutils no longer futzes with rounding modes.
24655 2005-11-14 Jim Meyering <jim@meyering.net>
24657 * lib/mkstemp-safer.c: Include <config.h>, required for possible
24658 replacement of mkstemp.
24660 2005-11-10 Simon Josefsson <jas@extundo.com>
24662 * lib/readline.c: Remove EOL.
24664 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
24666 * modules/gethrxtime (Depends-on): Add gettime.
24668 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
24670 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
24671 or gettimeofday; no longer needed.
24673 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
24675 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
24677 (gethrxtime) [! (HAVE_NANOUPTIME
24678 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
24679 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
24680 our own approximation.
24682 2005-11-08 Eric Blake <ebb9@byu.net>
24684 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
24686 2005-11-08 Eric Blake <ebb9@byu.net>
24688 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
24690 2005-11-04 Bruno Haible <bruno@clisp.org>
24692 * gnulib-tool: Implement --update mode.
24694 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
24696 Fix porting problem reported by Theodoros V. Kalamatianos.
24697 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
24698 Don't assume that futimes failing means we must fail.
24700 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
24702 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
24703 variables to suggest the intended function of the PATH_MAX check.
24705 2005-10-30 Kean Johnston <jkj@sco.com>
24707 Trivial changes to support SCO systems.
24708 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
24710 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
24711 where __ptr is null when no I/O is pending.
24713 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
24715 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
24716 leave errno alone. Problem reported by Dmitry V. Levin.
24718 2005-10-28 Simon Josefsson <jas@extundo.com>
24720 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
24723 * tests/test-gc-md2.c, tests/test-md2.c: New files.
24725 * modules/md2, modules/md2-tests: New files.
24727 2005-10-28 Simon Josefsson <jas@extundo.com>
24729 * m4/inet_ntop.m4: More tests.
24731 * m4/gc-md2.m4, md2.m4: New file.
24733 2005-10-28 Simon Josefsson <jas@extundo.com>
24735 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
24736 "restrict" keywords, as per POSIX. Protect the function
24737 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
24738 Don't use K&R prototypes. Check the sprintf return values.
24739 Re-define EAFNOSUPPORT if not present. Indent.
24741 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
24742 suggested by Bruno Haible <bruno@clisp.org>.
24744 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
24746 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
24748 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
24751 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
24753 * lib/md2.h, lib/md2.c: New files.
24755 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
24757 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
24758 errno alone. Problem reported by Frederic Jolliton.
24760 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
24762 * modules/verify (License): Change from GPL to LGPL. This is a
24763 tiny module and there are apparently near-equivalents that are
24764 under the BSD license.
24766 2005-10-24 Simon Josefsson <jas@extundo.com>
24768 * modules/sha1: Relicense to LGPL.
24770 2005-10-24 Simon Josefsson <jas@extundo.com>
24772 * lib/md4.h: Shrink buffer size, now that we changed the type.
24774 2005-10-23 Simon Josefsson <jas@extundo.com>
24776 * gnulib-tool (func_import): Fix --tests-base.
24778 2005-10-22 Simon Josefsson <jas@extundo.com>
24780 * modules/arcfour (Depends-on): Need stdint.
24782 2005-10-22 Simon Josefsson <jas@extundo.com>
24784 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
24785 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
24787 2005-10-22 Simon Josefsson <jas@extundo.com>
24789 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
24790 suggested by Bruno Haible <bruno@clisp.org>.
24792 2005-10-22 Simon Josefsson <jas@extundo.com>
24794 * lib/crc.h: Include stddef.h, for size_t.
24796 2005-10-22 Simon Josefsson <jas@extundo.com>
24798 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
24799 arcfour_context struct (simplify test vector testing in GNU
24802 2005-10-21 Simon Josefsson <jas@extundo.com>
24804 * modules/des, modules/des-tests: New files.
24806 * modules/gc-des, modules/gc-des-tests: New files.
24808 * tests/test-des.c, tests/test-gc-des.c: New file.
24810 2005-10-21 Simon Josefsson <jas@extundo.com>
24812 * modules/arctwo, modules/arctwo-tests: New files.
24814 * tests/test-arctwo.c: New file.
24816 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
24818 * tests/test-gc-arctwo.c: New file.
24820 2005-10-21 Simon Josefsson <jas@extundo.com>
24822 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
24823 Bruno Haible <bruno@clisp.org>.
24825 * m4/gc-des.m4: New file.
24827 2005-10-21 Simon Josefsson <jas@extundo.com>
24829 * m4/arctwo.m4: New file.
24831 * m4/gc-arctwo.m4: New file.
24833 2005-10-21 Simon Josefsson <jas@extundo.com>
24835 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
24838 2005-10-21 Simon Josefsson <jas@extundo.com>
24840 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
24843 * lib/hmac-sha1.c (hmac_sha1): Likewise.
24845 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
24846 Bruno Haible <bruno@clisp.org>.
24848 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
24851 2005-10-21 Simon Josefsson <jas@extundo.com>
24853 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
24855 2005-10-21 Simon Josefsson <jas@extundo.com>
24857 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
24859 2005-10-21 Simon Josefsson <jas@extundo.com>
24861 * lib/des.h, lib/des.c: New files.
24863 * lib/gc-gnulib.c: Support DES.c
24865 2005-10-21 Simon Josefsson <jas@extundo.com>
24867 * lib/arctwo.h, lib/arctwo.c: New files.
24869 * lib/gc-gnulib.c: Support ARCTWO.
24871 2005-10-21 Simon Josefsson <jas@extundo.com>
24873 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
24874 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24876 2005-10-21 Simon Josefsson <jas@extundo.com>
24878 * gnulib-tool (func_import, func_create_testdir): Define automake
24879 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
24880 Makefile.am snippet),
24881 suggested by Bruno Haible <bruno@clisp.org>.
24883 * modules/gc (Makefile.am): Use it.
24885 2005-10-21 Bruno Haible <bruno@clisp.org>
24887 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
24890 2005-10-19 Simon Josefsson <jas@extundo.com>
24892 * tests/test-gc-rijndael.c: New file.
24894 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
24896 2005-10-19 Simon Josefsson <jas@extundo.com>
24898 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
24901 2005-10-19 Simon Josefsson <jas@extundo.com>
24903 * tests/test-gc-arcfour.c: New file.
24905 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
24907 2005-10-19 Simon Josefsson <jas@extundo.com>
24909 * modules/gc-md4, modules/gc-md4-tests: New file.
24911 * tests/test-gc-md4.c: New file.
24913 2005-10-19 Simon Josefsson <jas@extundo.com>
24915 * m4/gc-md4.m4: New file.
24917 2005-10-19 Simon Josefsson <jas@extundo.com>
24919 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
24920 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
24923 2005-10-19 Simon Josefsson <jas@extundo.com>
24925 * m4/gc-arcfour.m4: New file.
24927 * m4/gc-rijndael.m4: New file.
24929 2005-10-19 Simon Josefsson <jas@extundo.com>
24931 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
24933 2005-10-19 Simon Josefsson <jas@extundo.com>
24935 * lib/gc-gnulib.c: Support ARCFOUR.
24937 2005-10-19 Simon Josefsson <jas@extundo.com>
24939 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
24942 * lib/gc.h: Add ECB enum type.
24944 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
24946 2005-10-18 Simon Josefsson <jas@extundo.com>
24948 * tests/test-md5.c: New file.
24950 * modules/md5-tests: New file.
24952 2005-10-18 Simon Josefsson <jas@extundo.com>
24954 * tests/test-md4.c: New file.
24956 * modules/md4, modules/md4-tests: New files.
24958 2005-10-18 Simon Josefsson <jas@extundo.com>
24960 * m4/md4.m4: New file.
24962 2005-10-18 Simon Josefsson <jas@extundo.com>
24964 * lib/md4.h, lib/md4.c: New files, based on md5.?.
24966 2005-10-17 Stepan Kasal <kasal@ucw.cz>
24968 * gnulib-tool (func_create_testdir): Omit the second check whether
24969 BUILT_SOURCES in nonempty.
24971 2005-10-17 Simon Josefsson <jas@extundo.com>
24973 * tests/test-rijndael.c: New file.
24975 2005-10-17 Simon Josefsson <jas@extundo.com>
24977 * modules/sha1: Depend on stdint instead of md5.
24979 * modules/md5: Depend on stdint, remove uint32_t.
24981 2005-10-17 Simon Josefsson <jas@extundo.com>
24983 * modules/gc-sha1-tests: New file.
24985 * tests/test-gc-sha1.c: New file.
24987 2005-10-17 Simon Josefsson <jas@extundo.com>
24989 * m4/md5.m4: Remove call to uint32_t.m4.
24991 2005-10-17 Simon Josefsson <jas@extundo.com>
24993 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
24995 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
24998 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
25000 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
25002 2005-10-17 Simon Josefsson <jas@extundo.com>
25004 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
25006 2005-10-17 Simon Josefsson <jas@extundo.com>
25008 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
25010 2005-10-17 Simon Josefsson <jas@extundo.com>
25012 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
25014 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
25016 2005-10-17 Bruno Haible <bruno@clisp.org>
25018 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
25019 that it can also be used in a test.
25021 2005-10-16 Bruno Haible <bruno@clisp.org>
25023 * gnulib-tool (func_emit_tests_Makefile_am): Also define
25024 TESTS_ENVIRONMENT, so that individual tests can augment it.
25026 * gnulib-tool (func_create_testdir): Use an intermediate target for
25027 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
25028 macros, like $(ALLOCA_H), which cannot be passed through the command
25031 2005-10-15 Simon Josefsson <jas@extundo.com>
25033 * modules/rijndael-tests: New file.
25035 * modules/rijndael: New file.
25037 2005-10-15 Simon Josefsson <jas@extundo.com>
25039 * m4/rijndael.m4: New file.
25041 2005-10-15 Simon Josefsson <jas@extundo.com>
25043 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
25045 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
25047 2005-10-14 Simon Josefsson <jas@extundo.com>
25049 * tests/test-arcfour.c: New file.
25051 * modules/arcfour, modules/arcfour-tests: New files.
25053 2005-10-14 Simon Josefsson <jas@extundo.com>
25055 * m4/arcfour.m4: New file.
25057 2005-10-14 Simon Josefsson <jas@extundo.com>
25059 * lib/arcfour.h, lib/arcfour.c: New files.
25061 2005-10-14 Roland McGrath <roland@redhat.com>
25063 Import from libc. [BZ #1331]
25064 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
25066 Reported by Matej Vela <vela@debian.org>.
25068 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
25070 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
25071 include <wchar.h>; no longer needed.
25073 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
25075 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
25077 2005-10-14 Jakub Jelinek <jakub@redhat.com>
25078 and Ulrich Drepper <drepper@redhat.com>
25081 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
25082 instead of inline stream orientation test and two separate
25083 function calls. Pay no attention to USE_IN_LIBIO.
25085 2005-10-13 Simon Josefsson <jas@extundo.com>
25087 * modules/gc-hmac-md5-tests: New file.
25089 * tests/test-gc-hmac-sha1.c: New file.
25091 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
25093 * modules/gc-hmac-md5-tests: New file.
25095 * tests/test-gc-md5.c: New file.
25097 * modules/gc-md5-tests: New file.
25099 2005-10-13 Simon Josefsson <jas@extundo.com>
25101 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
25102 Move memory allocation outside of loop.
25104 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
25106 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
25107 intermediate directory is in a read-only file system. Problem
25108 reported by Eric Blake.
25110 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
25112 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
25114 2005-10-12 Simon Josefsson <jas@extundo.com>
25116 * tests/test-hmac-sha1.c: New file.
25118 * modules/hmac-sha1-tests: New file.
25120 * modules/hmac-sha1: New file.
25122 2005-10-12 Simon Josefsson <jas@extundo.com>
25124 * modules/gc-sha1: New file.
25126 2005-10-12 Simon Josefsson <jas@extundo.com>
25128 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
25130 * tests/test-gc-pbkdf2-sha1.c: New file.
25132 2005-10-12 Simon Josefsson <jas@extundo.com>
25134 * modules/gc-md5, modules/gc-hmac-md5: New files.
25136 * modules/gc (Files): Remove md5, memxor and hmac files.
25138 2005-10-12 Simon Josefsson <jas@extundo.com>
25140 * m4/gc-pbkdf2-sha1.m4: New file.
25142 * m4/gc-hmac-sha1.m4: New file.
25144 * m4/gc-sha1: New file.
25146 * m4/hmac-sha1.m4: New file.
25148 2005-10-12 Simon Josefsson <jas@extundo.com>
25150 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
25152 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
25154 2005-10-12 Simon Josefsson <jas@extundo.com>
25156 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
25157 suggested by Bruno Haible <bruno@clisp.org>.
25159 2005-10-12 Simon Josefsson <jas@extundo.com>
25161 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
25163 2005-10-12 Simon Josefsson <jas@extundo.com>
25165 * lib/gc-pbkdf2-sha1.c: New file.
25167 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
25169 2005-10-12 Simon Josefsson <jas@extundo.com>
25171 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
25173 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
25175 2005-10-12 Simon Josefsson <jas@extundo.com>
25177 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
25178 GC_USE_HMAC_MD5, respectively.
25180 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
25181 (gc_md5): Fix typo.
25183 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
25185 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
25187 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
25189 2005-10-12 Bruno Haible <bruno@clisp.org>
25191 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
25192 Reported by Stepan Kasal <kasal@ucw.cz>.
25194 2005-10-11 Simon Josefsson <jas@extundo.com>
25196 * tests/test-crc.c: New file.
25198 * modules/crc, modules/crc-tests: New files.
25200 2005-10-11 Simon Josefsson <jas@extundo.com>
25202 * m4/crc.m4: New file.
25204 2005-10-11 Simon Josefsson <jas@extundo.com>
25206 * lib/gc.h: Add gc_hash and gc_hash_buffer.
25208 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
25210 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
25212 2005-10-11 Simon Josefsson <jas@extundo.com>
25214 * lib/crc.h, lib/crc.c: New files.
25216 * lib/gc.h (gc_hash_buffer): Add doc.
25218 2005-10-11 Bruno Haible <bruno@clisp.org>
25220 * modules/c-strcasestr: New file.
25221 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
25223 2005-10-11 Bruno Haible <bruno@clisp.org>
25225 * modules/c-strcase: New file.
25226 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
25228 2005-10-11 Bruno Haible <bruno@clisp.org>
25230 * lib/strcasecmp.c: Include limits.h.
25231 (strcasecmp): Avoid integer overflow on exotic platforms.
25232 * lib/strncasecmp.c: Include limits.h.
25233 (strncasecmp): Avoid integer overflow on exotic platforms.
25234 Reported by Paul Eggert.
25236 2005-10-11 Bruno Haible <bruno@clisp.org>
25238 * lib/c-strcasestr.h: New file, from GNU gettext.
25239 * lib/c-strcasestr.c: New file, from GNU gettext.
25241 2005-10-11 Bruno Haible <bruno@clisp.org>
25243 * lib/c-strcase.h: New file, from GNU gettext.
25244 * lib/c-strcasecmp.c: New file, from GNU gettext.
25245 * lib/c-strncasecmp.c: New file, from GNU gettext.
25247 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
25249 * modules/mempcpy (License): GPL -> LGPL.
25250 * modules/strchrnul (License): Likewise.
25251 * modules/sysexits (License): Likewise.
25253 2005-10-08 Simon Josefsson <jas@extundo.com>
25255 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
25257 2005-10-07 Simon Josefsson <jas@extundo.com>
25259 * m4/memxor.m4: Remove gl_C_RESTRICT call.
25261 2005-10-06 Simon Josefsson <jas@extundo.com>
25263 * tests/test-hmac-md5.c: New file.
25265 * modules/hmac-md5-tests: New file.
25267 * modules/hmac-md5: New file.
25269 2005-10-06 Simon Josefsson <jas@extundo.com>
25271 * m4/hmac-md5.m4: New file.
25273 * m4/memxor.m4: Require gl_C_RESTRICT.
25275 2005-10-06 Simon Josefsson <jas@extundo.com>
25277 * lib/memxor.c (memxor): Avoid casts and warnings.
25279 2005-10-06 Simon Josefsson <jas@extundo.com>
25281 * lib/hmac-md5.c: New file.
25283 * lib/hmac.h: New file.
25285 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
25287 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
25288 promotes to int, not unsigned int, to catch the AIX 5.3
25291 2005-10-05 Simon Josefsson <jas@extundo.com>
25293 * modules/memxor: New file.
25295 * modules/iconv (Files): Move config.rpath to havelib, it is used
25298 * modules/havelib (Files): Add config.rpath.
25300 2005-10-05 Simon Josefsson <jas@extundo.com>
25302 * m4/memxor.m4: New file.
25304 2005-10-05 Simon Josefsson <jas@extundo.com>
25306 * lib/memxor.c (memxor): Fix compiler error.
25308 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
25309 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
25311 * lib/memxor.h, lib/memxor.c: New files.
25313 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
25314 we assume all systems have it, suggested by Jim Meyering
25315 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
25316 any systems lack sys/socket.h; mingw32 is known to lack it, but we
25317 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
25320 2005-10-05 Simon Josefsson <jas@extundo.com>
25322 * config/srclist.txt: Add glibc bug 1423 for md5.h.
25324 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
25326 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
25327 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
25328 needed, since the source code now assumes these .h files.
25330 2005-10-05 Derek Price <derek@ximbiot.com>
25332 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
25334 2005-10-05 Bruno Haible <bruno@clisp.org>
25336 * modules/stdint (License): Change to LGPL.
25338 2005-10-04 Simon Josefsson <jas@extundo.com>
25340 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
25341 D. Baushke" <mdb@gnu.org>.
25343 2005-10-04 Bruno Haible <bruno@clisp.org>
25345 * lib/verify.h (verify_true): Provide alternative definition for C++.
25347 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
25349 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
25350 (SSIZE_MAX): New macro, if not already defined.
25351 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
25354 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
25356 Sync from coreutils.
25357 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
25358 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
25359 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
25360 ULLONG_MAX doesn't work with 2.7.2.1.
25362 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
25364 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
25367 * modules/exclude (Depends-on): Depend on verify.
25368 * modules/strtoimax (Depends-on): Likewise.
25369 * modules/utimecmp (Depends-on): Likewise.
25371 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
25373 * lib/exclude.c: Include verify.h.
25374 (verify): Remove. All callers changed to use verify.h's version.
25375 * lib/strtoimax.c: Likewise.
25376 * lib/utimecmp.c: Likewis.e
25378 Sync from coreutils.
25379 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
25380 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
25381 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
25382 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
25383 bother returning ENOSYS if settimeofday or stime fails; just let
25384 them return whatever errno they want to return.
25385 * lib/utimens.c: Include unistd.h, for dup2.
25386 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
25387 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
25389 2005-10-02 Jim Meyering <jim@meyering.net>
25391 Sync from coreutils.
25392 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
25393 from glibc-2.2.5 that fails for read-only files.
25395 2005-10-02 Jim Meyering <jim@meyering.net>
25397 Sync from coreutils.
25398 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
25399 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
25400 `#if HAVE_CONFIG_H'.
25401 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
25402 Remove AT_FDCWD test.
25403 Do not consume the fd unless successful.
25404 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
25405 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
25406 block, so that we don't even try to compile it if settimeofday is
25407 available. This works around a compilation failure on OSF1 V5.1,
25408 due to stime requiring a `long int*' while tv_sec is `int'.
25410 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
25412 Sync from coreutils.
25413 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
25414 against `yes', rather than just testing for nonempty.
25416 2005-10-01 Simon Josefsson <jas@extundo.com>
25418 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
25421 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
25422 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
25423 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
25424 freeaddrinfo and gai_strerror are declared by the POSIX headers.
25425 Check if struct addrinfo is declared.
25427 2005-10-01 Simon Josefsson <jas@extundo.com>
25429 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
25430 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
25431 AI_* and EAI_* definitions. Protect function declarations.
25433 2005-10-01 Jim Meyering <jim@meyering.net>
25435 Sync from coreutils.
25437 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
25438 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
25439 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
25440 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
25441 in the inet and nsl libraries. Required on Solaris 5.7.
25443 2005-10-01 Jim Meyering <jim@meyering.net>
25445 Sync from coreutils.
25446 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
25447 in the inet and nsl libraries. Required on Solaris 5.7.
25449 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
25451 * lib/getdelim.c (getdelim): Remove unused variables.
25453 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
25455 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
25456 so that the code works even with ancient cpp. Portability problem
25457 with GCC 2.7.2.1 reported by Thomas M.Ott.
25459 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
25461 * modules/regex (Depends-on): Add strcase.
25463 * modules/gethostname (Licence): Change from GPL to LGPL, since
25464 gethostname.c is a trivial implementation of a standard library
25466 * modules/poll (License): Change from GPL to LGPL, since it's
25467 derived from LGPL code.
25469 2005-09-27 Jim Meyering <jim@meyering.net>
25471 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
25474 * lib/intprops.h (signed_type_or_expr__): Define.
25475 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
25476 for unsigned types.
25478 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
25480 * lib/verify.h (verify_expr): Remove, replacing with:
25481 (verify_true): New macro that returns true instead of void.
25482 (verify_type__): Remove.
25483 (verify): Use verify_true rather than verify_type__.
25485 2005-09-26 Bruno Haible <bruno@clisp.org>
25487 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
25489 (lib_SOURCES): Remove mbchar.c.
25490 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
25491 (Files): Add m4/mbrtowc.m4.
25492 * modules/mbiter: Likewise.
25493 * modules/mbuiter: Likewise.
25495 2005-09-26 Bruno Haible <bruno@clisp.org>
25497 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
25498 compile mbchar.c if they are not both present.
25499 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
25500 * m4/mbiter.m4 (gl_MBITER): Likewise.
25501 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
25502 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
25503 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
25505 2005-09-25 Jim Meyering <jim@meyering.net>
25507 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
25508 also uses socklen_t.
25510 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
25512 * lib/utimens.c (ENOSYS): Define if not already defined.
25513 (futimens): Support having a null PATH if the file descriptor
25516 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
25518 (__attribute): Define to empty unless GCC 3.1 or later.
25519 This works around a core dump on OpenBSD 3.4, which has GCC
25520 2.95.3, which dumps core when given __attribute__(()). It also
25521 simplifies other tests, since we really don't want to bother with
25522 worrying about which ancient version of GCC supported what.
25523 Original problem reported by Yoann Vandoorselaere, with part of
25524 the fix suggested by Derek Price.
25526 2005-09-24 Jim Meyering <jim@meyering.net>
25528 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
25529 so we can once again use a positive bitfield width of 1 -- now we
25530 don't have to explain why we were using a bitfield width of 2.
25532 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
25534 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
25535 and similarly for the other external symbols. Problem reported
25538 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
25539 bug reported by Jim Meyering.
25541 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
25542 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
25543 not needed, since socklen is a prerequisite module.
25545 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
25547 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
25548 Problem reported by Eric Blake.
25549 (getaddrinfo): Initialize se so that it's not garbage.
25550 Redo internal storage allocation so that it doesn't make unportable
25551 assumptions about alignment.
25554 * lib/utimens.c (futimens): Use futimesat if available.
25555 Prefer it to futimes since it doesn't have the futimes bug.
25557 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
25558 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
25559 Instead, declare a function that returns a pointer to an array,
25560 and use verify_type__ to declare the size of the array.
25561 Problem and germ of a solution reported by Bruno Haible.
25562 (verify_type__): Use 2, not 1, for bitfield size, to avoid
25563 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
25565 2005-09-23 Jim Meyering <jim@meyering.net>
25567 Sync from coreutils.
25568 Correct build failure (socklen_t not defined) on at least
25569 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
25570 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
25572 2005-09-23 Jim Meyering <jim@meyering.net>
25574 * modules/getaddrinfo (Depends-on): Add socklen.
25576 2005-09-23 Bruno Haible <bruno@clisp.org>
25578 * tests/test-verify.c: New file.
25580 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
25582 Sync from coreutils.
25584 * modules/argmatch (Depends-on): Add verify.
25585 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
25587 * modules/save-cwd (Depends-on): Likewise.
25589 * modules/openat (Files): Add lib/openat-die.c.
25590 (Depends-on): Remove error, exitfail.
25593 * modules/verify: New file.
25594 * MODULES.html.sh (Diagnostics <assert.h>): New section,
25595 with "verify" module.
25597 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
25599 Sync from coreutils.
25601 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
25602 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
25603 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
25604 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
25605 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
25606 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
25607 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
25608 Don't bother checking for string.h, stdlib.h, unistd.h.
25609 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
25610 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
25612 * m4/jm-macros.m4 (gl_MACROS): Likewise.
25613 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
25615 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
25616 (gl_GETDATE): Use it.
25618 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
25620 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
25622 Sync from coreutils.
25624 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
25626 * lib/argmatch.h: Include verify.h
25627 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
25628 (ARGMATCH_ASSERT): Remove; unused.
25629 * lib/canonicalize.c: Assume STDC_HEADERS.
25630 * lib/exclude.c: Include "strcase.h".
25631 * lib/regex_internal.h [!defined _LIBC]: Likewise.
25632 * lib/getusershell.c: Include stdio--.h rather than stdio.h
25634 (getusershell): Call fopen, not fopen_safer.
25635 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
25636 Do not include unistd-safer.h.
25637 (save_cwd): Don't call fd_safer; no longer needed
25638 now that we include fcntl--.h.
25640 * lib/getdate.y (relative_time): New type.
25641 (RELATIVE_TIME_0): New constant.
25642 (parser_control): Use relative_time instead of doing it ourselves.
25643 (%union): Add new relative_time rel member.
25644 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
25646 (relunit, relunit_snumber): Now of type rel.
25647 (zone, rel, relunit, get_date): Adjust to above changes.
25649 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
25650 Do not include unistd-safer.h.
25651 (getloadavg): Don't call fd_safer; no longer needed
25652 now that we include fcntl--.h.
25654 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
25655 (make_dir_parents): Treat ENOSYS like EEXIST.
25657 Improve quality of diagnostics on restore_cwd failure.
25658 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
25659 (make_dir_parents): Last arg is now int * (for errno), not bool *.
25660 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
25661 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
25662 each time through the loop. Do not diagnose restore_cwd failure;
25663 that is the caller's job (and perhaps the caller does not care).
25665 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
25666 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
25667 If the file already exists but is not a directory, don't bother
25668 to try to make its parents.
25669 Close potential file descriptor leak if we can't chdir("/") (!).
25670 Don't always return true if chdir($PWD) fails; return true only
25671 if the requested action was done successfully (except for the
25673 Don't log final directory unless we actually made it.
25674 Refactor to avoid duplicate code to fix up permissions.
25675 Don't attempt to fix up parent permissions if chdir($PWD) fails.
25677 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
25678 to make it a bit faster and (I hope) clearer.
25679 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
25680 Fix bug in formats like %2N.
25682 * lib/verify.h: New file.
25684 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
25686 Sync from coreutils.
25687 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
25689 2005-09-22 Jim Meyering <jim@meyering.net>
25691 Sync from coreutils.
25693 * m4/lstat.m4 (gl_FUNC_LSTAT):
25694 Use AC_LIBSOURCES to require lstat.c and lstat.h.
25695 Remove obsolete comment.
25696 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
25697 * m4/xstrtod.m4: Likewise.
25699 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
25701 2005-09-22 Jim Meyering <jim@meyering.net>
25703 Sync from coreutils.
25705 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
25707 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
25708 the .tm_year member, since otherwise gcc-4.0 would now warn about
25709 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
25711 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
25712 order to avoid an unsuppressible warning from gcc on 64-bit systems.
25714 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
25715 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
25716 when run in a time zone for which daylight savings time is in effect
25717 for the starting date.
25719 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
25720 stop us from restricting permissions of just-created absolute-named
25722 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
25723 to restore initial working directory.
25724 * lib/mkdir-p.c (make_dir_parents): New parameter:
25725 different_working_dir, to tell caller if/when we change the working
25726 directory and are unable to return to the initial one.
25727 * lib/mkdir-p.h (make_dir_parents): Update prototype.
25728 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
25729 `return false'. This fixes a bug introduced on 2004-07-30.
25731 * lib/openat.c (fdopendir): Be sure to close the supplied
25732 file descriptor before returning. This makes our replacement
25733 implementation a little closer to Solaris's, where fdopendir
25734 ties the file descriptor to the returned DIR* pointer.
25735 * lib/openat.c (unlinkat): New function.
25736 * lib/openat.h (unlinkat): Add prototype.
25737 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
25738 (openat_restore_fail): Rename from openat_restore_die.
25739 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
25741 Provide an alternative to exiting immediately upon save_cwd or
25742 restore_cwd failure. Now, an application can arrange e.g.,
25743 to perform a longjump in that case.
25744 * lib/openat.c: Include dirname.h.
25745 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
25746 (rpl_openat, fdopendir, fstatat): Call openat_save_die
25747 and openat_restore_die rather than calling error directly.
25748 Don't include "error.h" or "exitfail.h"; they're no longer needed.
25750 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
25751 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
25754 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
25755 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
25756 int utc, int nanoseconds);
25758 date should not have to allocate a megabyte of virtual memory to
25759 handle a format argument like +%1048575T. When implemented with
25760 strftime, it must allocate such a buffer, use strftime to fill it
25761 in, print it, then free it.
25762 With fprintftime, it simply prints everything and exits.
25763 With no need for memory allocation, that's one fewer way to fail.
25764 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
25765 optional field width, not before, so we accept %9:z, not %:9z.
25766 (my_strftime): Be sure to use L_('x') for literals.
25768 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
25769 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
25770 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
25771 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
25772 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
25773 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
25774 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
25775 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
25776 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
25777 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
25778 * lib/xgethostname.c, lib/xreadlink.c:
25779 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
25781 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
25782 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
25783 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
25784 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
25785 and don't include <sys/file.h>).
25787 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
25789 Sync from coreutils.
25791 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
25792 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
25793 [!LDAV_DONE]: Avoid unused variable warning.
25795 2005-09-21 Bruno Haible <bruno@clisp.org>
25797 * lib/unicodeio.h (unicode_to_mb): New declaration.
25799 2005-09-20 Derek Price <derek@ximbiot.com>
25801 * lib/getaddrinfo.c: Don't include <netdb.h> included from
25804 2005-09-20 Bruno Haible <bruno@clisp.org>
25806 * gnulib-tool: Remove trailing slashes from the values specified for
25807 --source-base, --m4-base, --tests-base, --aux-dir.
25808 Suggested by Simon Josefsson <jas@extundo.com>.
25810 2005-09-20 Bruno Haible <bruno@clisp.org>
25812 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
25813 func_modules_to_filelist, func_import, func_create_testdir): Make all
25814 sorting results locale-independent, so that gnulib-cache.m4 doesn't
25815 change when gnulib-tool is invoked in a different locale.
25817 2005-09-19 Simon Josefsson <jas@extundo.com>
25819 * m4/socklen.m4: Fix typo.
25821 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25823 Use a consistent style for including <config.h>.
25824 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
25825 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
25826 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
25827 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
25828 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
25829 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
25830 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
25831 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
25832 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
25833 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
25834 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
25835 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
25836 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
25837 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
25838 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
25839 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
25840 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
25841 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
25842 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
25843 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
25844 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
25845 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
25846 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
25847 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
25848 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
25849 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
25850 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
25851 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
25852 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
25853 lib/xstrtoumax.c, lib/yesno.c:
25854 Standardize inclusion of config.h.
25855 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
25856 lib/inttostr.h: Removed inclusion of config.h from header files.
25857 * lib/inttostr.c: Adjusted in-tree users.
25858 * lib/timespec.h: Remove superfluous warning to include config.h.
25859 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
25860 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
25861 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
25862 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
25863 config.h with HAVE_CONFIG_H.
25865 2005-09-19 Jim Meyering <jim@meyering.net>
25867 * modules/pathmax (License): Change to LGPL.
25869 2005-09-19 Derek Price <derek@ximbiot.com>
25871 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
25873 2005-09-19 Bruno Haible <bruno@clisp.org>
25875 * gnulib-tool (import): Provide default for --tests-base.
25877 2005-09-19 Bruno Haible <bruno@clisp.org>
25879 * doc/quote.texi: New file, extracted from gnulib.texi.
25880 * doc/ctime.texi: New file, extracted from gnulib.texi.
25881 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
25882 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
25883 * doc/gnulib.texi: Include them.
25885 2005-09-18 Bruno Haible <bruno@clisp.org>
25888 * gnulib-tool (func_readlink): New function.
25889 (func_ln_if_changed): Use it.
25891 2005-09-18 Bruno Haible <bruno@clisp.org>
25893 * gnulib-tool: Support --with-tests also with --import.
25894 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
25895 (func_import): Use variables $testsbase and $inctests. Emit a
25896 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
25897 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
25898 SUBDIRS += $testsdir.
25899 (func_create_testdir): Update.
25901 2005-09-18 Bruno Haible <bruno@clisp.org>
25903 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
25904 instead of $dry_run.
25905 (func_cp_if_changed, func_mv_if_changed): Remove functions.
25906 (func_ln_if_changed): Don't handle dry-run here.
25907 (func_import): In dry-run mode, detect more precisely which actions
25908 would be performed, and don't use "...ing" verbs.
25910 2005-09-18 Bruno Haible <bruno@clisp.org>
25912 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
25913 (func_import): Use join on two temporary files instead of three nested
25914 loops, in order to determine which files are new or old.
25916 2005-09-18 Bruno Haible <bruno@clisp.org>
25918 * gnulib-tool (func_import): Comment out code that spits out the
25919 new files with --dry-run.
25921 2005-09-18 Bruno Haible <bruno@clisp.org>
25923 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
25925 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
25927 * lib/stat-time.h: New file.
25928 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
25929 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
25930 in a different way.
25931 (timespec_cmp): New function.
25932 * lib/utimecmp.c: Include stat-time.h.
25933 (SYSCALL_RESOLUTION): Depend on whether various struct stat
25934 members exist, not on the obsolescent ST_MTIM_NSEC.
25935 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
25937 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
25939 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
25941 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
25943 * MODULES.html.sh (File system functions): Add stat-time.
25944 * modules/stat-time: New file.
25945 * modules/timespec (Files): Remove m4/st_mtim.m4; this
25946 is now done in a different way, by the stat-time module.
25947 * modules/utimecmp (Depends-on): Add stat-time.
25949 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
25951 * m4/st_mtim.m4: Remove. Superseded by...
25952 * m4/stat-time.m4: New file.
25953 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
25954 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
25956 2005-09-15 Derek Price <derek@ximbiot.com>
25958 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
25960 2005-09-15 Derek Price <derek@ximbiot.com>
25962 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
25963 * lib/regex_internal.c: Ditto, using this...
25964 (__GNUC_PREREQ): ...new macro.
25965 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
25967 (__GNUC_PREREQ): ...this new macro.
25969 * lib/strstr.h: Include string.h. Define strstr as a macro here.
25971 2005-09-15 Derek Price <derek@ximbiot.com>
25972 Paul Eggert <eggert@cs.ucla.edu>
25974 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
25975 changes, consolidating in...
25976 * lib/regex_internal.h: ...this file.
25978 2005-09-13 Jim Meyering <jim@meyering.net>
25980 * lib/canon-host.c: Filter through gnu indent and reword comments
25982 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
25984 2005-09-13 Derek Price <derek@ximbiot.com>
25986 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
25988 Reported by Jim Meyering <jim@meyering.net>.
25990 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
25992 * lib/base64.c: Typo.
25993 (base64_encode): Put b64str in initialized data section.
25995 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
25997 Merge glibc and coreutils changes into gnulib, plus a few
25999 * lib/md5.c: Use #error rather than a string.
26000 (CYCLIC): New macro, from glibc source. Use it instead of rol.
26001 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
26002 (__attribute__): Define to empty for non recent-GCC.
26003 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
26004 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
26005 Renamed from their non-__ counterparts, with new macros replacing
26006 them if not _LIBC. Add __THROW attribute.
26008 (struct md5_ctx): Align buffer if using GCC.
26009 * lib/sha1.h (struct sha1_ctx): Likewise.
26010 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
26011 The old name was backwards.
26012 (NOTSWAP): Remove; not used.
26013 (rol): New macro, moved here from md5.h.
26014 (sha1_process_block): Remove a FIXME that doesn't make sense.
26016 2005-09-12 Derek Price <derek@ximbiot.com>
26018 Return usable errors from canon-host.
26019 * lib/canon-host.h: New file.
26020 * lib/canon-host.c (canon_host): Wrap...
26021 (canon_host_r): ...this new function, which now relies exclusively on
26023 (ch_strerror): New function.
26024 (last_cherror): New global.
26025 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
26027 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
26029 (freeaddrinfo): Free ai->ai_canonname when set.
26031 2005-09-12 Derek Price <derek@ximbiot.com>
26033 Make canon-host require getaddrinfo.
26034 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
26035 AC_LIBSOURCE canon-host.h. Call...
26036 (gl_PREREQ_CANON_HOST): ...this new function, which requires
26038 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
26040 2005-09-12 Derek Price <derek@ximbiot.com>
26042 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
26044 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
26046 2005-09-12 Derek Price <derek@ximbiot.com>
26048 * lib/gai_strerror.c: Include config.h when available. Include
26049 getaddrinfo.h before other headers to test interface.
26050 Reported by Larry Jones <lawrence.jones@ugs.com>.
26052 2005-09-12 Derek Price <derek@ximbiot.com>
26053 Paul Eggert <eggert@cs.ucla.edu>
26055 * modules/glob (Files): Add glob-libc.h.
26057 2005-09-12 Derek Price <derek@ximbiot.com>
26058 Paul Eggert <eggert@cs.ucla.edu>
26060 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
26061 glob_.h, glob-libc.h.
26062 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
26064 2005-09-12 Derek Price <derek@ximbiot.com>
26065 Paul Eggert <eggert@cs.ucla.edu>
26067 * lib/glob-libc.h: Renamed from glob_.h. The new version is
26068 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
26069 protecting things that should be done only in gnulib contexts.
26070 * lib/glob_.h: New file, containing only the glob things needed for
26072 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
26073 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
26074 (glob, globfree, glob_pattern_p): Now defined simply in terms of
26075 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
26076 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
26077 and to respect the namespace rules better.
26079 2005-09-08 Simon Josefsson <jas@extundo.com>
26081 * modules/socklen: New file.
26083 2005-09-08 Simon Josefsson <jas@extundo.com>
26085 * m4/socklen.m4: New file.
26087 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
26089 * modules/utimens (Files): Add m4/utimbuf.m4, since
26090 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
26091 Reported by Sergey Poznyakoff.
26093 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
26095 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
26096 definitions, since that's the preferred style in glibc.
26097 Fix a minor spacing issue, and update copyright notice to match
26100 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
26102 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
26104 2005-09-06 Simon Josefsson <jas@extundo.com>
26106 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
26107 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
26109 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
26111 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
26114 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
26116 * config/srclist.txt: Add glibc bug 1302.
26118 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
26120 Change bitset word type from unsigned int to unsigned long int,
26121 as this has better performance on typical 64-bit hosts.
26122 Port bitset code to hosts with unusual word sizes.
26123 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
26124 (build_collating_symbol):
26125 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
26126 argument is a bitset. This is merely a style issue, but it makes
26127 it clearer that an entire array is expected.
26128 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
26129 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
26130 Port to the case where bitset_word is not the same as unsigned int.
26131 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
26132 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
26134 * lib/regexec.c (check_dst_limits_calc_pos_1,
26135 check_subexp_matching_top):
26136 (build_trtable, group_nodes_into_DFAstates):
26138 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
26139 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
26140 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
26141 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
26142 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
26143 * lib/regcomp.c (optimize_subexps, lower_subexp):
26144 Work even if bitset_word has holes in its bitwise representation.
26145 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
26146 * lib/regexec.c (check_dst_limits_calc_pos_1,
26147 check_subexp_matching_top):
26149 * lib/regex_internal.c (re_string_reconstruct):
26150 Don't assume UCHAR_MAX == 255.
26151 * lib/regex_internal.h (bitset_set_all): Likewise.
26152 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
26154 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
26155 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
26157 (BITSET_WORD_MAX): New macro.
26158 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
26159 (bitset_set_all, bitset_copy): Now inline functions, not macros.
26160 (bitset_empty, bitset_copy):
26161 Prefer sizeof (bitset) to multiplying it out ourselves.
26162 (bitset_not_merge): Remove; unused.
26163 (bitset_contain): Return bool, not unsigned int with one bit on.
26164 All callers changed.
26165 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
26166 alignment than re_node_set; do this by defining a new internal
26167 type struct dests_alloc and using it to allocate memory.
26169 2005-09-05 Bruno Haible <bruno@clisp.org>
26171 * gnulib-tool (func_import): Fix comparison in handling of symbolic
26174 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
26176 * modules/size_max (Makefile.am): Add size_max.h
26178 2005-09-04 Derek Price <derek@ximbiot.com>
26180 * gnulib-tool (func_import): Fix reversed $symbolic logic.
26182 2005-09-03 Simon Josefsson <jas@extundo.com>
26184 * gnulib-tool: Fix typo.
26186 2005-09-03 Simon Josefsson <jas@extundo.com>
26188 * config/srclist.txt: Add glibc bug 1293.
26190 2005-09-03 Derek Price <derek@ximbiot.com>
26192 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
26193 From Larry Jones <lawrence.jones@ugs.com>.
26195 2005-09-02 Simon Josefsson <jas@extundo.com>
26197 * modules/socklen: New file.
26199 2005-09-02 Simon Josefsson <jas@extundo.com>
26201 * modules/havelib: New module.
26203 * modules/gettext, modules/iconv, modules/lock, modules/readline:
26206 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
26208 Check for arithmetic overflow when calculating sizes, to prevent
26209 some buffer-overflow issues. These patches are conservative, in the
26210 sense that when I couldn't determine whether an overflow was possible,
26211 I inserted a run-time check.
26212 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
26214 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
26215 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
26216 (re_xnrealloc, re_x2nrealloc): New inline functions.
26217 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
26218 parse_bracket_exp):
26219 (build_equiv_class, build_charclass): Check for arithmetic overflow
26220 in size expression calculations.
26221 * lib/regex_internal.c (re_string_realloc_buffers):
26222 (build_wcs_upper_buffer, re_node_set_add_intersect):
26223 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
26224 (re_dfa_add_node, register_state): Likewise.
26225 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
26226 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
26227 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
26228 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
26230 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
26232 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
26233 m4/ulonglong.m4. Problem reported by Martin Lambers.
26235 2005-09-02 Bruno Haible <bruno@clisp.org>
26237 Support for lib vs. lib64 distinction on biarch platforms.
26238 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
26239 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
26240 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
26242 2005-09-02 Bruno Haible <bruno@clisp.org>
26244 * gnulib-tool (import): In the other first-use case, provide defaults
26247 2005-09-02 Bruno Haible <bruno@clisp.org>
26249 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
26250 patches not yet found in the latest gettext release.
26252 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
26254 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
26255 to avoid a collision with bits/local_lim.h in glibc.
26256 All uses changed. Problem reported by Dmitry V. Levin in
26257 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
26259 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
26260 bugs in int versus size_t comparisons.
26261 (re_string_context_at): Fix bug where the code assumed that
26264 Use bool where appropriate.
26265 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
26266 All callers changed.
26267 (calc_eclosure_iter): Likewise, for ROOT arg.
26268 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
26269 (build_charclass_op): Likewise, for NON_MATCH arg.
26270 * lib/regex_internal.c (re_string_allocate, re_string_construct):
26271 (re_string_construct_common): Likewise, for ICASE arg.
26272 * lib/regexec.c (re_search_2_stub, re_search_stub):
26273 Likewise, for RET_LEN arg.
26274 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
26275 (set_regs): Likewise, for FL_BACKTRACK arg.
26276 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
26277 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
26278 (calc_eclosure_iter, parse_bracket_exp):
26279 Use bool for internal variables that are booleans.
26280 * lib/regexec.c (re_search_internal, check_matching,
26281 proceed_next_node):
26282 (set_regs, build_sifted_states, sift_states_bkref):
26283 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
26284 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
26285 (find_collation_sequence_value):
26287 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
26288 (re_node_set_compare):
26289 Return bool, not int. All callers changed.
26290 * lib/regexec.c (check_halt_node_context, check_dst_limits):
26291 (build_trtable, check_node_accept): Likewise.
26292 * lib/regex_internal.h: Include stdbool.h.
26294 Fix bugs uncovered when converting to bool.
26295 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
26296 failure instead of charging ahead blindly.
26297 * lib/regex_internal.c (register_state): Likewise.
26298 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
26299 for freeing internal storage.
26300 (group_nodes_into_DFA_states): Use unsigned int, not int, for
26301 bitset pieces used as boolean, to avoid undefined behavior
26302 on hosts that do int overflow checking.
26304 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
26306 * config/srclist.txt: Add glibc bugs 1285-1287.
26308 2005-09-01 Jim Meyering <jim@meyering.net>
26310 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
26311 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
26312 Require gl_STAT_MACROS, too.
26314 2005-09-01 Bruno Haible <bruno@clisp.org>
26316 * gnulib-tool (import): In the first-use case, provide defaults.
26318 2005-09-01 Bruno Haible <bruno@clisp.org>
26320 * gnulib-tool (func_import): Remove the .tmp files.
26322 2005-09-01 Bruno Haible <bruno@clisp.org>
26324 * gnulib-tool (func_import): Fix handling of symbolic links.
26326 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
26328 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
26329 old glibc regex code mishandles strings longer than 2**31 bytes.
26330 This patch fixes this when the regex code is used in gnulib
26331 (i.e., outside glibc).
26333 This patch should not affect the use of the regex code inside
26334 glibc. No doubt this problem also needs to be handled for glibc
26335 as well, but the result will be an incompatible change to the
26336 glibc ABI, and the old ABI will have to be supported too. That
26337 can be the the subject for another patch.
26339 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
26340 governing whether the rest of this patch is active. By default,
26341 the macro is disabled and the patch has no effect.
26342 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
26343 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
26344 (struct re_pattern_buffer, re_search, re_search_2, re_match):
26345 (re_match_2, re_set_registers): Use the new types.
26346 * lib/regex_internal.h (Idx, re_hashval_t): New types.
26347 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
26349 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
26350 (re_string_context_at, bin_tree_t, re_dfastate_t):
26351 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
26352 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
26353 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
26354 (re_string_char_size_at, re_string_wchar_at):
26355 (re_string_elem_size_at):
26356 Use the new types and macros to port to 64-bit hosts.
26357 Use unsigned types for internal values, so that the code
26358 mostly works even for arrays larger than SSIZE_MAX.
26359 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
26360 (search_duplicated_node, calc_eclosure_iter, fetch_number):
26361 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
26362 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
26363 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
26364 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
26365 (calc_inveclosure, parse_dup_op, build_range_exp):
26366 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
26367 (fetch_number, create_token_tree, mark_opt_subexp):
26369 * lib/regex_internal.c (re_string_construct_common,
26370 create_ci_newstate):
26371 (create_cd_newstate, re_string_allocate, re_string_construct):
26372 (re_string_realloc_buffers, build_wcs_upper_buffer):
26373 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
26374 (re_string_reconstruct, re_string_peek_byte_case):
26375 (re_string_fetch_byte_case, re_string_context_at):
26376 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
26377 (re_node_set_init_copy, re_node_set_add_intersect):
26378 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
26379 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
26380 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
26381 (re_acquire_state, re_acquire_state_context, register_state):
26383 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
26384 search_cur_bkref_entry):
26385 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
26386 (re_search_internal, re_search_2_stub, re_search_stub)
26387 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
26388 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
26389 (update_cur_sifted_state, check_dst_limits):
26390 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
26391 (check_subexp_limits, sift_states_bkref, merge_state_array):
26392 (check_subexp_matching_top, get_subexp, get_subexp_sub):
26393 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
26394 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
26395 (expand_bkref_cache, check_node_accept_bytes):
26396 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
26397 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
26398 (acquire_init_state_context, check_halt_node_context):
26399 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
26400 (sift_states_backward, clean_state_log_if_needed):
26401 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
26402 (find_recover_state, transit_state_sb, transit_state_mb):
26403 (transit_state_bkref, build_trtable, match_ctx_clean):
26405 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
26406 to work around an assumption that REG_MISSING is negative.
26408 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
26409 (seek_collating_symbol_entry) [defined _LIBC]:
26410 (lookup_collation_sequence_value) [defined _LIBC]:
26411 (build_range_exp, build_collating_symbol) [defined _LIBC]:
26412 Use prototypes rather than old-style function definitions.
26413 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
26414 (transit_state_sb) [0]:
26415 (find_collation_sequence_value) [defined _LIBC]: Likewise.
26417 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
26420 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
26421 (optimize_subexps, lower_subexp):
26422 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
26423 since the signed shift might overflow. Use 1u<<31 instead.
26424 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
26426 * lib/regexec.c (check_dst_limits_calc_pos_1,
26427 check_subexp_matching_top): Likewise.
26429 * lib/regcomp.c (optimize_subexps, lower_subexp):
26430 Use CHAR_BIT rather than 8, for clarity.
26431 * lib/regexec.c (check_dst_limits_calc_pos_1):
26432 (check_subexp_matching_top): Likewise.
26433 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
26434 have to worry about portability issues when shifting it left.
26435 Remove no-longer-needed test for table_size > 0.
26436 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
26437 in a word, as the resulting behavior is undefined.
26438 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
26439 in one case, a <= should have been an <, and in another case the
26440 whole test was missing.
26441 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
26442 the standard name CHAR_BIT.
26443 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
26444 this is not true on one's complement and signed-magnitude hosts.
26446 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
26448 (struct re_dfa_t): Remove unused member states_alloc.
26449 * lib/regcomp.c (init_dfa): Don't initialize unused members.
26451 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
26453 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
26454 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
26455 and large-file glibc and in 32-bit large-file Solaris.
26457 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
26459 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
26460 lengths fit in regoff_t; this isn't true if regoff_t is the same
26462 * lib/regex.c (re_search_internal): 5th arg is LAST_START
26463 (= START + RANGE) instead of RANGE. This avoids overflow
26464 problems when regoff_t is the same width as size_t.
26465 All callers changed.
26466 (re_search_2_stub): Check for overflow when adding the
26467 sizes of the two strings.
26468 (re_search_stub): Check for overflow when adding START
26469 to RANGE; if it occurs, substitute the extreme value.
26471 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
26473 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
26475 2005-08-31 Jim Meyering <jim@meyering.net>
26477 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
26478 a pointer-to-const.
26479 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
26480 (register_state): Likewise.
26481 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
26482 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
26483 (group_nodes_into_DFAstates): Likewise.
26485 2005-08-31 Jim Meyering <jim@meyering.net>
26487 * check-module: Add a FIXME comment.
26489 2005-08-31 Eric Blake <ebb9@byu.net>
26491 * modules/unistd-safer (Files): Add unistd--.h.
26492 * modules/stdio-safer (Files): Add stdio--.h.
26494 2005-08-31 Derek Price <derek@ximbiot.com>
26496 * lib/getdelim.c (getdelim): Return EOF on EOF.
26497 Reported by Larry Jones <lawrence.jones@ugs.com>.
26499 2005-08-31 Bruno Haible <bruno@clisp.org>
26501 Avoid unnecessary diffs in the generated lib/Makefile.am.
26502 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
26503 the generated files.
26504 (func_import): Don't set cmd.
26506 2005-08-31 Bruno Haible <bruno@clisp.org>
26508 * lib/strstr.c: Include <stddef.h>, for NULL.
26509 * lib/strcasestr.c: Likewise.
26510 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26512 2005-08-31 Bruno Haible <bruno@clisp.org>
26514 * gnulib-tool: New option --macro-prefix.
26515 (func_import): Use macro_prefix.
26516 (import): Handle option --macro-prefix.
26518 2005-08-31 Bruno Haible <bruno@clisp.org>
26520 * gnulib-tool (import): Rename most ac_* variables to cached_*.
26521 Also use new variables cached_lgpl, cached_libtool.
26523 2005-08-31 Bruno Haible <bruno@clisp.org>
26525 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
26526 always instantiating them.
26528 2005-08-31 Bruno Haible <bruno@clisp.org>
26530 * gnulib-tool (func_import): Read the previous cached settings
26531 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
26532 earlier added by gnulib but are now dropped. Warn when a gnulib file
26533 overwrites a non-gnulib file.
26535 2005-08-31 Bruno Haible <bruno@clisp.org>
26537 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
26538 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
26539 projects that don't keep autogenerated files in CVS. Put into
26540 actioncmd only the specified modules, not the transitive closure.
26542 2005-08-31 Bruno Haible <bruno@clisp.org>
26544 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
26545 Create directories that shall be filled.
26546 (import): Don't look for gl_* macros in configure.ac. Recurse across
26547 all directories containing a gnulib-cache.m4 files, if meaningful.
26549 2005-08-31 Bruno Haible <bruno@clisp.org>
26551 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
26552 (import): Set seen_libtool when we see gl_LIBTOOL.
26554 2005-08-31 Bruno Haible <bruno@clisp.org>
26556 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
26557 declaration macro definitions from generated gnulib.m4.
26559 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
26561 * lib/iconvme.h: Add prototype for iconv_alloc.
26563 2005-08-29 Simon Josefsson <jas@extundo.com>
26565 * lib/iconvme.c: Fix errno.
26567 2005-08-29 Bruno Haible <bruno@clisp.org>
26569 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
26570 that it works when the directory contains spaces.
26572 2005-08-29 Bruno Haible <bruno@clisp.org>
26574 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
26576 2005-08-29 Bruno Haible <bruno@clisp.org>
26578 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
26581 2005-08-29 Bruno Haible <bruno@clisp.org>
26582 and Stepan Kasal <kasal@ucw.cz>
26584 * check-module: If more parameters are given, check each of them
26585 separately; add more exceptions, as noted by Jim Meyering.
26586 (check_module): New procedure.
26587 (%exempt_header): Now contains all exceptions.
26589 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
26591 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
26593 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
26595 * lib/iconvme.c: Split iconv_string into iconv_alloc.
26597 2005-08-28 Bruno Haible <bruno@clisp.org>
26599 * m4/gnulib-tool.m4: New file.
26601 2005-08-27 Jim Meyering <jim@meyering.net>
26603 * modules/unistd-safer (Files): Add pipe-safer.c.
26604 * modules/fcntl-safer (Files): Add creat-safer.c.
26606 2005-08-27 Jim Meyering <jim@meyering.net>
26608 * m4/stdlib-safer.m4: New file. From coreutils.
26609 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
26610 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
26611 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
26612 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
26613 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
26615 2005-08-27 Jim Meyering <jim@meyering.net>
26617 * lib/fopen-safer.c: Merge minor changes from coreutils.
26618 * lib/dup-safer.c: Likewise.
26619 * lib/fd-safer.c: Likewise.
26621 Merge from coreutils.
26622 * lib/stdio--.h: New file.
26623 * lib/stdlib--.h: New file.
26624 * lib/mkstemp-safer.c: New file.
26626 GNU tar needs these.
26627 * lib/pipe-safer.c: New file.
26628 * lib/creat-safer.c: New file.
26629 * lib/fcntl--.h (creat): Define to creat_safer.
26630 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
26631 * lib/unistd--.h (pipe): Define to pipe_safer.
26632 * lib/unistd-safer.h: Declare pipe_safer.
26634 2005-08-26 Simon Josefsson <jas@extundo.com>
26636 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
26637 Haible <bruno@clisp.org>.
26639 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
26641 * lib/regex_internal.h: Remove all references to
26642 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
26644 (bitset_not, bitset_merge, bitset_not_merge):
26645 (bitset_mask, re_string_allocate, re_string_construct):
26646 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
26647 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
26648 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
26649 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
26650 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
26651 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
26652 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
26653 (re_acquire_state_context):
26654 Remove unnecessary forward decls.
26655 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
26656 Put __attribute at function definition,
26657 now that the function decl has been removed.
26658 * lib/regex_internal.c (re_string_peek_byte_case):
26659 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
26662 2005-08-25 Stepan Kasal <kasal@ucw.cz>
26664 * m4/regex.m4: Add AC_PREREQ(2.50).
26665 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
26667 2005-08-25 Simon Josefsson <jas@extundo.com>
26669 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
26672 2005-08-25 Simon Josefsson <jas@extundo.com>
26674 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
26675 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
26676 GLIBC specific code.
26678 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
26680 Make regex safe for g++. This fixes one real bug (an "err"
26681 that should have been "*err"). g++ problem reported by
26683 * lib/regex_internal.h (re_calloc): New macro, consistent with
26684 re_malloc etc. All callers of calloc changed to use re_calloc.
26685 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
26686 not int. All callers changed.
26687 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
26688 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
26689 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
26690 (find_recover_state): Change "err" to "*err"; this fixes what
26691 appears to be a real bug.
26692 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
26695 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
26697 * modules/regex (Depends-on): Add malloc, since the code
26698 assumes that !malloc(0) means failure.
26700 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
26702 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
26704 alloca modernization/simplification for regex.
26705 * lib/regex.c: Remove portability cruft for alloca. This no longer
26706 needs to be at the start of the file, and can be moved into
26707 regex_internal.h and simplified.
26708 * lib/regex_internal.h: Include <alloca.h>.
26709 (__libc_use_alloca) [!defined _LIBC]: New macro.
26710 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
26711 now works outside glibc.
26713 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
26715 * config/srclist.txt: Add glibc bugs 1241, 1245.
26717 2005-08-25 Jim Meyering <jim@meyering.net>
26719 * lib/open-safer.c: Include <config.h>.
26720 Otherwise, we'd lose LARGEFILE support in any file using
26723 2005-08-25 Bruno Haible <bruno@clisp.org>
26725 * m4/minmax.m4: Require autoconf 2.52.
26726 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
26727 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
26728 alternatives of translit over the alphabet.
26729 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
26731 2005-08-24 Simon Josefsson <jas@extundo.com>
26733 * tests/test-getpass.c: New file.
26735 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
26737 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
26738 for GNU regex features.
26740 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
26742 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
26743 * lib/regex.h (regerror): Likewise.
26745 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
26746 requires this. (The code never needed it.)
26748 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
26749 All uses of recently-renamed identifiers changed to use the new,
26750 POSIX-compliant names. The code will build and run just fine
26751 without these changes, but it's better to eat our own dog food
26752 and use the standard-conforming names.
26754 * lib/regex.h: Fix a multitude of POSIX name space violations.
26755 These changes have an effect only for programs that define
26756 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
26757 do not change anything for programs compiled in the normal way.
26758 Also, there is no effect on the ABI.
26760 (_REGEX_SOURCE): New macro.
26761 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
26762 defined and _GNU_SOURCE is not; this fixes a name space violation.
26764 Rename the following macros to obey POSIX requirements.
26765 The old names are still visible as macros if _REGEX_SOURCE is defined.
26766 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
26767 RE_BACKSLASH_ESCAPE_IN_LISTS.
26768 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
26769 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
26770 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
26771 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
26772 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
26773 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
26774 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
26775 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
26776 (REG_INTERVALS): renamed from RE_INTERVALS.
26777 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
26778 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
26779 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
26780 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
26781 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
26782 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
26783 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
26784 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
26785 RE_UNMATCHED_RIGHT_PAREN_ORD.
26786 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
26787 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
26788 (REG_DEBUG): renamed from RE_DEBUG.
26789 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
26790 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
26791 unusual, since we can't clash with the POSIX REG_ICASE.
26792 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
26793 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
26794 (REG_NO_SUB): renamed from RE_NO_SUB.
26795 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
26796 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
26797 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
26798 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
26799 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
26800 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
26801 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
26802 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
26803 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
26804 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
26805 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
26806 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
26807 RE_SYNTAX_POSIX_MINIMAL_BASIC.
26808 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
26809 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
26810 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
26811 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
26812 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
26813 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
26814 (REG_FIXED): Renamed from REGS_FIXED.
26815 (REG_NREGS): Renamed from RE_NREGS.
26817 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
26818 of other REG_* macros, since POSIX says the user is allowed to
26819 #undef these macros selectively.
26821 (reg_errcode_t): Update comment stating what other tables need
26824 Rename the following enum values to obey POSIX requirements.
26825 The old names are still visible as macros.
26826 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
26827 is not defined, since GNU is supposed to be a superset of POSIX as
26828 much as possible, and since we want reg_errcode_t to be a signed
26829 type for implementation consistency.
26830 (_REG_NOERROR): Renamed from REG_NOERROR.
26831 (_REG_NOMATCH): Renamed from REG_NOMATCH.
26832 (_REG_BADPAT): Renamed from REG_BADPAT.
26833 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
26834 (_REG_ECTYPE): Renamed from REG_ECTYPE.
26835 (_REG_EESCAPE): Renamed from REG_EESCAPE.
26836 (_REG_ESUBREG): Renamed from REG_ESUBREG.
26837 (_REG_EBRACK): Renamed from REG_EBRACK.
26838 (_REG_EPAREN): Renamed from REG_EPAREN.
26839 (_REG_EBRACE): Renamed from REG_EBRACE.
26840 (_REG_BADBR): Renamed from REG_BADBR.
26841 (_REG_ERANGE): Renamed from REG_ERANGE.
26842 (_REG_ESPACE): Renamed from REG_ESPACE.
26843 (_REG_BADRPT): Renamed from REG_BADRPT.
26844 (_REG_EEND): Renamed from REG_EEND.
26845 (_REG_ESIZE): Renamed from REG_ESIZE.
26846 (_REG_ERPAREN): Renamed from REG_ERPAREN.
26847 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
26848 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
26849 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
26850 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
26852 (_REG_RE_NAME, _REG_RM_NAME): New macros.
26853 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
26854 changed. But support the old name if the new one is not defined
26855 and if _REGEX_SOURCE.
26857 Change the following member names in struct re_pattern_buffer.
26858 The old names are still supported if !_REGEX_SOURCE.
26859 The new names are always supported, regardless of _REGEX_SOURCE.
26860 (re_buffer): Renamed from buffer.
26861 (re_allocated): Renamed from allocated.
26862 (re_used): Renamed from used.
26863 (re_syntax): Renamed from syntax.
26864 (re_fastmap): Renamed from fastmap.
26865 (re_translate): Renamed from translate.
26866 (re_can_be_null): Renamed from can_be_null.
26867 (re_regs_allocated): Renamed from regs_allocated.
26868 (re_fastmap_accurate): Renamed from fastmap_accurate.
26869 (re_no_sub): Renamed from no_sub.
26870 (re_not_bol): Renamed from not_bol.
26871 (re_not_eol): Renamed from not_eol.
26872 (re_newline_anchor): Renamed from newline_anchor.
26874 Change the following member names in struct re_registers.
26875 The old names are still supported if !_REGEX_SOURCE.
26876 The new names are always supported, regardless of _REGEX_SOURCE.
26877 (rm_num_regs): Renamed from num_regs.
26878 (rm_start): Renamed from start.
26879 (rm_end): Renamed from end.
26881 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
26882 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
26883 Prepend __ to parameter names.
26885 Undo yesterday's changes.
26887 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
26889 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
26890 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
26893 2005-08-24 Jim Meyering <jim@meyering.net>
26895 Sync from coreutils.
26896 * m4/fcntl-safer.m4: New file.
26898 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
26899 and object files for this module.
26901 2005-08-24 Jim Meyering <jim@meyering.net>
26903 Sync from coreutils.
26904 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
26906 2005-08-24 Jim Meyering <jim@meyering.net>
26908 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
26909 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
26911 2005-08-24 Jim Meyering <jim@meyering.net>
26913 * modules/fcntl-safer: New module.
26914 * modules/fts (Depends-on): Add fcntl-safer.
26915 * MODULES.html.sh (File descriptor based Input/Output):
26918 2005-08-24 Bruno Haible <bruno@clisp.org>
26920 Support for unit test modules.
26921 * modules/README: Mention tests modules.
26922 * modules/TEMPLATE-TESTS: New file.
26923 * gnulib-tool: New options --extract-tests-module, --with-tests and
26924 --tests-base (unused for the moment).
26925 (testsbase, inctests): New variables.
26926 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
26927 (func_verify_module): Exclude TEMPLATE-TESTS.
26928 (func_verify_nontests_module, func_verify_tests_module): New functions.
26929 (func_get_dependencies): Add implicit dependency for tests modules.
26930 (func_get_tests_module): New function.
26931 (func_modules_transitive_closure): When --with-tests was specified,
26932 include the unit tests as well, unless explicitly avoided.
26933 (func_emit_lib_Makefile_am): Ignore the tests modules here.
26934 (func_emit_tests_Makefile_am): New function.
26935 (func_create_testdir): When --with-tests was specified, emit a
26937 * MODULES.html.sh (Future developments): Update.
26939 2005-08-24 Bruno Haible <bruno@clisp.org>
26941 * modules/tls-tests: New file.
26942 * tests/test-tls.c: New file, from GNU gettext.
26944 2005-08-24 Bruno Haible <bruno@clisp.org>
26946 * modules/lock-tests: New file.
26947 * tests/test-lock.c: New file, from GNU gettext.
26949 2005-08-24 Bruno Haible <bruno@clisp.org>
26951 * lib/lock.h: Add multiple inclusion guard.
26952 * lib/tls.h: Add multiple inclusion guard.
26954 2005-08-24 Bruno Haible <bruno@clisp.org>
26956 * gnulib-tool: Add support for the --aux-dir option to
26957 --create-testdir, --create-megatestdir, --test, --megatest.
26958 (func_create_testdir, func_create_megatestdir): Optionally emit a
26959 AC_CONFIG_AUX_DIR directive.
26960 (create-testdir, create-megatestdir, test, megatest): Provide a
26961 default value for $auxdir.
26963 2005-08-24 Bruno Haible <bruno@clisp.org>
26965 * gnulib-tool (import): Use compound statement instead of subshell
26968 2005-08-24 Bruno Haible <bruno@clisp.org>
26970 * gnulib-tool (import): Change --aux-dir default to "build-aux".
26972 2005-08-24 Bruno Haible <bruno@clisp.org>
26974 * gnulib-tool (func_version): Update.
26976 2005-08-24 Bruno Haible <bruno@clisp.org>
26978 * gnulib-tool (func_import, func_create_testdir,
26979 func_create_megatestdir): Quote all autoconf macro arguments.
26981 2005-08-24 Bruno Haible <bruno@clisp.org>
26983 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
26984 option --force, because --force causes the aclocal.m4 of each
26985 subdirectory to be newer than the corresponding config.h.in.
26987 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
26989 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
26990 All contents moved to gl_REGEX.
26991 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
26992 assume that it does.
26994 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
26996 * lib/regex.h (REG_NOSYS)
26997 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
26998 Define, since POSIX requires it as of 2001.
27000 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
27001 New private symbol, used to keep the enum signed in all cases.
27002 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
27004 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
27006 * lib/regex_internal.c (re_string_skip_chars, register_state):
27008 Remove forward decls; no longer needed now that we use prototypes.
27009 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
27010 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
27011 (clean_state_log_if_needed): Likewise.
27013 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
27015 * config/srclist.txt: Add glibc bugs 1231-1233.
27017 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
27019 Fix problems reported by Sam Steingold in
27020 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
27021 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
27022 assumed that reg_errcode_t is a signed type, which is not
27023 necessarily true if _XOPEN_SOURCE is not defined.
27024 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
27025 since some compilers warn about it otherwise.
27027 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
27029 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
27030 (init_word_char, create_initial_state, duplicate_node_closure):
27031 (fetch_token, peek_token_bracket, build_range_exp):
27032 (build_collating_symbol): Remove forward decls; no longer needed
27033 now that we use prototypes.
27036 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
27037 (re_compile_fastmap_iter, regcomp, regerror, regfree):
27038 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
27039 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
27040 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
27041 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
27042 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
27043 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
27044 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
27045 (build_range_exp, build_collating_symbol, parse_bracket_exp):
27046 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
27047 (build_charclass, build_charclass_op, fetch_number, create_tree):
27048 (create_token_tree, mark_opt_subexp, duplicate_tree):
27049 Use prototypes rather than old-style definitions.
27051 * lib/regex_internal.c:
27052 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
27053 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
27054 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
27055 (re_string_reconstruct, re_string_peek_byte_case):
27056 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
27057 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
27058 (re_node_set_init_copy, re_node_set_add_intersect):
27059 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
27060 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
27061 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
27062 (re_acquire_state, re_acquire_state_context, register_state):
27063 (create_ci_newstate, create_cd_newstate, free_state):
27065 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
27067 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
27068 (re_search_internal, prune_impossible_nodes):
27069 (acquire_init_state_context, check_matching, static):
27070 (check_halt_node_context, check_halt_state_context, proceed_next_node):
27071 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
27072 (update_regs, sift_states_backward, build_sifted_states):
27073 (clean_state_log_if_needed, merge_state_array):
27074 (update_cur_sifted_state, add_epsilon_src_nodes):
27075 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
27076 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
27077 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
27078 (find_recover_state, check_subexp_matching_top, transit_state_mb):
27079 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
27080 (check_arrival, check_arrival_add_next_nodes):
27081 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
27082 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
27083 (check_node_accept_bytes, check_node_accept, extend_buffers):
27084 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
27085 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
27089 * lib/regex_internal.h:
27090 (re_string_allocate, re_string_construct, re_string_reconstruct):
27091 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
27092 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
27093 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
27094 (re_string_context_at, re_string_peek_byte_case):
27095 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
27096 is defined, since we now use prototypes always.
27098 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
27099 C89 or better. All uses removed.
27101 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
27103 * config/srclist.txt: Add glibc bugs 1220-1227.
27105 2005-08-20 Jim Meyering <jim@meyering.net>
27107 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
27108 of unused local, dfa.
27110 2005-08-20 Bruno Haible <bruno@clisp.org>
27112 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
27114 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
27116 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
27117 (re_node_set_insert_last, re_dfa_add_node):
27118 Rename local variables to avoid GCC shadowing warnings.
27120 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
27122 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
27123 [defined lint]: Suppress bogus uninitialized-variable warnings.
27125 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
27126 and let the caller return REG_ESPACE if out of space. This
27127 removes an uninitialied-variable warning with GCC 4.0.1, and also
27128 avoids taking the address of a local variable. All callers
27131 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
27133 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
27134 $LIBCSRC/posix/regexec.c.
27135 Add glibc bug 1217 for regcomp.c.
27137 2005-08-19 Jim Meyering <jim@meyering.net>
27139 * lib/regexec.c (proceed_next_node): Redo local variables to
27140 avoid GCC shadowing warnings.
27142 2005-08-18 Bruno Haible <bruno@clisp.org>
27144 * lib/strstr.c (strstr): Fix return value in multibyte case.
27145 * lib/strcasestr.c (strcasestr): Likewise.
27147 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
27149 * lib/regex.h: Remove useless space-before-tab. From coreutils.
27151 2005-08-17 Jim Meyering <jim@meyering.net>
27153 Make the %s format (seconds since the epoch) work for a negative
27154 number and when used with a zero-padded field width, e.g. %015s.
27156 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
27157 label so that it precedes the code to set `digits'. Otherwise,
27158 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
27159 print `00-22'. Now, it prints `-0022', as it should.
27161 2005-08-17 Bruno Haible <bruno@clisp.org>
27163 * modules/strstr (Files): Add m4/mbrtowc.m4.
27164 (Depends-on): Add mbuiter.
27166 2005-08-17 Bruno Haible <bruno@clisp.org>
27168 * modules/strcasestr: New file.
27169 * MODULES.html.sh (String handling, based on ANSI C 89): Add
27172 2005-08-17 Bruno Haible <bruno@clisp.org>
27174 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
27176 2005-08-17 Bruno Haible <bruno@clisp.org>
27178 * modules/mbuiter: New file.
27179 * MODULES.html.sh (Extended multibyte and wide character utilities):
27182 2005-08-17 Bruno Haible <bruno@clisp.org>
27184 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
27185 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
27187 2005-08-17 Bruno Haible <bruno@clisp.org>
27189 * m4/strcasestr.m4: New file.
27191 2005-08-17 Bruno Haible <bruno@clisp.org>
27193 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
27194 * lib/strstr.c: Completely rewritten, with multibyte locale support.
27196 2005-08-17 Bruno Haible <bruno@clisp.org>
27198 * lib/strcasestr.h: New file.
27199 * lib/strcasestr.c: New file.
27201 2005-08-17 Bruno Haible <bruno@clisp.org>
27203 * lib/strcasecmp.c: Use mbuiter.h.
27205 2005-08-17 Bruno Haible <bruno@clisp.org>
27207 * lib/mbuiter.h: New file.
27209 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
27211 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
27212 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
27213 and gl_GETOPT are both invoked via different paths (as happens
27214 with GNU tar CVS because it uses both argp and getopt), the former
27217 2005-08-16 Bruno Haible <bruno@clisp.org>
27219 * modules/tls: New file.
27220 * MODULES.html.sh (Multithreading): Add tls.
27222 2005-08-16 Bruno Haible <bruno@clisp.org>
27224 * modules/strnlen1: New file.
27225 * MODULES.html.sh (String handling): Add strnlen1.
27227 2005-08-16 Bruno Haible <bruno@clisp.org>
27229 * modules/strcase (Files): Add m4/mbrtowc.m4.
27230 (Depends-on): Add strnlen1, mbchar.
27232 2005-08-16 Bruno Haible <bruno@clisp.org>
27234 * modules/mbiter: New file.
27235 * MODULES.html.sh (Extended multibyte and wide character utilities):
27238 2005-08-16 Bruno Haible <bruno@clisp.org>
27240 * modules/mbfile: New file.
27241 * MODULES.html.sh (Extended multibyte and wide character utilities):
27244 2005-08-16 Bruno Haible <bruno@clisp.org>
27246 * modules/mbchar: New file.
27247 * MODULES.html.sh (Extended multibyte and wide character utilities):
27250 2005-08-16 Bruno Haible <bruno@clisp.org>
27252 * m4/tls.m4: New file, from GNU gettext.
27254 2005-08-16 Bruno Haible <bruno@clisp.org>
27256 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
27258 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
27260 2005-08-16 Bruno Haible <bruno@clisp.org>
27262 * m4/mbiter.m4: New file.
27264 2005-08-16 Bruno Haible <bruno@clisp.org>
27266 * m4/mbfile.m4: New file.
27268 2005-08-16 Bruno Haible <bruno@clisp.org>
27270 * m4/mbchar.m4: New file.
27272 2005-08-16 Bruno Haible <bruno@clisp.org>
27274 * lib/tls.h: New file, from GNU gettext.
27275 * lib/tls.c: New file, from GNU gettext.
27277 2005-08-16 Bruno Haible <bruno@clisp.org>
27279 * lib/strnlen1.h: New file.
27280 * lib/strnlen1.c: New file.
27282 2005-08-16 Bruno Haible <bruno@clisp.org>
27284 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
27285 (mbi_init): Update.
27286 (mbi_avail, mbi_advance): Let the iteration end before the terminating
27287 NUL byte, not after it.
27289 2005-08-16 Bruno Haible <bruno@clisp.org>
27291 * lib/strcase.h (strcasecmp): Add note in comments.
27292 * lib/strncasecmp.c: Use code from strcasecmp.c.
27293 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
27294 (strcasecmp): Work correctly in multibyte locales.
27296 2005-08-16 Bruno Haible <bruno@clisp.org>
27298 * lib/mbiter.h: New file.
27300 2005-08-16 Bruno Haible <bruno@clisp.org>
27302 * lib/mbfile.h: New file.
27304 2005-08-16 Bruno Haible <bruno@clisp.org>
27306 * lib/mbchar.h: New file.
27307 * lib/mbchar.c: New file.
27309 2005-08-16 Bruno Haible <bruno@clisp.org>
27311 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
27312 the valid ones. Makes the comparison operations transitive:
27313 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
27314 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
27316 2005-08-15 Simon Josefsson <jas@extundo.com>
27318 * modules/ssize_t (License): Change to 'unlimited'.
27320 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
27322 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
27324 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
27325 Add comments for each pending glibc patch.
27327 2005-08-15 Bruno Haible <bruno@clisp.org>
27329 * lib/regex.h (__restrict_arr): Don't define to __restrict if
27330 __cplusplus is defined.
27332 2005-08-14 Jim Meyering <jim@meyering.net>
27334 Sync from coreutils.
27336 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
27337 Use the hash-table-based cycle-detection code not just when
27338 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
27339 Reported by James Youngman in
27340 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
27341 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
27342 FTS_TIGHT_CYCLE_CHECK.
27343 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
27344 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
27346 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
27347 * lib/fts.c (fd_safer): Remove decl.
27348 Include fcntl--.h rather than unistd-safer.h
27349 (fts_safe_changedir): Don't call fd_safer; no longer needed
27350 now that we include fcntl--.h.
27352 2005-08-12 Simon Josefsson <jas@extundo.com>
27354 * modules/getndelim2: Use ssize_t module.
27355 * modules/getnline: Likewise.
27356 * modules/safe-read: Likewise.
27357 * modules/xreadlink: Likewise.
27359 * modules/ssize_t: New file.
27361 2005-08-12 Simon Josefsson <jas@extundo.com>
27363 * m4/readline.m4: Look for termcap, curses or ncurses if required.
27365 2005-08-12 Simon Josefsson <jas@extundo.com>
27367 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27370 2005-08-12 Simon Josefsson <jas@extundo.com>
27372 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
27373 readline, getdelim and check_version.
27374 (Support for systems lacking ISO C 99: Sizes of integer types):
27377 2005-08-12 Bruno Haible <bruno@clisp.org>
27379 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
27381 2005-08-11 Simon Josefsson <jas@extundo.com>
27383 * modules/readline: New file.
27385 * modules/strnlen (Files): Add strnlen.h.
27387 2005-08-11 Simon Josefsson <jas@extundo.com>
27389 * m4/readline.m4: New file.
27391 2005-08-11 Simon Josefsson <jas@extundo.com>
27393 * lib/readline.h, readline.c: New file.
27395 2005-08-11 Simon Josefsson <jas@extundo.com>
27397 * doc/gnulib.texi (Initial import, Finishing touches): Mention
27400 2005-08-11 Bruno Haible <bruno@clisp.org>
27402 * lib/strnlen.h (strnlen): Change parameter name to match comment.
27404 2005-08-10 Stepan Kasal <kasal@ucw.cz>
27406 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
27408 2005-08-10 Simon Josefsson <jas@extundo.com>
27410 * tests/test-iconvme.c: New file.
27412 2005-08-10 Simon Josefsson <jas@extundo.com>
27414 * m4/strnlen.m4: New file.
27416 * m4/strndup.m4: Don't check for strnlen declaration, done in
27419 2005-08-10 Simon Josefsson <jas@extundo.com>
27421 * lib/strndup.c: Use strnlen.h.
27423 * lib/strnlen.h: New file.
27425 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
27429 2005-08-02 Simon Josefsson <jas@extundo.com>
27431 * modules/readline: New file.
27433 2005-08-02 Simon Josefsson <jas@extundo.com>
27435 * modules/getdelim: New file.
27437 * modules/getline: Rewrite, don't use getndelim2.
27439 2005-08-02 Simon Josefsson <jas@extundo.com>
27441 * m4/getline.m4: Separate out getdelim stuff into separate module.
27443 * m4/getdelim.m4: New file.
27445 2005-08-02 Simon Josefsson <jas@extundo.com>
27447 * lib/getline.h, getline.c: Rewrite.
27449 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
27451 2005-07-31 Bruno Haible <bruno@clisp.org>
27453 * lib/lock.h (gl_lock_initializer): New macro.
27454 (gl_lock_define_initialized): Use it.
27455 (gl_rwlock_initializer): New macro.
27456 (gl_rwlock_define_initialized): Use it.
27457 (gl_recursive_lock_initializer): New macro.
27458 (gl_recursive_lock_define_initialized): Use it.
27460 2005-07-30 Karl Berry <karl@gnu.org>
27462 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
27463 Report from Ben Pfaff, regarding getopt.
27465 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
27467 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
27469 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
27470 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
27471 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
27472 (gl_GETOPT): Use the new macros. Most of the implementation
27473 is moved to the new macros. This is for programs like Emacs
27474 that don't want all the functionality of gl_GETOPT.
27476 2005-07-26 Bruno Haible <bruno@clisp.org>
27478 * m4/lock.m4: Update from GNU gettext.
27480 2005-07-26 Bruno Haible <bruno@clisp.org>
27482 * lib/lock.h: Update from GNU gettext.
27483 * lib/lock.c: Update from GNU gettext.
27485 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
27487 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
27488 obsolescent AC_TRY_RUN. Include the default includes files, for
27491 2005-07-24 Bruno Haible <bruno@clisp.org>
27493 * modules/visibility: New file.
27494 * MODULES.html.sh (Misc): Add visibility.
27496 2005-07-24 Bruno Haible <bruno@clisp.org>
27498 * m4/visibility.m4: New file.
27500 2005-07-24 Bruno Haible <bruno@clisp.org>
27502 * doc/visibility.texi: New file.
27504 2005-07-22 Bruno Haible <bruno@clisp.org>
27506 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
27507 $(ALLOCA_H), redundant through BUILT_SOURCES.
27508 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
27509 redundant through BUILT_SOURCES.
27510 * modules/byteswap (Makefile.am): Remove explicit dependency on
27511 $(BYTESWAP_H), redundant through BUILT_SOURCES.
27512 * modules/fnmatch (Makefile.am): Remove explicit dependency on
27513 $(FNMATCH_H), redundant through BUILT_SOURCES.
27514 * modules/getopt (Makefile.am): Remove explicit dependency on
27515 $(GETOPT_H), redundant through BUILT_SOURCES.
27516 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
27517 redundant through BUILT_SOURCES.
27518 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
27519 redundant through BUILT_SOURCES.
27520 * modules/stdbool (Makefile.am): Remove explicit dependency on
27521 $(STDBOOL_H), redundant through BUILT_SOURCES.
27522 * modules/stdint (Makefile.am): Remove explicit dependency on
27523 $(STDINT_H), redundant through BUILT_SOURCES.
27524 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
27525 Remove explicit dependency on $(SYSEXITS_H).
27526 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
27528 2005-07-18 Simon Josefsson <jas@extundo.com>
27530 * lib/check-version.c (check_version): Accept identical versions too.
27532 2005-07-18 Bruno Haible <bruno@clisp.org>
27534 * modules/lock: New file.
27535 * MODULES.html.sh (Multithreading): New section.
27537 2005-07-18 Bruno Haible <bruno@clisp.org>
27539 * m4/lock.m4: New file, from GNU gettext.
27541 2005-07-18 Bruno Haible <bruno@clisp.org>
27543 * lib/lock.h: New file, from GNU gettext.
27544 * lib/lock.c: New file, from GNU gettext.
27546 2005-07-18 Bruno Haible <bruno@clisp.org>
27548 * lib/lock.h (gl_once_t): New type.
27549 (gl_once_define, gl_once): New macros.
27550 * lib/lock.c (fresh_once): New variable.
27551 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
27554 2005-07-16 Simon Josefsson <jas@extundo.com>
27556 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
27557 workaround, suggested by Bruno.
27559 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
27561 * modules/xalloc (Depends-on): Add xalloc-die.
27562 * modules/xvasprintf (Depends-on): Add xalloc-die.
27564 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
27566 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
27567 with a minor change.
27569 2005-07-15 Bruno Haible <bruno@clisp.org>
27571 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
27572 When using lib/poll.c, define poll as rpl_poll.
27574 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
27576 * modules/argp (Depends-on): Remove unlocked-io.
27578 2005-07-14 Derek Price <derek@ximbiot.com>
27580 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
27581 for glob symlink bug.
27583 2005-07-14 Bruno Haible <bruno@clisp.org>
27585 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
27586 Instead, test for *_unlocked function declarations directly.
27588 2005-07-11 Simon Josefsson <jas@extundo.com>
27590 * modules/size_max: New file.
27592 * modules/xsize: Depend on size_max module for size_max.m4.
27594 2005-07-11 Simon Josefsson <jas@extundo.com>
27596 * lib/size_max.h: New file.
27598 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
27600 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
27601 copyright symbol and the year.
27602 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
27603 (version_etc_va): Use parameterized copyright notice.
27604 Reword to conform to the current GNU coding standards.
27606 2005-07-11 Karl Berry <karl@gnu.org>
27608 * doc/gnulib.texi (Quoting): new node.
27609 (Initial import): more info, from Patrice.
27611 2005-07-11 Bruno Haible <bruno@clisp.org>
27613 * gnulib-tool (func_usage): Document option --avoid.
27614 (Command line options): Handle --avoid.
27615 (func_acceptable): New function.
27616 (func_modules_transitive_closure): Use it.
27618 2005-07-11 Bruno Haible <bruno@clisp.org>
27620 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
27621 Reported by Jim Meyering.
27623 2005-07-10 Bruno Haible <bruno@clisp.org>
27625 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
27626 Needed when size_t is smaller than 'unsigned int'.
27627 Reported by Paul Eggert.
27629 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
27631 * modules/argp (Depends-on): Add unlocked-io
27633 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
27635 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
27638 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
27640 * config/srclist.txt: Comment out regcomp.c, since we have a porting
27643 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
27644 and Paul Eggert <eggert@cs.ucla.edu>
27646 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
27647 in wint_t, not wchar_t. Remove now-unnecessary cast.
27649 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
27651 * modules/regex (Files): Add lib/regex_internal.c,
27652 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
27653 (Depends-on): Add extensions.
27654 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
27656 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
27658 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
27660 * m4/same.m4 (gl_SAME): Likewise.
27661 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
27663 * m4/regex.m4: Adjust to new libc regex implementation.
27664 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
27665 all the .c and .h parts of (the new) regex.
27666 Quote the m4 stuff better.
27667 Check for RE_ICASE bug of old gnulib.
27668 Check for REG_STARTEND of recent libc.
27669 Rename local variables from jm_* to gl_*.
27670 Quote operand of "test -f".
27671 Say "recent enough" version of libc, not "version 2".
27672 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
27673 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
27674 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
27675 Remove check for btowc, isascii.
27676 Require AM_LANGINFO_CODESET.
27678 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
27680 * lib/regex.c, regex.h: Sync from libc.
27681 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
27683 New files, synced from libc, except that regex_internal.h
27684 currently has a small porting fix.
27686 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
27688 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
27689 regex_internal.c, regexec.c.
27690 Add regex_internal.h too, but as a comment, since the libc version
27691 is currently broken in gnulib mode.
27693 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
27695 Support programs like Emacs that use gnulib but not gettext.
27696 * MODULES.html.sh (Internationalization functions): Add gettext-h.
27697 * modules/gettext-h: New file.
27698 * modules/gettext (Files): Remove lib/gettext.h.
27699 (Depends-on): Add gettext-h.
27700 (Makefile.am): Remove lib_SOURCES.
27701 * modules/argmatch, modules/c-stack, modules/closeout:
27702 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
27703 * modules/execute, modules/file-type, modules/getaddrinfo:
27704 * modules/getopt, modules/human, modules/javacomp:
27705 * modules/javaexec, modules/mkdir-p, modules/obstack:
27706 * modules/openat, modules/pagealign_alloc, modules/pipe:
27707 * modules/quotearg, modules/regex, modules/rpmatch:
27708 * modules/unicodeio, modules/userspec, modules/version-etc:
27709 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
27711 Depend on gettext-h, not gettext.
27713 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
27715 * gnulib-tool (func_import): Add support for 'public domain' license.
27716 * modules/alloca, modules/atexit, modules/memmove:
27717 Now public domain, not GPL.
27718 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
27719 * modules/realloc, modules/strerror, modules/strtod:
27722 2005-07-05 Bruno Haible <bruno@clisp.org>
27724 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
27725 autoconf CVS. Needed for mingw.
27727 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
27729 Remove the dependency of the strftime module on the tzset module.
27730 * modules/strftime (Depends-on): Remove dependency on tzset.
27732 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
27734 Remove the dependency of the strftime module on the tzset module.
27735 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
27736 gl_FUNC_TZSET_CLOBBER.
27738 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
27740 Remove the dependency of the strftime module on the tzset module.
27741 * lib/strftime.c (my_strftime)
27742 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
27743 Copy the input structure, to work around some of the bug with
27744 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
27745 Solaris releases, you should also use the tzset module, but we won't
27746 require it as a dependency any more since we don't want LGPLed code
27747 to depend on GPLed code.
27749 2005-07-02 Jim Meyering <jim@meyering.net>
27751 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
27752 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
27753 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
27754 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
27756 2005-07-02 Jim Meyering <jim@meyering.net>
27758 * lib/backupfile.c (backup_args): Change a `0' to NULL.
27760 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
27762 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
27763 declares only 'struct timespec;' (!).
27765 2005-07-01 Jim Meyering <jim@meyering.net>
27767 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
27768 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
27769 * lib/save-cwd.c, tempname.c:
27770 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
27771 and don't include <sys/file.h>).
27773 2005-06-29 Jim Meyering <jim@meyering.net>
27775 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
27776 type name. Use the variable name instead.
27777 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
27780 2005-06-28 Simon Josefsson <jas@extundo.com>
27782 * modules/check-version (Files): Add check-version.m4.
27784 2005-06-28 Simon Josefsson <jas@extundo.com>
27786 * m4/check-version.m4: New file, suggested by Jim Meyering
27787 <jim@meyering.net>.
27789 2005-06-28 Simon Josefsson <jas@extundo.com>
27791 * lib/check-version.h, lib/check-version.c: New files.
27793 2005-06-28 Simon Josefsson <jas@extundo.com>
27795 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
27796 collision with global variable. Better indentation. Don't
27797 increment buffer pointer beyond buffer end. Based on comments
27798 from Paul Eggert <eggert@cs.ucla.edu>.
27800 * lib/base64.h: Indent.
27802 2005-06-28 Simon Josefsson <jas@extundo.com>
27804 * doc/gnulib.texi (Library version handling): New section.
27806 2005-06-28 Jim Meyering <jim@meyering.net>
27808 * check-module (find_included_lib_files): Hard-code another
27809 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
27810 but modules/fts-lgpl (correctly) does not list those files.
27812 * modules/canonicalize (Files): Add lib/pathmax.h.
27814 2005-06-25 Simon Josefsson <jas@extundo.com>
27816 * modules/check-version: New file.
27818 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
27820 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
27821 initializer of struct addrinfo, as an indication that we don't
27822 care how many members the structure has.
27824 2005-06-24 Derek Price <derek@ximbiot.com>
27825 and Bruno Haible <bruno@clisp.org>
27827 Remove stat module & update lstat.
27828 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
27829 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
27830 * m4/stat.m4: Remove this file.
27832 2005-06-24 Derek Price <derek@ximbiot.com>
27833 and Bruno Haible <bruno@clisp.org>
27835 Remove stat module & update lstat.
27836 * lib/stat.c: Remove this file...
27837 (slash_aware_lstat): ...moving this content and its support...
27838 * lib/lstat.c (rpl_lstat): ...into here.
27839 * lib/lstat.h: New file.
27841 2005-06-24 Derek Price <derek@ximbiot.com>
27842 and Bruno Haible <bruno@clisp.org>
27844 Remove stat module & update lstat.
27845 * config/srclist.txt (libc sources): Remove stat.
27847 2005-06-24 Derek Price <derek@ximbiot.com>
27848 and Bruno Haible <bruno@clisp.org>
27850 Remove stat module & update lstat.
27851 * MODULES.html.sh (stat): Remove.
27852 * MODULES.html: Regenerated.
27853 * modules/lstat (Description): Correct function name.
27854 (Files): Add "lstat.h".
27855 (Depends-on): Remove stat, add xalloc, stat-macros.
27856 * modules/stat: Remove this file.
27857 (Include): Add "lstat.h", remove <sys/stat.h>.
27859 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
27861 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
27862 (ranged_convert): Don't save conversion in a temporary struct.
27863 This causes a warning with GCC 4.0.0, and anyway in the typical
27864 case it's not worth the extra 100 bytes or so of code.
27865 (ranged_convert, __mktime_internal): When calling a function via a
27866 pointer P, use P () rather than (*P) (), as we now assume C89 or
27869 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
27871 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
27872 "who -r" failed to give output. Problem reported by Tim Waugh.
27874 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
27875 (xcalloc): Use it to avoid needless tests.
27876 Problem reported by Jim Meyering.
27878 2005-06-20 Derek Price <derek@ximbiot.com>
27880 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
27881 unnecessary for Autoconfs > 2.59c.
27883 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
27885 * lib/argp.h (__option_is_short): Check upper limit of
27886 __key. Isprint() requires its argument to have the value
27887 of an unsigned char or EOF.
27889 2005-06-16 Jim Meyering <jim@meyering.net>
27891 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
27892 when either N or S is zero.
27894 2005-06-16 Derek Price <derek@ximbiot.com>
27896 * m4/bison.m4: Declare YACC & YFLAGS precious.
27898 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
27900 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
27901 multibyte string or pattern, fall back on unibyte matching.
27902 Problem reported by James Youngman.
27904 2005-06-08 Bruno Haible <bruno@clisp.org>
27906 * modules/csharpcomp: New file.
27907 * MODULES.html.sh (C#): Add csharpcomp.
27909 2005-06-08 Bruno Haible <bruno@clisp.org>
27911 * m4/csharpcomp.m4: New file, from GNU gettext.
27913 2005-06-08 Bruno Haible <bruno@clisp.org>
27915 * lib/csharpcomp.h: New file, from GNU gettext.
27916 * lib/csharpcomp.c: New file, from GNU gettext.
27917 * lib/csharpcomp.sh.in: New file, from GNU gettext.
27919 2005-06-08 Bruno Haible <bruno@clisp.org>
27921 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
27924 2005-06-07 Derek Price <derek@ximbiot.com>
27927 * lib/glob_.h: Indent nested #ifdef.
27929 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
27931 Sync from coreutils.
27932 Use "file name" when talking about file names, instead of "filename"
27933 or "path", as per the GNU coding standards.
27934 * lib/mkdir-p.c: Renamed from makepath.c.
27935 (make_dir_parents): Renamed from make_path. All callers changed.
27936 * lib/mkdir-p.h: Likewise. All includers changed.
27937 * lib/filenamecat.c: Renamed from path-concat.c.
27938 (file_name_concat): Renamed from path_concat. All callers changed.
27939 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
27940 * lib/filenamecat.h: Likewise. All includers changed.
27941 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
27942 in comments or local variable names.
27943 * lib/basename.c: Likewise.
27944 * lib/canonicalize.c, canonicalize.h: Likewise.
27945 * lib/dirname.c, dirname.h: Likewise.
27946 * lib/euidaccess.c: Likewise.
27947 * lib/exclude.c: Likewise
27948 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
27949 * lib/fsusage.c, fsuage.h: Likewise.
27950 * lib/fts.c, fts_.h: Likewise.
27951 * lib/getcwd.c: Likewise.
27952 * lib/getloadavg.c: Likewise.
27953 * lib/mkstemp.c: Likewise.
27954 * lib/mountlist.c, mountlist.h: Likewise.
27955 * lib/openat.c, openat.h: Likewise.
27956 * lib/readlink-stub.c: Likewise.
27957 * lib/readutmp.c, readutmp.h: Likewise.
27958 * lib/rename.c: Likewise.
27959 * lib/rmdir.c: Likewise.
27960 * lib/same.c: Likewise.
27961 * lib/savedir.c: Likewise.
27962 * lib/stripslash.c: Likewise.
27963 * lib/tempname.c: Likewise.
27964 * lib/xreadlink.c: Likewise.
27965 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
27967 * lib/exclude.h: Likewise.
27969 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
27970 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
27971 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
27972 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
27973 * lib/pathmax.h: Include <limits.h> unconditionally, since other
27974 files have been getting away with it for years (MORE/BSD 4.3
27976 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
27977 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
27979 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
27980 Define to 256, not 255, as per modern POSIX.
27982 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
27984 Sync from coreutils.
27985 Use "file name" when talking about file names, instead of "filename"
27986 or "path", as per the GNU coding standards.
27987 * MODULES.html.sh: mkdir-p renamed from makepath.
27988 filenamecat renamed from path-concat.
27989 * modules/filenamecat: Renamed from modules/path-concat.
27990 (Files): filenamecat.h and filenamecat.c renamed from
27991 path-concat.h and path-concat.c.
27992 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
27993 (Include): filenamecat.h, not path-concat.h.
27994 * modules/mkdir-p: Renamed from modules/makepath.
27995 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
27997 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
27998 (Include): mkdir-p.h, not makepath.h.
28000 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
28002 Sync from coreutils.
28003 * m4/mkdir-p.m4: Renamed from makepath.m4.
28004 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
28005 Rename files from makepath.c to mkdir-p.c, and from
28006 makepath.h to mkdir-p.h.
28007 * m4/filenamecat.m4: Renamed from path-concat.m4.
28008 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
28009 Rename files from path-concat.c to filenamecat.c,
28010 and from path-concat.h to filenamecat.h.
28011 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
28012 "file name" in local variables or comments.
28013 * m4/rename.m4: Likewise.
28015 2005-06-01 Bruno Haible <bruno@clisp.org>
28017 * modules/csharpexec: New file.
28018 * MODULES.html.sh (C#): New section.
28020 2005-06-01 Bruno Haible <bruno@clisp.org>
28022 * m4/csharp.m4: New file, from GNU gettext.
28023 * m4/csharpexec.m4: New file, from GNU gettext.
28025 2005-06-01 Bruno Haible <bruno@clisp.org>
28027 * lib/csharpexec.h: New file, from GNU gettext.
28028 * lib/csharpexec.c: New file, from GNU gettext.
28029 * lib/csharpexec.sh.in: New file, from GNU gettext.
28031 2005-05-31 Derek Price <derek@ximbiot.com>
28032 Paul Eggert <eggert@cs.ucla.edu>
28035 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
28037 2005-05-31 Derek Price <derek@ximbiot.com>
28038 Paul Eggert <eggert@cs.ucla.edu>
28041 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
28043 2005-05-29 Derek Price <derek@ximbiot.com>
28045 * config/srclist.txt (glob_.h, glob.c): Add these files.
28047 2005-05-29 Derek Price <derek@ximbiot.com>
28049 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
28050 * modules/glob: New file.
28051 * modules/getlogin_r: Add link to POSIX spec in description.
28053 2005-05-29 Derek Price <derek@ximbiot.com>
28054 Paul Eggert <eggert@cs.ucla.edu>
28056 * m4/glob.m4: New file.
28058 2005-05-29 Derek Price <derek@ximbiot.com>
28059 Paul Eggert <eggert@cs.ucla.edu>
28061 * lib/glob_.h, lib/glob.c: New files.
28063 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
28065 * modules/fts (Files): Remove m4/inttypes-pri.m4.
28066 * modules/fts-lgpl (Depends-on): Remove gettext.
28068 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
28070 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
28071 and don't require gt_INTTYPES_PRI.
28073 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
28075 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
28077 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
28078 the configuration hassle isn't worth it.
28079 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
28080 (LONGEST_MODIFIER, PRIuMAX): Remove.
28082 2005-05-27 Bruno Haible <bruno@clisp.org>
28084 * lib/getlogin_r.h: Remove second include of <stddef.h>.
28086 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
28088 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
28089 _POSIX_PTHREAD_SEMANTICS for Solaris.
28091 2005-05-25 Derek Price <derek@ximbiot.com>
28093 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
28095 2005-05-25 Derek Price <derek@ximbiot.com>
28096 Paul Eggert <eggert@cs.ucla.edu>
28098 * modules/getlogin_r, m4/getlogin_r.m4: New files.
28099 * lib/getlogin_r.c, getlogin_r.h: New files.
28101 2005-05-25 Bruno Haible <bruno@clisp.org>
28102 Derek Price <derek@ximbiot.com>
28104 * lib/getlogin_r.h: Simplify API documentation.
28106 2005-05-23 Derek Price <derek@ximbiot.com>
28108 * modules/minmax (Files): Add m4/minmax.m4.
28109 (configure.ac): Add gl_MINMAX.
28111 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
28113 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
28114 so that unistd-safer.h (GPL'ed code) need not be included.
28116 2005-05-22 Bruno Haible <bruno@clisp.org>
28118 * m4/minmax.m4: New file.
28119 Based on a patch by Derek Price <derek@ximbiot.com>.
28121 2005-05-22 Bruno Haible <bruno@clisp.org>
28123 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
28124 (INT64_MIN): Fix definition.
28125 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
28127 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
28128 NEED_SIGNED_INT_TYPES.
28130 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
28131 HAVE_SYSTEM_INTTYPES.
28133 2005-05-22 Bruno Haible <bruno@clisp.org>
28135 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
28136 Also include <sys/param.h> if it defines MIN, MAX.
28137 Based on a patch by Derek Price <derek@ximbiot.com>.
28139 2005-05-21 Jim Meyering <jim@meyering.net>
28141 * modules/fts (Files): Add m4/inttypes-pri.m4.
28142 (Depends-on): Add lstat and remove gettext. Alphabetize.
28144 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
28147 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
28148 (setup_dir, free_dir): New functions.
28149 (enter_dir, leave_dir): Define trivial
28150 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
28151 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
28152 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
28153 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
28154 Move to fts-cycle.c.
28155 (fts_open): Use setup_dir.
28156 (fts_close): Use free_dir.
28157 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
28158 This adds a label and some gotos, but the alternatives were messier.
28159 Check for memory allocation failure when entering a dir.
28160 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
28161 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
28162 (FTS): New member fts_cycle, that is a union that contains the
28163 old active_dir_ht and cycle_state. All uses changed to mention
28164 fts_cycle.ht and fts_cycle.state.
28165 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
28166 fts.c, with the following changes:
28167 (setup_dir, free_dir): New functions.
28168 (enter_dir): Now returns bool. Return true if successful, false
28169 if memory exhausted. All callers changed.
28170 Do not bother partly cleaning up on
28171 memory allocation failure; that is free_dir's job.
28172 However, free ad if hash_insert fails, to avoid memory leak.
28173 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
28174 fts->fts_options to see which union member to use.
28176 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
28178 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
28179 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
28181 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
28183 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
28185 2005-05-20 Jim Meyering <jim@meyering.net>
28187 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
28188 Now a macro, to pacify GCC.
28190 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
28192 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
28195 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
28197 * lib/chown.c (rpl_chown): Return -1 on failure.
28199 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
28201 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
28202 Don't check for stddef.h.
28203 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
28204 don't use its results.
28205 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
28206 since we include them unconditionally. Don't require
28207 AM_STDBOOL_H, since stdbool is a prerequisite.
28208 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
28209 since we assume C89 or better.
28210 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
28211 as we don't use their results.
28212 Don't check for fchdir, memmove, memset, strrchr, as we use
28213 them unconditionally.
28214 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
28215 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
28217 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
28219 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
28220 Include <stddef.h> unconditionally, since we assume C89 now.
28221 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
28222 * lib/fts.c: Include fts_.h first, to check interface.
28223 Do not include intprops.h; no longer needed.
28224 Include cycle-check.h and hash.h, since fts_.h no longer does.
28225 Remove unnecessary casts of closedir to void.
28226 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
28227 decide whether to decrement nlinks.
28228 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
28229 (FTS): Use struct hash_table * instead of Hash_table, so that
28230 we no longer need to include hash.h here.
28232 2005-05-18 Jim Meyering <jim@meyering.net>
28234 * modules/dirfd (License): Change to LGPL. Most of the code
28235 is already in the public domain.
28237 2005-05-18 Jim Meyering <jim@meyering.net>
28239 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
28240 Reported by Yoann Vandoorselaere.
28242 2005-05-17 Jim Meyering <jim@meyering.net>
28244 * m4/fts.m4: New file, from coreutils.
28246 2005-05-17 Jim Meyering <jim@meyering.net>
28248 * lib/fts.c, lib/fts_.h: New files, from coreutils.
28250 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
28252 Sync from coreutils.
28253 * m4/unlinkdir.m4: New file.
28255 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
28257 Sync from coreutils.
28258 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
28259 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
28260 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
28261 White space changes only.
28262 * lib/makepath.c (make_path): Port to hosts where leading "//" is
28264 * lib/yesno.c: Include getline.h, not ctype.h.
28265 (yesno): Don't remove leading white space; POSIX doesn't allow it.
28266 Use getline to remove arbitrary restriction on response length.
28268 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
28270 * config/srclist-update: Spell out "Street" in FSF postal
28271 mail address; this is the style the FSF seems to prefer.
28273 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
28274 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
28275 this updates FSF postal mail address.
28277 Sync from coreutils.
28278 * modules/unlinkdir: New file.
28279 * modules/yesno (Depends-on): Add getline.
28280 * MODULES.html.sh (File system functions): Add unlinkdir.
28282 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
28284 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
28286 Change the initial comment to refer to GPL, not LGPL.
28287 gnulib-tool will change it to LGPL as needed.
28289 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
28290 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
28291 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
28292 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
28293 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
28294 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
28295 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
28296 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
28297 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
28298 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
28299 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
28300 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
28301 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
28302 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
28303 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
28304 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
28305 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
28306 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
28307 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
28308 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
28309 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
28310 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
28311 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
28312 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
28313 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
28314 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
28315 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
28316 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
28317 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
28318 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
28319 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
28320 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
28321 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
28322 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
28323 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
28324 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
28325 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
28326 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
28327 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
28328 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
28329 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
28330 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
28331 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
28332 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
28333 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
28334 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
28335 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
28336 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
28337 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
28338 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
28339 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
28340 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
28341 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
28342 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
28343 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
28344 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
28345 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
28346 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
28347 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
28348 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
28349 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
28350 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
28351 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
28352 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
28353 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
28354 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
28355 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
28356 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
28357 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
28358 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
28359 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
28360 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
28361 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
28362 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
28363 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
28364 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
28365 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
28366 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
28367 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
28368 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
28369 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
28370 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
28371 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
28372 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
28373 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
28374 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
28375 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
28376 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
28377 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
28378 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
28379 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
28380 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
28381 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
28382 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
28383 lib/yesno.c, lib/yesno.h:
28384 Update FSF postal mail address.
28386 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
28388 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
28389 tests/test-memmem.c, tests/test-stpncpy.c:
28390 Update FSF postal mail address.
28392 2005-05-13 Bruno Haible <bruno@clisp.org>
28394 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
28395 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
28396 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
28397 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
28398 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
28399 Add support for 64-bit integers in the MSVC compiler.
28401 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
28403 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
28405 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
28407 * gnulib-tool (func_import): Sort and uniquify recommended includes.
28409 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
28411 * doc/getdate.texi (General date syntax): Don't say that date
28412 date --iso-8601=ns generates acceptable dates; it doesn't yet.
28413 Problem reported by Nic Ferrier.
28415 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
28417 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
28418 specified in ai_socktype. Fix invalid ai_protocol
28419 check. ai_protocol is usually set to 0 or depending on
28420 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
28421 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
28422 ai_socktype / ai_protocol in the returned addrinfo structure.
28424 2005-05-10 Simon Josefsson <jas@extundo.com>
28426 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
28427 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28429 2005-05-10 Karl Berry <karl@gnu.org>
28431 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
28432 (from http://www.gnu.org/licenses).
28433 * doc/COPYING.LIB: also rename to COPYING.LESSER.
28434 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
28437 2005-05-10 Karl Berry <karl@gnu.org>
28439 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
28440 (COPYING.DOC): remove.
28442 * config/srclist-update: new FSF address.
28444 2005-05-10 Derek Price <derek@ximbiot.com>
28446 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
28449 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
28450 Bruno Haible <bruno@clisp.org>
28452 * modules/inet_ntop: New file.
28453 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28456 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
28457 Bruno Haible <bruno@clisp.org>
28459 * m4/inet_ntop.m4: New file.
28461 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
28462 Bruno Haible <bruno@clisp.org>
28464 * lib/inet_ntop.h: New file.
28465 * lib/inet_ntop.c: New file, from glibc with modifications.
28467 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
28469 * modules/time_r (License): Change to LGPL.
28470 * modules/extensions (License): Change to LGPL. Actually,
28471 the license is more permissive than that, but currently gnulib-tool
28472 doesn't know how to handle more-permissive licenses.
28474 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
28475 Problem reported by Dave Love.
28477 2005-05-08 Jim Meyering <jim@meyering.net>
28479 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
28482 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
28484 * modules/argmatch (Depends-on): Add stdbool.
28485 * modules/backupfile (Depends-on): Likewise.
28486 * modules/chdir-long (Depends-on): Likewise.
28487 * modules/closeout (Depends-on): Likewise.
28488 * modules/cycle-check (Depends-on): Likewise.
28489 * modules/dirname (Depends-on): Likewise.
28490 * modules/fnmatch (Depends-on): Likewise.
28491 * modules/fsusage (Depends-on): Likewise.
28492 * modules/fwriteerror (Depends-on): Likewise.
28493 * modules/getcwd (Depends-on): Likewise.
28494 * modules/getloadavg (Depends-on): Likewise.
28495 * modules/hard-locale (Depends-on): Likewise.
28496 * modules/makepath (Depends-on): Likewise.
28497 * modules/mountlist (Depends-on): Likewise.
28498 * modules/nanosleep (Depends-on): Likewise.
28499 * modules/posixtm (Depends-on): Likewise.
28500 * modules/quotearg (Depends-on): Likewise.
28501 * modules/readtokens (Depends-on): Likewise.
28502 * modules/readtokens0 (Depends-on): Likewise.
28503 * modules/readutmp (Depends-on): Likewise.
28504 * modules/save-cwd (Depends-on): Likewise.
28505 * modules/strftime (Depends-on): Likewise.
28506 * modules/userspec (Depends-on): Likewise.
28507 * modules/utimecmp (Depends-on): Likewise.
28508 * modules/xgetcwd (Depends-on): Likewise.
28509 * modules/xnanosleep (Depends-on): Likewise.
28510 * modules/xstrtod (Depends-on): Likewise.
28511 * modules/yesno (Depends-on): Likewise.
28513 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
28515 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
28518 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
28520 Merge from coreutils. Among other things,
28521 add bulletproofing for cases where stdin, stdout, or stderr are closed.
28522 * lib/fd-safer.c: New file.
28523 * lib/fcntl-safer.h, open-safer.c: Remove.
28524 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
28525 * lib/dup-safer.c: Include unistd-safer.h first.
28526 Don't include errno.h.
28527 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
28528 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
28529 * lib/file-type.c: Rely on file-type.h change.
28530 * lib/getloadavg.c: Include unistd-safer.h.
28531 (getloadavg): Use safer open.
28532 * lib/getusershell.c: Include "stdio-safer.h".
28533 (getusershell): Use safer fopen.
28534 * lib/long-options.c (long_options): Use NULL rather than 0.
28535 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
28537 * lib/modechange.c: Likewise.
28538 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
28539 (MODE_DONE): New constant.
28540 (struct mode_change): Remove 'next' member.
28541 (make_node_op_equals): New function; like the old one of the
28542 same name, except it allocates an array.
28543 (mode_compile, mode_create_from_ref): Use it.
28544 (mode_compile): Allocate result as an array, not a linked list.
28545 Parse octal string ourself, so that we catch mistakes like "+0".
28546 (mode_adjust): Arg is an array, not a linked list.
28547 * lib/modechange.c: Include stat-macros.h, xalloc.h.
28548 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
28549 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
28550 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
28551 Remove. This is now stat-macros.h's job.
28552 (talloc): Remove. All callers replaced by xalloc, so that
28553 our invokers don't have to worry about reporting memory failures.
28554 (make_node_op_equals): Remove.
28555 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
28557 (struct mode_change): Moved here from modechange.h.
28558 (mode_append_entry): Remove.
28559 (mode_compile): Remove MASKED_OPS arg, since it encouraged
28560 apps to have incorrect behavior. Use simpler algorithm for head
28561 and tail. Don't futz with umask; that's now the job of mode_adjust.
28562 Detect more invalid usages rather than having somewhat-random behavior.
28563 Don't insert an "a=" action, as that leads to incorrect behavior.
28564 (mode_compile, mode_create_from_ref): Return NULL on error instead
28565 of an enum, since now there's only one way to have an error. All
28567 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
28568 at the correct time. Simplify calculation of "+u" and its ilk.
28569 Don't mishandle "+X".
28570 (mode_free): Remove "register" and localize decls.
28571 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
28572 (struct mode_change): Move to modechange.c; callers don't
28573 need to see this stuff.
28574 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
28575 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
28576 (mode_change, mode_adjust): Reflect the new signatures noted above.
28577 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
28578 that might redefine system include files.
28579 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
28580 (my_usleep): Use NULL rather than (void *) 0.
28581 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
28582 Use siginterrupt to specify that system calls should be interrupted.
28583 (rpl_nanosleep): Move initialization of suspended closer to call of
28585 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
28586 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
28587 (desirable_utmp_entry): New function.
28588 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
28589 using x2nrealloc, to simplify logic.
28590 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
28591 size calculation. Do not assume utmp file is a regular file.
28592 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
28593 (READ_UTMP_CHECK_PIDS): New constant.
28594 * lib/save-cwd.c: Include unistd-safer.h.
28595 (save_cwd): Use fd_safer.
28596 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
28597 [!_LIBC] Include "stat-macros.h" instead.
28598 * lib/unistd-safer.h (fd_safer): New decl.
28600 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
28602 * modules/getloadavg (Depends-on): Add unistd-safer.
28603 * modules/getusershell (Depends-on): Add stdio-safer.
28604 * modules/lstat (Depends-on): Remove xalloc.
28605 * modules/mkstemp (Depends-on): Add stat-macros.
28606 * modules/modechange (Depends-on): Remove xstrtol.
28607 Add stat-macros, xalloc.
28608 * modules/save-cwd (Depends-on): Add unistd-safer.
28609 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
28610 * modules/unistd-safer (Files): Add lib/fd-safer.c
28611 (Makefile.am): Remove lib_SOURCES.
28613 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
28614 Remove fcntl-safer; unistd-safer supersedes it.
28616 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
28618 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
28620 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
28621 (gl_PREREQ_CHOWN): Remove.
28622 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
28623 it. Don't require AC_HEADER_STAT.
28624 (gl_PREREQ_LSTAT): Remove.
28625 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
28626 Don't require AC_HEADER_STAT.
28627 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
28628 (gl_PREREQ_RMDIR): Remove.
28629 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
28630 mention stat-macros.h or AC_HEADER_STAT, since we'll make
28631 the stat-macros module a prerequisite.
28632 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
28633 * m4/filemode.m4 (gl_FILEMODE): Likewise.
28634 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
28635 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
28636 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
28638 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
28639 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
28641 * m4/fcntl-safer.m4: Remove.
28642 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
28643 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
28644 Invoke gl_PREREQ_FD_SAFER.
28645 (gl_PREREQ_FD_SAFER): New macro.
28646 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
28647 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
28648 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
28649 Remove duplicate call to AC_LIBOBJ(readutmp).
28650 (gl_PREREQ_READUTMP): Remove. All uses inlined.
28652 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
28653 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
28655 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
28657 * MODULES.html.sh (Misc): Add byteswap.
28659 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
28661 * modules/getcwd (Depends-on): Add extensions.
28662 * modules/openat (Depends-on): Likewise.
28664 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
28666 * modules/byteswap: New file.
28668 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
28670 * m4/byteswap.m4: New file.
28672 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
28674 * lib/byteswap_.h: New file.
28676 2005-04-25 Karl Berry <karl@gnu.org>
28678 * m4/gettext.m4: Update from GNU gettext 0.14.4.
28680 2005-04-25 Albert Chin <china@thewrittenword.com>
28682 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
28685 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
28687 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
28688 (func_ln_if_changed) Remove forcibly for no error message
28689 in case file does not exist.
28691 2005-04-19 Simon Josefsson <jas@extundo.com>
28693 * gnulib-tool (Options): Make --symlink mean --symbolic.
28695 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
28697 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
28699 2005-04-16 Simon Josefsson <jas@extundo.com>
28701 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
28703 2005-04-15 Simon Josefsson <jas@extundo.com>
28705 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
28707 2005-04-15 Simon Josefsson <jas@extundo.com>
28709 * gnulib-tool: Rename --symlink to --symbolic.
28711 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
28713 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
28714 symbolic links to files instead of copying/moving. Add --aux-dir,
28715 specifying directory relative --dir where auxiliary build tools
28718 2005-04-14 Bruno Haible <bruno@clisp.org>
28720 * modules/allocsa (License): Change to LGPL.
28721 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28723 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
28725 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
28726 that "UTC +1 second" continues to work. Problem reported
28727 by Dmitry V. Levin.
28728 (relunit_snumber): New rule.
28731 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
28733 * lib/getdate.y (universal_time_zone_table): New constant.
28734 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
28735 universal_time_zone_table.
28736 (lookup_zone): Prefer universal_time_zone_table to
28737 local_time_zone_table, so that "GMT" time stamps are allowed in
28738 London during the summer. Problem reported by Ian Abbott.
28740 2005-04-12 Jim Meyering <jim@meyering.net>
28742 * lib/human.c (humblock): Set *options even when returning due to
28743 xstrtoumax conversion failure. Thanks to a used-uninitialized
28744 warning from gcc-4.
28746 2005-04-09 Jim Meyering <jim@meyering.net>
28748 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
28749 -Wuninitialized: initialize tm0.tm_year.
28751 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
28753 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
28754 count, since there's no maximum. All uses changed.
28755 Add member dsts_seen.
28756 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
28758 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
28759 Use pc_rels_seen to decide whther a date is absolute.
28761 * lib/getdate.y (number): Don't overwrite year.
28762 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
28765 2005-04-02 Simon Josefsson <jas@extundo.com>
28767 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
28768 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
28770 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
28772 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
28773 where no absolute path name can be longer than PATH_MAX.
28775 2005-03-27 Jim Meyering <jim@meyering.net>
28777 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
28779 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
28781 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
28782 "one's complement" -> "ones' complement" in comment, as per Knuth.
28783 "value of type" -> "type or expression" in comment.
28784 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
28786 2005-03-26 Jim Meyering <jim@meyering.net>
28789 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
28790 Correct typos: s/or/of/.
28792 2005-03-26 Jim Meyering <jim@meyering.net>
28794 * modules/check-include-files: Move to ../ and rename to...
28795 * check-module: ...this.
28797 2005-03-25 Jim Meyering <jim@meyering.net>
28799 * modules/xvasprintf (Files): Add xalloc.h.
28801 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
28803 * modules/gettext (Files): config/config.rpath ->
28804 build-aux/config.rpath
28805 * modules/iconv (Files): Likewise.
28806 Problem reported by Oskar Liljeblad.
28808 2005-03-23 Jim Meyering <jim@meyering.net>
28810 * modules/check-include-files: New script to check for
28811 missing dependencies, multiple includes, etc.
28813 * modules/c-strtold (Depends-on): Add xalloc.
28814 * modules/c-strtod (Depends-on): Add xalloc.
28815 * modules/hash (Depends-on): Add xalloc.
28816 (Files): Remove lib/xalloc.h.
28818 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
28819 * modules/userspec (Files): Add lib/inttostr.h.
28821 2005-03-23 Jim Meyering <jim@meyering.net>
28823 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
28825 2005-03-22 Jim Meyering <jim@meyering.net>
28827 * modules/stat-macros: New module.
28828 * modules/canonicalize, modules/euidaccess, modules/file-type,
28829 * modules/filemode, modules/lchown, modules/makepath,
28830 * modules/rmdir, modules/stat: Depend on new stat-macros module
28831 rather than listing lib/stat-macros.h manually.
28832 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
28834 2005-03-22 Jim Meyering <jim@meyering.net>
28836 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
28838 2005-03-22 Bruno Haible <bruno@clisp.org>
28840 * config/srclist.txt: Replace target directory 'config' with
28842 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
28843 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
28846 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
28848 * modules/chdir-long (Depends-on): Add mempcpy.
28850 * modules/acl, modules/backupfile, modules/c-strtod,
28851 modules/c-strtold, modules/canon-host, modules/canonicalize,
28852 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
28853 modules/exclude, modules/exitfail, modules/file-type,
28854 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
28855 modules/getdate, modules/getline, modules/getpagesize,
28856 modules/getpass, modules/getugroups, modules/group-member,
28857 modules/hard-locale, modules/hash, modules/human, modules/idcache,
28858 modules/inttostr, modules/long-options, modules/makepath,
28859 modules/md5, modules/memcasecmp, modules/memcoll,
28860 modules/modechange, modules/mountlist, modules/path-concat,
28861 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
28862 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
28863 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
28864 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
28865 modules/strftime, modules/strndup, modules/strverscmp,
28866 modules/timespec, modules/unlocked-io, modules/userspec,
28867 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
28869 Remove lib_SOURCES line from Makefile.am section, as this is now
28870 done automatically by the corresponding Autoconf macro.
28872 2005-03-21 Jim Meyering <jim@meyering.net>
28874 Changes imported from coreutils.
28876 * lib/cycle-check.c: Don't include xalloc.h.
28878 * lib/path-concat.c: Don't include assert.h.
28879 (path_concat): Remove assertion that would have triggered
28880 for ABASE starting with more than one slash.
28881 Reported by Andreas Schwab.
28883 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
28884 properly when ABASE is an absolute file name.
28885 Correct the description of this function.
28886 Include <assert.h>.
28887 Add an assertion and a test driver.
28888 This fixes a bug introduced on 2004-07-02.
28889 Andreas Schwab reported the resulting failure of cp --parents:
28890 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
28892 2005-03-21 Jim Meyering <jim@meyering.net>
28894 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
28895 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
28897 2005-03-21 Jim Meyering <jim@meyering.net>
28898 and Paul Eggert <eggert@cs.ucla.edu>
28900 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
28901 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
28902 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
28903 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
28904 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
28905 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
28906 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
28907 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
28908 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
28909 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
28910 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
28911 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
28912 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
28913 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
28914 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
28915 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
28916 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
28919 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
28921 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
28922 (which shouldn't happen), generate nothing instead of returning 0
28923 immediately, so that nstrftime (NULL, ...) doesn't return 0.
28925 2005-03-16 Bruno Haible <bruno@clisp.org>
28927 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
28928 HAVE_LONGLONG_64BIT.
28930 2005-03-16 Bruno Haible <bruno@clisp.org>
28932 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
28933 HAVE_LONGLONG_64BIT.
28935 2005-03-16 Bruno Haible <bruno@clisp.org>
28937 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
28938 HAVE_LONGLONG_64BIT.
28940 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
28942 * lib/strftime.c (my_strftime): Prepend space to format so that we can
28943 reliably distinguish strftime failure from empty output on POSIX
28946 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
28948 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
28949 (iconv_string): Don't guess a size-zero buffer, as that might cause
28950 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
28951 result would be 'too large', where 'too large' is (heuristically)
28952 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
28953 overflow concerns. This will prevent some unwanted malloc failures
28954 when the inputs are very large.
28956 2005-03-15 Karl Berry <karl@gnu.org>
28958 * config/srclist.txt (config.rpath): from gettext.
28959 * config/config.rpath: update.
28961 2005-03-15 Bruno Haible <bruno@clisp.org>
28963 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
28966 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
28969 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
28972 2005-03-14 Simon Josefsson <jas@extundo.com>
28974 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
28977 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
28979 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
28980 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
28982 * lib/strtol.c: Likewise.
28984 2005-03-14 Jim Meyering <jim@meyering.net>
28986 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
28987 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
28988 to be nonzero so that we (and caller) can detect the difference
28989 between a valid zero-length expansion and an error return, even
28990 when the underlying strftime fails before writing anything into
28993 2005-03-14 Bruno Haible <bruno@clisp.org>
28995 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
28996 Update from GNU gettext 0.14.3.
28998 2005-03-10 Jim Meyering <jim@meyering.net>
29000 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
29002 2005-03-10 Jim Meyering <jim@meyering.net>
29004 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
29005 so that this module works on systems without fchdir.
29007 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
29009 Factor int-properties macros into a single file, except for
29010 glibc-related files.
29011 * lib/intprops.h: New file.
29012 * lib/getloadavg.c: Include it instead of limits.h.
29013 (INT_STRLEN_BOUND): Remove.
29014 * lib/human.c: Include intprops.h.
29015 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
29016 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
29018 * lib/inttostr.h: Include intprops.h instead of limits.h.
29019 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
29020 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
29021 for consistency with intprops.h.
29022 (time_t_is_integer, twos_complement_arithmetic): Use them.
29023 * lib/sig2str.h: Include <signal.h>, intprops.h.
29024 (INT_STRLEN_BOUND): Remove.
29025 * lib/strftime.c (TYPE_SIGNED): Remove.
29026 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
29027 * lib/strtol.c: Adjust comments to match intprops.h.
29028 * lib/userspec.c: Include intprops.h.
29029 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
29030 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
29031 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
29032 instead of rolling our own expressions.
29033 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
29035 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
29037 (my_strftime): Do not mishandle years close to INT_MAX, by doing
29038 the right thing even if adding 1900 would overflow. Similarly
29039 for tm_mon + 1 and tm_yday + 1.
29040 Make %Y always equivalent to %C%y, and similarly for %G and %g.
29041 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
29042 (DO_SIGNED_NUMBER): New macro.
29043 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
29045 2005-03-07 Bruno Haible <bruno@clisp.org>
29047 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
29049 2005-03-07 Bruno Haible <bruno@clisp.org>
29051 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
29053 2005-03-04 Derek R. Price <derek@ximbiot.com>
29055 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
29056 (func_import): Only replace files via --import when they have actually
29059 2005-03-03 Derek R. Price <derek@ximbiot.com>
29061 * m4/mmap-anon.m4: New file.
29062 * m4/pagealign_alloc.m4: New file.
29064 2005-03-03 Derek R. Price <derek@ximbiot.com>
29065 Bruno Haible <bruno@clisp.org>
29067 * modules/pagealign_alloc: New file.
29068 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
29070 2005-03-03 Derek R. Price <derek@ximbiot.com>
29071 Bruno Haible <bruno@clisp.org>
29073 * lib/pagealign_alloc.h: New file.
29074 * lib/pagealign_alloc.c: New file.
29076 2005-03-03 Bruno Haible <bruno@clisp.org>
29078 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
29079 Use an all-permissive copyright notice, recommended by RMS.
29081 2005-03-02 Bruno Haible <bruno@clisp.org>
29083 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
29084 of AIX, the replacement has to be done only after <string.h> is
29085 included, therefore not in config.h. stpncpy.h does the replacement,
29086 and stpncpy.c uses it.
29088 2005-03-02 Bruno Haible <bruno@clisp.org>
29090 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
29093 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
29095 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
29096 The workaround isn't strictly needed for POSIX conformance, and
29097 it's too much of a pain to configure and maintain. We'll ask
29098 people to fix their kernels instead.
29099 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
29100 (NANOSLEEP_BUG_WORKAROUND): Remove.
29101 (xnanosleep): Remove the workaround.
29103 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
29105 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
29106 Reported by Derek Price.
29107 (Include): Add "timespec.h".
29109 * modules/xnanosleep (Depends-on): Remove gethrxtime.
29111 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
29113 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
29114 to detect nanosleep bug.
29116 2005-03-01 Bruno Haible <bruno@clisp.org>
29118 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
29120 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
29122 * modules/gethrxtime: New file.
29123 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
29124 (Depends-on): Add gethrxtime.
29125 (configure.ac): Add gl_XNANOSLEEP.
29126 (Makefile.am): Remove lib_SOURCES line.
29128 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
29130 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
29131 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
29133 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
29135 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
29136 * lib/timespec.h (gettime): Return void, since it always
29137 succeeds now. All uses changed.
29138 * lib/gettime.c (gettime) Likewise.
29139 [HAVE_NANOTIME]: Prefer nanotime.
29140 Assume gettimeofday succeeds, as POSIX requires.
29141 Assime time () succeeds, since other code already does.
29142 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
29143 (timespec_subtract): Remove.
29144 (NANOSLEEP_BUG_WORKAROUND): New constant.
29145 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
29146 things considerably. Use it only on GNU/Linux hosts, since the
29147 workaround shouldn't be needed elsewhere.
29149 2005-02-24 Bruno Haible <bruno@clisp.org>
29151 * modules/gettext (Files): Add m4/glibc2.m4.
29153 2005-02-24 Bruno Haible <bruno@clisp.org>
29155 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
29156 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
29158 Update from GNU gettext 0.14.2.
29159 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
29161 2005-02-24 Bruno Haible <bruno@clisp.org>
29163 * lib/localcharset.c: Update from GNU gettext 0.14.2.
29164 * lib/config.charset: Update from GNU gettext 0.14.2.
29166 2005-02-24 Bruno Haible <bruno@clisp.org>
29168 * lib/gettext.h: Update from GNU gettext 0.14.2.
29170 2005-02-23 Simon Josefsson <jas@extundo.com>
29172 * m4/iconvme.m4: New file.
29174 2005-02-23 Jim Meyering <jim@meyering.net>
29176 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
29178 Thanks to Bruno Haible for catching it.
29180 2005-02-22 Simon Josefsson <jas@extundo.com>
29182 * modules/iconvme: New file.
29184 * MODULES.html.sh: Add iconvme.
29186 2005-02-22 Simon Josefsson <jas@extundo.com>
29188 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
29190 2005-02-22 Simon Josefsson <jas@extundo.com>
29192 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
29194 2005-02-22 Jim Meyering <jim@meyering.net>
29196 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
29199 2005-02-20 Neil Conway <neilc@samurai.com>
29201 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
29202 returned by OSX/Darwin if the specified buffer is not large
29203 enough for the hostname.
29205 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
29207 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
29208 pass it to _help, otherwise the latter coredumps trying to
29209 dereference state.root_argp.
29211 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
29213 * modules/chdir-long (Depends-on): Add memrchr.
29214 * modules/memrchr (Files): Add lib/memrchr.h.
29215 (Include): "memrchr.h".
29217 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
29219 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
29221 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
29223 * lib/memrchr.h: New file.
29224 * lib/chdir-long.c: Include it.
29225 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
29226 Don't bother including stddef.h.
29228 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
29230 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
29232 Include <sys/types.h>, for dev_t.
29233 (ME_DUMMY, ME_REMOTE): Move from here....
29234 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
29235 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
29237 Include mountlist.h first, to test the interface.
29239 2005-01-29 Bruno Haible <bruno@clisp.org>
29241 * lib/progname.c (program_name): Initialize.
29242 Needed when linking statically on MacOS X.
29244 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
29246 Sync from coreutils.
29247 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
29248 (Depends-on): Add c-strtod.
29249 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
29251 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
29253 Sync from coreutils.
29254 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
29256 Remove files that are specific to coreutils.
29257 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
29259 2005-01-28 Bruno Haible <bruno@clisp.org>
29261 * modules/javacomp: New file.
29262 * MODULES.html.sh (Java): Add javacomp.
29264 2005-01-28 Bruno Haible <bruno@clisp.org>
29266 * m4/javacomp.m4: New file, from GNU gettext.
29268 2005-01-28 Bruno Haible <bruno@clisp.org>
29270 * lib/javacomp.sh.in: New file, from GNU gettext.
29271 * lib/javacomp.h: New file, from GNU gettext.
29272 * lib/javacomp.c: New file, from GNU gettext.
29274 2005-01-26 Simon Josefsson <jas@extundo.com>
29276 * lib/gai_strerror.c: Use GPL in header.
29278 2005-01-26 Bruno Haible <bruno@clisp.org>
29280 * modules/javaexec: New file.
29281 * MODULES.html.sh (Java): Add javaexec.
29283 2005-01-26 Bruno Haible <bruno@clisp.org>
29285 * m4/javaexec.m4: New file, from GNU gettext.
29287 2005-01-26 Bruno Haible <bruno@clisp.org>
29289 * lib/javaexec.sh.in: New file, from GNU gettext.
29290 * lib/javaexec.h: New file, from GNU gettext.
29291 * lib/javaexec.c: New file, from GNU gettext.
29293 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
29295 * modules/lchown (Depends-on): Remove lchown.h
29297 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
29299 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
29300 must be defined if the header file was not found, in order
29301 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
29303 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
29305 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
29306 initializers for struct pentry_state.
29307 (__argp_error): Check return value of __asprintf
29308 (__argp_failure): Translate error message
29310 * lib/argp-parse.c: Removed braces around the expansion of N_()
29312 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
29314 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
29315 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
29316 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
29317 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
29318 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
29319 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
29320 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
29321 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
29322 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
29323 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
29324 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
29325 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
29326 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
29327 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
29328 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
29329 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
29330 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
29331 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
29332 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
29333 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
29334 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
29335 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
29336 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
29337 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
29338 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
29339 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
29340 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
29341 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
29342 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
29343 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
29344 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
29345 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
29346 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
29347 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
29348 xstrtol.m4, xstrtoumax.m4, yesno.m4:
29349 Use an all-permissive copyright notice, recommended by RMS.
29351 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
29353 * modules/chdir-long (Depends-on): Remove mempcpy.
29355 2005-01-21 Jim Meyering <jim@meyering.net>
29357 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
29358 same value as for Solaris 9.
29360 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
29361 component length. This included changing the parameter to be
29362 of type `char *' rather than `char const *'.
29363 * lib/chdir-long.h (chdir_long): Update prototype.
29365 * lib/openat.c (fdopendir, fstatat): New functions.
29366 * lib/openat.h: Include headers required for use of DIR and struct
29368 [AT_SYMLINK_NOFOLLOW]: Define.
29369 (fdopendir, fstatat): Add prototypes.
29371 2005-01-21 Bruno Haible <bruno@clisp.org>
29373 * modules/classpath: New file.
29374 * MODULES.html.sh (Java): Add classpath.
29376 2005-01-21 Bruno Haible <bruno@clisp.org>
29378 * lib/classpath.h: New file, from GNU gettext.
29379 * lib/classpath.c: New file, from GNU gettext.
29381 2005-01-20 Simon Josefsson <jas@extundo.com>
29383 * modules/version-etc-fsf: New file.
29385 2005-01-20 Simon Josefsson <jas@extundo.com>
29387 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
29388 * lib/version-etc.c: Remove version_etc_copyright.
29389 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
29390 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
29392 2005-01-20 Simon Josefsson <jas@extundo.com>
29394 * lib/base64.h (isbase64): Add.
29396 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
29397 using a unsigned prototype, don't inline.
29398 (base64_decode): Use it.
29400 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
29402 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
29405 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
29407 * lib/save-cwd.c (save_cwd): Remove code to support the case
29408 where fchdir is missing or flaky.
29410 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
29412 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
29414 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
29416 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
29417 AC_LIBSOURCES now does this.
29418 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
29419 with new ullong_max module.
29421 2005-01-19 Bruno Haible <bruno@clisp.org>
29423 * modules/sh-quote: New file.
29424 * MODULES.html.sh (Executing programs): Add sh-quote.
29426 2005-01-19 Bruno Haible <bruno@clisp.org>
29428 * lib/sh-quote.h: New file, from GNU gettext.
29429 * lib/sh-quote.c: New file, from GNU gettext.
29431 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
29433 Merge from coreutils.
29434 * m4/ullong_max.m4: New file.
29435 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
29436 (gl_MACROS): Assume localeconv exists.
29438 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
29440 Merge changes from coreutils, as described below in several
29441 changelogs dated today.
29443 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
29444 (O_DIRECTORY): Remove; not needed here, since "." must be
29445 a directory. All uses removed.
29446 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
29447 universal on Suns, and we also need to test for IRIX.
29448 Revamp code to use 'if' rather than '#if'.
29449 Avoid unnecessary comparison of cwd->desc to 0.
29451 * lib/utimens.c (futimens): Robustify the previous patch, by checking
29452 for known valid error numbers rather than observed invalid ones.
29454 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
29456 * modules/ullong_max: New file.
29458 * modules/chdir-long, modules/openat: New files.
29459 * modules/save-cwd (Depends-on): Depend on chdir-long.
29460 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
29462 2005-01-18 Jim Meyering <jim@meyering.net>
29464 Merge from coreutils.
29465 * m4/chdir-long.m4, m4/openat.m4: New files.
29466 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
29467 save-cwd.h. Add AC_LIBOBJ for save-cwd.
29468 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
29469 is sane and DOES follow symlinks. Besides, testing 20 different
29470 systems found no broken chown implementations.
29471 Prompted by a change in rsync's copy of this macro.
29472 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
29474 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
29476 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
29477 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
29478 NULL-means-set-to-current-time semantics.
29479 Remove temporary file immediately, rather than waiting
29480 for configure's at-exit trap code to do it.
29482 2005-01-18 Jim Meyering <jim@meyering.net>
29484 * lib/version-etc.c (version_etc_copyright): Update copyright date.
29486 * lib/utimens.c (futimens): Account for the fact that futimes
29487 can also fail with errno == ENOSYS or errno == ENOENT.
29488 Patch from Dmitry V. Levin.
29490 Change the name of the robust chdir function from chdir to chdir_long.
29491 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
29492 (restore_cwd): Use chdir_long, not chdir.
29493 * lib/chdir-long.c: Renamed from chdir.c.
29494 * lib/chdir-long.h: Renamed from chdir.h.
29495 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
29498 2005-01-18 Bruno Haible <bruno@clisp.org>
29500 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
29501 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
29502 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
29503 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
29504 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
29505 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
29506 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
29507 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
29508 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
29509 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
29510 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
29511 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
29512 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
29513 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
29514 Use an all-permissive copyright notice, recommended by RMS.
29516 2005-01-18 Bob Proulx <bob@proulx.com>
29518 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
29519 simplify offsetof() macro construct to avoid compile failure with
29520 native HP-UX 11.0 ANSI C compiler.
29522 2005-01-17 Bruno Haible <bruno@clisp.org>
29524 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
29525 redundant because stpncpy.m4 takes care of it.
29527 2005-01-17 Bruno Haible <bruno@clisp.org>
29529 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
29531 2005-01-17 Bruno Haible <bruno@clisp.org>
29533 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
29536 2005-01-17 Bruno Haible <bruno@clisp.org>
29538 * lib/fwriteerror.h (fwriteerror): Change specification to include
29540 * lib/fwriteerror.c: Include <stdbool.h>.
29541 (fwriteerror): At the end, close the file stream. Record whether
29542 stdout was already closed.
29544 2005-01-17 Bruno Haible <bruno@clisp.org>
29546 * lib/execute.c (environ): Declare if needed.
29547 * lib/pipe.c (environ): Likewise.
29548 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
29550 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
29552 * modules/argp: Depend on vsnprintf
29554 2005-01-10 Jim Meyering <jim@meyering.net>
29556 * modules/closeout (Depends-on): Add atexit.
29558 2005-01-06 Bruno Haible <bruno@clisp.org>
29560 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
29562 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
29564 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
29565 definitions to be after all include files, to avoid collisions.
29566 Problem reported by Bob Proulx.
29568 2005-01-04 Jim Meyering <jim@meyering.net>
29570 Changes imported from coreutils.
29571 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
29572 as the mkstemp template, use a temporary directory and an
29573 8.3-friendly template to avoid trouble on systems like DJGPP.
29574 Reported by Juan M. Guerrero via Stepan Kasal.
29575 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
29576 close. Remove the temporary directory right away, rather than waiting
29577 for configure's at-exit trap code to do it.
29578 Suggestion from Stepan Kasal.
29580 2005-01-01 Simon Josefsson <jas@extundo.com>
29582 * gnulib-tool: Print #include directives when --import'ing.
29584 2004-12-28 Simon Josefsson <jas@extundo.com>
29586 * tests/test-base64.c: Include required header files. Remove
29589 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
29591 * modules/error (Depends-on): Remove gettext.
29593 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
29595 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
29596 not needed. This removes a dependency on the gettext module.
29597 [defined _LIBC]: Do not include <libintl.h>; not needed.
29599 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
29601 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
29602 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
29604 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
29606 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
29609 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
29611 * modules/getdate (Depends-on): Remove alloca-opt.
29613 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
29615 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
29617 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
29619 * lib/argp-parse.c: Include <stddef.h>.
29620 (alignof, alignto): New macros.
29621 (parser_init): Don't assume that void * is aligned sufficiently
29624 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
29625 need to extend the stack.
29626 (YYINITDEPTH): New macro, so that the initial stack isn't overly
29629 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
29631 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
29633 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
29635 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
29636 (2004-10-24) change. Apparently this was a false alarm.
29638 * modules/getdate: Depend on alloca-opt, not alloca.
29640 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
29642 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
29643 Remove now-obsolete comment about AIX.
29644 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
29645 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
29646 (YYMAXDEPTH): New macro.
29648 2004-12-18 Simon Josefsson <jas@extundo.com>
29650 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
29652 2004-12-18 Bruno Haible <bruno@clisp.org>
29654 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
29656 2004-12-18 Bruno Haible <bruno@clisp.org>
29658 * lib/fatal-signal.c (fatal_signals): Make non-const.
29659 (init_fatal_signals): New function.
29660 (uninstall_handlers, install_handlers): Ignore signals that were set to
29662 (at_fatal_signal): Call init_fatal_signals.
29663 (init_fatal_signal_set): Likewise. Ignore signals that were set to
29665 Reported by Paul Eggert.
29667 2004-12-18 Bruno Haible <bruno@clisp.org>
29669 * doc/alloca.texi: New file.
29670 * doc/alloca-opt.texi: New file.
29672 2004-12-17 Jim Meyering <jim@meyering.net>
29674 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
29675 Otherwise, install-sh could exit with improper exit status when
29676 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
29678 2004-12-16 Simon Josefsson <jas@extundo.com>
29680 * tests/test-base64.c: Add license.
29682 2004-12-15 Stepan Kasal <address@hidden>
29684 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
29686 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
29688 * modules/getcwd (Files): Add m4/d-ino.m4.
29689 Suggested by Mark D. Baushke.
29691 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
29693 * lib/getdate.y (textint): New member "negative".
29694 (time_zone_hhmm): New function.
29695 Expect 14 shift-reduce conflicts, not 13.
29696 (o_colon_minutes): New rule.
29697 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
29698 (yylex): Set the "negative" member of signed numbers.
29700 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
29702 * doc/getdate.texi (Time of day items, Time zone items):
29703 Describe new formats +00:00, UTC+00:00.
29705 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
29707 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
29708 spurious "-l"s. Problem reported by Stepan Kasal.
29710 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
29712 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
29713 in Autoconf 2.59. Problem reported by Mark D. Baushke.
29715 2004-12-04 Simon Josefsson <jas@extundo.com>
29717 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
29718 Vandoorselaere <yoann@prelude-ids.org>.
29720 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
29722 Changes imported from coreutils.
29723 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
29725 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
29727 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
29729 Changes imported from coreutils.
29730 * lib/hard-locale.c: Assume <locale.h> exists.
29731 Include "strdup.h".
29732 (GLIBC_VERSION): New macro.
29733 (hard_locale): Assume setlocale exists.
29734 Rewrite to avoid #ifdef.
29735 Use strdup rather than malloc + strcpy.
29736 * lib/human.c: Assume <locale.h> exists.
29737 (human_readable): Assume localeconv exists.
29739 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
29741 * modules/hard-locale (Depends-on): Add strdup.
29743 2004-12-01 Jakub Jelinek <jakub@redhat.com>
29745 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
29746 convert T2, not T. (Imported from libc.)
29748 2004-11-30 Simon Josefsson <jas@extundo.com>
29750 * modules/restrict (License): Change to LGPL.
29752 2004-11-30 Simon Josefsson <jas@extundo.com>
29754 * m4/restrict.m4: Add copyright and copying conditions.
29756 2004-11-30 Simon Josefsson <jas@extundo.com>
29758 * m4/base64.m4: New file.
29760 2004-11-30 Simon Josefsson <jas@extundo.com>
29762 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
29765 * tests/test-base64.c: New file.
29767 * modules/base64: New file.
29769 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
29771 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
29772 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
29774 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
29776 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
29778 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
29779 (__getcwd.c): Don't restore errno; glibc doesn't.
29780 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
29781 first, falling back to our code only if its results look suspicious.
29782 Ensure that the resulting buffer is only as large as necessary.
29784 * lib/readutmp.c: Include readutmp.h first.
29785 Include <errno.h>, since readutmp.h no longer does that.
29786 * lib/readutmp.h: Don't include <errno.h>,
29787 <sys/param.h>, <time.h>; not needed to establish interface.
29788 (errno): Remove decl.
29789 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
29790 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
29791 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
29793 2004-11-28 Simon Josefsson <jas@extundo.com>
29795 * lib/base64.h, base64.c: New file.
29797 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
29799 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
29801 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
29803 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
29804 (Depends-on): Remove pathmax, same. Add mempcpy.
29805 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
29806 (Makefile.am): Append getcwd.h to lib_SOURCES.
29807 (Include): Add getcwd.h.
29808 (Maintainer): Change from Jim Meyering to "all, glibc",
29809 since getdate now uses intended-for-glibc code.
29810 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
29811 (Depends-on): Depend on getcwd. Do not depend on pathmax.
29813 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
29815 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
29816 HP's ANSI C compiler.
29817 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
29818 Declaring int functions causes warnings on some modern systems and
29819 shouldn't be needed to compile on ancient ones.
29820 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
29823 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
29824 with the following changes.
29825 (__set_errno): Parenthesize properly.
29826 Include <stdbool.h>.
29827 (MIN, MAX, MATCHING_INO): New macros.
29828 (__getcwd): Define with prototype, not K&R form.
29829 Use heuristics to allocate default buffer on stack if possible.
29830 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
29831 behavior, and to avoid the PATH_MAX limit when computing
29833 Use MATCHING_INO to compare inode number to file.
29834 Check for arithmetic overflow in size calculations.
29835 Fix bug in reallocation of dot array that caused getcwd to fail
29836 on directories nested deeper than 75.
29837 Be more careful about saving errno on error.
29838 Do not use realloc; use only free+malloc, as this is a bit
29839 more flexible and avoids a needless copy operation.
29840 Do not inspect st_dev and st_ino for symbolic links; POSIX
29841 doesn't specify the latter.
29842 Check for closedir errors.
29843 Avoid needless casts.
29844 Use "#ifdef weak_alias" around weak_alias, to be like other
29846 The following changes to getcwd.c have effect only when used in
29847 gnulib; they have no effect inside glibc proper.
29848 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
29849 as alloca isn't used.
29850 (alloca, __alloca): Likewise.
29851 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
29852 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
29853 unconditionally, as gnulib assumes C89 or better.
29854 Do not include <sys/param.h>.
29855 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
29856 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
29858 (NULL) [!defined NULL]: Remove; we assume C89 or better.
29859 Include <dirent.h> in a way that is compatible with modern Autoconf.
29860 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
29861 New macros, if not already defined.
29862 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
29863 Use "_LIBC", not "defined _LIBC", for consistency.
29864 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
29866 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
29867 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
29868 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
29869 credit only to Jim Meyering and adjust the copyright dates.
29870 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
29871 <stdlib.h>, <unistd.h>, "pathmax.h".
29872 Instead, include "xgetcwd.h" (first) and "getcwd.h".
29873 (INITIAL_BUFFER_SIZE): Remove.
29874 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
29876 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
29878 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
29879 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
29880 Use the _ONCE methods, for efficiency.
29881 Check for fcntl.h. In test program, include <errno.h>
29882 and <fcntl.h> if available. Remove old K&R cruft from
29883 test program. Check for common errors in GNU/Linux,
29884 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
29885 don't do AC_LIBOBJ, as that's getcwd.m4's job.
29886 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
29887 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
29889 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
29890 accommodate new getcwd.c.
29891 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
29892 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
29893 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
29894 that's all we need now.
29896 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
29898 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
29899 argp-parse.c depends on getopt internals, that means we should
29900 always use our getopt, to be on the safe side.
29901 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
29902 order not to spoil the result of an eventual previous invocation
29903 of gl_GETOPT_SUBSTITUTE.
29905 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
29907 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
29908 redefinition warnings. To avoid them, include the defines
29909 in `#if !defined __need_getopt ... #endif'. The only place
29910 where __getopt_argv_const is used is in definitions
29911 of getopt_long and getopt_long_only below, which are as well
29912 protected by `#ifndef __need_getopt'.
29913 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
29914 __need_getopt after including <stdio.h> and <unistd.h> These
29915 headers might have defined it.
29917 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
29919 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
29921 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
29923 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
29924 (futimens): New function, which uses futimes if available.
29925 (futimens, utimens): Support timespec==NULL, with same semantics
29926 as utime and utimens.
29927 * lib/utimens.h (futimens): New decl.
29929 2004-11-23 Jim Meyering <jim@meyering.net>
29931 * lib/getopt_.h: Remove trailing blanks.
29933 2004-11-23 Jim Meyering <jim@meyering.net>
29935 * lib/__fpending.c: Add comment.
29937 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
29939 * modules/canonicalize (Depends-on): Add xreadlink.
29940 Problem reported by James Youngman.
29942 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
29944 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
29946 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
29947 optopt): Use them instead of invoking ## directly; otherwise, the
29948 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
29950 2004-11-19 Bruno Haible <bruno@clisp.org>
29952 * lib/strtok_r.c: Move comments from here...
29953 * lib/strtok_r.h: ... to here.
29955 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
29957 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
29958 implementations that mishandle size_t overflow.
29960 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
29962 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
29963 might fail. Problem reported by Yoann Vandoorselaere.
29964 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
29965 implementations that mishandle size_t overflow.
29967 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
29969 * modules/canon-host (Depends-on): Add strdup.
29971 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
29973 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
29975 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
29977 * lib/canon-host.c: Include "strdup.h".
29978 (canon_host): Use getaddrinfo if available, so that IPv6 works.
29979 Use strdup instead of malloc/strcpy to duplicate strings.
29981 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
29982 (human_space_before_unit): New constant.
29983 * lib/human.c (human_readable): Support it.
29985 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
29986 (xgetcwd): Set errno correctly when failing.
29987 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
29988 the failure is actually due to a PATH_MAX problem.
29990 Further getopt changes to make it more likely that glibc will
29991 buy the changes back.
29992 * lib/getopt.c (POSIXLY_CORRECT): New constant.
29993 (getopt): Use it, so to preserve glibc semantic
29994 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
29995 when compiling for libc.
29996 * lib/getopt_.h (__getopt_argv_const): Bring it back.
29997 (getopt_long, getopt_long_only): Use it.
29999 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
30000 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
30001 (getopt): Argv is now char * const *, as per standard.
30002 (_getopt_internal_r, _getopt_internal): Argv is now char **,
30003 not char *__getopt_argv_const *.
30004 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
30005 _getopt_long_only_r): Likewise.
30006 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
30007 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
30008 _getopt_long_r, _getopt_long_only_r): Likewise.
30009 * lib/getopt_.h (__getopt_argv_const): Remove.
30010 (getopt): Argv is now char * const *, as per standard.
30012 * lib/getdate.y (tORDINAL): New token.
30013 (day, relunit): Allow it for relative times.
30014 (relative_time_table): Use tORDINAL for ordinals.
30016 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
30018 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
30019 Document that "second" isn't allowed as an ordinal number.
30021 2004-11-16 Jim Meyering <jim@meyering.net>
30023 * modules/closeout (Depends-on): Add fpending.
30025 2004-11-15 Jim Meyering <jim@meyering.net>
30027 * lib/closeout.c: Include "__fpending.h" once again.
30028 Include <stdbool.h>.
30029 (close_stdout): Don't fail just because stdout was closed initially,
30030 since some programs don't write to stdout in the normal course of
30031 operation (other than --version and --help), and we don't want this
30032 function to make e.g. `touch file >&-' fail.
30033 But do fail if it was closed and someone has tried to write to it.
30034 E.g., `printf foo >&-' must fail.
30036 2004-11-13 Jim Meyering <jim@meyering.net>
30038 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
30040 2004-11-12 Simon Josefsson <jas@extundo.com>
30042 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
30043 small doc fix is still pending.
30045 2004-11-11 Simon Josefsson <jas@extundo.com>
30047 * modules/strtok_r: New file.
30049 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30052 2004-11-11 Simon Josefsson <jas@extundo.com>
30054 * m4/strtok_r.m4: New file.
30056 * m4/getopt.m4: Replace opterr.
30058 2004-11-11 Simon Josefsson <jas@extundo.com>
30060 * lib/strtok_r.h, strtok_r.c: New file.
30062 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
30064 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
30065 of replacing opterr, getopt, etc. This should handle the
30066 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
30068 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
30070 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
30071 we can stop lying to compilers about the constness of argv when we
30072 are compiled outside glibc.
30073 (getopt, getopt_long, getopt_long_only): Use it.
30074 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
30075 _getopt_internal, getopt): Likewise.
30076 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
30077 _getopt_long_only_r): Likewise.
30078 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
30079 _getopt_long_r, _getopt_long_only_r): Likewise.
30081 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
30082 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
30083 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
30084 the other external symbols.
30085 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
30086 declaration, since the above renaming now works around collisions.
30088 2004-11-11 Jim Meyering <jim@meyering.net>
30090 * lib/linebreak.c: Remove trailing blanks.
30091 * lib/alloca_.h: Likewise.
30092 * lib/acosl.c: Likewise.
30093 * lib/euidaccess.c: Likewise.
30094 * lib/allocsa.h: Likewise.
30096 2004-11-10 Simon Josefsson <jas@extundo.com>
30098 * m4/getaddrinfo.m4: New file.
30100 2004-11-10 Simon Josefsson <jas@extundo.com>
30102 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
30104 2004-11-10 Simon Josefsson <jas@extundo.com>
30106 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30109 * modules/getaddrinfo: New file.
30111 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
30113 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
30115 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
30117 * lib/mktime.c (SHR): New macro, which is a portable
30118 substitute for >> that should work even on Crays.
30119 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
30120 Problem reported by Mark D. Baushke in
30121 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
30122 * lib/getdate.y (SHR): Likewise.
30124 * lib/strftime.c (SHR): Likewise.
30126 * lib/quotearg.c (struct quoting_options): Use unsigned int for
30127 quote_these_too, so that right shifts are well defined. All uses
30130 2004-11-10 Jim Meyering <jim@meyering.net>
30132 Ensure that no close failure goes unreported.
30133 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
30134 return early when it seems there's nothing to flush.
30135 Don't include __fpending.h.
30137 2004-11-10 Jim Meyering <jim@meyering.net>
30139 * modules/closeout (Depends-on): Remove fpending.
30141 2004-11-10 Jim Meyering <jim@meyering.net>
30143 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
30145 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
30147 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
30149 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
30150 and AC_REQUIRE when possible, to avoid duplicate checks.
30151 Check for <wchar.h>.
30153 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
30155 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
30157 2004-11-09 Bruno Haible <bruno@clisp.org>
30159 * m4/sockpfaf.m4: New file.
30161 2004-11-05 Bruno Haible <bruno@clisp.org>
30163 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
30164 Reported by Mark D. Baushke <mdb@cvshome.org>.
30166 2004-11-04 Bruno Haible <bruno@clisp.org>
30168 2004-09-11 Bruno Haible <bruno@clisp.org>
30169 * allocsa.valgrind: New file.
30170 2004-02-06 Bruno Haible <bruno@clisp.org>
30171 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
30172 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
30173 Reported by Christopher Seip <chris.seip@hp.com>.
30175 2004-11-04 Bruno Haible <bruno@clisp.org>
30177 * modules/allocsa (Files): Add lib/allocsa.valgrind.
30178 (Makefile.am): Distribute it.
30180 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
30182 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
30183 with errno == ERANGE if the buffer is too small.
30184 Problem reported by Mark D. Baushke.
30186 2004-11-03 Albert Chin <china@thewrittenword.com>
30187 Paul Eggert <eggert@cs.ucla.edu>
30189 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
30190 equivalent, substitute $ac_type for equivalent type rather than
30191 blindly using uint32_t *always* which won't work if uint32_t is not
30192 available. Define _UINT32_T to work around typedef of uint32_t if
30193 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
30196 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
30198 * m4/jm-macros.m4: Sync from coreutils.
30199 (gl_MACROS): Check for mbrlen, for pathchk.
30200 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
30202 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
30204 * lib/xreadlink.c (MAXSIZE): New macro.
30205 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
30206 size does not exceed MAXSIZE. Avoid cast.
30207 As suggested by Mark D. Baushke in
30208 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
30209 if readlink fails with buffer size just under MAXSIZE, try again
30212 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
30214 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
30216 2004-11-02 Derek R. Price <derek@ximbiot.com>
30217 and Paul Eggert <eggert@cs.ucla.edu>
30219 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
30220 (get_date): Overparenthesize to avoid GCC warning.
30222 2004-11-02 Bruno Haible <bruno@clisp.org>
30224 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
30227 2004-11-02 Bruno Haible <bruno@clisp.org>
30229 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
30230 function returns void.
30232 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
30234 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
30235 fflush_unlocked, flockfile, funlockfile, funlockfile,
30236 fputs_unlocked, putc_unlocked.
30238 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
30240 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
30241 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
30244 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
30246 * modules/getdate (Files): Add doc/getdate.texi.
30247 (Depends-on): Add setenv, xalloc.
30249 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
30251 * lib/getdate.y: Add support for TZ="foo" within a date string.
30252 Fix some bugs near time_t boundaries. Reject dates with
30253 out-of-range components, e.g., "Sept 31".
30254 Include <stdlib.h>, "setenv.h", "xalloc.h".
30255 (ISDIGIT_LOCALE): Remove; unused.
30256 Note that the TZ and time functions used here are not reentrant.
30257 (mktime_ok, get_tz): New functions.
30258 (TZBUFSIZE): New constant.
30259 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
30260 This requires that we sometimes generate our own TZ="XXX..." setting.
30262 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
30264 * doc/getdate.texi: New file, from coreutils with modifications for
30265 the new TZ parsing.
30267 2004-10-27 Derek R. Price <derek@ximbiot.com>
30269 * lib/mktime.c (not_equal_tm): Remove redundant check.
30271 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
30273 * modules/regex (lib_SOURCES): Add regex.c.
30274 Reported by James Youngman in
30275 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
30277 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
30279 * lib/getdate.y: Use Bison 1.875 features, and some minor
30280 code cleanups. This change does not affect semantics.
30281 Don't include <stdlib.h>; no longer needed.
30282 Don't include unlocked-io.h; only the "#if TEST" code uses
30283 stdio, and performance isn't crucial there.
30284 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
30285 Bison 1.875 features as described below.
30286 All uses of "PC." replaced by "pc->".
30287 (YYSTYPE): Add a forward declaration.
30288 (yylex, yyerror): Use full prototypes in forward decls.
30289 Use "%pure-parser" rather than obsolescent "%pure_parser".
30290 Use %parse-param and %lex-param instead of obsolescent
30291 YYPARSE_PARAM and YYLEX_PARAM.
30292 (meridian_table, month_and_day_table, time_units_table,
30293 relative_time_table, time_zone_table, military_table,
30294 lookup_zone, lookup_word, get_date):
30295 Use NULL instead of 0 where appropriate.
30296 (to_hour): Avoid abort (), to avoid a dependency on
30298 (yyerror, yylex): Now accepts parser_control * arg.
30299 (main) [TEST]: Use '\0' rather than 0 for char.
30301 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
30303 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
30305 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
30307 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
30308 It's now the caller's responsibility to handle the case where
30309 !HAVE_GETPAGESIZE && !defined getpagesize.
30311 * lib/mktime.c (leapyear): Arg is long int, not int.
30313 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
30315 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
30317 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
30319 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
30320 missing. Problem reported by James Youngman.
30322 2004-10-16 Simon Josefsson <jas@extundo.com>
30324 * gnulib-tool: Fix comments. Fix parse problem.
30325 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
30327 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
30329 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
30330 implementation of getopt_long. Problem reported by Alexander Taler in:
30331 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
30333 2004-10-15 Bruno Haible <bruno@clisp.org>
30335 * gnulib-tool: Untabify. Initialize supplied_libname.
30336 (func_usage): More homogenous output.
30337 (func_modules_transitive_closure, func_modules_to_filelist,
30338 func_emit_lib_Makefile_am): New functions.
30339 (func_import): New function, extracted from big case statement. Use
30340 func_get_license, func_modules_transitive_closure,
30341 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
30342 opt_lgpl. Don't use test -a, as it's not portable.
30343 (func_create_testdir): Use func_modules_transitive_closure,
30344 func_modules_to_filelist, func_emit_lib_Makefile_am.
30346 2004-10-15 Bruno Haible <bruno@clisp.org>
30348 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
30350 2004-10-15 Bruno Haible <bruno@clisp.org>
30352 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
30353 the portions belonging to each module.
30354 Suggested by Derek Robert Price <derek@ximbiot.com>.
30356 2004-10-12 Simon Josefsson <jas@extundo.com>
30358 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
30359 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
30362 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
30364 * modules/vsnprintf: New file.
30366 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
30368 * m4/vsnprintf.m4: New file.
30370 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
30372 * lib/vsnprintf.h: New file.
30373 * lib/vsnprintf.c: New file.
30375 2004-10-11 Bruno Haible <bruno@clisp.org>
30377 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
30380 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
30382 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
30384 2004-10-07 Bruno Haible <bruno@clisp.org>
30386 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
30387 fits into the provided buffer.
30389 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
30391 * lib/diacrit.c, diacrit.h: Add GPL notice.
30393 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
30395 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
30396 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
30397 This avoids a potential constant-folding bug.
30399 2004-10-05 Bruno Haible <bruno@clisp.org>
30401 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
30402 for the declaration of strsep.
30404 2004-10-05 Bruno Haible <bruno@clisp.org>
30406 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
30408 2004-10-04 Simon Josefsson <jas@extundo.com>
30410 * modules/memmem: New file.
30411 * tests/test-memmem.c: New file.
30412 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
30414 2004-10-04 Simon Josefsson <jas@extundo.com>
30416 * m4/memmem.m4: New file.
30418 2004-10-04 Simon Josefsson <jas@extundo.com>
30420 * lib/memmem.h: New file.
30421 * lib/memmem.c: New file, taken from glibc.
30423 2004-10-04 Simon Josefsson <jas@extundo.com>
30425 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
30426 '#ifdef USE_UNLOCKED_IO'.
30428 2004-10-04 Simon Josefsson <jas@extundo.com>
30430 * config/srclist.txt: Add memmem from glibc.
30432 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
30434 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
30436 * modules/argmatch, modules/argp, modules/closeout, modules/error,
30437 modules/exclude, modules/getdate, modules/getline,
30438 modules/getndelim2, modules/getpass, modules/getpass-gnu,
30439 modules/getusershell, modules/linebuffer, modules/md5,
30440 modules/mountlist, modules/posixtm, modules/readtokens,
30441 modules/readutmp, modules/regex, modules/sha1,
30442 modules/version-etc, modules/yesno:
30443 Remove dependency on unlocked-io.
30445 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
30447 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
30449 * m4/unlocked-io.m4: Add copyright notice.
30450 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
30452 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
30454 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
30455 * lib/xmalloc.c (xmemdup): Likewise.
30456 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
30457 XFREE): Remove these long-obsolescent macros.
30458 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
30459 * lib/xstrdup.c: Remove.
30461 * lib/regex.c (re_comp): Cast gettext return value to char *,
30462 Problem reported by Martin Neitzel via Mark D. Baushke.
30464 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
30466 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
30467 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
30468 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
30469 regex.c, sha1.c, version-etc.c, yesno.c:
30470 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
30471 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
30472 the includer's responsibility.
30474 Sync from coreutils.
30476 * lib/modechange.c (mode_compile): Don't decrement a pointer that
30477 points to the start of a string, as the C Standard says the
30478 resulting behavior is undefined.
30480 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
30481 simple -> simple_backups, numbered_existing ->
30482 numbered_existing_backups, numbered -> numbered_backups
30483 to avoid shadowing problems. All uses changed.
30484 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
30485 * lib/backupfile.c (check_extension, numbered_backup):
30486 Rename locals to avoid shadowing 'basename'.
30487 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
30490 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
30491 * lib/.cvsignore: Add getopt.h.
30493 2004-10-04 Bruno Haible <bruno@clisp.org>
30495 * modules/README: New file.
30496 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
30499 2004-10-02 Jim Meyering <jim@meyering.net>
30501 * lib/dirfd.h, getpagesize.h: Add copyright notice.
30503 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
30505 * modules/strsep: New file.
30507 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
30509 * m4/strsep.m4: New file.
30511 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
30513 * lib/strsep.h: New file.
30514 * lib/strsep.c: New file.
30516 2004-10-01 Simon Josefsson <jas@extundo.com>
30518 * lib/snprintf.c (snprintf): Handle size==0.
30520 2004-10-01 Simon Josefsson <jas@extundo.com>
30521 Bruno Haible <bruno@clisp.org>
30523 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
30524 (snprintf): Declare 'args'.
30526 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
30528 * lib/snprintf.c: Remove comments as to why each header is needed.
30530 2004-10-01 Bruno Haible <bruno@clisp.org>
30532 * MODULES.html.sh: Add strsep.
30534 2004-09-30 Simon Josefsson <jas@extundo.com>
30536 * modules/snprintf: New file.
30538 2004-09-30 Simon Josefsson <jas@extundo.com>
30540 * m4/snprintf.m4: New file.
30542 2004-09-30 Simon Josefsson <jas@extundo.com>
30544 * lib/snprintf.h, lib/snprintf.c: New files.
30546 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
30548 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
30549 (hol_entry_help): Never translate an empty string.
30550 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
30551 * lib/argp.h (OPTION_NO_TRANS): New option.
30553 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
30555 * modules/argp (Maintainer): Replace Simon Josefsson
30556 by Sergey Poznyakoff.
30558 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
30560 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
30561 changes merged back into glibc.
30563 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
30565 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
30567 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
30569 * lib/xvasprintf.c: Include xalloc.h.
30570 (xvasprintf): Use xalloc_die, not xmalloc_die.
30572 2004-09-29 Bruno Haible <bruno@clisp.org>
30574 * modules/alloca-opt: New file, derived from modules/alloca.
30575 * modules/allocsa: Depend on alloca-opt instead of alloca.
30576 * modules/setenv: Likewise.
30577 * modules/vasnprintf: Likewise.
30578 * MODULES.html.sh: Add alloca-opt.
30580 2004-09-28 Simon Josefsson <jas@extundo.com>
30582 * gnulib-tool: New parameter --lgpl, to asseert that modules are
30583 LGPL, and to replace license template from GPL to LGPL.
30585 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
30587 * modules/dummy: Change license to LGPL.
30589 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
30591 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
30593 2004-09-24 Simon Josefsson <jas@extundo.com>
30595 * modules/minmax (License): Change from GPL to LGPL.
30597 2004-09-23 Simon Josefsson <jas@extundo.com>
30599 * gnulib-tool (--import): Typo.
30601 2004-09-23 Simon Josefsson <jas@extundo.com>
30603 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
30605 2004-09-22 Bruno Haible <bruno@clisp.org>
30607 * modules/*: Add 'License' field.
30608 * gnulib-tool: Accept --extract-license option.
30609 (func_get_license): New function.
30611 2004-09-21 Bruno Haible <bruno@clisp.org>
30613 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
30614 Reported by Simon Josefsson.
30616 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
30618 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
30619 gl_AC_TYPE_LONG_LONG.
30621 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
30623 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
30625 2004-09-18 Simon Josefsson <jas@extundo.com>
30626 and Paul Eggert <eggert@cs.ucla.edu>
30628 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
30629 calls with autoreconf. Define GL_LIB.
30631 2004-09-14 Karl Berry <karl@gnu.org>
30633 * config/srclist.txt: unsync setenv.c, sigh.
30635 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
30637 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
30638 Problem reported by Bruno Haible in:
30639 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
30641 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
30643 * config/srclist.txt: Comment out argp-pvh.c.
30645 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
30647 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
30648 in case some system header has #define'd it. Problem reported by
30649 Soeren D. Schulze in
30650 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
30652 2004-09-09 Karl Berry <karl@gnu.org>
30654 * regex.[ch]: delete from the root. These were supposed to be
30655 synced with emacs cvs, but this has not happened for about
30656 a year, and anyway nothing else uses emacs regex.[ch].
30657 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
30658 lib/regex[.ch] is untouched.
30660 2004-09-09 Bruno Haible <bruno@clisp.org>
30662 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
30664 2004-09-09 Bruno Haible <bruno@clisp.org>
30666 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
30668 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
30670 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
30672 * modules/xvasprintf: New file.
30673 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
30675 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
30677 * lib/xvasprintf.h: New file.
30678 * lib/xvasprintf.c: New file.
30679 * lib/xasprintf.c: New file.
30681 2004-09-08 Bruno Haible <bruno@clisp.org>
30683 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
30685 2004-09-08 Bruno Haible <bruno@clisp.org>
30687 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
30688 length is > INT_MAX.
30689 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
30692 2004-09-08 Bruno Haible <bruno@clisp.org>
30694 * lib/stdint_.h: New file, taken from GNU clisp.
30696 2004-09-08 Bruno Haible <bruno@clisp.org>
30697 Oskar Liljeblad <oskar@osk.mine.nu>
30699 * modules/stdint: New file.
30700 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
30702 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
30704 Import from coreutils.
30705 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
30706 strings on unbounded length. alloca's performance benefits aren't
30707 that important here.
30708 (V_STRDUP): Remove.
30709 (parse_with_separator): New function, with most of the internals
30710 of the old parse_user_spec. Allow user to omit both user and group,
30711 for compatibility with FreeBSD.
30712 Clone only the user name, not the entire spec.
30713 Do not set *uid, *gid unless entirely successful.
30714 Avoid memory leak in some failing cases.
30715 Fix regression for USER.GROUP reported by Dmitry V. Levin in
30716 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
30717 (parse_user_spec): Rewrite to use parse_with_separator.
30719 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
30721 * modules/userspec: Don't depend on alloca.
30723 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
30725 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
30727 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
30729 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
30730 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
30731 utimecmp, utimens, xnanosleep. Rename sha to sha1.
30733 2004-08-16 Simon Josefsson <jas@extundo.com>
30735 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
30736 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
30737 Add --dry-run for --import.
30738 Let user provided command line parameters override configure.ac
30741 2004-08-12 Simon Josefsson <jas@extundo.com>
30743 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
30744 as discussed with Paul Eggert in threads rooted at
30745 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
30747 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
30748 Before, the test was empty, and relied on ELIDE_CODE in source
30750 (gl_PREREQ_GETOPT): New macro.
30751 (gl_GETOPT): Use them.
30753 2004-08-12 Simon Josefsson <jas@extundo.com>
30755 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
30756 * lib/getopt_.h: Renamed from getopt.h.
30758 2004-08-12 Simon Josefsson <jas@extundo.com>
30760 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
30761 Change default library name from libfoo to libgnu.
30762 Now, if you have a configure.ac that says:
30765 gl_MODULES(error getopt etcetera)
30767 you can import all you need by running:
30768 ../gnulib/gnulib-tool --import
30770 * modules/getopt (Files): Rename getopt.h to getopt_.h.
30771 (Makefile.am): Rewrite, use logic from argz.
30772 (Include): Use <getopt.h> instead of "getopt.h".
30774 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
30776 * modules/argp (Files): Add m4/unlocked-io.m4.
30777 (Depends-on): Add extensions.
30779 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
30781 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
30782 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
30783 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
30784 Check for program_invocation_name, program_invocation_short_name,
30785 flockfile, funlockfile, features.h, _getopt_long_only_r.
30787 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
30789 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
30790 its complicated substitute.
30791 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
30792 and program_invocation_name.
30793 (__argp_basename) [!_LIBC]: Remove; the only use was
30794 replaced by its body.
30795 (__argp_short_program_name): Change condition from
30796 !defined __argp_short_program_name to
30797 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
30798 to match argp-namefrob.h.
30799 (__argp_failure): Don't assume strerror_r returns char *.
30800 * lib/argp-parse.c (N_): Define unconditionally.
30801 (argp_default_options): Fill out initializers with 0 to avoid
30804 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
30806 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
30809 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
30811 Merge from coreutils.
30813 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
30815 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
30816 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
30818 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
30820 Merge from coreutils.
30822 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
30823 wmemchr or wmemcpy. Problem reported by Robert Dahlem
30824 for Reliant Unix 5.43.
30826 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
30827 (union fooround): Use uintmax_t, not long int.
30828 The rest is a merge from libc:
30829 [defined _LIBC]: Include <shlib-compat.h>.
30830 (_obstack) [defined _LIBC]: Remove after 2.3.4.
30832 * lib/settime.c (settime): Recode to avoid warning with
30835 * lib/strverscmp.c: Convert to UTF-8.
30837 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
30839 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
30842 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
30844 * modules/xalloc-die: New file.
30845 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
30847 * modules/md5 (Files): Add m4/uint32_t.m4.
30848 * modules/sha1: Renamed from modules/sha.
30850 Rename lib/sha.h to lib/sha1.h.
30851 Rename lib/sha.c to lib/sha1.c.
30852 Rename m4/sha.m4 to m4/sha1.m4.
30853 (lib_SOURCES): Likewise.
30854 (configure.ac): Rename gl_SHA to gl_SHA1.
30855 (Include): sha.h -> sha1.h.
30857 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
30859 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
30860 * m4/sha1.m4: Renamed from sha.m4.
30861 (gl_SHA1): Renamed from gl_SHA. All uses changed.
30863 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
30865 * lib/obstack.h (obstack_empty_p):
30866 Don't assume that chunk->contents is suitably aligned.
30867 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
30868 Likewise. Problem reported by Benno in
30869 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
30871 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
30872 readable. This could be improved further but it'd take some work.
30874 2004-08-08 Simon Josefsson <jas@extundo.com>
30876 * modules/xgethostname (Depends-on): Remove exit and error (not
30879 * modules/getpass-gnu: Add getpass.h.
30880 (Depends-on): Add stdbool.
30881 * modules/getpass: Add getpass.h.
30883 2004-08-08 Simon Josefsson <jas@extundo.com>
30885 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
30886 Check getpass declaration.
30888 2004-08-08 Simon Josefsson <jas@extundo.com>
30890 * lib/xgethostname.c: Don't include error.h (not used).
30892 * lib/getpass.h: Add.
30893 * lib/getpass.c: Include getpass.h first.
30895 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
30897 * lib/xalloc-die.c: New file.
30898 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
30900 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
30901 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
30903 (_, N_, xalloc_die): Move to xalloc-die.c.
30904 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
30905 so that we needn't mess with xalloc_msg_memory_exhausted.
30907 * lib/sha1.h: Renamed from sha.h.
30908 (SHA1_H): Renamed from _SHA_H.
30909 (sha1_ctx): Renamed from sha_ctx.
30910 (sha1_init_ctx): Renamed from sha_init_ctx.
30911 (sha1_process_block): Renamed from sha_process_block.
30912 (sha1_process_bytes): Renamed from sha_process_bytes.
30913 (sha1_finish_ctx): Renamed from sha_finish_ctx.
30914 (sha1_read_ctx): Renamed from sha_read_ctx.
30915 (sha1_stream): Renamed from sha_stream.
30916 (sha1_buffer): Renamed from sha_buffer.
30917 * lib/sha1.c: Likewise; renamed from sha.c.
30918 Do not include <sys/types.h>.
30919 Include <stddef.h> rather than <stdlib.h>.
30921 2004-08-08 Bruno Haible <bruno@clisp.org>
30923 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
30924 FILESYSTEM_PREFIX_LEN.
30925 * lib/progreloc.c: Likewise.
30926 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
30928 2004-08-06 Simon Josefsson <jas@extundo.com>
30930 * modules/progname (Depends-on): Don't depend on stdbool.
30932 2004-08-06 Simon Josefsson <jas@extundo.com>
30934 * modules/getsubopt: New file.
30935 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30938 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
30940 More merge from coreutils.
30942 * m4/utimens.m4, m4/utimecmp.m4: New files.
30943 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
30944 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
30945 prereq.m4, sha.m4: Import changes from coreutils.
30947 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
30949 More merge from coreutils.
30950 * modules/raise, modules/readtokens0, modules/utimens:
30951 * modules/utimecmp, module/xnanosleep: New files.
30952 * modules/strftime: Add lib/strftime.h.
30953 Change include from <time.h> to "strftime.h".
30954 * modules/yesno: Add lib/yesno.h.
30955 * modules/backupfile: Remove lib/addext.c.
30956 * modules/euidaccess: Add stat-macros.h.
30957 * modules/canonicalize, modules/euidaccess,
30958 modules/filemode, modules/lchown, modules/makepath,
30959 modules/rmdir, modules/stat: Likewise.
30961 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
30964 * lib/argp-help.c (make_hol, hol_append): Don't assume that
30965 SIZE_MAX is a valid preprocessor constant.
30966 (__argp_basename): Change from "#ifndef _LIBC"
30967 to "#ifndef __argp_short_program_name", so that
30968 we don't compile these functions for tar.
30970 More merges from coreutils.
30971 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
30972 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
30973 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
30974 * lib/addext.c: Remove; no longer needed.
30975 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
30976 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
30977 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
30978 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
30979 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
30980 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
30981 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
30982 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
30983 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
30984 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
30985 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
30986 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
30987 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
30988 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
30989 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
30990 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
30991 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
30992 Import changes from coreutils.
30994 2004-08-05 Simon Josefsson <jas@extundo.com>
30996 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
30998 2004-08-05 Simon Josefsson <jas@extundo.com>
31000 * m4/getsubopt.m4: New file.
31002 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
31004 Merge from coreutils.
31006 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
31007 * m4/getcwd-path-max.m4: New files.
31009 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
31010 FILESYSTEM_PREFIX_LEN ->
31011 FILE_SYSTEM_PREFIX_LEN.
31012 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
31013 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
31014 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
31015 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
31017 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
31018 prerequisite modules now handle the DOS stuff.
31019 Don't check for unistd.h.
31021 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
31023 Merge from coreutils.
31025 * lib/.gdb-history: Remove; this doesn't belong here.
31027 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
31028 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
31029 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
31030 * lib/getcwd.c: New files.
31032 * lib/dirname.h: Include <stdbool.h>.
31033 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
31034 for consistency with POSIX terminology. All uses changed.
31035 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
31036 (strip_trailing_slashes): Use bool for booleans.
31037 * lib/stripslash.c (strip_trailing_slashes): Likewise.
31039 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
31040 sometimes returns a positive errno value even when it succeeds.
31041 (print_errno_message) [!LIBC]: Fall back on strerror if
31042 __strerror_r fails.
31044 * lib/path-concat.c (mempcpy): Don't define if a system header defines
31045 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
31046 (longest_relative_suffix): New function.
31047 (path_concat): Use it. Assume first argument is not NULL.
31048 Port to DOS. Omit redundant separators.
31049 Report an error instead of returning NULL.
31050 Use mempcpy instead of memcpy.
31051 (xpath_concat): Remove: not declared or used.
31053 * lib/same.h: Include <stdbool.h>
31054 (same_name): Return bool, not int.
31055 * lib/same.c (same_name): Likewise.
31056 (errno): Don't declare; we assume C89 or better now.
31058 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
31059 if not already defined.
31061 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
31062 * lib/dup-safer.c (errno): Likewise.
31064 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
31066 Merge from coreutils.
31067 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
31068 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
31069 * modules/path-concat: Don't depend on strdup.
31071 2004-08-03 Simon Josefsson <jas@extundo.com>
31073 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
31074 * lib/progname.h: Don't include stdbool.h.
31076 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
31078 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
31079 * MODULES.html.sh (func_all_modules): Remove fatal.
31081 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
31083 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
31085 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
31087 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
31090 2004-08-02 Simon Josefsson <jas@extundo.com>
31092 * lib/getsubopt.h: New file, with comments from Bruno Haible.
31093 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
31094 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
31096 2004-08-01 Simon Josefsson <jas@extundo.com>
31098 * lib/xgetdomainname.c: Include stdlib.h, for free().
31100 2004-07-19 Bruno Haible <bruno@clisp.org>
31102 * MODULES.html.sh (func_all_modules): Add dummy.
31104 2004-07-16 Simon Josefsson <jas@extundo.com>
31106 * modules/dummy: New file.
31108 2004-07-16 Simon Josefsson <jas@extundo.com>
31110 * lib/dummy.c: New file.
31112 2004-07-16 Bruno Haible <bruno@clisp.org>
31114 * lib/backupfile.h: Add extern "C" for C++.
31115 * lib/closeout.h: Likewise.
31116 * lib/copy-file.h: Likewise.
31117 * lib/findprog.h: Likewise.
31118 * lib/full-write.h: Likewise.
31119 * lib/pathname.h: Likewise.
31120 * lib/progname.h: Likewise.
31121 * lib/stpcpy.h: Likewise.
31122 * lib/stpncpy.h: Likewise.
31123 * lib/strcase.h: Likewise.
31124 * lib/strstr.h: Likewise.
31125 * lib/xalloc.h: Likewise.
31127 * lib/mbswidth.h: Add extern "C" for C++.
31128 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
31130 2004-07-13 Robert Millan <robertmh@gnu.org>
31132 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
31134 2004-07-09 Simon Josefsson <jas@extundo.com>
31136 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
31137 failed without this.)
31139 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
31141 * modules/chown (Files): Add lib/fchown-stub.c, since
31142 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
31144 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
31146 * lib/fchown-stub.c: New file.
31148 2004-06-24 Jim Meyering <jim@meyering.net>
31150 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
31152 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
31154 * modules/argz: Omit "#include".
31156 * MODULES.html.sh (func_all_modules): Add calloc, to match
31157 2004-06-01 addition of calloc module.
31159 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
31161 * m4/argz.m4: New file, which is autoupdated from libtool.
31163 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
31165 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
31168 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
31170 * config/srclist-update: Don't insist on "USA." before the
31171 close-comment, as libtool omits the period and puts the */ on a
31173 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
31174 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
31176 2004-06-22 Gary V. Vaughan <gary@gnu.org>
31178 * modules/argz: New file.
31179 * MODULES.html.sh (func_all_modules): Add argz.
31181 2004-06-12 Jim Meyering <jim@meyering.net>
31182 and Paul Eggert <eggert@cs.ucla.edu>
31184 * modules/hash (Files): Add lib/xalloc.h.
31185 * modules/pipe (Depends-on): Add wait-process.
31186 * modules/stat (Depends-on): Add xalloc.
31187 * modules/userspec (Files): Add lib/userspec.h.
31190 Upgrade from gettext-0.13.
31191 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
31192 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
31193 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
31195 2004-06-10 Jim Meyering <jim@meyering.net>
31197 * lib/calloc.c: New file.
31199 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
31201 * lib/getdate.y (yylex): Allow space between sign and number.
31202 Problem reported by Dan Jacobson.
31204 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
31206 Merge from coreutils CVS.
31208 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
31209 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
31210 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
31211 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
31212 xstrtol.m4: Fix copyright date and/or serial number.
31214 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
31215 See if we need an fchown replacement.
31216 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
31217 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
31218 and use the replacement function if we detect either defect.
31220 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
31223 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
31224 and Jim Meyering <jim@meyering.net>
31226 Merge from coreutils CVS.
31228 * lib/stat-macros.h: New file, with contents from file-type.h
31229 and coreutils' system.h.
31230 * lib/file-type.c: Include "stat-macros.h".
31231 * lib/file-type.h (file_type): Move all macro definitions to new file,
31234 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
31235 Wrap old code with this conditional.
31236 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
31237 function that does not dereference symlinks.
31238 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
31240 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
31241 dependency problems.
31242 (xreadlink): Accept new arg SIZE, for efficiency.
31243 All decls and uses changed.
31244 * lib/xreadlink.h: Include <stddef.h>, for size_t.
31246 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
31247 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
31249 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
31252 2004-06-01 Jim Meyering <jim@meyering.net>
31254 * m4/calloc.m4: New file.
31256 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
31258 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
31259 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
31260 Also, fix a typo in a diagnostic.
31262 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
31264 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
31265 or AC_FUNC_REALLOC.
31267 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
31269 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
31270 macros to be defined.
31271 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
31272 the allocator returns NULL because the requested size is zero.
31274 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
31276 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
31277 var. Add comment explaining why libc still defines it. This
31278 merges the following patch from glibc:
31279 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
31281 2004-05-20 Andreas Schwab <schwab@suse.de>
31283 * m4/free.m4: Replace free if it not known to work, not the other
31286 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
31288 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
31289 present in glibc since revision 1.1 of this file.
31290 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
31291 obstack_alignment_mask, obstack_alloc, obstack_base,
31292 obstack_blank, obstack_blank_fast, obstack_chunk_size,
31293 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
31294 obstack_grow0, obstack_init, obstack_int_grow,
31295 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
31296 obstack_next_free, obstack_object_size, obstack_ptr_grow,
31297 obstack_ptr_grow_fast, obstack_room): Remove declarations of
31298 nonexistent functions.
31300 2004-05-18 Karl Berry <karl@gnu.org>
31302 * config/srclist.txt: break link for vasnprintf.c.
31304 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
31306 Port obstack to the AS/400, where pointers are 16 bytes wide and
31307 you cannot cast an integer to a valid pointer. This patch is
31308 currently waiting to be integrated into glibc; see
31309 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
31311 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
31312 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
31313 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
31314 (struct obstack): temp member is now a union of a pointer and
31315 an integer, instead of an integer. All integer uses changed.
31316 This does not affect the physical layout of struct obstack,
31317 except on hosts (like the AS/400) where the size or alignment of
31318 void * is greater than that of ptrdiff_t.
31319 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
31320 __STDC__)]: Store temporary in pointer member of union, not
31322 * lib/obstack.c: Include <stddef.h>, for offsetof.
31323 (struct fooalign): Remove; it doesn't need a name.
31324 (union fooround): Change double to long double, and add void *.
31325 (DEFAULT_ALIGNMENT): Use offsetof to compute.
31326 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
31327 not a macro. Hence the values are always int; so remove all
31328 casts-to-int in uses.
31330 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
31332 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
31333 we can get this patch merged into glibc.
31335 2004-05-17 Derek R. Price <derek@ximbiot.com>
31336 Paul Eggert <eggert@cs.ucla.edu>
31338 * m4/argp: Depend on alloca.
31340 2004-05-17 Derek R. Price <derek@ximbiot.com>
31341 Paul Eggert <eggert@cs.ucla.edu>
31343 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
31346 2004-05-17 Bruno Haible <bruno@clisp.org>
31348 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
31349 precision that consists of a '.' followed by an empty digit string.
31350 Patch by Tor Lillqvist <tml@iki.fi>.
31352 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
31354 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
31355 for backward compatibility with older code. We need our own
31356 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
31357 it under some other name, and our alloca.h will define it.
31359 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
31360 Derek Price <derek@ximbiot.com>
31362 * lib/alloca.c: Include <alloca.h>, to get our interface.
31363 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
31364 include <alloca.h> first. Use C89 prototype for alloca; this
31365 requires including <stddef.h> for size_t. Use extern "C" if C++.
31366 Use #elif for simplicity, since we can assume C89 now.
31367 Don't try to source the system alloca.h since it will not be found
31368 and to prevent recursively including its replacement.
31369 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
31370 * lib/regex.c: Likewise.
31372 2004-05-16 Derek Price <derek@ximbiot.com>
31373 Paul Eggert <eggert@cs.ucla.edu>
31375 getline cleanup. This changes the getndelim2 API: both order of
31376 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
31379 * lib/getline.c: Don't include stddef.h or stdio.h, since our
31380 interface does that.
31381 (getline): Always use getdelim, so that we don't have two
31382 copies of this code.
31383 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
31385 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
31386 (GETNDELIM2_MAXIMUM): New macro.
31387 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
31388 instead of the old practice of delim2==0. All callers changed.
31389 Return -1 on overflow, instead of returning junk.
31390 Do not set *linesize unless allocation succeeds.
31391 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
31392 that we include sys/types.h.
31393 * lib/getnline.h: Likewise.
31394 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
31395 (getndelim2): Reorder arguments.
31396 * lib/getnline.c (getnline, getndelim):
31397 Don't discard the NMAX argument.
31398 (getnline): Invoke getndelim, to avoid code duplication.
31399 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
31400 of (size_t) -1 by callers of the getnline family.
31402 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
31404 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
31405 Check for gettimeofday.
31406 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
31407 Check for settimeofday, stime.
31409 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
31411 * lib/nanosleep.c (suspended): Change its type from int to
31412 sig_atomic_t volatile.
31413 (first_call): Make it private to rpl_nanosleep, and have it
31414 be zero initially as that's a bit faster.
31415 (my_usleep): Round up fractional times instead of truncating them,
31416 as this is the usual meaning for 'sleep'.
31418 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
31420 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
31421 (ENOSYS): Define if not defined.
31422 (settime): Fall back on stime if it exists and settimeofday fails.
31423 But don't bother with fallbacks if a method fails with errno == EPERM.
31425 2004-05-11 Jim Meyering <jim@meyering.net>
31427 Prior to this change, the save_cwd caller required read access to the
31428 current directory on most systems (ones with the fchdir function).
31430 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
31431 fails, try write-only, and finally, resort to using xgetcwd.
31433 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
31435 * lib/obstack.c, obstack.h: Import changes from libc.
31437 2004-04-28 Bruno Haible <bruno@clisp.org>
31439 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
31440 also implicitly appends .exe to executables.
31441 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
31442 accepts Windows pathnames.
31443 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
31444 Treat Cygwin like Windows, since it now accepts Windows pathnames.
31445 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
31446 Treat Cygwin like Windows, since it now accepts Windows pathnames.
31447 Reported by Derek Robert Price <derek@ximbiot.com>.
31449 2004-04-21 Karl Berry <karl@gnu.org>
31451 * config/srclist.txt (localcharset.c): break sync.
31453 2004-04-20 Paul Eggert <eggert@twinsun.com>
31455 * m4/host-os.m4: Add a copyright notice.
31457 2004-04-20 Jim Meyering <jim@meyering.net>
31459 Change UTILS_ to gl_ in AC_DEFINE'd names.
31460 Change utils_- and jm_-prefixed variables, too.
31461 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
31462 UTILS_FUNC_MKDIR_TRAILING_SLASH.
31463 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
31465 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
31466 Don't emit trailing blanks.
31467 Also rename jm_-prefixed variables to have gl_ prefix.
31469 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
31470 Also rename jm_-prefixed variables to have gl_ prefix.
31472 * m4/jm-macros.m4: Reflect the renamings.
31473 * m4/prereq.m4: Likewise.
31475 2004-04-20 Jim Meyering <jim@meyering.net>
31477 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
31480 2004-04-20 Jim Meyering <jim@meyering.net>
31481 Bruno Haible <bruno@clisp.org>
31483 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
31484 memory when realloc fails.
31486 2004-04-19 Jim Meyering <jim@meyering.net>
31488 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
31489 now that readutmp.c may call `free (0)'.
31491 2004-04-19 Bruno Haible <bruno@clisp.org>
31493 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
31494 * m4/inttypes_h.m4: Likewise.
31495 * m4/stdint_h.m4: Likewise.
31496 * m4/intmax_t.m4: Likewise.
31497 * m4/uintmax_t.m4: Likewise.
31499 2004-04-18 Jim Meyering <jim@meyering.net>
31501 * m4/prereq.m4: Don't forbid jm_ prefix.
31503 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
31504 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
31505 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
31506 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
31507 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
31508 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
31509 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
31510 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
31511 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
31512 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
31513 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
31514 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
31515 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
31516 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
31517 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
31518 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
31519 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
31520 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
31521 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
31523 2004-04-18 Jim Meyering <jim@meyering.net>
31525 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
31526 failure, don't leak memory and do call END_UTMP_ENT.
31528 2004-04-16 Jim Meyering <jim@meyering.net>
31530 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
31531 coreutils' stat program.
31532 (gl_PREREQ): Don't require jm_PREREQ_STAT.
31534 2004-04-11 Paul Eggert <eggert@twinsun.com>
31536 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
31538 (CHAR_BIT): Remove, since we assume C89.
31539 Include <stdint.h> if available, as per current Autoconf CVS advice.
31541 2004-03-31 Jim Meyering <jim@meyering.net>
31543 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
31544 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
31545 * m4/xalloc.m4: Likewise.
31547 2004-03-30 Paul Eggert <eggert@twinsun.com>
31549 Merge from coreutils.
31551 * m4/inttostr.m4: New file.
31552 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
31553 Require AM_STDBOOL_H and gl_TIMESPEC instead.
31554 Require gl_CLOCK_TIME.
31555 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
31557 2004-03-30 Paul Eggert <eggert@twinsun.com>
31559 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
31560 not bool, to be more consistent with Unix conventions.
31561 Suggested by Bruno Haible.
31563 Merge from coreutils.
31565 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
31566 * lib/umaxtostr.c: New files.
31568 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
31569 the usual <time.h> dance.
31570 (get_date): Change signature to support fractional time stamps.
31571 All callers changed.
31572 * lib/getdate.y: Include "getdate.h" first, as we can now
31573 assume C89 and don't need to worry about 'const'.
31574 Similarly, include "unlocked-io.h" near start, not in middle.
31575 Include <limits.h>.
31576 (textint.value): Use long int rather than int.
31577 (textint.digits): Use size_t rather than int.
31578 (BILLION, LOG10_BILLION): New constants.
31579 (parser_control): New member rel_ns. Members day_ordinal,
31580 time_zone, month, day, hour, minutes, rel_year, rel_month,
31581 rel_day, rel_hour, rel_minutes, rel_seconds
31582 are now long int, not int. Member seconds is now struct timespec,
31583 not int. New member timespec_seen. Members dates_seen, days_seen,
31584 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
31586 (%union.intval): Now long int, not int.
31587 New member timespec.
31588 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
31589 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
31590 (spec): Now is a timespec or an item list.
31591 (timespec, items): New nonterminals.
31592 (time, rel, relunit, number, get_date):
31593 Add support for fractional seconds.
31594 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
31595 (gmtime, localtime, mktime): Remove decls; not needed with C89.
31596 (to_hour): First arg is now long int, not int.
31597 (to_year): Returns long int, not int.
31598 Don't treat year -70 like 70.
31599 (tm_diff): Returns long int, not int.
31600 (lookup_word): Use bool instead of int when appropriate.
31601 (yylex): Use size_t for count, not int.
31602 Detect overflow when parsing large integer constants.
31603 Add support for fractions.
31604 (get_date): Make pointers 'const' if possible.
31605 Use more-portable code to detect integer overflow.
31606 (main) [TEST]: Adjust to above changes. Test for localtime failure.
31607 Don't use ctime; it's not reliable if the year has >4 digits.
31609 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
31610 This is for compatibility with BSD.
31612 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
31613 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
31614 From coreutils' system.h.
31616 * lib/userspec.c: Don't include "posixver.h".
31617 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
31618 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
31619 compatible extension. Simplify code by removing a boolean int
31620 that was always nonzero if a string was nonnull.
31622 2004-03-30 Jim Meyering <jim@meyering.net>
31624 Merge from coreutils.
31626 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
31627 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
31628 on some systems one must include <grp.h> before it.
31629 Reported by Christian Krackowizer.
31631 2004-03-30 Jim Meyering <jim@meyering.net>
31633 Merge from coreutils.
31635 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
31637 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
31638 an empty input stream.
31640 * lib/readtokens.c: Include <stdbool.h>.
31641 (readtoken): Use `size_t' rather than int/long.
31642 All callers adjusted.
31643 Use `bool' rather than `int' where appropriate.
31644 Use memset rather than an explicit loop.
31645 Use x2nrealloc rather than xrealloc.
31646 Allow the use of `\0' as a delimiter.
31647 (readtokens): Likewise.
31648 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
31650 2004-03-30 Jim Meyering <jim@meyering.net>
31652 * m4/realloc.m4: Remove file, since now it does no more than
31653 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
31654 the `configure.ac' section of module/realloc.
31655 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
31657 2004-03-30 Bruno Haible <bruno@clisp.org>
31659 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
31662 2004-03-29 Paul Eggert <eggert@twinsun.com>
31664 Merge changes to getloadavg.c from coreutils and Emacs.
31666 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
31667 Define to an expression, not to the empty string.
31668 Include cloexec.h and xalloc.h.
31669 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
31670 Use set_cloexec_flag rather than rolling our own.
31671 * lib/cloexec.c, lib/cloexec.h: New files.
31673 2004-03-29 Paul Eggert <eggert@twinsun.com>
31675 * m4/cloexec.m4: New file.
31677 2004-03-18 Paul Eggert <eggert@twinsun.com>
31679 * lib/getopt.h: Sync with libc CVS.
31681 2004-03-18 Paul Eggert <eggert@twinsun.com>
31682 Bruno Haible <bruno@clisp.org>
31684 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
31687 2004-03-18 Paul Eggert <eggert@twinsun.com>
31688 Bruno Haible <bruno@clisp.org>
31690 * lib/mbswidth.h: Include <wchar.h> only if
31691 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
31693 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
31695 2004-03-09 Paul Eggert <eggert@twinsun.com>
31697 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
31698 Sync with libc CVS.
31699 * lib/getopt_int.h: New file, also synced from libc.
31701 2004-03-09 Paul Eggert <eggert@twinsun.com>
31703 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
31704 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
31705 Bring back getopt.c, getopt.h, getopt1.c.
31707 2004-03-07 Paul Eggert <eggert@twinsun.com>
31709 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
31710 All uses changed. Check for sa_sigaction member; this fixes
31711 a bug first reported by Jason Andrade in
31712 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
31714 2004-03-07 Paul Eggert <eggert@twinsun.com>
31716 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
31717 '#if' expressions. Unlike the code it replaces, it does not
31718 depend on (defined _SC_PAGESIZE). However, it does depend on
31719 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
31720 first reported by Jason Andrade in
31721 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
31723 2004-02-25 Simon Josefsson <jas@extundo.com>
31725 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
31727 2004-02-25 Simon Josefsson <jas@extundo.com>
31729 * lib/strdup.h: New file.
31730 * lib/strdup.c: Include it.
31731 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
31732 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
31734 2004-02-23 Karl Berry <karl@gnu.org>
31736 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
31737 (from fencepost.gnu.org:/gd/gnuorg).
31739 2004-02-23 Karl Berry <karl@gnu.org>
31741 * config/srclistvars.sh (GNUORG) [karl]: redefine.
31742 * config/srclist.txt: add maintain/standards documents.
31744 2004-02-18 Bruno Haible <bruno@clisp.org>
31746 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
31747 Reported by Derek Robert Price <derek@ximbiot.com>.
31749 2004-02-16 Karl Berry <karl@gnu.org>
31751 * config/mkinstalldirs, install-sh: update from automake.
31753 2004-02-06 Karl Berry <karl@gnu.org>
31755 * m4/po.m4: update from gettext 0.14.1.
31757 2004-02-06 Karl Berry <karl@gnu.org>
31759 * lib/config.charset: update from gettext 0.14.1.
31761 2004-02-05 Paul Eggert <eggert@twinsun.com>
31763 Add comments and code, prompted by suggestions from Bruno Haible
31765 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
31766 describing the enum quoting_style values.
31767 * lib/quotearg.c (quotearg_alloc): New function.
31768 (quotearg_buffer_restyled): Treat lone { and } as special.
31769 Treat = as special. Work around bug with older shells
31770 that "see" a '\' that is really the 2nd byte of a multibyte char.
31771 Quote empty string with shell_quoting_style.
31773 2004-02-03 Bruno Haible <bruno@clisp.org>
31775 * m4/pipe.m4: New file, from GNU gettext.
31777 2004-02-03 Bruno Haible <bruno@clisp.org>
31779 * lib/pipe.h: New file, from GNU gettext.
31780 * lib/pipe.c: New file, from GNU gettext.
31782 2004-01-27 Bruno Haible <bruno@clisp.org>
31784 * m4/execute.m4: New file, from GNU gettext.
31786 2004-01-27 Bruno Haible <bruno@clisp.org>
31788 * lib/execute.h: New file, from GNU gettext.
31789 * lib/execute.c: New file, from GNU gettext.
31790 * lib/w32spawn.h: New file, from GNU gettext.
31792 2004-01-24 Paul Eggert <eggert@twinsun.com>
31794 Merge from diffutils.
31796 * lib/file-type.c (file_type): Add typed memory objects.
31797 * lib/file-type.h (S_TYPEISTMO): New macro.
31799 * lib/c-stack.h (c_stack_action): Remove argv argument.
31800 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
31801 (die): Don't calculate message unless segv_action returns.
31802 (get_stack_location, min_address_from_argv, max_address_from_argv,
31803 volatile stack_base, volatile_stack_size): Remove.
31804 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
31805 that every segmentation violation is a stack overflow. (Ouch!)
31806 See Debian bug 136249 (still outstanding) for more info about why
31807 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
31809 2004-01-24 Paul Eggert <eggert@twinsun.com>
31811 Exit-status fix from coreutils.
31813 Use exit_failure consistently in place of EXIT_FAILURE,
31814 so that program exit statuses are consistent on failure.
31816 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
31817 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
31818 * lib/argmatch.h: Comment fix to match the above.
31819 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
31820 Now a macro referring to exit_failure, instead of a separate
31821 variable. Include "exitfail.h" to get it.
31822 * lib/xstrtol.h: Include "exitfail.h".
31823 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
31825 * lib/long-options.c (parse_long_options): Use prototype
31826 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
31829 2004-01-21 Jim Meyering <jim@meyering.net>
31831 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
31832 so as not to conflict with a different-sized __mktime_internal
31833 function in GNU libc.
31834 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
31835 Problem building statically-linked `ls' reported by Michael Brunnbauer.
31837 2004-01-20 Karl Berry <karl@gnu.org>
31839 * config/config.guess: update from config.
31841 * config/srclistvars.sh: GNUWWWLICENSES for karl.
31843 2004-01-20 Bruno Haible <bruno@clisp.org>
31845 Safer stack allocation.
31846 * lib/setenv.c: Include allocsa.h.
31847 (alloca): Remove fallback definition.
31848 (freea): Remove macro.
31849 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
31852 2004-01-20 Bruno Haible <bruno@clisp.org>
31854 * m4/eealloc.m4: New file, from GNU gettext.
31856 2004-01-20 Bruno Haible <bruno@clisp.org>
31858 * m4/allocsa.m4: New file, from GNU gettext.
31860 2004-01-20 Bruno Haible <bruno@clisp.org>
31862 * lib/xallocsa.h: New file, from GNU gettext.
31863 * lib/xallocsa.c: New file, from GNU gettext.
31865 2004-01-20 Bruno Haible <bruno@clisp.org>
31867 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
31869 2004-01-20 Bruno Haible <bruno@clisp.org>
31871 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
31872 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
31875 2004-01-20 Bruno Haible <bruno@clisp.org>
31877 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
31880 2004-01-20 Bruno Haible <bruno@clisp.org>
31882 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
31884 2004-01-20 Bruno Haible <bruno@clisp.org>
31886 * lib/eealloc.h: New file.
31888 2004-01-20 Bruno Haible <bruno@clisp.org>
31890 * lib/binary-io.h: Avoid warnings on Cygwin.
31892 2004-01-20 Bruno Haible <bruno@clisp.org>
31894 * lib/allocsa.h: New file, from GNU gettext.
31895 * lib/allocsa.c: New file, from GNU gettext.
31897 2004-01-18 Karl Berry <karl@gnu.org>
31899 * doc/gpl.texi, doc/lgpl.texi: new files.
31901 2004-01-18 Karl Berry <karl@gnu.org>
31903 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
31904 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
31906 2004-01-15 Paul Eggert <eggert@twinsun.com>
31908 Merge from coreutils.
31910 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
31911 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
31912 (gl_DEFAULT_POSIX2_VERSION): Move
31913 the documentation from 'configure' into 'config.hin',
31914 so that 'configure --help' isn't burdened by it and
31915 we don't have to worry about its formatting there.
31916 Reword the documentation so that it's more succinct
31917 and can be run together into a single paragraph.
31918 * m4/same.m4 (gl_SAME): Check for pathconf.
31920 2004-01-15 Paul Eggert <eggert@twinsun.com>
31922 Merge from coreutils.
31924 * lib/posixver.c: Include posixver.h.
31926 * lib/same.c: Include <stdbool.h>, <limits.h>.
31927 (_POSIX_NAME_MAX): Define if not defined.
31929 (same_name): If file names are silently truncated, report
31930 that the file names are the same if they are the same after
31931 the silent truncation.
31933 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
31934 conversion function.
31935 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
31936 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
31939 2004-01-15 Jim Meyering <jim@meyering.net>
31941 Merge from coreutils.
31943 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
31944 if no library is required.
31945 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
31946 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
31947 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
31948 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
31949 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
31950 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
31951 value, $ac_cv_search_crypt, if it's "none required".
31952 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
31953 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
31954 not gl_FUNC_GETLOADAVG.
31955 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
31956 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
31958 2004-01-15 Jim Meyering <jim@meyering.net>
31960 Merge from coreutils.
31962 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
31963 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
31964 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
31966 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
31967 optional configure-time default.
31969 * lib/version-etc.c (version_etc_copyright): Update copyright date.
31971 * lib/xreadlink.c (xreadlink): Correct outdated comment.
31973 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
31975 Merge from coreutils.
31977 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
31978 value, $ac_cv_search_nanosleep, if it's "none required".
31980 2004-01-14 Paul Eggert <eggert@twinsun.com>
31982 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
31983 with like-named macro in fnmatch.c.
31984 (EXT): Use an internal constant instead.
31986 Merge fnmatch patches from glibc.
31987 * lib/fnmatch.c (mbsinit): Remove define.
31988 Add libc_hidden_ver (__fnmatch, fnmatch).
31989 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
31990 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
31992 2004-01-14 Karl Berry <karl@gnu.org>
31994 * config/install-sh: update from automake.
31996 2004-01-13 Karl Berry <karl@gnu.org>
31998 * config/install-sh: update from automake.
32000 2004-01-09 Karl Berry <karl@gnu.org>
32002 * config/install-sh: update from automake.
32004 2004-01-05 Karl Berry <karl@gnu.org>
32006 * config/config.{sub,guess}: update from config.
32008 2003-12-31 Karl Berry <karl@gnu.org>
32010 * config/depcomp: update from automake.
32012 2003-12-14 Karl Berry <karl@gnu.org>
32014 * lib/config.charset: update from gettext-runtime.
32016 2003-12-03 Paul Eggert <eggert@twinsun.com>
32018 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
32019 Bug reported by Alfred M. Szmidt.
32021 2003-12-03 Bruno Haible <bruno@clisp.org>
32023 * m4/gettext.m4: Upgrade from gettext-0.13.
32024 * m4/po.m4: Upgrade from gettext-0.13.
32025 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
32026 * m4/intmax.m4: New file, from gettext-0.13.
32027 * m4/printf-posix.m4: New file, from gettext-0.13.
32029 2003-11-29 Karl Berry <karl@gnu.org>
32031 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
32033 2003-11-25 Paul Eggert <eggert@twinsun.com>
32034 Bruno Haible <bruno@clisp.org>
32036 * lib/printf-parse.h: Don't include sys/types.h.
32037 (ARG_NONE): New macro.
32038 (char_directive): Change type of *arg_index fields to size_t.
32039 * lib/printf-parse.c: Don't include sys/types.h.
32040 (SSIZE_MAX): Remove macro.
32041 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
32042 Remove unnecessary overflow check.
32043 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
32046 2003-11-25 Bruno Haible <bruno@clisp.org>
32048 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
32050 2003-11-25 Bruno Haible <bruno@clisp.org>
32052 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
32055 2003-11-24 Paul Eggert <eggert@twinsun.com>
32057 * modules/alloca: Remove dependency on xalloc.
32059 2003-11-24 Paul Eggert <eggert@twinsun.com>
32061 * lib/alloca.c: Remove dependency on xalloc module.
32062 (xalloc_die): Remove.
32063 (memory_full) [!defined emacs]: New macro.
32064 [!defined emacs]: Don't include xalloc.h.
32065 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
32066 address arithmetic overflows. Change datatypes a bit to avoid
32069 2003-11-22 Jim Meyering <jim@meyering.net>
32071 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
32074 2003-11-21 Karl Berry <karl@gnu.org>
32076 * config/config.{sub,guess}: update from config.
32078 2003-11-18 Karl Berry <karl@gnu.org>
32080 * config/config.{sub,guess}: update from config.
32082 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
32084 2003-11-17 Paul Eggert <eggert@twinsun.com>
32086 * README: Mention that S+T cannot overflow if S is the size of
32087 an existing object and T is sufficiently small.
32089 2003-11-17 Jim Meyering <jim@meyering.net>
32091 On systems without utime and without a utimes function capable of
32092 dealing with a NULL struct utimbuf* argument, this utime replacement
32093 could -- in unusual circumstances -- leak a file descriptor.
32094 * lib/utime.c: Include <unistd.h> and <errno.h>.
32095 (utime_null): Be sure to close `fd' and to preserve errno.
32096 Reported by Geoff Collyer via Arnold Robbins.
32098 2003-11-17 Bruno Haible <bruno@clisp.org>
32100 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
32101 (Depends-on): Add xsize.
32103 2003-11-17 Bruno Haible <bruno@clisp.org>
32105 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
32107 2003-11-17 Bruno Haible <bruno@clisp.org>
32109 * lib/vasnprintf.c (alloca): Remove fallback definition.
32110 (freea): Remove definition.
32111 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
32112 Reported by Paul Eggert.
32114 2003-11-16 Paul Eggert <eggert@twinsun.com>
32115 Bruno Haible <bruno@clisp.org>
32117 Protect against address arithmetic overflow.
32118 * lib/printf-args.h: Include stddef.h.
32119 (arguments): Change type of field 'count' to size_t.
32120 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
32121 'unsigned int' where appropriate.
32122 * lib/printf-parse.h: Include sys/types.h.
32123 (char_directive): Change type of *arg_index fields to ssize_t.
32124 (char_directives): Change type of fields 'count', max_*_length to
32126 * lib/printf-parse.c: Include sys/types.h and xsize.h.
32127 (SSIZE_MAX): Define fallback value.
32128 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
32129 instead of 'int' where appropriate. Check a_allocated, d_allocated
32130 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
32131 * lib/vasnprintf.c: Include xsize.h.
32132 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
32133 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
32134 overflow. Avoid wraparound when converting a width or precision from
32137 2003-11-16 Bruno Haible <bruno@clisp.org>
32139 Update from GNU gettext.
32140 * lib/printf-parse.c: Generalize to it can be compiled for wide
32142 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
32143 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
32144 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
32145 SNPRINTF): New macros.
32146 Don't include <alloca.h> if the file is used inside libintl.
32147 (local_wcslen): New function, for Solaris 2.5.1.
32148 (VASNPRINTF): Use it instead of wcslen.
32150 2003-11-16 Bruno Haible <bruno@clisp.org>
32152 * lib/xsize.h (xmax): New function.
32153 (xsum, xsum3, xsum4): Declare as "pure" functions.
32155 2003-11-12 Paul Eggert <eggert@twinsun.com>
32157 * modules/xalloc (Files): Undo latest change, since xalloc.h
32158 no longer needs SIZE_MAX or PTRDIFF_MAX.
32160 2003-11-12 Paul Eggert <eggert@twinsun.com>
32162 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
32165 2003-11-12 Paul Eggert <eggert@twinsun.com>
32167 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
32168 "return", to pacify some unknown compiler. Problem reported
32169 by Joerg Schilling.
32171 2003-11-12 Paul Eggert <eggert@twinsun.com>
32173 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
32174 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
32175 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
32176 heuristic is just as accurate as far as we know, and it removes a
32177 dependency on size_max.m4 and ptrdiff_max.m4.
32179 2003-11-11 Bruno Haible <bruno@clisp.org>
32181 * modules/xsize (Files): Add m4/size_max.m4.
32182 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
32184 2003-11-11 Bruno Haible <bruno@clisp.org>
32186 * m4/size_max.m4: New file.
32187 * m4/ptrdiff_max.m4: New file.
32188 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
32189 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
32190 (gl_XALLOC): Invoke it.
32192 2003-11-11 Bruno Haible <bruno@clisp.org>
32194 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
32195 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
32198 2003-11-10 Paul Eggert <eggert@twinsun.com>
32200 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
32201 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
32202 rejected some allocations of exactly SIZE_MAX - 2 bytes.
32204 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
32205 not (size_t) -1, since it's defined here.
32207 2003-11-09 Karl Berry <karl@gnu.org>
32209 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
32211 2003-11-06 Paul Eggert <eggert@twinsun.com>
32213 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
32214 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
32215 Reject sizes of exactly SIZE_MAX bytes.
32216 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
32217 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
32219 2003-11-05 Bruno Haible <bruno@clisp.org>
32221 * lib/xsize.h: Include limits.h, to avoid a possible collision with
32222 SIZE_MAX defined in <limits.h> on Solaris.
32224 2003-11-04 Jim Meyering <jim@meyering.net>
32226 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
32227 variable names, rather than @VAR@.
32228 * modules/poll: Likewise.
32230 2003-11-04 Bruno Haible <bruno@clisp.org>
32232 * modules/xsize: New file.
32233 * modules/linebreak: Depend on xsize.
32234 * MODULES.html.sh (func_all_modules): Add xsize.
32236 2003-11-04 Bruno Haible <bruno@clisp.org>
32238 * m4/xsize.m4: New file.
32240 2003-11-04 Bruno Haible <bruno@clisp.org>
32242 * lib/xsize.h: New file.
32243 * lib/linebreak.c: Include xsize.h.
32244 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
32245 argument for overflow.
32246 Suggested by Paul Eggert.
32248 2003-11-03 Karl Berry <karl@gnu.org>
32250 * config/config.{guess,sub}: update from config.
32252 2003-11-03 Jim Meyering <jim@meyering.net>
32254 * modules/userspec (lib_SOURCES): Add userspec.h.
32255 (Include): Add "userspec.h".
32256 Improve description.
32258 2003-11-03 Jim Meyering <jim@meyering.net>
32260 * lib/userspec.c: Include "userspec.h".
32261 * lib/userspec.h: New file.
32263 2003-11-03 Bruno Haible <bruno@clisp.org>
32265 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
32267 2003-11-03 Bruno Haible <bruno@clisp.org>
32269 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
32270 available, to avoid (extremely rare) race condition.
32271 Suggested by Paul Eggert.
32273 2003-11-02 Karl Berry <karl@gnu.org>
32275 * config/srclist.txt (vasprintf.c): sync broken, sigh.
32277 2003-10-31 Paul Eggert <eggert@twinsun.com>
32279 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
32280 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
32281 (read_filesystem_list): Set and use me_type_malloced.
32282 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
32283 whatever the type happens to be), for brevity and consistency.
32284 Check for size calculation overflow on Alphas running OSF/1.
32286 2003-10-31 Jim Meyering <jim@meyering.net>
32288 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
32290 * lib/linebuffer.c: Include <string.h> for declaration of memset.
32292 2003-10-30 Paul Eggert <eggert@twinsun.com>
32293 Bruno Haible <bruno@clisp.org>
32295 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
32296 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
32298 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
32300 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
32301 netbsd*-gnu*. Suggested by Robert Millan.
32303 2003-10-29 Paul Eggert <eggert@twinsun.com>
32305 * modules/group-member: Depend on stdbool.
32307 2003-10-29 Paul Eggert <eggert@twinsun.com>
32309 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
32311 2003-10-29 Paul Eggert <eggert@twinsun.com>
32313 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
32314 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
32315 after the 'gnu' in these cases. This fixes some bugs in the
32316 previous change, and is based on suggestions by Robert Millan.
32318 2003-10-29 Paul Eggert <eggert@twinsun.com>
32320 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
32321 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
32323 * lib/quotearg.c (quotearg_n_options): Use it.
32324 * lib/group-member.c: Include <stdbool.h>.
32325 (free_group_info): Arg is now const *; don't free arg.
32326 (get_group_info): Now returns bool and accepts struct group_info *,
32327 rather than returning a malloc'ed struct group_info *.
32328 All uses changed. Check for overflow in internal size calculation.
32330 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
32331 rather than xmalloc/xrealloc.
32332 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
32333 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
32334 conformance bug: the old code used a pointer after freeing the
32335 storage that it addressed.
32336 * lib/hash.c (hash_initialize): Simplify the code by using
32337 xalloc_oversized rather than doing it by hand.
32338 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
32339 the buffer preserved. Use free and xmalloc instead.
32340 * lib/quotearg.c (quotearg_n_options): Likewise.
32341 Use a simpler test for size overflow. Don't use xalloc_oversized
32342 because unsigned int might be wider than size_t (!); this suggests
32343 that we should switch from unsigned int to size_t for slot numbers.
32345 2003-10-28 Paul Eggert <eggert@twinsun.com>
32347 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
32348 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
32349 NetBSD kernels. Requested by Richard Stallman.
32351 2003-10-27 Paul Eggert <eggert@twinsun.com>
32353 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
32354 to allocate the returned structure. Do not allocate a subarray,
32355 as x2nrealloc will do that.
32356 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
32357 instead of xnrealloc.
32358 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
32360 2003-10-27 Bruno Haible <bruno@clisp.org>
32362 * lib/stdbool_.h: Better support for BeOS.
32364 2003-10-26 Paul Eggert <eggert@twinsun.com>
32366 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
32369 2003-10-26 Paul Eggert <eggert@twinsun.com>
32371 * lib/xalloc.h (xalloc_oversized): New static inline function, for
32372 callers that want to do their own size-overflow checking. Include
32373 <stdbool.h>, since xalloc_oversized returns bool.
32374 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
32375 to use xalloc_oversized.
32377 Add two functions x2realloc, x2nrealloc, for programs that grow
32378 arrays dynamically by doubling their sizes.
32379 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
32380 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
32383 Port to C99 semantics for 'inline' of external functions.
32384 Bug reported by Bruno Haible.
32385 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
32386 with the old contents of xnmalloc.
32387 (xnmalloc, xmalloc): Use it.
32388 (xnrealloc_inline): New static inline function,
32389 with the old contents of xnrealloc.
32390 (xnrealloc, xrealloc): Use it.
32392 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
32395 2003-10-26 Karl Berry <karl@gnu.org>
32397 * config/srclist.txt (COPYING.DOC): no longer available from
32398 /gd/gnuorg; don't know where the ultimate source is.
32400 2003-10-25 Paul Eggert <eggert@twinsun.com>
32402 Fix several address-calculation bugs in the hash modules,
32403 plus some minor code cleanup.
32405 * lib/hash.h: Include <stdbool.h>, for bool.
32406 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
32407 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
32408 hash_get_n_entries, hash_get_max_bucket_length,
32409 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
32410 hash_rehash): Use size_t rather than unsigned.
32411 * lib/hash.c (struct hash_table, hash_get_n_buckets,
32412 hash_get_n_buckets_used, hash_get_n_entries,
32413 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
32414 hash_get_entries, hash_do_for_each, hash_string, is_prime,
32415 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
32417 (SIZE_MAX): Define if not defined.
32418 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
32419 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
32421 Use const * when possible.
32422 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
32423 (check_tuning): Fix bug: if tuning parameters were very close to
32424 0 or 1, rounding errors could have caused subscript violations.
32425 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
32426 (hash_initialize): Add 'fail:' label
32427 to free table and return NULL, and use it to simplify code.
32428 Use calloc rather than clearing the storage ourself.
32429 (hash_initialize, hash_rehash): Check for arithmetic overflow in
32430 buffer size calculations.
32431 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
32432 Include <stddef.h>, for size_t.
32433 * lib/hash-pjw.c (hash_pjw): Likewise.
32434 Switch to method described by Bruno Haible.
32435 Include <limits.h>, for CHAR_BIT.
32436 (SIZE_BITS): New macro.
32438 2003-10-23 Paul Eggert <eggert@twinsun.com>
32440 * m4/getline.m4 (AM_FUNC_GETLINE):
32441 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
32442 hosts. Problem reported by Derek Robert Price in
32443 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
32444 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
32445 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
32447 2003-10-21 Paul Eggert <eggert@twinsun.com>
32449 * lib/getndelim2.c (getndelim2): When size calculation overflows,
32450 ceiling the allocation at NMAX bytes rather than silently
32451 discarding input bytes before NMAX is reached. This makes
32452 a difference only if NMAX exceeds SIZE_MAX / 2.
32454 * lib/obstack.c: Merge from glibc.
32455 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
32456 Add libc_hidden_def (_obstack_newchunk).
32457 (_obstack_free) [! defined _LIBC]: Remove.
32458 [defined _LIBC]: Make a strong alias from obstack_free, rather than
32459 a clone of the function body.
32460 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
32461 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
32463 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
32465 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
32468 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
32469 (obstack_ptr_grow_fast, obstack_int_grow_fast):
32470 Don't use lvalue casts, as GCC plans to remove support for them
32471 in GCC 3.5. Reported by Joseph S. Myers. This bug
32472 was also present in the non-GCC version, indicating that this
32473 code had always been buggy and had never been widely used.
32474 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
32475 Use the fast variant of each macro, rather than copying the
32476 definiens of the fast variant; that way, we'll be more likely to
32477 catch future bugs in the fast variants.
32479 2003-10-20 Bruno Haible <bruno@clisp.org>
32481 * modules/wait-process: New file.
32482 * MODULES.html.sh (func_all_modules): Add wait-process.
32484 2003-10-20 Bruno Haible <bruno@clisp.org>
32486 * m4/wait-process.m4: New file.
32488 2003-10-20 Bruno Haible <bruno@clisp.org>
32490 * lib/wait-process.h: New file, from GNU gettext.
32491 * lib/wait-process.c: New file, from GNU gettext.
32493 2003-10-19 Jim Meyering <jim@meyering.net>
32495 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
32498 2003-10-18 Karl Berry <karl@gnu.org>
32500 * config/config.guess: update from config.
32502 2003-10-16 Paul Eggert <eggert@twinsun.com>
32504 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
32505 (getgroups): First arg is int, not size_t.
32506 Don't let 'free' mangle errno.
32508 2003-10-16 Paul Eggert <eggert@twinsun.com>
32510 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
32512 2003-10-16 Karl Berry <karl@gnu.org>
32514 * config/config.{guess,sub}: update from config.
32516 2003-10-16 Jim Meyering <jim@meyering.net>
32518 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
32521 2003-10-15 Paul Eggert <eggert@twinsun.com>
32523 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
32524 (SIZE_MAX): Remove.
32525 (new_exclude, add_exclude_file): Initial size no longer needs to
32527 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
32528 our own address arithmetic overflow checking.
32530 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
32531 (fnmatch): Do not alloca more than 2000 wide characters;
32532 instead, use malloc for large buffers.
32533 Check for address arithmetic overflow, and return -1
32534 with errno set to ENOMEM in that case.
32535 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
32536 (NEW_PATTERN): Do not alloca more than 8000 bytes;
32537 instead, return -1. Check for address arithmetic overflow.
32539 2003-10-14 Paul Eggert <eggert@twinsun.com>
32541 Handle invalid suffixes and overflow independently, so that
32542 callers can treat them independently as needed. Fix some bugs in
32543 suffix handling, e.g., "100k@" was not diagnosed as an invalid
32544 suffix for a human-readable blocksize. The major caller-visible
32545 change is the addition of a new
32546 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
32547 that both overflow and suffix chars were found.
32549 * lib/human.c (humblock): Don't check separately for invalid suffix
32550 char; that is xstrtoumax's job (now that its bug is fixed).
32551 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
32552 INTMAX_MAX]: New macros.
32553 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
32554 TYPE_MAXIMUM): New macros.
32555 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
32556 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
32557 if overflow occurs, as it's what __strtol does and it's more useful
32559 (__xstrtol): If __strtol reports some error other than ERANGE,
32560 reflect it to the caller as LONGINT_INVALID. If it reports
32561 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
32562 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
32563 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
32565 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
32566 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
32567 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
32568 [defined UINTMAX_MAX]: New macros.
32570 2003-10-14 Bruno Haible <bruno@clisp.org>
32572 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
32574 2003-10-14 Bruno Haible <bruno@clisp.org>
32576 * m4/sig_atomic_t: New file, from GNU gettext.
32577 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
32579 2003-10-14 Bruno Haible <bruno@clisp.org>
32581 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
32582 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
32583 Also use volatile where needed.
32585 2003-10-12 Paul Eggert <eggert@twinsun.com>
32587 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
32588 Change maintainer from Bruno Haible to 'all'.
32590 2003-10-12 Paul Eggert <eggert@twinsun.com>
32592 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
32594 2003-10-12 Paul Eggert <eggert@twinsun.com>
32596 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
32597 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
32598 and define in terms of the other primitives.
32599 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
32600 (SIZE_MAX): Define if not already defined.
32601 (array_size_overflow): New function.
32602 (xalloc_die): Abort instead of exiting if 'error' returns.
32603 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
32604 (xmalloc, xrealloc): Use them.
32605 (xcalloc): Check for address arithmetic overflow.
32606 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
32607 a bit faster than strcpy.
32609 2003-10-10 Simon Josefsson <jas@extundo.com>
32611 * modules/argp (Depends-on): Add restrict and strcase.
32613 2003-10-10 Simon Josefsson <jas@extundo.com>
32615 * m4/argp.m4: Add AC_C_INLINE.
32617 2003-10-08 Paul Eggert <eggert@twinsun.com>
32619 Merge getpass from libc, plus a few fixes.
32621 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
32622 Include <stdbool.h>.
32623 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
32624 __fsetlocking to empty.
32625 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
32626 do include <bits/libc-lock.h>.
32627 Do not include <fcntl.h>; not needed.
32628 [_LIBC]: Include <wchar.h>.
32629 (NOTCANCEL_MODE): New macro.
32630 (flockfile, funlockfile) [_LIBC]: New macros.
32631 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
32632 [!_LIBC]: New macros.
32633 (call_fclose): New function.
32634 (getpass): Use it. Save tty stream separately; this simplifies the
32635 code and makes it more reliable if stdin happens to equal stdout.
32636 Invoke __fsetlocking on tty.
32637 Handle thread cancellation if needed.
32638 Namespace cleanup (use __tcgetattr, __getline).
32639 Use bool for Booleans.
32640 [USE_IN_LIBIO]: Handle wide streams.
32641 [!_LIBC]: Unconditionally do the fseek, since we don't know what
32642 stream might go where.
32644 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
32645 doesn't have to include <stdio.h> before us.
32646 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
32647 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
32648 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
32649 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
32650 if not declared, so that we can use getpass.c code from libc without
32652 (flockfile, ftrylockfile, funlockfile): New macros.
32654 2003-10-08 Paul Eggert <eggert@twinsun.com>
32656 * modules/getpass: Depend on stdbool.
32658 2003-10-08 Paul Eggert <eggert@twinsun.com>
32660 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
32662 2003-10-07 Karl Berry <karl@gnu.org>
32664 * config/config.{guess,sub}: update from config.
32666 2003-10-06 Jim Meyering <jim@meyering.net>
32667 Bruno Haible <bruno@clisp.org>
32669 This lets translators provide better translations for the
32670 "Written by ..." part of --version output.
32671 * lib/version-etc.h: Include stdarg.h.
32672 (version_etc_copyright): Declare as readonly.
32673 (version_etc): Make this function variadic with a NULL-terminated list
32674 of author name strings.
32675 (version_etc_va): New declaration.
32676 * lib/version-etc.c: Include stdarg.h, stdlib.h.
32677 (version_etc_copyright): Declare as readonly.
32678 (version_etc_va): New function. Provide a different translatable string
32679 for each possible number of authors < 10. Abbreviate when there are 10
32681 (version_etc): Make this function variadic. Call version_etc_va.
32682 Suggestion from Gary V. Vaughan.
32684 * lib/long-options.h (parse_long_options): Change prototype: the
32685 authors string is moved to the end and becomes variadic.
32686 * lib/long-options.c: Include stdarg.h.
32687 (parse_long_options): Make this function variadic, too.
32688 Call version_etc_va, not version_etc.
32690 2003-10-06 Bruno Haible <bruno@clisp.org>
32692 * modules/version-etc-2: Remove file.
32693 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
32695 2003-10-06 Bruno Haible <bruno@clisp.org>
32697 * modules/fatal-signal: New file.
32698 * MODULES.html.sh (func_all_modules): Add fatal-signal.
32700 2003-10-06 Bruno Haible <bruno@clisp.org>
32702 * m4/fatal-signal.m4: New file.
32703 * m4/signalblocking.m4: New file, from GNU gettext.
32705 2003-10-06 Bruno Haible <bruno@clisp.org>
32707 * lib/version-etc-2.h: Remove file.
32708 * lib/version-etc-2.c: Remove file.
32710 2003-10-06 Bruno Haible <bruno@clisp.org>
32712 * lib/fatal-signal.h: New file, from GNU gettext.
32713 * lib/fatal-signal.c: New file, from GNU gettext.
32715 2003-10-05 Paul Eggert <eggert@twinsun.com>
32717 * README: Rework advice for preventing empty .o files.
32718 Don't recommend ELIDE constructs. Recommend <stddef.h>,
32721 2003-10-04 Karl Berry <karl@gnu.org>
32723 * lib/argp*: update from libc.
32725 2003-10-04 Karl Berry <karl@gnu.org>
32727 * config/config.{guess,sub}: update from config.
32729 2003-10-02 Bruno Haible <bruno@clisp.org>
32731 * modules/lchown (Include): Add lchown.h.
32732 * modules/time_r (Include): Use "..." syntax.
32733 * modules/xgetdomainname (Include): Add xgetdomainname.h.
32735 2003-10-01 Simon Josefsson <jas@extundo.com>
32737 * MODULES.html.sh (func_all_modules): Move gethostname from section
32738 'based on' to section 'lacking' POSIX:2001.
32740 2003-10-01 Larry Jones <lawrence.jones@eds.com>
32742 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
32743 to output mode on the same stream.
32745 2003-09-29 Paul Eggert <eggert@twinsun.com>
32747 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
32748 Fix arg typo in previous patch.
32750 2003-09-28 Jim Meyering <jim@meyering.net>
32752 * lib/error.c: Correct cpp indentation.
32754 2003-09-27 Paul Eggert <eggert@twinsun.com>
32756 * modules/free: New file.
32758 2003-09-27 Paul Eggert <eggert@twinsun.com>
32760 * m4/free.m4: New file.
32762 2003-09-27 Paul Eggert <eggert@twinsun.com>
32764 * lib/minmax.h (MIN, MAX)
32765 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
32766 Omit the special code that used __typeof__, since we worry that
32767 it could be more trouble than it's worth. See:
32768 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
32769 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
32771 * lib/free.c: New file.
32773 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
32775 Trivial fixes to Makefile.am parts of module listings.
32776 * modules/strstr: Append strstr.h to lib_SOURCES.
32777 * modules/strcase: Likewise, for strcase.h.
32779 2003-09-27 Karl Berry <karl@gnu.org>
32781 * config/mkinstalldirs: update from automake.
32783 2003-09-26 Paul Eggert <eggert@twinsun.com>
32785 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
32786 (error_tail): Do not loop, reallocating temporary buffer, since
32787 the output cannot contain more wide characters than the input
32788 contains bytes, the size must be big enough already. This avoids
32789 one potential size overflow calculation. Check for size overflow
32790 when calculating temporary buffer size. Free temporary buffer
32791 when done, if it was allocated with malloc; this plugs a memory
32792 leak. Remove casts from void * to pointers, that are no longer
32793 needed now that we're assuming C89 or better.
32795 Merge error changes from glibc.
32797 * lib/error.c, error.h: Update copyright notice header to match glibc.
32798 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
32799 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
32800 Disable cancellation while printing error.
32801 * lib/error.h: Prepend __ to parameter names.
32803 2003-09-26 Jim Meyering <jim@meyering.net>
32805 * lib/error.c (error_tail): Move some declarations
32806 into inner scope where the local variables are used.
32808 2003-09-26 Bruno Haible <bruno@clisp.org>
32810 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
32812 Don't define stpncpy through config.h; it's now done through stpncpy.h.
32814 2003-09-26 Bruno Haible <bruno@clisp.org>
32816 * lib/stpncpy.h (gnu_stpncpy): New declaration.
32817 (stpncpy): Define as alias for gnu_stpncpy.
32818 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
32820 2003-09-25 Simon Josefsson <jas@extundo.com>
32822 * lib/xgetdomainname.h: New file.
32823 * lib/xgetdomainname.c: New file.
32825 2003-09-25 Simon Josefsson <jas@extundo.com>
32826 Bruno Haible <bruno@clisp.org>
32828 * modules/getdomainname: New file.
32829 * modules/xgetdomainname: New file.
32830 * MODULES.html.sh (func_all_modules): Add getdomainname,
32833 2003-09-25 Simon Josefsson <jas@extundo.com>
32834 Bruno Haible <bruno@clisp.org>
32836 * m4/getdomainname.m4: New file.
32838 2003-09-25 Simon Josefsson <jas@extundo.com>
32839 Bruno Haible <bruno@clisp.org>
32841 * lib/getdomainname.h: New file.
32842 * lib/getdomainname.c: New file.
32844 2003-09-25 Karl Berry <karl@gnu.org>
32846 * lib/argp-fmtstream.c, argp-help.c: update from libc.
32848 2003-09-25 Karl Berry <karl@gnu.org>
32850 * config/install-sh: update from automake.
32852 2003-09-25 Bruno Haible <bruno@clisp.org>
32854 * modules/version-etc-2: New file, from modules/version-etc with
32856 * MODULES.html.sh (func_all_modules): Add version-etc-2.
32858 2003-09-25 Bruno Haible <bruno@clisp.org>
32860 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
32861 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
32863 2003-09-24 Simon Josefsson <jas@extundo.com>
32865 * modules/xgethostname: Add xgethostname.h.
32867 2003-09-24 Paul Eggert <eggert@twinsun.com>
32869 * lib/linebuffer.c (freebuffer): Don't free the argument, just
32870 the buffer associated with the argument. Bug reported by
32873 2003-09-24 Paul Eggert <eggert@twinsun.com>
32875 * README: Document assumptions that 'int' is at least 32 bits
32876 wide, that integer arithmetic is 2's complement without overflow,
32877 that there are no holes in integer values, that adding sizes of
32878 two nonoverlapping objects can't overflow, and that all-bits-zero
32879 yields scalar zero. Fix spelling and capitalization typos.
32881 2003-09-19 Karl Berry <karl@gnu.org>
32883 * lib/argp.h: update from libc.
32885 2003-09-17 Paul Eggert <eggert@twinsun.com>
32887 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
32888 to avoid spurious warnings like "AC_RUN_IFELSE was called before
32889 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
32891 2003-09-17 Paul Eggert <eggert@twinsun.com>
32893 * gnulib-tool: Use "test -h", not "test -L", for portability
32894 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
32895 (tags_regexp): Remove, since \| doesn't conform to POSIX.
32896 (sed_extract_prog): Issue s commands one-by-one, rather than
32897 using \| in one s command.
32899 2003-09-16 Paul Eggert <eggert@twinsun.com>
32901 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
32902 input error, instead of returning NULL the next time we are called
32903 (and therefore losing track of errno).
32905 2003-09-16 Bruno Haible <bruno@clisp.org>
32907 * gnulib-tool (func_create_testdir): Warn about duplicated
32910 2003-09-15 Paul Eggert <eggert@twinsun.com>
32912 * modules/argmatch, modules/fatal, modules/obstack,
32913 modules/xalloc, modules/xgethostname: Sort dependencies by
32914 importance, not alphabetically.
32916 2003-09-15 Paul Eggert <eggert@twinsun.com>
32918 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
32919 fails, so that the caller gets the proper errno.
32921 * lib/readutmp.c (read_utmp): Likewise.
32922 Check for fstat error. Close stream and free storage
32925 2003-09-14 Karl Berry <karl@gnu.org>
32927 * config/srclist.txt (strdup.c): disable for c89 changes.
32929 2003-09-14 Jim Meyering <jim@meyering.net>
32931 * lib/getloadavg.c: Correct cpp indentation.
32932 * lib/strdup.c: Likewise.
32933 * lib/vasnprintf.c: Likewise.
32935 2003-09-14 Bruno Haible <bruno@clisp.org>
32937 * modules/fwriteerror: New file.
32938 * MODULES.html.sh (func_all_modules): Add fwriteerror.
32940 2003-09-14 Bruno Haible <bruno@clisp.org>
32942 * lib/fwriteerror.h: New file.
32943 * lib/fwriteerror.c: New file.
32945 2003-09-12 Paul Eggert <eggert@twinsun.com>
32947 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
32948 modules/xgethostname, modules/xalloc: Depend on exit.
32950 2003-09-12 Paul Eggert <eggert@twinsun.com>
32952 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
32954 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
32955 and AC_MINIX, too, so that their extensions are available.
32957 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
32958 This macro has been superseded by gl_BACKUPFILE.
32960 More patches to assume C89 or better.
32962 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
32964 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
32966 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
32967 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
32968 Include <string.h>, <stdlib.h> unconditionally.
32969 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
32970 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
32971 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
32972 headers or for string.h.
32973 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
32976 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
32978 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
32979 * m4/userspec.m4 (gl_USERSPEC): Likewise.
32980 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
32981 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
32982 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
32983 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
32985 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
32986 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
32987 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
32989 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
32990 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
32991 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
32994 2003-09-12 Paul Eggert <eggert@twinsun.com>
32996 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
32997 * lib/obstack.c [!defined _LIBC]: Likewise.
32998 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
32999 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
33000 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
33002 More changes to assume C89 or better.
33004 * lib/error.c (error_tail): Assume vprintf.
33006 * lib/argmatch.c (getenv): Remove decl.
33007 * lib/progreloc.c (get_full_program_name): Define via prototype.
33008 * lib/setenv.c (clearenv): Likewise.
33009 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
33011 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
33012 (malloc, memcpy): Remove decls.
33013 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
33014 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
33015 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
33016 (memcpy): Remove macro.
33017 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
33018 (__P): Remove. All uses removed.
33019 (PTR): Remove. All uses changed to void *.
33020 (CHAR_BIT, NULL): Remove.
33021 (spaces, zeros, memset_space, memset_zero)
33022 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
33024 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
33025 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
33026 Define with prototype.
33027 Remove now-unnecessary prototype decl.
33028 (extra_args_spec): Assume ANSI C. All uses changed.
33029 (extra_args_spec_iso): Remove.
33030 (my_strftime, emacs_strftimeu): Define via prototype.
33031 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
33033 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
33034 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
33035 (strtoul, strtol): Remove decls.
33036 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
33038 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
33039 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
33040 (LOCALE_PARAM_PROTO): New macro.
33041 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
33042 (INTERNAL (strtol), strtol): Define with a prototype.
33043 (PARAMS): Remove. All uses removed.
33044 * lib/tempname.c: Include <string.h> unconditionally.
33045 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
33046 * lib/xgethostname.c (main): Define with a prototype.
33047 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
33048 Include <stdlib.h> unconditionally.
33049 (calloc, malloc, realloc, free): Remove decls.
33050 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
33051 Include <stdlib.h> unconditionally. Sort include file names.
33053 (xstrtod): Define with a prototype.
33054 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
33055 (strtol, strtoul): Remove decls.
33057 2003-09-11 Paul Eggert <eggert@twinsun.com>
33059 More patches to assume C89 or better.
33060 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
33061 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
33062 string.h, memchr, STDC_HEADERS.
33064 2003-09-11 Paul Eggert <eggert@twinsun.com>
33066 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
33067 Include <stdlib.h>, <string.h> unconditionally.
33068 Remove now-unnecessary cast to char *.
33069 * lib/strnlen.c: Include <string.h> unconditionally.
33070 * lib/yesno.c (yesno): Define with a prototype.
33072 2003-09-11 Bruno Haible <bruno@clisp.org>
33074 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
33076 2003-09-10 Jim Meyering <jim@meyering.net>
33078 * lib/error.c: Correct indentation of cpp directives.
33080 2003-09-10 Bruno Haible <bruno@clisp.org>
33082 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
33083 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
33084 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
33085 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
33086 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
33087 <stdlib.h> and <string.h> checks.
33088 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
33089 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
33091 2003-09-10 Bruno Haible <bruno@clisp.org>
33093 * lib/strcspn.c: Include <string.h> unconditionally.
33094 * lib/strpbrk.c: Include <string.h> unconditionally.
33095 * lib/strstr.c: Include <string.h> unconditionally.
33096 * lib/unicodeio.c: Include <string.h> unconditionally.
33097 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
33098 * lib/unsetenv.c: Likewise.
33099 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
33100 * lib/yesno.c: Include <stdlib.h> unconditionally.
33101 (rpmatch): Add prototype.
33103 2003-09-09 Paul Eggert <eggert@twinsun.com>
33105 More patches to assume C89 or better.
33106 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
33107 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
33108 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
33110 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
33112 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
33114 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
33116 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
33117 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
33118 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
33120 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
33121 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
33123 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
33125 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
33126 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
33127 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
33128 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
33129 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
33130 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
33132 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
33133 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
33134 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
33135 C headers, or for string.h.
33136 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
33137 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
33138 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
33139 headers, memory.h, stdlib.h, string.h, strings.h.
33140 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
33141 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
33142 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
33144 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
33145 headers, memory.h, string.h.
33146 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
33147 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
33149 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
33151 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
33152 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
33153 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
33154 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
33155 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
33157 2003-09-09 Paul Eggert <eggert@twinsun.com>
33161 * lib/acosl.c (main): Use a prototype.
33162 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
33165 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
33167 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
33168 (getopt, etopt_long, getopt_long_only, _getopt_internal)
33169 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
33171 * lib/getopt.c (const): Remove macro.
33172 Include <string.h> unconditionally.
33173 (my_index): Remove; all uses changed to strchr.
33174 (strlen): Remove decl.
33175 (exchange): Remove forward decl; no longer needed.
33176 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
33177 Define with prototype.
33178 * lib/getopt1.c (const): Remove macro.
33179 (getopt_long, getopt_long_only, main): Define with prototype.
33181 * lib/getugroups.c: Include <string.h> unconditionally.
33183 * lib/getusershell.c: Include <stdlib.h> unconditionally.
33184 (getusershell, setusershell, endusershell, readname, main):
33185 Define with prototypes.
33187 * lib/group-member.c: Include group-member.h first.
33188 Include <stdlib.h> unconditionally.
33190 * lib/hard-locale.c: Include hard-locale.h first.
33191 Include <stdlib.h>, <string.h> unconditionally.
33193 * lib/hash.c (free, malloc): Remove decls.
33194 Include <stdlib.h> unconditionally.
33196 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
33197 (getenv): Do not declare.
33199 * lib/idcache.c: Include <string.h> unconditionally.
33201 * lib/long-options.c: Include long-options.h first, to test interface.
33202 Include <stdlib.h> unconditionally.
33204 * lib/makepath.c: Include makepath.h first, to test interface.
33205 Include <stdlib.h> and <string.h> unconditionally.
33207 * lib/linebuffer.c: Include <stdlib.h>.
33208 (free): Remove decl.
33210 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
33211 stddef.h. rpl_malloc returns void *, not char *.
33212 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
33215 * lib/md5.h: Include <limits.h> unconditionally.
33216 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
33217 (__P): Remove; all uses removed.
33218 * lib/md5.c: Include "md5.h" first.
33219 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
33220 md5_buffer, md5_process_bytes, md5_process_block):
33221 Define with prototypes.
33222 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
33223 * lib/sha.c: Include "sha.h" first.
33224 Include <stdlib.h>, <string.h> unconditionally.
33226 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
33227 * lib/memcmp.c (__ptr_t): Likewise.
33228 * lib/memrchr.c (__ptr_t): Likewise.
33229 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
33230 Include <string.h> unconditionally.
33231 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
33232 * lib/memchr.c: Include <stdlib.h> unconditionally.
33233 * lib/memchr.c (LONG_MAX): Remove.
33234 * lib/memrchr.c (LONG_MAX): Likewise.
33235 * lib/memchr.c (__memchr): Define via a prototype.
33236 * lib/memrchr.c (__memrchr): Likewise.
33237 * lib/memcmp.c (__P): Remove, and remove all uses.
33238 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
33239 Remove forward decls; no longer needed.
33240 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
33241 Use types required by C89 in prototype.
33243 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
33244 * lib/savedir.c: Likewise.
33245 * lib/mkdir.c (free): Remove decl.
33246 * lib/rmdir.c (rmdir): Define with a prototype.
33247 * lib/savedir.c: Include savedir.h first, to test interface.
33249 * lib/mktime.c (STDC_HEADERS): Remove.
33250 Include <stdlib.h>, <string.h> unconditionally.
33252 * lib/modechange.c: Include <stdlib.h> unconditionally.
33253 (malloc): Remove decl.
33255 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
33256 (free): Remove decl.
33258 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
33259 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
33260 (This type really should be intptr_t, but that's a C99ism.)
33261 (_obstack_memcpy): Remove: all uses changed to memcpy.
33262 Include <string.h> unconditionally.
33263 (struct obstack): Assume __STDC__ for types of members
33264 chunkfun, freefun, extra_arg.
33265 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
33266 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
33267 obstack_begin, obstack_specify_allocation,
33268 obstack_specify_allocation_with_arg, obstack_chunkfun,
33269 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
33270 Remove unprototyped decls and the macros that use them.
33271 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
33272 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
33273 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
33274 (defined __STDC__ && __STDC__)]:
33275 Remove nonprototyped code.
33276 Include <stdlib.h> unconditionally.
33277 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
33278 _obstack_allocated_p, _obstack_free, obstack_free,
33279 _obstack_memory_used, print_and_abort):
33280 Define using prototypes.
33281 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
33282 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
33283 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
33284 obstack_next_free, obstack_object_size, obstack_room) [0]:
33285 Remove unused, unprototyped code.
33287 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
33289 * lib/physmem.c (physmem_total, physmem_available, main): Define
33292 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
33293 (main): Define with a prototype.
33295 * lib/posixver.c (getenv): Remove decl.
33297 * lib/putenv.c (malloc): Returns void *, not char *.
33298 Include <string.h> unconditionally.
33299 (strchr, memcpy, NULL): Do not define.
33301 * lib/readtokens.c: Include readtokens.h first, to test interface.
33302 Include <stdlib.h>, <string.h> unconditionally.
33303 (init_tokenbuffer): Define with a prototype.
33305 * lib/regex.c (PARAMS): Remove. All uses removed.
33306 All uses of _RE_ARGS removed, too.
33307 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
33309 (bzero): Assume memset exists.
33310 (memcmp, memcpy, NULL): Remove.
33311 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
33312 char, or assignments to local vars of type signed char.
33313 (init_syntax_once, PREFIX(extract_number_and_incr),
33314 PREFIX(print_partial_compiled_pattern),
33315 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
33316 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
33317 PREFIX(regex_grow_registers), PREFIX(regex_compile),
33318 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
33319 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
33320 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
33321 wcs_compile_range, byte_compile_range, truncate_wchar,
33322 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
33323 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
33324 count_mbs_length, wcs_re_match_2_internal,
33325 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
33326 PREFIX(alt_match_null_string_p),
33327 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
33328 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
33329 regfree, PREFIX(extract_number)): Define with prototype. Remove
33330 now-unnecessary declaration, if any.
33331 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
33333 Remove now-unnecessary casts among pointer types.
33334 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
33336 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
33337 (free): Remove decl.
33339 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
33341 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
33342 (free): Remove decl.
33344 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
33345 * lib/xgetcwd.c: Likewise.
33347 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
33348 (free): Remove decl.
33350 * lib/strchrnul.c (strchrnul): Define with a prototype.
33351 Fix bug: c_in was not converted to char before searching.
33353 The following changes are not K&R related:
33355 * lib/group-member.h: Include <sys/types.h>, so that this file is
33357 * lib/makepath.h: Likewise.
33359 * lib/getusershell.c (readname, default_index, line_size, readname):
33360 Use size_t, not int, for sizes.
33361 (readname): If the size overflows, report an error instead of
33364 2003-09-09 Paul Eggert <eggert@twinsun.com>
33366 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
33369 2003-09-09 Paul Eggert <eggert@twinsun.com>
33371 * README: New section: portability guidelines.
33373 2003-09-09 Derek Robert Price <derek@ximbiot.com>
33375 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
33378 2003-09-09 Derek Robert Price <derek@ximbiot.com>
33380 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
33382 2003-09-08 Paul Eggert <eggert@twinsun.com>
33384 Assume C89 or better; remove K&R cruft.
33385 A few of these changes were first proposed by Derek Robert Price
33386 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
33388 * lib/addext.c: Include <string.h> unconditionally.
33389 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
33390 Don't declare getenv or malloc.
33392 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
33393 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
33395 (find_stack_direction, alloca): Use prototypes.
33397 * lib/atexit.c (atexit): Define using a prototype.
33399 * lib/basename.c, dirname.c, stripslash.c:
33400 Include <string.h> unconditionally.
33402 * lib/bcopy.c: Include <stddef.h>.
33403 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
33405 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
33407 * lib/error.h (error, error_at_line, error_print_progname)
33408 [! (defined (__STDC__) && __STDC__)]: Remove decls.
33409 * lib/error.c: Include error.h first, to check interface.
33410 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
33411 (VA_START): Remove; all uses changeed to va_start.
33412 (exit, strerror): Remove decls.
33413 (error_print_progname): Prototype uncondionally.
33414 Don't include <errno.h>; no longer needed.
33415 (private_strerror): Remove.
33416 (error_tail): Always define.
33417 (error, error_at_line): Assume C89 or better; always use prototypes.
33418 * lib/fatal.c: Include "fatal.h" first, to test interface.
33419 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
33420 (VA_START): Remove; all uses changed to va_start.
33421 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
33423 (exit): Remove decl.
33424 (fatal): Prototype unconditionally. Assume va_start works.
33425 Abort at end, to pacify gcc.
33427 * lib/euidaccess.c (main): Define with a prototype.
33429 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
33431 * lib/exitfail.c: Include <stdlib.h> unconditionally.
33433 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
33435 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
33436 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
33437 (getenv): Remove decl.
33438 (fnmatch): Define using a prototype.
33439 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
33440 (FCT): Define using a prototype.
33442 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
33444 * lib/gethostname.c: Include <stddef.h>.
33445 (gethostname): Define with prototype. Length is size_t, not int.
33447 2003-09-08 Paul Eggert <eggert@twinsun.com>
33449 Assume C89 or better; remove K&R cruft.
33450 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
33451 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
33452 string.h, getenv, malloc.
33453 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
33455 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
33456 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
33457 do not check for strerror.
33458 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
33459 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
33460 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
33461 do not check for doprnt or vprintf.
33462 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
33463 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
33465 2003-09-08 Paul Eggert <eggert@twinsun.com>
33467 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
33468 getversion.c should have been removed then, but was accidentally
33471 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
33472 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
33474 2003-09-08 Karl Berry <karl@gnu.org>
33476 * config/config.sub, config.guess, srclistvars.sh: update from savannah
33477 config, forget about prep.
33479 * config/depcomp, missing: update from automake.
33481 2003-09-07 Paul Eggert <eggert@twinsun.com>
33483 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
33484 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
33486 2003-09-07 Paul Eggert <eggert@twinsun.com>
33488 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
33489 copy_tm_result. Bug reported by Simon Josefsson in
33490 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
33492 2003-09-06 Paul Eggert <eggert@twinsun.com>
33494 * m4/time_r.m4: New file.
33495 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
33496 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
33497 is. Check for timegm declaration.
33498 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
33499 Do not check for gmtime_r.
33500 Replace mktime if __mktime_internal does not exist and if mktime
33501 hasn't been replaced already.
33503 2003-09-06 Paul Eggert <eggert@twinsun.com>
33505 * lib/time_r.c, lib/time_r.h: New files.
33507 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
33509 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
33510 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
33512 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
33514 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
33515 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
33516 Include <time_r.h>.
33518 * lib/timegm.c: Switch to glibc implementation, with the following
33520 [defined HAVE_CONFIG_H]: Include <config.h>.
33521 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
33522 (__mktime_internal) [!defined _LIBC]: New decl.
33523 (__gmtime_r) [!defined _LIBC]: New macro and function.
33524 (timegm): Use a prototype, since gnulib assumes C89.
33525 Do not bother declaring tmp to be const, as it's not really usefu.
33526 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
33527 (timegm): Declare only if HAVE_DECL_TIMEGM.
33529 2003-09-06 Paul Eggert <eggert@twinsun.com>
33531 * MODULES.html.sh (func_all_modules): Add time_r.
33532 * modules/time_r: New file.
33533 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
33534 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
33536 2003-09-03 Paul Eggert <eggert@twinsun.com>
33538 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
33539 Bug reported by Lute Kamstra in
33540 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
33542 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
33543 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
33544 course with correspondingly smaller numbers for tomorrow and
33545 yesterday. From Tadayoshi Funaba. Originally installed into
33546 sh-utils on 1999-08-07, but the patch got lost (I guess during the
33549 2003-08-31 Simon Josefsson <jas@extundo.com>
33551 * modules/timegm: New file.
33552 * MODULES.html.sh (func_all_modules): Add timegm.
33554 2003-08-31 Simon Josefsson <jas@extundo.com>
33556 * m4/timegm.m4: New file.
33558 2003-08-31 Simon Josefsson <jas@extundo.com>
33560 * lib/timegm.h: New file.
33561 * lib/timegm.c: New file. Based on
33562 wget-1.8.2/src/http.c:mktime_from_utc.
33564 2003-08-31 Karl Berry <karl@gnu.org>
33566 * lib/argp.h: update from libc.
33568 2003-08-28 Bruno Haible <bruno@clisp.org>
33570 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
33571 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
33572 followed by '#define fnmatch fnmatch_posix' gives an error.
33574 2003-08-28 Bruno Haible <bruno@clisp.org>
33576 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
33577 warning on QNX, which defines O_BINARY to 000000.
33579 2003-08-27 Jim Meyering <jim@meyering.net>
33581 * m4/mkstemp.m4: Require that the system mkstemp be able to create
33582 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
33583 would fail after 32. Reported by Danny Levinson. Details here:
33584 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
33586 2003-08-24 Bruno Haible <bruno@clisp.org>
33588 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
33589 MSVC7 <stdio.h> is included later.
33591 2003-08-22 Simon Josefsson <jas@extundo.com>
33593 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
33595 2003-08-20 Karl Berry <karl@gnu.org>
33597 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
33599 2003-08-20 Bruno Haible <bruno@clisp.org>
33601 * modules/progname: New file.
33602 * MODULES.html.sh (func_all_modules): Add progname.
33604 2003-08-20 Bruno Haible <bruno@clisp.org>
33606 * lib/progname.h: New file, from GNU gettext.
33607 * lib/progname.c: New file, from GNU gettext.
33608 * lib/progreloc.c: New file, from GNU gettext.
33610 2003-08-19 Jim Meyering <jim@meyering.net>
33612 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
33613 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
33615 2003-08-19 Bruno Haible <bruno@clisp.org>
33617 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
33620 2003-08-19 Bruno Haible <bruno@clisp.org>
33622 * lib/xstrdup.c: Assume <string.h> exists.
33624 2003-08-18 Paul Eggert <eggert@twinsun.com>
33626 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
33629 2003-08-18 Jim Meyering <jim@meyering.net>
33631 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
33632 * m4/lib-ld.m4: Likewise.
33634 2003-08-18 Jim Meyering <jim@meyering.net>
33636 * lib/setenv.h: Indent nested cpp directive.
33637 * lib/vasnprintf.c: Remove trailing blanks.
33639 2003-08-17 Simon Josefsson <jas@extundo.com>
33641 * modules/xstrndup: New file.
33642 * MODULES.html.sh (func_all_modules): Add xstrndup.
33644 2003-08-17 Simon Josefsson <jas@extundo.com>
33646 * modules/argp: Fix autoconf macro name. Add more dependencies.
33648 2003-08-17 Simon Josefsson <jas@extundo.com>
33650 * m4/xstrndup.m4: New file.
33652 2003-08-17 Simon Josefsson <jas@extundo.com>
33654 * m4/argp.m4: New file.
33656 2003-08-17 Simon Josefsson <jas@extundo.com>
33657 Bruno Haible <bruno@clisp.org>
33659 * lib/xstrndup.h: New file.
33660 * lib/xstrndup.c: New file.
33662 2003-08-17 Bruno Haible <bruno@clisp.org>
33664 * modules/strndup (Files, Include): Add lib/strndup.h.
33666 2003-08-17 Bruno Haible <bruno@clisp.org>
33668 * modules/euidaccess (Files): Add lib/euidaccess.h.
33670 2003-08-17 Bruno Haible <bruno@clisp.org>
33672 * lib/strndup.h: New file.
33674 2003-08-17 Bruno Haible <bruno@clisp.org>
33676 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
33677 like AC_GNU_SOURCE.
33678 * modules/extensions (configure.ac): Comment out the invocation of
33679 gl_USE_SYSTEM_EXTENSIONS.
33681 2003-08-16 Paul Eggert <eggert@twinsun.com>
33683 Merges from coreutils, etc.
33684 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
33685 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
33686 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
33688 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
33689 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
33691 2003-08-16 Paul Eggert <eggert@twinsun.com>
33693 Document merge from coreutils.
33694 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
33695 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
33696 * modules/utime: Add m4/utimes-null.m4.
33698 2003-08-16 Paul Eggert <eggert@twinsun.com>
33700 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
33701 space, undoing this 2003-08-12 change:
33702 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
33704 2003-08-16 Paul Eggert <eggert@twinsun.com>
33706 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
33707 strtoul.c from libc, undoing this 2003-08-12 change:
33708 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
33710 2003-08-16 Jim Meyering <jim@meyering.net>
33712 Merges from coreutils.
33713 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
33714 prefix. Adjust cache variables similarly. Create 500 rather than
33715 just 300 files, to exercise bug on Darwin6.5, too.
33716 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
33718 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
33719 AM_SYS_POSIX_TERMIOS.
33720 Reported by mkc@mathdogs.com.
33721 Also change use of $am_cv_sys_posix_termios
33722 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
33723 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
33724 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
33725 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
33726 in /proc/mounts until it finds one with matching device number. This
33727 is unnecessary when the FILE argument *is* a mount point. No stat call
33728 is necessary in that case. So, disable the statvfs-testing code on
33729 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
33730 as RedHat bug# 84846.
33731 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
33732 to 1MB, so as not to render systems with no stack size limit (e.g.,
33733 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
33734 Include <unistd.h>. On some systems,
33735 it is required for the definition of _SC_PAGESIZE.
33737 2003-08-16 Jim Meyering <jim@meyering.net>
33739 Merge from coreutils.
33740 * lib/xstrtoimax.c: #else #if -> #elif.
33741 * lib/xstrtoumax.c: Likewise.
33743 2003-08-16 Jim Meyering <jim@meyering.net>
33745 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
33746 * m4/utimes.m4: Removed.
33747 * m4/utimes-null.m4: Renamed from utimes.m4.
33749 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
33750 to 1MB, so as not to render systems with no stack size limit (e.g.,
33751 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
33752 Include <unistd.h>. On some systems,
33753 it is required for the definition of _SC_PAGESIZE.
33755 2003-08-16 Jim Meyering <jim@meyering.net>
33756 and Paul Eggert <eggert@cs.ucla.edu>
33758 Merges from coreutils, etc.
33760 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
33761 using the latest version from cvs. This avoids problems with #line
33762 directives using a vendor (Sun) compiler.
33763 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
33764 Don't set GETGROUPS_LIB here; now it's
33765 done via getgroups.m4's wrapper function.
33766 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
33767 rather than just in sh-util/configure.in, so that the
33768 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
33770 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
33771 AC_FUNC_GETLOADAVG where to find getloadavg.c.
33772 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
33773 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
33774 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
33775 Remove code that is now done by the newly-required macros.
33776 Append $(EXEEXT) to DF_PROG.
33777 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
33778 Do not invoke or require the following here,
33779 since prereq.m4 or some gnulib .m4 now does this for us:
33780 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
33781 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
33782 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
33783 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
33784 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
33785 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
33786 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
33788 Do not replace the following functions, as this is now the job
33789 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
33790 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
33791 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
33792 atexit getpass, strdup, getpagesize.
33794 Do not check for the following functions, as this is now the job
33795 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
33796 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
33798 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
33799 Check for sys/sysctl.h.
33800 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
33801 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
33802 of checking for ssize_t ourselves.
33804 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
33805 Require every macro that gnulib/modules/* suggests for us.
33806 (jm_PREREQ_ADDEXT): New macro.
33807 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
33808 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
33810 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
33811 (gl_PHYSMEM): Use it.
33812 Also check for `table' function.
33813 Check for new headers and functions.
33814 Add check for sys/sysmp.h.
33815 With suggestions from Kaveh Ghazi.
33816 Ignore headers that are present but cannot be compiled. This
33817 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
33820 2003-08-15 Paul Eggert <eggert@twinsun.com>
33822 Document merge from coreutils.
33823 * modules/userspec: Depend on posixver.
33824 * modules/strftime: Depend on tzset.
33826 2003-08-15 Paul Eggert <eggert@twinsun.com>
33828 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
33829 rather than tab, after '#' in shell-script copyright notices.
33830 Suggested by Bruno Haible.
33832 2003-08-15 Paul Eggert <eggert@twinsun.com>
33834 * config/srclist-update: Use three spaces, rather than tab, after '#'
33835 in shell-script copyright notices. Suggested by Bruno Haible.
33836 Remove unnecessary parenthesization in regular expression.
33838 2003-08-15 Jim Meyering <jim@meyering.net>
33840 Merge from coreutils.
33841 * lib/xgethostname.c: Include <stdlib.h>.
33842 (xghostname): Don't exit for anything other than memory-related
33843 failure; just return NULL.
33844 * lib/userspec.c: Include "posixver.h".
33845 (parse_user_spec): Accept `.' as a separator only
33846 in pre-POSIX-200112 mode.
33847 * lib/strtoimax.c: Use #elif rather than #else #if.
33848 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
33849 Remove function, now that we can rely on a working tzset function.
33850 [!_LIBC]: Ensure that the required autoconf test has been run.
33851 [!defined _NL_CURRENT && HAVE_STRFTIME]:
33852 Use underlying_strftime for %r.
33853 * lib/sha.c: Merge in some clean-up and optimization changes from
33855 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
33856 Ensure that it is a multiple of 64.
33857 Rearrange loop exit tests so as to avoid performing an
33858 additional fread after encountering an error or EOF.
33859 * lib/realloc.c: Update copyright date.
33861 2003-08-15 Jim Meyering <jim@meyering.net>
33862 and Paul Eggert <eggert@twinsun.com>
33864 Merge from coreutils.
33865 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
33866 member but strut utmpx does not. Needed for AIX 4.3.3.
33867 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
33869 2003-08-15 Jim Meyering <jim@meyering.net>
33870 and Paul Eggert <eggert@cs.ucla.edu>
33872 Merges from coreutils, etc.
33873 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
33874 Require gl_FUNC_TZSET_CLOBBER.
33875 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
33876 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
33879 2003-08-14 Paul Eggert <eggert@twinsun.com>
33881 Help the merge from coreutils.
33882 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
33883 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
33884 * m4/tzset.m4: Use it too.
33886 2003-08-14 Paul Eggert <eggert@twinsun.com>
33888 * modules/tzset: New file.
33890 2003-08-14 Jim Meyering <jim@meyering.net>
33892 Merges from coreutils.
33893 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
33894 variable names, rather than @FNMATCH_H@.
33895 * modules/alloca: Likewise for $(ALLOCA_H).
33897 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
33898 the three copies of the literal target, `fnmatch.h'.
33899 * modules/alloca (alloca.h): Likewise.
33901 2003-08-14 Jim Meyering <jim@meyering.net>
33903 Merge from coreutils.
33904 * m4/tzset.m4: New file.
33905 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
33906 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
33907 otherwise, AIX 5.1 systems would end up using the latter.
33908 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
33909 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
33910 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
33911 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
33913 2003-08-14 Jim Meyering <jim@meyering.net>
33915 Merge from coreutils.
33916 * lib/obstack.h: Whitespace changes.
33917 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
33918 and xcalloc return values.
33919 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
33920 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
33921 hang on OSF/1 5.1 for DIR on both local and remote file systems.
33922 Reported by (and fix confirmed by) Nelson H. F. Beebe.
33923 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
33925 Use mntctl's return value to drive the entry-processing loop, since
33926 we can't rely on the value of the vmt_length member in the last
33927 entry. On some systems doing so could result in exhausting
33928 virtual memory. Based in part on a patch from Mike Jetzer.
33930 2003-08-14 Jim Meyering <jim@meyering.net>
33931 and Paul Eggert <eggert@twinsun.com>
33933 Merges from coreutils, plus other fixes.
33934 * lib/physmem.c: Merge in portability changes from gcc/libiberty
33935 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
33936 for credits and details. Thanks to Kaveh Ghazi for helping
33937 to keep these files in sync.
33938 (ARRAY_SIZE): Define it.
33939 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
33940 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
33941 (memcasecmp): Don't assume size_t fits in unsigned int.
33942 Remove casts and duplicate code.
33943 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
33944 (memcpy): Remove definition.
33945 Merge in some clean-up and optimization changes from glibc.
33946 [BLOCKSIZE]: Move definition to top of file.
33947 Ensure that it is a multiple of 64.
33948 Rearrange loop exit tests so as to avoid performing an
33949 additional fread after encountering an error or EOF.
33950 * lib/md5.h (md5_uintptr): Define.
33951 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
33952 return to the initial working directory. Preserve errno
33954 * lib/idcache.c: Include "xalloc.h".
33955 (xmalloc, xrealloc): Remove decls.
33956 (getuser): Remove casts no longer required in C89.
33957 * lib/human.c: Include stdio.h, for sprintf.
33958 * lib/group-member.c: Include "xalloc.h".
33959 (xmalloc, xrealloc): Remove decls.
33960 (get_group_info): Remove casts no longer required in C89.
33961 * lib/getusershell.c (readname): Remove casts no longer required in
33963 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
33964 * lib/getline.c: Whitespace fix, from coreutils.
33966 2003-08-13 Paul Eggert <eggert@twinsun.com>
33968 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
33971 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
33972 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
33973 Undo previous (whitespace-only) change.
33975 2003-08-13 Paul Eggert <eggert@twinsun.com>
33977 * lib/exclude.c: Include <ctype.h>
33978 (IN_CTYPE_DOMAIN): New macro.
33979 (is_space): New fn.
33980 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
33983 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
33984 Undo previous (whitespace-only) change.
33986 2003-08-13 Paul Eggert <eggert@twinsun.com>
33988 * config/srclist-update: Change update back to the old behavior,
33989 leaving whitespace alone. Use one 'sed' command rather than a
33991 (fixlicense): Now a variable, not a function.
33992 (remove_trailing_blanks): Remove.
33993 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
33994 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
33995 Undo previous (whitespace-only) change.
33997 2003-08-12 Paul Eggert <eggert@twinsun.com>
33999 Merge from coreutils.
34000 * modules/euidaccess: Add lib_SOURCES, include for new
34003 2003-08-12 Paul Eggert <eggert@twinsun.com>
34005 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
34006 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
34007 Normalize leading white space and remove trailing white space.
34009 Merge from coreutils
34010 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
34012 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
34013 0.12.1. These files are now being upgraded automatically by
34014 ../config/srclist-update.
34016 2003-08-12 Paul Eggert <eggert@twinsun.com>
34018 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
34019 Normalize leading white space and remove trailing white space.
34020 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
34021 notice, as per ../config/srclist-update.
34023 Merge from coreutils.
34024 * lib/euidaccess.h: New file.
34025 * lib/euidaccess.c: Include it.
34026 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
34027 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
34028 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
34030 2003-08-12 Paul Eggert <eggert@twinsun.com>
34032 * config/srclist-update: Add copyright notice.
34033 (remove_id_lines, remove_trailing_blanks): New constants.
34034 (fixfile): Use them to normalize spacing a bit in copied files.
34035 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
34036 Normalize leading white space and remove trailing white space.
34038 * config/texinfo.tex: Sync with texinfo.
34040 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
34041 strtoul.c from libc, to merge coreutils whitespace changes.
34043 * config/srclist.txt: Get the following m4 files from gettext:
34044 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
34045 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
34046 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
34049 2003-08-12 Karl Berry <karl@gnu.org>
34051 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
34054 2003-08-11 Paul Eggert <eggert@twinsun.com>
34056 * modules/gnu-source, m4/gnu-source.m4:
34057 Remove; we're assuming Autoconf 2.54 or later now.
34058 Suggested by Bruno Haible.
34059 * MODULES.html.sh (func_all_modules): Remove gnu-source.
34061 2003-08-11 Bruno Haible <bruno@clisp.org>
34063 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
34065 2003-08-11 Bruno Haible <bruno@clisp.org>
34067 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
34068 (vasnprintf): Use it instead of wcslen.
34070 2003-08-11 Bruno Haible <bruno@clisp.org>
34072 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
34073 value to ensure that _Bool promotes to int. Use #define for _Bool when
34074 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
34076 2003-08-10 Karl Berry <karl@gnu.org>
34078 * lib/regex.h: update from libc (whitespace fix).
34080 2003-08-09 Paul Eggert <eggert@twinsun.com>
34082 Merge some files from coreutils. These changes were
34083 originally made by Jim Meyering.
34084 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
34085 many older Unixes require this.
34086 * lib/alloca.c (alloca): Remove cast to argument of free;
34087 no longer needed in C89.
34088 * lib/alloca_.h, regex.h: Fix white space to match
34089 what GNU indent does.
34091 2003-08-09 Paul Eggert <eggert@twinsun.com>
34093 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
34094 apparently Emacs's Unicode mode got confused before my 2003-08-05
34097 2003-08-08 Paul Eggert <eggert@twinsun.com>
34099 * m4/extensions.m4: New file.
34100 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
34101 Require gl_USE_SYSTEM_EXTENSIONS.
34102 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
34103 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
34105 2003-08-08 Paul Eggert <eggert@twinsun.com>
34107 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
34108 * modules/extensions, modules/gnu-source: New files.
34109 * modules/timespec, modules/unlocked-io: Depend on extensions.
34111 2003-08-07 Paul Eggert <eggert@twinsun.com>
34113 * modules/restrict: New file.
34114 * MODULES.html.sh (func_all_modules): Add restrict.
34115 * modules/regex: Depend on restrict.
34117 2003-08-07 Paul Eggert <eggert@twinsun.com>
34119 * m4/restrict.m4: New file.
34120 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
34122 2003-08-07 Bruno Haible <bruno@clisp.org>
34124 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
34125 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
34127 2003-08-07 Bruno Haible <bruno@clisp.org>
34129 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
34130 makes the module 'getndelim2' compatible with the module 'getline'.
34132 2003-08-05 Paul Eggert <eggert@twinsun.com>
34134 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
34135 byte with "\201" to avoid glitches when editing that source file
34136 with multi-gnome-terminal.
34138 2003-08-05 Paul Eggert <eggert@twinsun.com>
34140 * lib/bumpalloc.h: Remove.
34142 2003-08-05 Paul Eggert <eggert@twinsun.com>
34144 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
34145 * modules/bumpalloc: Remove.
34147 2003-08-04 Paul Eggert <eggert@twinsun.com>
34149 * lib/getloadavg.c: Change copyright notice and spacing to conform to
34152 Merge from coreutils.
34153 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
34155 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
34156 from Karl Berry, implemented by Jim Meyering.
34157 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
34158 from Dmitry V. Levin.
34159 Remove anachronistic cast of xrealloc.
34160 * lib/fnmatch_.h (__const): Remove. Use 'const'.
34161 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
34162 type. Otherwise, it wouldn't compile with at least /bin/cc on
34163 ymp-cray-unicos9.0.2.X.
34164 Combine two mostly-identical uses of alloca into one.
34165 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
34167 2003-08-04 Dave Love <d.love@dl.ac.uk>
34171 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
34172 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
34173 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
34174 obsolete NLIST_NAME_UNION.
34175 [__GNU__]: Undef BSD and FSCALE.
34176 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
34178 2003-08-03 Paul Eggert <eggert@twinsun.com>
34180 * lib/stdbool_.h (_Bool): Make it signed char, instead of
34181 an enum type, so that it's guaranteed to promote to int. See:
34182 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
34184 2003-08-03 Karl Berry <karl@gnu.org>
34186 * config/depcomp: update from automake.
34188 2003-07-31 Paul Eggert <eggert@twinsun.com>
34190 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
34191 (strerror): Don't assume that a printable int fits in 14 bytes.
34193 2003-07-31 Bruno Haible <bruno@clisp.org>
34195 * modules/getpass-gnu: New file.
34196 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
34198 2003-07-31 Bruno Haible <bruno@clisp.org>
34200 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
34202 2003-07-24 Karl Berry <karl@gnu.org>
34204 * config/missing: update from automake.
34206 2003-07-24 Derek Robert Price <derek@ximbiot.com>
34207 Bruno Haible <bruno@clisp.org>
34209 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
34210 * lib/getline.c (getline, getdelim): Likewise.
34211 Remove _GNU_SOURCE define; now it's defined in config.h through
34214 2003-07-23 Karl Berry <karl@gnu.org>
34216 * config/config.sub: update from prep.
34218 2003-07-22 Paul Eggert <eggert@twinsun.com>
34220 * modules/xalloc (Depends-on): Add exitfail.
34221 * modules/xmemcoll: Likewise.
34223 2003-07-22 Paul Eggert <eggert@twinsun.com>
34225 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
34226 over-parenthesization in macros.
34228 Sync with coreutils.
34230 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
34233 Use `exit_failure' for xalloc and xmemcoll instead of their own
34234 private exit-failure variables.
34235 * lib/xalloc.h (xalloc_exit_failure): Remove.
34236 * lib/xmalloc.c: Likewise. Include exitfail.h.
34237 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
34238 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
34239 * lib/xmemcoll.c: Likewise. Include exitfail.h.
34240 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
34242 2003-07-20 Jim Meyering <jim@meyering.net>
34244 * modules/closeout (Depends-on): Add exitfail.
34245 Suggestion from Bruno Haible.
34247 2003-07-19 Karl Berry <karl@gnu.org>
34249 * config/config.sub: update from prep.
34251 2003-07-18 Paul Eggert <eggert@twinsun.com>
34253 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
34255 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
34256 to test that it can stand by itself. Include "exitfail.h".
34257 Clients should set exit_failure instead.
34258 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
34260 2003-07-18 Bruno Haible <bruno@clisp.org>
34262 * modules/getndelim2: New file.
34263 * modules/getline: Share files with module getndelim2.
34264 * modules/getnline: Depend on getndelim2 instead of sharing files with
34265 it. Add getnline.c to lib_SOURCES.
34266 * MODULES.html.sh (func_all_modules): Add getndelim2.
34268 2003-07-18 Bruno Haible <bruno@clisp.org>
34270 * m4/getndelim2.m4: New file.
34271 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
34272 invoke gl_PREREQ_GETNDELIM2.
34273 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
34274 gl_PREREQ_GETNDELIM2.
34275 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
34278 2003-07-18 Bruno Haible <bruno@clisp.org>
34280 * lib/getndelim2.h: New file.
34281 * lib/getndelim2.c: Make into a module of its own. Include config.h,
34283 (getndelim2): Make non-static. Change return type to ssize_t.
34284 * lib/getline.h: Change argument names.
34285 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
34286 * lib/getnline.c: Include getndelim2.h.
34288 2003-07-18 Andreas Schwab <schwab@suse.de>
34290 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
34292 2003-07-17 Karl Berry <karl@gnu.org>
34294 * config/config.sub: update from prep.
34296 2003-07-17 Bruno Haible <bruno@clisp.org>
34298 * modules/getnline: New file.
34299 * modules/getline: Add lib/getndelim2.c to source file list.
34300 * MODULES.html.sh (func_all_modules): Add getnline.
34302 2003-07-17 Bruno Haible <bruno@clisp.org>
34304 * m4/getnline.m4: New file.
34306 2003-07-17 Bruno Haible <bruno@clisp.org>
34308 * m4/Makefile.am.in: Remove file.
34309 * m4/Makefile.am: Remove file.
34310 * m4/Makefile.in: Remove file.
34312 2003-07-17 Bruno Haible <bruno@clisp.org>
34314 * lib/getnline.h: New file.
34315 * lib/getnline.c: New file.
34316 * lib/getndelim2.c: New file, extracted from getline.c.
34317 (getndelim2): Renamed from getdelim2, with added nmax argument.
34318 * lib/getline.c: Include getndelim2.c.
34319 (getdelim2): Moved out to getndelim2.c.
34320 (getline, getdelim): Update.
34322 2003-07-17 Bruno Haible <bruno@clisp.org>
34324 * lib/Makefile.am: Remove file.
34325 * lib/Makefile.in: Remove file.
34327 2003-07-17 Bruno Haible <bruno@clisp.org>
34329 * configure.in: Remove file.
34330 * Makefile.in: Remove file.
34332 2003-07-17 Bruno Haible <bruno@clisp.org>
34334 * MODULES.html.sh: Put the </BODY> right before </HTML>.
34336 2003-07-16 Karl Berry <karl@gnu.org>
34338 * config/srclist-update: was running fixlicense twice, which caused
34339 texinfo.tex to be nullified for some reason. Simplify,
34340 $gplsrc is no longer needed as far as I can see?
34342 2003-07-16 Jim Meyering <jim@meyering.net>
34344 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
34346 2003-07-15 Paul Eggert <eggert@twinsun.com>
34348 * config/srclist.txt: Get the following files from gettext-runtime/intl
34349 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
34350 ref-del.sin. From Bruno Haible.
34351 * config/srclist-update (fixfile): Change grep pattern again, since the
34352 previous fix didn't work (there was another trailing $). Use
34353 '[$]' to escape the $s.
34355 2003-07-15 Karl Berry <karl@gnu.org>
34357 * lib/vasnprintf.c: update from gettext.
34359 2003-07-15 Karl Berry <karl@gnu.org>
34361 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
34362 gets expanded when surrounded by '$'.
34364 2003-07-15 Jim Meyering <jim@meyering.net>
34366 * modules/save-cwd: Don't depend on error. From Derek Price.
34368 2003-07-15 Jim Meyering <jim@meyering.net>
34370 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
34372 2003-07-14 Simon Josefsson <jas@extundo.com>
34374 * modules/mempcpy: New file.
34375 * MODULES.html.sh (func_all_modules): Add mempcpy.
34377 2003-07-14 Simon Josefsson <jas@extundo.com>
34379 * m4/mempcpy.m4: New file.
34381 2003-07-14 Simon Josefsson <jas@extundo.com>
34383 * lib/mempcpy.h: New file.
34384 * lib/mempcpy.c: New file.
34386 2003-07-14 Paul Eggert <eggert@twinsun.com>
34388 * modules/getdate, modules/posixtm: Depend on mktime.
34390 2003-07-14 Paul Eggert <eggert@twinsun.com>
34392 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
34393 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
34394 unicodeio.c, unicodeio.h, unlocked-io.h:
34395 Switch from LGPL to GPL.
34397 2003-07-14 Paul Eggert <eggert@twinsun.com>
34399 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
34400 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
34401 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
34402 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
34403 vasprintf.c, vasprintf.h: Regenerate. These files are now being
34404 updated automatically by ../config/srclist-update. This changes
34405 their license from LPGL to GPL.
34407 2003-07-14 Paul Eggert <eggert@twinsun.com>
34409 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
34410 assumed to refer to the root of the most recent stable gettext version.
34411 * config/srclistvars.sh: Add defaults for eggert.
34412 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
34413 Match "This program" as well as "The program". This is needed
34416 2003-07-14 Jim Meyering <jim@meyering.net>
34418 Don't emit diagnostics. Let callers do that.
34419 * lib/save-cwd.c: Don't include "error.h".
34420 (save_cwd): Don't call error. Ensure that errno is valid
34421 when returning nonzero.
34423 * lib/save-cwd.h (restore_cwd): Update prototype.
34424 * lib/save-cwd.c (restore_cwd): Remove two parameters.
34425 Simplify. Don't call error upon failure. Let callers do that.
34426 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
34427 when auditing is enabled. But don't bother updating the #if.
34429 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
34431 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
34432 it breaks C++ compilation.
34433 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
34435 2003-07-10 Simon Josefsson <jas@extundo.com>
34437 * modules/strchrnul (Makefile.am): Add strchrnul.h.
34439 2003-07-10 Jim Meyering <jim@meyering.net>
34441 * m4/clock_time.m4: Remove trailing blank.
34442 * m4/intmax_t.m4: Likewise.
34444 2003-07-10 Jim Meyering <jim@meyering.net>
34446 * lib/vasnprintf.c: Remove trailing blanks.
34447 Make cpp indentation consistent.
34449 2003-07-09 Paul Eggert <eggert@twinsun.com>
34451 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
34452 posixver.c, strftime.c, strnlen.c, strverscmp.c:
34453 Switch from LGPL to GPL.
34455 2003-07-09 Paul Eggert <eggert@twinsun.com>
34457 * config/srclist.txt: Sort sublists. Add
34458 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
34459 that differ from gnulib for one reason or another; we'd like this list
34460 to be smaller but for now let's document what we have.
34462 2003-07-08 Paul Eggert <eggert@twinsun.com>
34464 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
34465 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
34466 and sweeter "eval x=$x".
34467 * config/srclist.txt: Get lib/argp* from glibc.
34469 2003-07-07 Paul Eggert <eggert@twinsun.com>
34471 * lib/mktime.c: Fix some boundary cases and remove need for floating
34474 Issue a compile-time diagnostic if time_t is floating point, or if
34475 two's complement arithmetic is not in effect, or if arithmetic
34476 right shift does not propagate the sign. These assumptions were
34477 all in the original code but they weren't checked.
34479 (TIME_T_MIDPOINT, verify): New macros.
34480 (__isleap): Remove; it has integer overflow problems.
34481 (leapyear): New function, without those problems.
34482 (ydhms_tm_diff): Remove; splitting into two parts.
34483 (ydhms_diff): New function, containing the arithmetic part of
34484 the old ydhms_tm_diff function. Issue a compile-time
34485 diagnostic if we are not using C99 integer division.
34486 Avoid casts when possible.
34487 (guess_time_tm): New function, containing the checking part of
34488 the old ydhms_tm_diff function. Return the new value, rather than
34489 the difference between it and the old. Accept a new argument T
34490 so that *T specifies the old value. Check for overflow in the result.
34492 (__mktime_internal): Use a time_t offset, not a long int offset.
34493 This undoes the 2003-06-04 change, which is no longer needed now
34494 that we have better overflow checking.
34495 (localtime_offset): Likewise.
34497 (__mktime_internal): Avoid harmful overflow on hosts where time_t
34498 and long are 64-bit but int is only 32-bit.
34499 (ydhms_diff): Use long int to store year1 and yday1.
34500 Issue a compile-time diagnostic if long int is not wide enough.
34502 (__mktime_internal): Use long int to store adjusted year and yday.
34503 Use plain C rather than preprocessor commands, if that doesn't
34505 Check for overflow (and try to repair) after each probe
34506 rather than checking only at the very end. This avoids some bugs
34507 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
34508 does not equal GMT offset at maximum time).
34509 Use integer to check for overflow rather than floating point; this
34510 is more portable to non-IEEE hosts, and is a tad faster.
34511 When we detect that we are oscillating between two values,
34512 don't check whether tm_isdst has the requested value, since
34513 we already know the answer. When tm_isdst has the wrong value,
34514 use a different heuristic to find the right one, based on the
34515 extreme values actually observed in practice in tz2003a,
34516 rather than the (overly optimistic) "previous 3 calendar quarters".
34518 (not_equal_tm, print_tm, check_result): Use "const T" rather than
34519 "T const" to accommodate glibc style.
34520 (check_result): Use less-confusing report format. "long" -> "long int.
34522 Don't loop if the iteration overflows time_t.
34523 Allow a negative step in the iteration.
34525 2003-07-06 Karl Berry <karl@gnu.org>
34527 * config/depcomp: update from automake.
34528 * config/config.sub: update from prep.
34530 2003-07-03 Karl Berry <karl@gnu.org>
34532 * config/config.guess: update from prep.
34534 2003-07-01 Paul Eggert <eggert@twinsun.com>
34536 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
34537 xreadlink.c now includes it unconditionally.
34539 2003-07-01 Paul Eggert <eggert@twinsun.com>
34541 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
34542 having it depend on HAVE_SYS_TYPES_H.
34544 2003-07-01 Bruno Haible <bruno@clisp.org>
34546 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
34547 <sys/types.h> should be sufficient.
34548 Reported by Paul Eggert.
34550 2003-06-26 Karl Berry <karl@gnu.org>
34552 * config/depcomp: update from automake.
34554 2003-06-26 Bruno Haible <bruno@clisp.org>
34556 * modules/human: Depend on module stdbool.
34558 2003-06-25 Bruno Haible <bruno@clisp.org>
34560 * modules/readlink: New file.
34561 * modules/xreadlink: Depend on it.
34562 * MODULES.html.sh (func_all_modules): Add readlink.
34564 2003-06-25 Bruno Haible <bruno@clisp.org>
34566 * m4/readlink.m4: New file.
34568 2003-06-25 Bruno Haible <bruno@clisp.org>
34570 * lib/readlink.c: New file.
34572 2003-06-22 Karl Berry <karl@gnu.org>
34574 * config/srclist.txt: update mkinstalldirs from automake.
34575 * config/mkinstalldirs: update.
34577 2003-06-22 Bruno Haible <bruno@clisp.org>
34579 Portability to mingw32.
34580 * m4/ssize_t.m4: New file, from GNU gettext.
34581 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
34582 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
34584 2003-06-22 Bruno Haible <bruno@clisp.org>
34586 * modules/safe-read: Add m4/ssize_t.m4.
34587 * modules/xreadlink: Add m4/ssize_t.m4.
34589 2003-06-20 Bruno Haible <bruno@clisp.org>
34591 Assume C89, so PARAMS isn't needed.
34592 * lib/unicodeio.h (PARAMS): Remove.
34593 * lib/unicodeio.c: Don't use PARAMS.
34595 2003-06-18 Karl Berry <karl@gnu.org>
34597 * config/config.{guess,sub}: update from prep.
34599 2003-06-18 Jim Meyering <jim@meyering.net>
34601 Merge changes from coreutils.
34602 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
34603 Remove explicit declarations of xmalloc and realloc.
34605 (read_utmp): Remove anachronistic cast of xmalloc.
34607 2003-06-17 Paul Eggert <eggert@twinsun.com>
34609 Assume C89, so PARAMS isn't needed.
34610 * lib/backupfile.h (PARAMS): Remove. All uses removed.
34611 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
34612 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
34613 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
34614 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
34615 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
34616 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
34617 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
34618 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
34619 lib/xstrtod.h, lib/xstrtol.h: Likewise.
34620 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
34621 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
34622 no longer needed. Anyway, config.h should always be included before any
34625 2003-06-11 Simon Josefsson <jas@extundo.com>
34627 * modules/sysexits: New file.
34628 * MODULES.html.sh (func_all_modules): Add sysexits.
34630 2003-06-11 Simon Josefsson <jas@extundo.com>
34632 * lib/sysexit_.h: New file.
34634 2003-06-11 Derek Price <derek@ximbiot.com>
34636 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
34639 2003-06-11 Bruno Haible <bruno@clisp.org>
34641 * m4/sysexits.m4: New file.
34643 2003-06-10 Simon Josefsson <jas@extundo.com>
34645 * lib/argp.h: New file, from glibc.
34646 * lib/argp-ba.c: New file, from glibc.
34647 * lib/argp-eexst.c: New file, from glibc.
34648 * lib/argp-fmtstream.c: New file, from glibc.
34649 * lib/argp-fmtstream.h: New file, from glibc.
34650 * lib/argp-fs-xinl.c: New file, from glibc.
34651 * lib/argp-help.c: New file, from glibc.
34652 * lib/argp-namefrob.h: New file, from glibc.
34653 * lib/argp-parse.c: New file, from glibc.
34654 * lib/argp-pv.c: New file, from glibc.
34655 * lib/argp-pvh.c: New file, from glibc.
34656 * lib/argp-xinl.c: New file, from glibc.
34658 2003-06-10 Simon Josefsson <jas@extundo.com>
34660 * modules/strchrnul: New file.
34662 2003-06-10 Simon Josefsson <jas@extundo.com>
34664 * modules/argp: New file.
34666 2003-06-10 Simon Josefsson <jas@extundo.com>
34668 * m4/strchrnul.m4: New file.
34670 2003-06-10 Simon Josefsson <jas@extundo.com>
34672 * lib/strchrnul.h: New file.
34673 * lib/strchrnul.c: New file.
34675 2003-06-10 Bruno Haible <bruno@clisp.org>
34677 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
34679 2003-06-07 Karl Berry <karl@gnu.org>
34681 * config/config.{guess,sub}: update from prep.
34683 2003-06-07 Jim Meyering <jim@meyering.net>
34685 * modules/strtod: Use $(...) notation, not @...@ for
34686 AC_REPLACE'd variables.
34687 * modules/localcharset: Likewise.
34689 2003-06-07 Jim Meyering <jim@meyering.net>
34691 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
34692 in place of my name in the copyright comment.
34693 Remove definition and uses of __P.
34696 * lib/stat.c: Don't declare xmalloc explicitly.
34697 Instead, include "xalloc.h".
34698 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
34699 xrealloc, and xcalloc return values.
34700 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
34702 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
34704 2003-06-07 Bruno Haible <bruno@clisp.org>
34706 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
34707 avoid AC_CONFIG_LINKS.
34708 * modules/fnmatch (Makefile.am): Use explicit creation rule for
34709 fnmatch.h, to avoid AC_CONFIG_LINKS.
34710 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
34712 2003-06-07 Bruno Haible <bruno@clisp.org>
34714 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
34715 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
34716 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
34718 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
34719 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
34722 2003-06-06 Jim Meyering <jim@meyering.net>
34724 Merge from coreutils.
34725 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
34726 Consolidate declarations and initializations of *_base* locals.
34728 Merge from coreutils.
34729 This avoids a core dump on systems without GNU putenv,
34730 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
34731 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
34732 (unsetenv): New static function, from GNU libc.
34733 (rpl_putenv): Use it.
34735 * lib/modechange.c: Remove trailing blanks.
34737 Merge from coreutils.
34738 * lib/fsusage.c: Remove declaration of statfs.
34739 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
34741 * lib/posixtm.c: Include <stdbool.h> unconditionally.
34743 2003-06-06 Jim Meyering <jim@meyering.net>
34745 * lib/stdbool_.h: Renamed from stdbool.h.in.
34747 2003-06-06 Jim Meyering <jim@meyering.net>
34748 Bruno Haible <bruno@clisp.org>
34750 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
34751 Adjust Makefile.am snippet not to redirect directly to target.
34752 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
34754 2003-06-05 Paul Eggert <eggert@twinsun.com>
34756 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
34757 mismatch, look in future quarters as well as past. This fixes a
34758 bug when processing fall-backwards gaps immediately after a long
34759 period of daylight-saving time.
34761 * lib/mktime.c: Assume freestanding C89 or better.
34762 (HAVE_LIMITS_H): Remove. Assume it's 1.
34763 (__P): Remove; not used.
34764 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
34765 (mktime, not_equal_tm, print_tm, check_result,
34766 main): Use prototypes. Use const * where appropriate.
34767 (main): Fix typo in testing code that uncovered by above changes.
34768 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
34770 2003-06-04 Paul Eggert <eggert@twinsun.com>
34772 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
34773 locale.h, localeconv. This merges changes from coreutils.
34775 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
34776 It can be removed after the next Autoconf is released.
34777 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
34780 2003-06-04 Paul Eggert <eggert@twinsun.com>
34782 * lib/mktime.c: Fix Debian bug 177940
34783 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
34784 (localtime_offset): Now long int, not time_t, because we want it
34785 to be guaranteed to be signed. All uses changed.
34786 (__mktime_internal): If overflow would occur when adding offset,
34789 Merge 'human' changes from coreutils. Rewrite to support
34790 locale-specific notations like thousands separators.
34791 * lib/human.c: Simplify authorship notice.
34792 Include human.h immediately after config.h.
34793 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
34794 <limits.h>: Do not include, since human.h does.
34795 (SIZE_MAX, UINTMAX_MAX): New macros.
34796 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
34797 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
34798 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
34799 (power_letter): Renamed from suffixes.
34800 (generate_suffix_backwards): Remove.
34801 (adjust_value): Now takes int style (because of human.h changes)
34802 and long double value (for greater precision on some platforms).
34803 (group_number): New function.
34804 (human_readable): Use it. Use integer options, not enum.
34805 Put the options before the sizes in the arg list.
34806 Support all the new options.
34807 The old human_readable function has been removed;
34808 use inttostr.h instead.
34809 (human_readable, default_block_size, humblock):
34810 Use uintmax_t, not int, for block sizes.
34811 (human_readable_inexact, block_size_types): Remove.
34812 (block_size_opts): New constant.
34813 (human_options): Renamed from human_block_size, with new signature
34814 that allows block sizes up to UINTMAX_MAX. All callers changed.
34815 * lib/human.h: Add copyright and authorship notice.
34816 Include <limits.h> and <stdbool.h> unconditionally.
34817 (PARAMS): Remove. All uses removed.
34818 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
34819 (enum human_inexact_style): Remove tag; now a nameless enum.
34820 (human_floor, human_ceiling, human_round_to_even): Now have
34821 values 2, 0, 1 rather than -1, 1, 0.
34822 (human_group_digits, human_suppress_point_zero, human_autoscale,
34823 human_base_1024, human_SI, human_B): New constants.
34824 (human_readable_inexact, human_block_size): Remove.
34825 (human_readable): Size args are now uintmax_t, not int.
34826 (human_options): New decl.
34828 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
34829 unnecessary now that we assume C89 or better. This change
34830 imported from coreutils.
34832 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
34833 arbitrarily. This is the same patch as 2003-05-28, but it got lost
34834 in the 2003-05-30 sync from glibc.
34836 .h files should stand alone, but we shouldn't include <sys/types.h>
34837 if we can get away with just <stddef.h>.
34839 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
34840 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
34841 rather than <sys/types.h>, as we merely need size_t.
34842 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
34844 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
34845 Include <stdio.h>, to get FILE.
34846 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
34847 memcasecmp.h has included <stddef.h> and all we need is size_t.
34848 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
34849 our interface, instead of including <sys/types.h>
34851 2003-06-04 Paul Eggert <eggert@twinsun.com>
34853 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
34854 now, as glibc mktime is buggy on non-glibc systems.
34856 2003-06-03 Karl Berry <karl@gnu.org>
34858 * config/config.sub: update from prep.
34860 2003-06-02 Paul Eggert <eggert@twinsun.com>
34863 Fix some minor time-related bugs with POSIX time arguments.
34864 Some valid time stamps were being rejected (notably -1, and
34865 time stamps before 1900 on 64-bit hosts). And some invalid
34866 time stamps were being accepted, e.g. September 31.
34868 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
34869 that we can return (time_t) -1 successfully.
34870 * lib/posixtm.c: Likewise.
34871 [HAVE_STDBOOL_H]: Include <stdbool.h>.
34872 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
34873 (t): Remove static var.
34874 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
34875 of static var. All uses changed.
34876 (year): Do not reject years before 1900; they can occur with
34878 (posix_time_parse): Do not check for out-of-range components;
34879 that is now the caller's responsibility, since our checks were
34880 only approximations.
34881 (posixtime): Use mktime to check for out-of-range components,
34882 since it knows them exactly.
34883 If mktime returns (time_t) -1, check whether an error actually occurred
34884 by invoking localtime on -1.
34885 (main) [TEST_POSIXTIME]: Check for input data errors, and report
34886 posixtime failures better.
34887 Improve the test data (in comments only).
34889 2003-06-02 Karl Berry <karl@gnu.org>
34891 * config/mkinstalldirs (version): new variable.
34892 (--version): new option.
34893 (usage): improve message.
34895 2003-05-30 Karl Berry <karl@gnu.org>
34897 * lib/mktime.c: update from libc.
34899 2003-05-30 Bruno Haible <bruno@clisp.org>
34901 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
34902 * config/config.rpath: Upgrade to gettext-0.12.1.
34904 2003-05-30 Bruno Haible <bruno@clisp.org>
34906 * m4/gettext.m4: Upgrade to gettext-0.12.1.
34907 * m4/nls.m4: New file, from gettext-0.12.1.
34908 * m4/po.m4: New file, from gettext-0.12.1.
34909 * m4/progtest.m4: Upgrade to gettext-0.12.1.
34911 2003-05-30 Bruno Haible <bruno@clisp.org>
34913 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
34914 * lib/localcharset.h: Likewise.
34915 * lib/localcharset.c: Likewise.
34917 2003-05-29 Karl Berry <karl@gnu.org>
34919 * config/config.rpath: update from gettext.
34921 2003-05-28 Paul Eggert <eggert@twinsun.com>
34923 Assume the headers required for C89 freestanding compilers.
34924 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
34925 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
34926 * m4/human.m4 (gl_HUMAN): Likewise.
34927 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
34928 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
34929 * m4/userspec.m4 (gl_USERSPEC): Likewise.
34930 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
34931 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
34932 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
34934 2003-05-28 Paul Eggert <eggert@twinsun.com>
34936 Assume the headers required for C89 freestanding compilers.
34937 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
34938 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
34939 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
34940 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
34941 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
34942 define, since <limits.h> is guaranteed to do that.
34943 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
34944 * lib/exclude.c: Include <stdbool.h> unconditionally.
34945 * lib/tempname.c: Include <stddef.h> unconditionally.
34946 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
34947 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
34948 <stddef.h> does that.
34949 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
34950 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
34951 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
34953 * lib/xstrtol.c: Likewise.
34954 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
34955 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
34957 * lib/addext.c (addext): Use assignment rather than cast, to avoid
34958 warnings on some platforms.
34960 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
34963 2003-05-26 Jim Meyering <jim@meyering.net>
34965 Merge in a change from coreutils:
34966 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
34967 that is guaranteed to be `no'. Use `no_such_member' to indicate
34968 that condition, rather than `-1' which is slightly misleading.
34969 Change the name of the cache variable to have the gl_ prefix.
34970 Prompted by a patch from Richard Dawe for DJGPP.
34972 2003-05-24 Karl Berry <karl@gnu.org>
34974 * config/config.guess: update from prep.
34976 2003-05-22 Karl Berry <karl@gnu.org>
34978 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
34980 2003-05-20 Karl Berry <karl@gnu.org>
34982 * config/config.guess: update from prep.
34984 2003-05-18 Karl Berry <karl@gnu.org>
34986 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
34987 might actually be set by the user.
34989 * config/depcomp, install-sh, mdate-sh: update from automake.
34991 2003-05-17 Bruno Haible <bruno@clisp.org>
34993 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
34994 invalid expansion for AC_EGREP_CPP.
34995 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
34996 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
34997 Suggested by Akim Demaille <akim@epita.fr> in
34998 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
35000 2003-05-12 Jim Meyering <jim@meyering.net>
35002 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
35003 the space-padded-by-default conversion specifiers, %e, %k, %l.
35005 2003-05-12 Bruno Haible <bruno@clisp.org>
35007 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
35008 the string is longer than 4 KB.
35010 2003-05-11 Karl Berry <karl@gnu.org>
35012 * config/config.{guess,sub}: update from prep.
35014 2003-05-09 Bruno Haible <bruno@clisp.org>
35016 * modules/error: Add m4/strerror_r.m4 to file list.
35018 2003-05-03 Bruno Haible <bruno@clisp.org>
35020 Upgrade to Unicode-4.0.
35021 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
35022 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
35023 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
35024 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
35025 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
35026 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
35027 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
35028 Change width of U+E0100..U+E01EF from 1 to 0.
35030 2003-04-25 Jim Meyering <jim@meyering.net>
35032 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
35033 of type size_t, not int.
35035 2003-04-25 Bruno Haible <bruno@clisp.org>
35037 * lib/copy-file.c: Include <stddef.h>, for size_t.
35039 2003-04-21 Paul Eggert <eggert@twinsun.com>
35041 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
35042 code which expansion is under static control. Patch imported from
35043 Akim Demaille's patch to Bison; see
35044 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
35046 2003-04-14 Bruno Haible <bruno@clisp.org>
35048 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
35050 2003-04-11 Jim Meyering <jim@meyering.net>
35052 Merge changes from Coreutils.
35054 2003-03-22 Jim Meyering <jim@meyering.net>
35056 * lib/strftime.c (widen): Cast alloca return value to proper type.
35058 2003-01-19 Ulrich Drepper <drepper@redhat.com>
35061 * lib/strftime.c (my_strftime): Handle very large width
35062 specifications for numeric values correctly. Improve checks for
35065 2003-01-19 Jim Meyering <jim@meyering.net>
35067 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
35069 (nl_get_alt_digit) [! defined my_strftime]: Define.
35070 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
35071 _nl_get_alt_digit and _nl_get_walt_digit.
35073 * lib/strftime.c (my_strftime): Merge in locale-related changes from
35074 libc. These changes have no effect outside of _LIBC.
35076 2003-04-10 Bruno Haible <bruno@clisp.org>
35078 * modules/findprog: New file.
35079 * MODULES.html.sh (func_all_modules): Add it.
35081 2003-04-10 Bruno Haible <bruno@clisp.org>
35083 * m4/findprog.m4: New file.
35084 * m4/eaccess.m4: New file.
35086 2003-04-10 Bruno Haible <bruno@clisp.org>
35088 * lib/findprog.h: New file, from GNU gettext.
35089 * lib/findprog.c: New file, from GNU gettext.
35091 2003-04-05 Jim Meyering <jim@meyering.net>
35093 Merge changes from Coreutils.
35095 * lib/exclude.h (PARAMS): Remove definition and uses.
35096 * lib/exclude.c: Remove uses of `PARAMS'.
35098 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
35099 Add test-cases for DOS filenames. Declare program_name.
35100 (main): Set up program_name. Patch by Rich Dawe.
35102 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
35104 Use mntctl's return value to drive the entry-processing loop, since
35105 we can't rely on the value of the vmt_length member in the last
35106 entry. On some systems doing so could result in exhausting
35107 virtual memory. Based in part on a patch from Mike Jetzer.
35109 2003-04-04 Bruno Haible <bruno@clisp.org>
35111 * modules/linebreak: New file.
35112 * MODULES.html.sh (func_all_modules): Add it.
35114 2003-04-04 Bruno Haible <bruno@clisp.org>
35116 * m4/linebreak.m4: New file.
35118 2003-04-04 Bruno Haible <bruno@clisp.org>
35120 * lib/linebreak.h: New file, from GNU gettext.
35121 * lib/linebreak.c: New file, from GNU gettext with slight
35123 * lib/lbrkprop.h: New file, from GNU gettext.
35125 2003-04-03 Bruno Haible <bruno@clisp.org>
35127 * modules/utf8-ucs4: New file.
35128 * modules/utf16-ucs4: New file.
35129 * modules/ucs4-utf8: New file.
35130 * modules/ucs4-utf16: New file.
35131 * MODULES.html.sh (func_all_modules): Add them.
35133 2003-04-03 Bruno Haible <bruno@clisp.org>
35135 * m4/utf-ucs4.m4: New file.
35136 * m4/ucs4-utf.m4: New file.
35138 2003-04-03 Bruno Haible <bruno@clisp.org>
35140 * lib/utf8-ucs4.h: New file, from GNU gettext.
35141 * lib/utf16-ucs4.h: New file, from GNU gettext.
35142 * lib/ucs4-utf8.h: New file, from GNU gettext.
35143 * lib/ucs4-utf16.h: New file, from GNU gettext.
35145 2003-04-02 Bruno Haible <bruno@clisp.org>
35147 * modules/binary-io: New file.
35148 * MODULES.html.sh (func_all_modules): Add it.
35150 2003-04-02 Bruno Haible <bruno@clisp.org>
35152 * lib/binary-io.h: New file, from GNU gettext.
35154 2003-04-01 Bruno Haible <bruno@clisp.org>
35156 * modules/pathname: New file.
35157 * MODULES.html.sh (func_all_modules): Add it.
35159 2003-04-01 Bruno Haible <bruno@clisp.org>
35161 * lib/pathname.h: New file, from GNU gettext.
35162 * lib/concatpath.c: New file, from GNU gettext.
35164 2003-03-30 Bruno Haible <bruno@clisp.org>
35166 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
35168 2003-03-30 Bruno Haible <bruno@clisp.org>
35170 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
35171 function chown() doesn't exist.
35173 2003-03-28 Bruno Haible <bruno@clisp.org>
35175 * modules/copy-file: New file.
35176 * MODULES.html.sh (func_all_modules): Add it.
35178 2003-03-28 Bruno Haible <bruno@clisp.org>
35180 * m4/copy-file.m4: New file.
35182 2003-03-28 Bruno Haible <bruno@clisp.org>
35184 * lib/copy-file.h: New file, from GNU gettext.
35185 * lib/copy-file.c: New file, from GNU gettext.
35187 2003-03-18 Jim Meyering <jim@meyering.net>
35189 * lib/quote.c (quote_n): Fix typo in comment.
35191 2003-03-18 Bruno Haible <bruno@clisp.org>
35193 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
35195 * m4/onceonly_2_57.m4: Likewise.
35197 2003-03-17 Bruno Haible <bruno@clisp.org>
35199 * m4/onceonly.m4: Require autoconf 2.54 or newer.
35200 (m4_quote): Remove macro.
35201 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
35203 2003-03-14 Jim Meyering <jim@meyering.net>
35205 Merge changes from Coreutils.
35206 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
35207 to be const, in order to avoid warnings.
35208 (obstack_room): Likewise.
35209 (obstack_empty_p): Likewise.
35211 2003-03-14 Bruno Haible <bruno@clisp.org>
35213 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
35214 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
35216 2003-03-13 Paul Eggert <eggert@twinsun.com>
35218 Merge changes from Bison.
35219 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
35220 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
35221 when compiling Bison 1.875's `bitset bset = obstack_alloc
35222 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
35223 * lib/hash.c: Include <stdbool.h> unconditionally.
35225 2003-03-13 Paul Eggert <eggert@twinsun.com>
35227 * m4/onceonly.m4 (m4_quote): New macro.
35228 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
35229 Quote AC_FOREACH variable-expansions properly.
35231 2003-03-13 Paul Eggert <eggert@twinsun.com>
35233 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
35235 2003-03-09 Paul Eggert <eggert@twinsun.com>
35237 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
35238 Reported by Bruce Becker; see:
35239 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
35241 2003-03-03 Paul Eggert <eggert@twinsun.com>
35242 Bruno Haible <bruno@clisp.org>
35244 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
35245 Reported by John Hughes, see
35246 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
35248 2003-02-20 Bruno Haible <bruno@clisp.org>
35250 * MODULES.html.sh (func_all_modules): Add poll.
35252 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
35254 * modules/poll: New file.
35256 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
35258 * lib/poll_.h: New file.
35259 * lib/poll.c: New file.
35261 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
35263 * m4/poll.m4: New file.
35265 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
35267 * modules/mathl: New file.
35269 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
35271 * lib/mathl.h: New file.
35272 * lib/acosl.c: New file.
35273 * lib/asinl.c: New file.
35274 * lib/atanl.c: New file.
35275 * lib/ceill.c: New file.
35276 * lib/cosl.c: New file.
35277 * lib/expl.c: New file.
35278 * lib/floorl.c: New file.
35279 * lib/frexpl.c: New file.
35280 * lib/ldexpl.c: New file.
35281 * lib/logl.c: New file.
35282 * lib/sincosl.c: New file.
35283 * lib/sinl.c: New file.
35284 * lib/sqrtl.c: New file.
35285 * lib/tanl.c: New file.
35286 * lib/trigl.c: New file.
35287 * lib/trigl.h: New file.
35289 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
35291 * m4/mathl.m4: New file.
35293 2003-02-18 Bruno Haible <bruno@clisp.org>
35295 * MODULES.html.sh (func_all_modules): Add mathl.
35297 2003-02-17 Bruno Haible <bruno@clisp.org>
35299 * modules/mkdtemp: New module.
35300 * MODULES.html.sh (func_all_modules): Add it.
35302 2003-02-17 Bruno Haible <bruno@clisp.org>
35304 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
35306 2003-02-17 Bruno Haible <bruno@clisp.org>
35308 * lib/mkdtemp.h: New file, from GNU gettext.
35309 * lib/mkdtemp.c: New file, from GNU gettext.
35311 2003-02-02 Jim Meyering <jim@meyering.net>
35313 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
35316 2003-01-31 Bruno Haible <bruno@clisp.org>
35318 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
35320 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
35322 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
35324 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
35327 2003-01-31 Bruno Haible <bruno@clisp.org>
35329 * lib/rename.c: #undef rename before defining rpl_rename.
35330 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
35332 2003-01-30 Bruno Haible <bruno@clisp.org>
35334 * modules/vasnprintf, modules/vasprintf: New modules.
35335 * MODULES.html.sh (func_all_modules): Add them.
35337 2003-01-30 Bruno Haible <bruno@clisp.org>
35339 * m4/signed.m4: New file, from GNU gettext.
35340 * m4/longdouble.m4: New file, from GNU gettext.
35341 * m4/wchar_t.m4: New file, from GNU gettext.
35342 * m4/wint_t.m4: New file, from GNU gettext.
35343 * m4/vasnprintf.m4: New file.
35344 * m4/vasprintf.m4: New file.
35346 2003-01-30 Bruno Haible <bruno@clisp.org>
35348 * lib/printf-args.h: New file, from GNU gettext.
35349 * lib/printf-args.c: New file, from GNU gettext.
35350 * lib/printf-parse.h: New file, from GNU gettext.
35351 * lib/printf-parse.c: New file, from GNU gettext.
35352 * lib/vasnprintf.h: New file, from GNU gettext.
35353 * lib/vasnprintf.c: New file, from GNU gettext.
35354 * lib/asnprintf.c: New file, from GNU gettext.
35355 * lib/vasprintf.h: New file, from GNU gettext with modifications.
35356 * lib/vasprintf.c: New file, from GNU gettext.
35357 * lib/asprintf.c: New file, from GNU gettext.
35359 2003-01-29 Bruno Haible <bruno@clisp.org>
35361 * modules/stpncpy: New module.
35362 * MODULES.html.sh (func_all_modules): Add it.
35364 2003-01-29 Bruno Haible <bruno@clisp.org>
35366 * m4/stpncpy.m4: New file.
35368 2003-01-29 Bruno Haible <bruno@clisp.org>
35370 * lib/stpncpy.h: New file, from GNU gettext with modifications.
35371 * lib/stpncpy.c: New file, from GNU gettext with modifications.
35373 2003-01-28 Bruno Haible <bruno@clisp.org>
35375 * modules/c-ctype: New module.
35376 * MODULES.html.sh (func_all_modules): Add it.
35378 2003-01-28 Bruno Haible <bruno@clisp.org>
35380 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
35382 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
35385 2003-01-27 Bruno Haible <bruno@clisp.org>
35387 * modules/xsetenv: New module.
35388 * MODULES.html.sh (func_all_modules): Add it.
35390 2003-01-27 Bruno Haible <bruno@clisp.org>
35392 * lib/xsetenv.h: New file, from GNU gettext.
35393 * lib/xsetenv.c: New file, from GNU gettext.
35395 2003-01-23 Jim Meyering <jim@meyering.net>
35397 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
35398 from working on systems without dirfd (at least Irix and OSF1/Tru64).
35400 2003-01-23 Bruno Haible <bruno@clisp.org>
35402 * modules/minmax: New module.
35403 * MODULES.html.sh (func_all_modules): Add it.
35405 2003-01-23 Bruno Haible <bruno@clisp.org>
35407 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
35410 2003-01-22 Bruno Haible <bruno@clisp.org>
35412 * modules/exit: New module.
35413 * MODULES.html.sh (func_all_modules): Add it.
35415 2003-01-22 Bruno Haible <bruno@clisp.org>
35417 * lib/exit.h: New file, from GNU gettext.
35419 2003-01-19 Bruno Haible <bruno@clisp.org>
35421 * gnulib-tool: Recognize option --extract-maintainer.
35422 (func_get_maintainer): New function.
35423 * modules/*: Add Maintainer entry.
35425 2003-01-16 Jim Meyering <jim@meyering.net>
35427 * m4/regex.m4: The `regex' struct is both input and output.
35428 Initialize it before each use. Patch by Tim Waugh.
35430 2003-01-16 Bruno Haible <bruno@clisp.org>
35432 * MODULES.html.sh: Add a table of contents. Add the module name as
35433 leftmost column. Add hyperlinks.
35435 2003-01-15 Bruno Haible <bruno@clisp.org>
35437 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
35439 2003-01-15 Bruno Haible <bruno@clisp.org>
35441 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
35442 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
35445 2003-01-15 Bruno Haible <bruno@clisp.org>
35447 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
35449 2003-01-15 Bruno Haible <bruno@clisp.org>
35451 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
35452 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
35454 2003-01-14 Jim Meyering <jim@meyering.net>
35456 * lib/same.c (same_name): Tweak a comment.
35458 2003-01-14 Bruno Haible <bruno@clisp.org>
35460 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
35461 when a string comparison is sufficient.
35463 2003-01-14 Bruno Haible <bruno@clisp.org>
35465 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
35468 2003-01-14 Bruno Haible <bruno@clisp.org>
35470 * lib/hash-pjw.c: Add comment about low quality of this function.
35472 2003-01-13 Bruno Haible <bruno@clisp.org>
35474 * modules/stpcpy: Distribute lib/stpcpy.h.
35475 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
35477 2003-01-13 Bruno Haible <bruno@clisp.org>
35479 * modules/*: Add a description.
35480 * modules/strpbrk: Fix Makefile.am snippet.
35481 * modules/strtoimax: Fix dependencies.
35482 * modules/strtoumax: Likewise.
35484 2003-01-13 Bruno Haible <bruno@clisp.org>
35486 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
35487 * modules/alloca (Makefile.am): All object files depend on alloca.h.
35488 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
35490 2003-01-13 Bruno Haible <bruno@clisp.org>
35492 * gnulib-tool (func_create_testdir): Store config/* files in the main
35494 * config.rpath: Move to ...
35495 * config/config.rpath: ... here.
35496 * modules/gettext: Contains config/config.rpath, not config.rpath.
35497 * modules/iconv: Likewise.
35499 2003-01-12 Paul Eggert <eggert@twinsun.com>
35501 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
35502 to avoid collisions with libcurses and libreadline.
35504 * m4/getstr.m4: Remove.
35505 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
35507 2003-01-12 Paul Eggert <eggert@twinsun.com>
35509 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
35510 to avoid collisions with libcurses and libreadline.
35512 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
35513 * lib/getstr.h, getstr.c: Remove.
35514 * lib/getline.c: Include "getline.h", to check interface.
35515 Move body of old getstr.c here: this defines MIN_CHUNK and
35516 declares getdelim2, which is renamed from getstr.
35517 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
35519 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
35521 * lib/linebuffer.h: Likewise.
35522 (readline): Remove backward-compatibility macro.
35524 2003-01-12 Paul Eggert <eggert@twinsun.com>
35526 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
35527 to avoid collisions with libcurses and libreadline.
35529 * MODULES.html.sh: Remove getstr.
35530 * modules/getline: Depend on unlocked-io, not getstr.
35532 2003-01-12 Jim Meyering <jim@meyering.net>
35534 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
35536 2003-01-10 Bruno Haible <bruno@clisp.org>
35538 * modules/alloca: Change Makefile.am requirements. Simplify Include
35539 requirements. Add lib/alloca_.h to file list.
35541 2003-01-10 Bruno Haible <bruno@clisp.org>
35543 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
35545 2003-01-10 Bruno Haible <bruno@clisp.org>
35547 * lib/alloca_.h: New file.
35548 * lib/getdate.y: Unconditionally include alloca.h.
35549 * lib/makepath.c: Likewise.
35550 * lib/setenv.c: Likewise.
35551 * lib/userspec.c: Likewise.
35553 2003-01-09 Karl Berry <karl@gnu.org>
35555 * MODULES.html.sh: include `dirname $0` in PATH, to find
35558 2003-01-09 Bruno Haible <bruno@clisp.org>
35560 * modules/stdbool: Change configure.ac, Makefile.am requirements.
35561 Simplify Include requirements. Add lib/stdbool.h.in to file list.
35563 2003-01-09 Bruno Haible <bruno@clisp.org>
35565 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
35567 2003-01-09 Bruno Haible <bruno@clisp.org>
35569 * lib/stdbool.h.in: New file.
35571 2003-01-09 Bruno Haible <bruno@clisp.org>
35573 * gnulib-tool (func_all_modules): Ignore files ending in ~.
35574 * MODULES.html.sh: Likewise.
35576 2003-01-08 Jim Meyering <jim@meyering.net>
35578 * lib/full-write.c: Undefine and define-away `const' after inclusion
35579 of errno.h, not before. Suggestion from Bruno Haible.
35581 2003-01-08 Bruno Haible <bruno@clisp.org>
35583 * modules/full-read: Depend on full-write.
35585 2003-01-08 Bruno Haible <bruno@clisp.org>
35587 * lib/safe-read.c: Include specification header first, to ensure its
35589 * lib/full-write.c: Likewise.
35591 2003-01-07 Jim Meyering <jim@meyering.net>
35593 * lib/full-write.c: Rework so that it may serve to define full_read,
35595 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
35597 2003-01-07 Bruno Haible <bruno@clisp.org>
35599 * lib/strtoimax.c: Include <stdint.h> as an alternative to
35601 * lib/xstrtol.h: Likewise.
35602 * lib/xstrtoimax.c: Likewise.
35603 * lib/xstrtoumax.c: Likewise.
35604 * lib/human.h: Likewise.
35606 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
35607 on systems that have <inttypes.h> but not <stdint.h>.
35609 2003-01-07 Bruno Haible <bruno@clisp.org>
35611 * MODULES.html.sh: Add copyright notice.
35612 (missed_files): Omit CVS directory entries.
35613 (func_module): Make it work with sed-3.02.
35614 * MODULES.txt: Remove file.
35616 2003-01-06 Jim Meyering <jim@meyering.net>
35618 * lib/version-etc.c: Update year in translatable copyright string.
35620 2003-01-03 Karl Berry <karl@gnu.org>
35622 * config/config.{guess,sub}: update from prep.
35624 2003-01-02 Karl Berry <karl@gnu.org>
35626 * doc/COPYING.DOC: belatedly updated to 1.2.
35628 2003-01-01 Karl Berry <karl@gnu.org>
35630 * gnulib-tool (func_verify_module): report module name $module in
35631 error message, not $1.
35632 * gnulib-tool (create-testdir): don't complain if destdir couldn't
35633 be created, only if it doesn't exist.
35634 * gnulib-tool (last_checkin_date): don't expand the $Date here.
35636 2002-12-31 Paul Eggert <eggert@twinsun.com>
35638 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
35640 2002-12-31 Paul Eggert <eggert@twinsun.com>
35642 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
35643 memcmp if strcoll doesn't work.
35645 2002-12-31 Bruno Haible <bruno@clisp.org>
35647 * lib/utime.c (utime_null): No need to call ftruncate if the file was
35650 2002-12-31 Bruno Haible <bruno@clisp.org>
35652 * lib/memcoll.c (STRCOLL): New macro.
35655 2002-12-31 Bruno Haible <bruno@clisp.org>
35657 * lib/localcharset.h: New file.
35658 * lib/localcharset.c: Include it.
35659 * lib/unicodeio.c: Likewise.
35661 2002-12-31 Bruno Haible <bruno@clisp.org>
35663 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
35664 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
35666 2002-12-31 Bruno Haible <bruno@clisp.org>
35668 * lib/getline.h: Include <stddef.h>, for size_t.
35670 * lib/unicodeio.h: Include <stddef.h>, for size_t.
35671 * lib/unicodeio.c: Don't include <stddef.h>.
35673 2002-12-31 Bruno Haible <bruno@clisp.org>
35675 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
35678 2002-12-24 Karl Berry <karl@gnu.org>
35680 * config/config.guess: update from prep.
35682 2002-12-24 Bruno Haible <bruno@clisp.org>
35684 General infrasructure.
35685 * m4/README: Rewritten.
35686 * m4/onceonly.m4: New file.
35687 * m4/onceonly_2_57.m4: New file.
35690 * m4/atexit.m4: New file.
35693 * m4/strtod.m4: New file.
35696 * m4/strtol.m4: New file.
35699 * m4/strtoul.m4: New file.
35702 * m4/memchr.m4: New file.
35705 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
35706 (jm_FUNC_MEMCMP): Invoke it.
35709 * m4/memcpy.m4: New file.
35712 * m4/memmove.m4: New file.
35715 * m4/memset.m4: New file.
35718 * m4/strcspn.m4: New file.
35721 * m4/strpbrk.m4: New file.
35724 * m4/strstr.m4: New file.
35727 * m4/strerror.m4: New file.
35730 * m4/mktime.m4: Renamed from jm-mktime.m4.
35731 (gl_PREREQ_MKTIME): New macro.
35732 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
35735 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
35736 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
35737 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
35740 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
35741 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
35742 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
35745 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
35746 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
35747 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
35749 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
35752 * m4/xalloc.m4: New file.
35755 * m4/alloca.m4: New file.
35758 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
35759 (jm_FUNC_PUTENV): Invoke it.
35762 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
35763 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
35764 when invoked twice.
35765 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
35769 * m4/memrchr.m4: New file.
35772 * m4/stpcpy.m4: New file.
35775 * m4/strcase.m4: New file.
35778 * m4/strdup.m4: New file.
35781 * m4/strnlen.m4: New file.
35784 * m4/strndup.m4: New file.
35787 * m4/xstrtod.m4: New file.
35790 * m4/xstrtol.m4: New file.
35793 * m4/getdate.m4: New file.
35795 Module unlocked-io.
35796 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
35797 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
35798 * m4/jm-glibc-io.m4n: Remove file.
35800 Module long-options.
35801 * m4/long-options.m4: New file.
35804 * m4/md5.m4: New file.
35807 * m4/sha.m4: New file.
35810 * m4/getstr.m4: New file.
35813 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
35814 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
35815 <sys/types.h>, for size_t. Use the function name gnu_getline, not
35816 simply getline. Infoke gl_PREREQ_GETLINE.
35819 * m4/obstack.m4: New file.
35822 * m4/hash.m4: New file.
35825 * m4/readtokens.m4: New file.
35828 * m4/strverscmp.m4: New file.
35831 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
35835 * m4/strtoll.m4: New file.
35838 * m4/strtoull.m4: New file.
35841 * m4/strtoimax.m4: New file.
35844 * m4/strtoumax.m4: New file.
35847 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
35848 jm_AC_PREREQ_XSTRTOIMAX.
35849 Moved the strtol prerequisites to strtol.m4.
35850 Moved the strtoll prerequisites to strtoll.m4.
35851 Moved the strtoimax prerequisites to strtoimax.m4.
35854 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
35855 jm_AC_PREREQ_XSTRTOUMAX.
35856 Moved the strtoul prerequisites to strtoul.m4.
35857 Moved the strtoull prerequisites to strtoull.m4.
35858 Moved the strtoumax prerequisites to strtoumax.m4.
35861 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
35862 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
35865 * m4/dup2.m4: New file.
35868 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
35869 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
35872 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
35873 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
35875 Module gettimeofday.
35876 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
35877 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
35878 gl_PREREQ_GETTIMEOFDAY.
35881 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
35882 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
35885 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
35886 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
35887 jm_AC_TYPE_UINTMAX_T.
35888 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
35891 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
35892 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
35895 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
35896 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
35899 * m4/timespec.m4 (gl_TIMESPEC): New macro.
35900 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
35901 * m4/st_mtim.m4: Indentation.
35904 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
35905 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
35906 gl_PREREQ_NANOSLEEP.
35909 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
35910 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
35911 (gl_REGEX): New macro.
35914 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
35915 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
35918 * m4/rmdir.m4: New file.
35921 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
35922 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
35923 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
35926 * m4/dirname.m4: New file.
35929 * m4/getopt.m4: New file.
35931 Module unistd-safer.
35932 * m4/unistd-safer.m4: New file.
35935 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
35937 (gl_PREREQ_FNMATCH_EXTRA): New macro.
35938 (gl_FUNC_FNMATCH_POSIX): New macro.
35939 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
35940 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
35944 * m4/exclude.m4: New file.
35947 * m4/human.m4: New file.
35953 * m4/backupfile.m4: New file.
35954 * m4/d-ino.m4: Indentation.
35957 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
35958 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
35959 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
35962 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
35966 * m4/euidaccess.m4: New file.
35969 * m4/file-type.m4: New file.
35972 * m4/fileblocks.m4: New file.
35975 * m4/filemode.m4: New file.
35978 * m4/isdir.m4: New file.
35981 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
35982 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
35985 * m4/makepath.m4: New file.
35988 * m4/modechange.m4: New file.
35991 * m4/mountlist.m4: New file.
35992 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
35995 Module path-concat.
35996 * m4/path-concat.m4: New file.
35999 * m4/pathmax.m4: New file.
36002 * m4/same.m4: New file.
36005 * m4/save-cwd.m4: New file.
36008 * m4/savedir.m4: New file.
36011 * m4/xgetcwd.m4: New file.
36012 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
36015 * m4/xreadlink.m4: New file.
36018 * m4/safe-read.m4: New file.
36021 * m4/safe-write.m4: New file.
36024 * m4/closeout.m4: New file.
36026 Module stdio-safer.
36027 * m4/stdio-safer.m4: New file.
36030 * m4/getpass.m4: New file.
36033 * m4/getugroups.m4: New file.
36035 Module group-member.
36036 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
36037 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
36040 * m4/idcache.m4: New file.
36043 * m4/userspec.m4: New file.
36046 * m4/clock_time.m4: New file.
36047 * m4/gettime.m4: New file.
36050 * m4/settime.m4: New file.
36053 * m4/posixtm.m4: New file.
36055 Module gethostname.
36056 * m4/gethostname.m4: New file.
36059 * m4/canon-host.m4: New file.
36062 * m4/codeset.m4: New file, from gettext-0.11.5.
36063 * m4/gettext.m4: New file, from gettext-0.11.5.
36064 * m4/glibc21.m4: New file, from gettext-0.11.5.
36065 * m4/iconv.m4: New file, from gettext-0.11.5.
36066 * m4/intdiv0.m4: New file, from gettext-0.11.5.
36067 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
36068 * m4/inttypes.m4: New file, from gettext-0.11.5.
36069 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
36070 * m4/isc-posix.m4: New file, from gettext-0.11.5.
36071 * m4/lcmessage.m4: New file, from gettext-0.11.5.
36072 * m4/lib-ld.m4: New file, from gettext-0.11.5.
36073 * m4/lib-link.m4: New file, from gettext-0.11.5.
36074 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
36075 * m4/progtest.m4: New file, from gettext-0.11.5.
36076 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
36077 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
36078 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
36080 Module localcharset.
36081 * m4/localcharset.m4: New file.
36083 Module hard-locale.
36084 * m4/hard-locale.m4: New file.
36087 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
36089 * m4/mbrtowc.m4: Add comment.
36092 * m4/memcasecmp.m4: New file.
36095 * m4/memcoll.m4: New file.
36098 * m4/unicodeio.m4: New file.
36101 * m4/rpmatch.m4: New file.
36104 * m4/yesno.m4: New file.
36107 * m4/exitfail.m4: New file.
36110 * m4/c-stack.m4 (gl_C_STACK): New macro.
36111 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
36114 * m4/error.m4 (gl_ERROR): New macro.
36115 (jm_PREREQ_ERROR): Use onceonly macros.
36118 * m4/fatal.m4: New file.
36121 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
36122 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
36124 Module getpagesize.
36125 * m4/getpagesize.m4: New file.
36127 Module getusershell.
36128 * m4/getusershell.m4: New file.
36131 * m4/physmem.m4: New file.
36134 * m4/posixver.m4: New file.
36137 * m4/quotearg.m4: New file.
36140 * m4/quote.m4: New file.
36143 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
36146 * m4/sig2str.m4: New file.
36149 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
36151 * m4/intmax_t.m4: New file.
36152 * m4/d-type.m4: Indentation.
36153 * m4/jm-macros.m4: Update.
36154 * m4/prereq.m4 (jm_PREREQ): Update.
36155 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
36156 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
36157 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
36158 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
36159 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
36160 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
36161 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
36162 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
36163 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
36164 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
36165 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
36166 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
36167 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
36168 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
36169 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
36170 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
36171 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
36172 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
36173 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
36175 2002-12-24 Bruno Haible <bruno@clisp.org>
36177 * MODULES.txt: Update according to m4/ changes.
36180 * config.rpath: New file, from gettext-0.11.5.
36182 * modules/*: New module descriptions.
36183 * gnulib-tool: New file.
36184 * MODULES.html.sh: New file.
36186 2002-12-21 Karl Berry <karl@gnu.org>
36188 * doc/fdl.texi: update to version 1.2.
36190 2002-12-19 Karl Berry <karl@gnu.org>
36192 * config/config.guess: update from prep.
36194 2002-12-18 Bruno Haible <bruno@clisp.org>
36196 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
36197 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
36199 2002-12-17 Bruno Haible <bruno@clisp.org>
36201 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
36202 stdlib.h, string.h.
36204 2002-12-17 Bruno Haible <bruno@clisp.org>
36206 * lib/canon-host.c (strdup): Remove unused declaration.
36208 * lib/fsusage.c: Include full_read.h.
36209 (get_fs_usage): Use full_read instead of safe_read.
36211 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
36213 2002-12-12 Karl Berry <karl@gnu.org>
36215 * config/config.guess: update from prep.
36217 2002-12-11 Bruno Haible <bruno@clisp.org>
36219 * m4/setenv.m4: New file, from gettext-0.11.5.
36221 2002-12-11 Bruno Haible <bruno@clisp.org>
36223 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
36225 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
36228 2002-12-11 Bruno Haible <bruno@clisp.org>
36230 * setenv.c (alloca): Fall back to malloc.
36231 (freea): New macro.
36232 (setenv): Use freea() to free memory allocated with alloca().
36234 2002-11-13 Bruno Haible <bruno@clisp.org>
36236 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
36237 function declarations.
36238 * unsetenv.c (unsetenv): Likewise.
36240 2002-03-04 Bruno Haible <bruno@clisp.org>
36242 Portability to AIX 4.3.3.
36243 * unsetenv.c: New file, extracted from setenv.c.
36244 * setenv.c: Move the unsetenv() function to unsetenv.c.
36246 2001-12-20 Bruno Haible <bruno@clisp.org>
36248 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
36249 use malloc instead. For SunOS 4.
36251 2001-12-11 Bruno Haible <bruno@clisp.org>
36253 * setenv.c: Declare alloca.
36254 (compar_fn_t): New typedef.
36255 (KNOWN_VALUE, STORE_VALUE): Use it.
36257 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
36260 2002-12-10 Paul Eggert <eggert@twinsun.com>
36262 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
36263 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
36264 Choose values that are less likely to collide with system fnmatch
36266 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
36267 defined (e.g., a pure POSIX system).
36268 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
36269 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
36271 2002-12-06 Paul Eggert <eggert@twinsun.com>
36273 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
36274 a pain in practice to deal with generated m4 files. This change
36275 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
36277 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
36278 and jm-glibc-io.m4, as they are no longer a special case.
36279 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
36280 kludge and the auto-generation stuff. Check only whether the
36281 functions are declared, not whether they exist, since older hosts
36282 that don't declare the functions can't use the optimization anyway.
36284 2002-12-06 Jim Meyering <jim@meyering.net>
36286 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
36288 Merge in changes from libc's misc/error.c, in preparation
36289 for the merge of gnulib's changes back into libc.
36291 * lib/error.c (_): Define only if not already defined.
36292 Move definition to follow all #include directives.
36293 Include unlocked-io.h only if !_LIBC.
36294 [_LIBC]: Include <libio/libioP.h>.
36295 [USE_IN_LIBIO]: Include <libio/iolibio.h>
36296 (fflush): Tweak definition to use INTUSE.
36299 2002-12-05 Paul Eggert <eggert@twinsun.com>
36301 * lib/alloca.c [defined emacs]: Include "lisp.h".
36302 (xalloc_die) [defined emacs]: New macro.
36303 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
36304 [! defined emacs]: Include <xalloc.h>.
36305 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
36306 (pointer): Typedef to POINTER_TYPE *.
36307 (malloc): Remove decl; we now always use xmalloc.
36308 (alloca): Use old-style definition, since Emacs needs this.
36309 Check for arithmetic overflow when computing combined size.
36311 2002-12-04 Paul Eggert <eggert@twinsun.com>
36313 Do not generate unlocked-io.h automatically, since it's easier to
36314 maintain it by hand.
36316 * lib/unlocked-io.h: New file, from GNU diffutils,
36317 but with proper copyright notice and attribution.
36318 * lib/gen-uio: Remove.
36319 * lib/Makefile.am: Add copyright notice.
36320 (libfetish_a_SOURCES): Add unlocked-io.h.
36321 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
36322 (DISTCLEANFILES, io_functions): Remove macros.
36323 (EXTRA_DIST): Remove gen_uio.
36324 (unlocked-io.h): Remove rule.
36326 2002-12-04 Jim Meyering <jim@meyering.net>
36328 Reflect the fact that stat.c and lstat.c are no longer generated.
36329 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
36330 (DISTCLEANFILES): Likewise.
36331 (EXTRA_DIST): Likewise.
36332 (all_local): Don't depend on stat.c or lstat.c.
36333 (stat.c, lstat.c): Remove rules.
36334 (EXTRA_DIST): Remove xstat.in.
36336 * lib/xstat.in: Remove file. Contents moved into stat.c.
36337 * lib/stat.c: New file. Contents mostly from xstat.in.
36338 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
36339 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
36341 * lib/safe-read.c: Rework so that it may serve to define safe_write,
36343 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
36345 2002-12-03 Jim Meyering <jim@meyering.net>
36347 * lib/safe-read.c, safe-write.c: Change variable names and comments,
36348 but not semantics, to minimize the differences between these two files.
36349 (safe_read): Change comment to mention SAFE_READ_ERROR.
36351 * lib/safe-read.c (IS_EINTR): Define.
36352 (safe_read): Use IS_EINTR in place of in-function cpp directives.
36354 2002-12-02 Jim Meyering <jim@meyering.net>
36356 * lib/safe-read.c (EINTR): Define.
36357 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
36358 (INT_MAX): Provide fallback.
36359 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
36361 * lib/safe-read.h (SAFE_READ_ERROR): Define.
36363 2002-12-02 Bruno Haible <bruno@clisp.org>
36365 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
36366 Define, taken from safe-read.c.
36367 (INT_MAX): Provide fallback.
36368 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
36369 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
36371 * lib/safe-read.c (EINTR): Remove definition.
36372 (safe_read): Don't use EINTR if it is absent.
36374 2002-12-01 Jim Meyering <jim@meyering.net>
36376 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
36378 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
36380 2002-11-27 Paul Eggert <eggert@twinsun.com>
36382 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
36383 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
36384 with `if (! (value < limit)) abort ();', for readability.
36386 2002-11-26 Karl Berry <karl@gnu.org>
36388 * lib/strdup.c: copy from libc again, with jim's ok.
36389 * lib/.cppi-disable: re-add strdup.c
36391 2002-11-25 Karl Berry <karl@gnu.org>
36393 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
36394 instead of "strtol.c".
36396 2002-11-25 Karl Berry <karl@gnu.org>
36398 * config/install-sh: update from automake for variable quoting, $0 in
36401 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
36402 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
36405 2002-11-25 Jim Meyering <jim@meyering.net>
36407 * lib/mktime.c: Sync from libc, now that it has the latest fix.
36409 2002-11-24 Karl Berry <karl@gnu.org>
36411 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
36412 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
36414 2002-11-24 Jim Meyering <jim@meyering.net>
36416 Update from coreutils:
36418 * lib/mktime.c: Merge in changes from libc.
36420 Avoid a link-time failure on some Linux systems.
36421 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
36423 (__mon_yday): Declare with the STATIC attribute.
36424 (__mktime_internal): Likewise.
36425 Based on a report from Greg Schafer.
36427 2002-11-23 Jim Meyering <jim@meyering.net>
36429 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
36430 Use `unsigned', not `int', as type of index.
36432 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
36434 * lib/fsusage.c: Remove unneeded parentheses around operands of
36437 2002-11-22 Paul Eggert <eggert@twinsun.com>
36439 * lib/quotearg.h: Allow multiple inclusion by surrounding with
36440 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
36441 so that we can be included first.
36442 (PARAMS): Remove; we now assume C89 or later. All uses removed.
36443 * lib/quotearg.c: Include quotearg.h immediately after config.h.
36444 No need to include stddef.h or sys/types.h any more.
36445 Surround local include files with "", not "<>".
36446 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
36447 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
36448 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
36449 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
36450 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
36451 (ISPRINT): Remove; no longer needed now that we assume C89.
36453 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
36456 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
36457 quotearg_char): Use SIZE_MAX rather than
36458 (size_t) -1 when we are talking about "infinity".
36460 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
36462 2002-11-22 Paul Eggert <eggert@twinsun.com>
36464 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
36465 hint that one should use `if (! x) abort ();' rather than `assert
36466 (x);', and anyway it's one less thing to worry about configuring.
36467 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
36468 hash_rehash, hash_insert): Use abort rather than assert.
36470 2002-11-22 Bruno Haible <bruno@clisp.org>
36472 * lib/safe-read.h: Assume C89. Add comments.
36473 (safe_read): Change return type to size_t.
36474 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
36475 byte counts > SSIZE_MAX correctly.
36476 * lib/safe-write.h: New file.
36477 * lib/safe-write.c: New file.
36478 * lib/full-read.h: New file.
36479 * lib/full-read.c: New file.
36480 * lib/full-write.h: Assume C89. Add comments.
36481 * lib/full-write.c: Include safe-write.h.
36482 (full_write): Rewritten to use safe_write.
36483 Suggested by Jim Meyering and Paul Eggert.
36485 2002-11-21 Jim Meyering <jim@meyering.net>
36487 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
36489 Merge in changes from the coreutils.
36491 2002-09-25 Paul Eggert <eggert@twinsun.com>
36492 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
36494 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
36495 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
36496 int. Work more efficiently if X is the same width as uintmax_t.
36497 Do not compare X to -1, to avoid bogus compiler warning.
36498 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
36499 Don't assume that f_frsize and f_bsize are the same type.
36501 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
36502 warning on FreeBSD.
36504 * lib/makepath.c (make_path): Restore umask *before* creating the final
36506 (make_path): Minor reformatting.
36508 * lib/xmalloc.c: Adjust to work with new autoconf macros,
36509 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
36510 HAVE_MALLOC/HAVE_REALLOC.
36512 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
36513 dummy ones. At least on GNU/Linux systems, `auto' means something
36515 From Michael Stone.
36517 2002-11-21 Bruno Haible <bruno@clisp.org>
36519 Remove case insensitive option matching.
36520 * lib/argmatch.h (argcasematch): Remove declaration.
36521 (ARGCASEMATCH): Remove macro.
36522 (__xargmatch_internal): Remove case_sensitive argument.
36523 (XARGMATCH): Update.
36524 (XARGCASEMATCH): Remove macro.
36525 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
36526 case_sensitive argument.
36527 (argcasematch): Remove function.
36528 (__xargmatch_internal): Remove case_sensitive argument.
36529 (main): Use XARGMATCH instead of XARGCASEMATCH.
36531 * lib/xmalloc.c: Change compile-time error message. Add comment about
36532 required autoconf version.
36534 2002-11-20 Paul Eggert <eggert@twinsun.com>
36536 Merge argmatch cleanups from Bison. Assume C89.
36538 * lib/argmatch.c: Include config.h here, not in argmatch.h.
36539 Include stdlib.h, for EXIT_FAILURE.
36540 Always include <string.h>, since we assume C89.
36541 (EXIT_FAILURE): Remove pre-C89 bug workaround.
36542 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
36543 Include <stddef.h> instead, since it's all we need for size_t.
36544 (PARAMS): Remove. All uses removed.
36545 (ARRAY_CARDINALITY): Do not bother to #undef.
36546 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
36547 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
36548 Remove unnecessary parentheses.
36549 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
36550 Insert necessary parentheses.
36551 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
36552 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
36554 2002-11-19 Bruno Haible <bruno@clisp.org>
36556 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
36557 * lib/mbswidth.h: Include <stddef.h>, for size_t.
36559 * lib/mbswidth.h (PARAMS): Remove macro.
36560 (mbswidth, mbsnwidth): Use ANSI C function declarations.
36561 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
36563 * lib/gcd.h (PARAMS): Remove macro.
36564 (gcd): Use ANSI C function declarations.
36565 * lib/gcd.c (gcd): Likewise.
36567 2002-11-15 Bruno Haible <bruno@clisp.org>
36569 * lib/strcspn.c: Include <stddef.h>.
36570 (strcspn): Use ANSI C function declaration. Change return type to
36572 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
36573 (strpbrk): Use NULL.
36574 * lib/strpbrk.h (PARAMS): Remove macro.
36575 (strpbrk): Use ANSI C function declaration.
36576 * lib/strstr.c: Don't include <sys/types.h>.
36577 * lib/strstr.h (PARAMS): Remove macro.
36578 (strstr): Use ANSI C function declarations.
36580 2002-11-14 Karl Berry <karl@gnu.org>
36582 * config/mkinstalldirs: `do' on separate line, instead of
36585 2002-11-06 Bruno Haible <bruno@clisp.org>
36587 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
36588 * lib/gcd.c (gcd): Likewise.
36590 2002-11-05 Bruno Haible <bruno@clisp.org>
36592 * lib/gcd.h: New file, from gettext-0.11.5.
36593 * lib/gcd.c: New file, from gettext-0.11.5.
36595 2002-11-05 Bruno Haible <bruno@clisp.org>
36597 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
36598 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
36599 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
36600 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
36602 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
36604 * lib/makepath.c: Include gettext.h instead of <locale.h> and
36607 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
36608 * lib/human.c: Include gettext.h instead of <libintl.h>.
36609 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
36610 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
36611 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
36612 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
36613 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
36614 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
36615 (textdomain): Remove definition.
36616 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
36618 * lib/long-options.c: Remove include of <libintl.h> and definition of
36620 * lib/same.c: Remove include of <libintl.h> and definition of _.
36622 2002-11-04 Owen Taylor <otaylor@redhat.com>
36624 * lib/config.charset: A few additions for Solaris.
36626 2002-11-04 Bruno Haible <haible@clisp.cons.org>
36628 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
36629 * lib/localcharset.c (locale_charset): Declare as extern "C".
36631 2002-11-04 Bruno Haible <haible@clisp.cons.org>
36633 * lib/config.charset: msdos in uk_UA uses CP1125.
36635 2002-11-04 Bruno Haible <bruno@clisp.org>
36637 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
36638 * lib/strcase.h: New file, from GNU gettext-0.11.5.
36639 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
36640 * lib/strstr.h: New file, from GNU gettext-0.11.5.
36641 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
36643 2002-11-04 Bruno Haible <bruno@clisp.org>
36645 * lib/localcharset.c (locale_charset): Don't return an empty string.
36647 2002-11-04 Bruno Haible <bruno@clisp.org>
36649 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
36652 2002-11-04 Bruno Haible <bruno@clisp.org>
36654 * lib/config.charset: Update for newest glibc. Add canonical names
36655 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
36657 2002-11-04 Bruno Haible <bruno@clisp.org>
36659 * lib/config.charset: Add support for NetBSD.
36661 2002-11-04 Bruno Haible <bruno@clisp.org>
36663 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
36665 2002-11-01 Bruno Haible <bruno@clisp.org>
36667 * configure.in: Add AC_CONFIG_AUX_DIR call.
36668 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
36670 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
36672 2002-09-28 Karl Berry <karl@gnu.org>
36674 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
36675 installed automake until the next release, since changes have been
36678 2002-09-25 Karl Berry <karl@gnu.org>
36680 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
36681 * lib/getopt*: copy from libc/posix.
36682 * lib/gettext.h: copy from gettext.
36683 * lib/.cppi-disable: add strdup.c, gettext.h.
36685 2002-09-25 Karl Berry <karl@gnu.org>
36687 * config/srclist.txt: enable gettext.h check.
36688 * config/config.{guess,sub}: update from prep.
36689 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
36690 from automake 1.6.3.
36693 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
36695 * regex.c (PATFETCH): Remove the translating fetch.
36696 (PATFETCH_RAW): Rename to PATFETCH.
36697 (set_image_of_range): New fun.
36698 (SET_RANGE_TABLE_WORK_AREA): Use it.
36699 (regex_compile): Don't translate the pattern chars so eagerly.
36700 Only do it when inserting an `exactn' bytecode or when handling
36702 (mutually_exclusive_p): Avoid empty statement.
36704 2002-07-06 Jim Meyering <meyering@lucent.com>
36706 * m4/README: Don't mention Makefile.am.in.
36707 Outline how I've tested changes to .m4 files. Yep, it's a pain.
36709 2002-07-01 Jim Meyering <meyering@lucent.com>
36711 * lib/c-stack.c: Include sys/time.h.
36712 From Volker Borchert.
36714 2002-06-26 Paul Eggert <eggert@twinsun.com>
36716 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
36718 2002-06-26 Paul Eggert <eggert@twinsun.com>
36720 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
36721 New macro. Use it uniformly instead of
36722 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
36723 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
36724 reported by Vin Shelton.
36726 2002-06-22 Paul Eggert <eggert@twinsun.com>
36728 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
36729 Do not assume SA_SIGINFO behavior.
36730 Bug reported by Jim Meyering on NetBSD 1.5.2.
36732 2002-06-22 Jim Meyering <meyering@lucent.com>
36734 * m4/c-stack.m4: New file, from diffutils-2.8.2.
36735 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
36737 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
36738 now that configure.ac uses AC_GNU_SOURCE.
36739 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
36740 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
36742 Update to latest tools. Suggestions from Paul Eggert.
36743 * m4/stdbool.m4: New file, from diffutils-2.8.2.
36744 * m4/gnu-source.m4: Update from diffutils-2.8.2.
36745 * m4/fnmatch.m4: Likewise.
36746 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
36747 to AC_HEADER_STDBOOL
36749 2002-06-22 Jim Meyering <meyering@lucent.com>
36751 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
36752 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
36754 2002-06-22 Jim Meyering <meyering@lucent.com>
36756 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
36758 * lib/exitfail.c, exitfail.h: Likewise.
36759 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
36761 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
36763 (EXTRA_DIST): Add fnmatch_loop.c.
36764 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
36766 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
36767 * lib/fnmatch.c: Update from diffutils-2.8.2.
36768 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
36769 * lib/fnmatch.h: Remove file.
36771 2002-06-21 Jim Meyering <meyering@lucent.com>
36773 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
36774 * m4/mbrtowc.m4: Likewise.
36776 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
36777 * m4/mbswidth.m4: Reflect name change:
36778 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
36779 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
36781 * m4/lib-link.m4: Update from gettext-0.11.2.
36782 * m4/gettext.m4: Likewise.
36784 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
36785 From Alfred M. Szmidt.
36787 2002-06-18 Paul Eggert <eggert@twinsun.com>
36789 * lib/file-type.h: Report an error if neither S_ISREG nor
36790 S_IFREG is defined, instead of using a test specific to glibc
36791 2.2. This should be safe, since POSIX requires S_ISREG and
36792 Unix Version 7 had S_IFREG. We don't need to check for
36793 <sys/types.h> since we don't use any symbols that it defines.
36795 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
36797 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
36798 $@-t, so that each temporary file name is unique and valid in the first
36799 8 characters, for operation under DOS.
36801 2002-06-15 Paul Eggert <eggert@twinsun.com>
36803 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
36805 2002-06-15 Jim Meyering <meyering@lucent.com>
36807 Work even with DJGPP 2.03, which lacks support for symlinks.
36809 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
36811 * lib/lchown.c (S_ISLNK): Likewise.
36813 2002-06-15 Jim Meyering <meyering@lucent.com>
36815 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
36816 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
36817 have been included before this file.
36819 2002-06-14 Jim Meyering <meyering@lucent.com>
36821 * lib/file-type.h: Use the version from diffutils-2.8.2.
36822 * lib/file-type.c: Likewise.
36824 2002-06-07 Jim Meyering <meyering@lucent.com>
36826 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
36827 They're needed at least for NetBSD 1.5.2.
36828 ($statxfs_includes): Include those same headers.
36829 ($statxfs_includes): Include sys/vfs.h if available.
36830 ($statxfs_includes): Likewise for sys/statvfs.h.
36831 Check for the following members in both structs statfs and statvfs:
36832 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
36834 2002-06-01 Jim Meyering <meyering@lucent.com>
36836 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
36837 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
36839 2002-05-28 Jim Meyering <meyering@lucent.com>
36841 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
36842 Reported by Volker Borchert.
36844 2002-05-27 Jim Meyering <meyering@lucent.com>
36846 Fix a problem seen only on nonconforming systems whereby ls.c's
36847 use of localtime, and then of gettimeofday would cause trouble:
36848 the localtime call used to initialize rpl_gettimeofday's save
36849 mechanism would clobber ls's current local time information so
36850 that in any long listing the first file would always be listed
36851 with date 1970-01-01. Analysis by Volker Borchert.
36853 * lib/gettimeofday.c (localtime): Undefine.
36854 (rpl_localtime): New function.
36856 2002-05-27 Jim Meyering <meyering@lucent.com>
36858 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
36861 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
36862 use the replacement function; it wouldn't resolve at link time.
36863 Reported by Volker Borchert.
36865 2002-05-22 Jim Meyering <meyering@lucent.com>
36867 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
36869 * lib/file-type.h: New file.
36870 * lib/file-type.c (file_type): New file/function. Extracted from
36873 2002-04-30 Jim Meyering <meyering@lucent.com>
36875 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
36877 2002-04-29 Paul Eggert <eggert@twinsun.com>
36879 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
36881 2002-04-29 Paul Eggert <eggert@twinsun.com>
36883 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
36884 Do not check for alloca.h (no longer used) or stdbool.h (was never
36885 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
36887 2002-04-29 Paul Eggert <eggert@twinsun.com>
36889 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
36891 2002-04-29 Jim Meyering <meyering@lucent.com>
36893 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
36894 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
36895 Use AC_FUNC_STRNLEN here instead.
36897 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
36898 With autoconf-2.53a, it's part of AC_PROG_CC.
36900 2002-04-28 Paul Eggert <eggert@twinsun.com>
36902 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
36903 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
36905 2002-04-28 Paul Eggert <eggert@twinsun.com>
36907 * lib/sig2str.h, lib/sig2str.c: New files.
36908 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
36910 2002-04-28 Paul Eggert <eggert@twinsun.com>
36912 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
36913 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
36914 of 127, since 64 is the largest conceivable number for ancient
36916 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
36918 2002-04-28 Jim Meyering <meyering@lucent.com>
36920 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
36922 2002-04-24 Jim Meyering <meyering@lucent.com>
36924 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
36925 (jm_PREREQ): Use it.
36927 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
36928 mach/mach.h fcntl.h.
36929 Check for this function: setlocale.
36931 2002-04-24 Jim Meyering <meyering@lucent.com>
36933 * lib/gettext.h: New file, from Gettext.
36934 * lib/Makefile.am (INCLUDES): Remove -I../intl.
36935 (libfetish_a_SOURCES): Add gettext.h.
36937 2002-04-16 Jim Meyering <meyering@lucent.com>
36939 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
36940 ut_pid, ut_id, ut_exit.
36942 2002-04-16 Jim Meyering <meyering@lucent.com>
36944 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
36945 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
36946 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
36948 2002-04-12 Jim Meyering <meyering@lucent.com>
36950 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
36951 now-bogus check for f_type in sys/mount.h. Instead, just test for the
36952 existence of the getmntinfo function. Needed for Darwin 5.3.
36954 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
36955 This is necessary at least on Darwin 5.3.
36957 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
36958 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
36959 strnlen.o in the library, and that makes some versions of ranlib
36962 2002-04-12 Jim Meyering <meyering@lucent.com>
36964 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
36966 2002-04-09 Jim Meyering <meyering@lucent.com>
36968 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
36969 to be more precise. Rather than saying we're checking whether the
36970 function `works', say what we're testing.
36971 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
36972 Reported by Bruno Haible.
36974 2002-03-10 Jim Meyering <meyering@lucent.com>
36976 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
36977 Suggestion from Santiago Vila.
36979 2002-03-08 Jim Meyering <meyering@lucent.com>
36981 * lib/rename.c: Mention that this wrapper is needed also on
36982 mips-dec-ultrix4.4 systems.
36984 2002-03-02 Jim Meyering <meyering@lucent.com>
36986 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
36987 not HAVE_CLOCK_SETTIME.
36989 2002-02-27 Paul Eggert <eggert@twinsun.com>
36991 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
36992 Check for clock_settime.
36994 2002-02-27 Paul Eggert <eggert@twinsun.com>
36996 * lib/nanosleep.h: Rename to....
36997 * lib/timespec.h: New name for nanosleep.h. All uses changed.
36999 * lib/gettime.c: New file.
37000 * lib/settime.c: New file.
37001 * lib/stime.c: Remove.
37003 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
37004 timespec.h. Remove nanosleep.h.
37006 2002-02-25 Paul Eggert <eggert@twinsun.com>
37008 * m4/acl.m4: New file.
37009 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
37010 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
37012 2002-02-25 Paul Eggert <eggert@twinsun.com>
37014 * lib/acl.c, lib/acl.h: New files.
37015 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
37017 2002-02-24 Jim Meyering <meyering@lucent.com>
37019 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
37020 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
37021 cause trouble. Reported by Nelson Beebe.
37023 2002-02-23 Paul Eggert <eggert@twinsun.com>
37025 * lib/path-concat.c (xpath_concat): Reorder code to pacify
37026 compilers that don't know that xalloc_die never returns.
37028 2002-02-20 Jim Meyering <meyering@lucent.com>
37030 * lib/getdate.c: Regenerate using bison-1.33.
37032 2002-02-17 Jim Meyering <meyering@lucent.com>
37034 * config/config.guess (main): Don't use `head -1'; it's no longer
37035 portable. Use `sed 1q' instead.
37037 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
37039 * m4/codeset.m4: Upgrade to gettext-0.11.
37040 * m4/gettext.m4: Upgrade to gettext-0.11.
37041 * m4/glibc21.m4: Upgrade to gettext-0.11.
37042 * m4/iconv.m4: Upgrade to gettext-0.11.
37043 * m4/isc-posix.m4: Upgrade to gettext-0.11.
37044 * m4/lcmessage.m4: Upgrade to gettext-0.11.
37045 * m4/lib-ld.m4: New file, from gettext-0.11.
37046 * m4/lib-link.m4: New file, from gettext-0.11.
37047 * m4/lib-prefix.m4: New file, from gettext-0.11.
37048 * m4/progtest.m4: Upgrade to gettext-0.11.
37050 2002-02-15 Paul Eggert <eggert@twinsun.com>
37052 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
37053 (jm_PREREQ): Use it.
37055 2002-02-15 Paul Eggert <eggert@twinsun.com>
37057 * lib/posixver.c, lib/posixver.h: New files.
37058 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
37060 2002-02-02 Paul Eggert <eggert@twinsun.com>
37061 Bruno Haible <bruno@clisp.org>
37063 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
37064 (fwrite_success_callback): New declaration.
37065 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
37066 print_unicode_char. Call failure callback instead of error.
37067 (fwrite_success_callback): New function.
37068 (exit_failure_callback): New function.
37069 (fallback_failure_callback): New function.
37070 (print_unicode_char): Call unicode_to_mb.
37072 2002-01-26 Jim Meyering <meyering@lucent.com>
37074 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
37075 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
37077 2002-01-26 Jim Meyering <meyering@lucent.com>
37079 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
37081 2002-01-22 Paul Eggert <eggert@twinsun.com>
37083 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
37085 2002-01-22 Jim Meyering <meyering@lucent.com>
37087 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
37088 Otherwise, some versions of automake would omit the rule that makes
37089 Makefile from Makefile.in.
37091 2002-01-21 Paul Eggert <eggert@twinsun.com>
37093 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
37094 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
37095 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
37096 (memcoll): Set errno to zero if there is no error.
37098 * lib/quotearg.c (quotearg_buffer_restyled):
37099 Fix bug with quoting buffers containing NUL when backslashing escapes.
37100 This bug was exposed by the other changes in this patch.
37101 (quotearg_n_options): New arg ARGSIZE.
37102 All callers changed.
37103 (quoting_options_from_style): New function.
37104 (quotearg_n_style): Use it.
37105 (quotearg_n_style_mem): New function.
37107 * lib/quotearg.h (quotearg_n_style_mem): New function.
37109 2002-01-19 Jim Meyering <meyering@lucent.com>
37111 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
37112 Remove useless quotes: DF_PROG="df".
37113 * m4/strnlen.m4: New file.
37115 2002-01-16 Paul Eggert <eggert@twinsun.com>
37117 * lib/backupfile.c (ISDIGIT): Comment fix.
37118 * lib/getdate.y (ISDIGIT): Likewise.
37119 * lib/posixtm.c (ISDIGIT, year): Likewise.
37120 * lib/strverscmp.c (ISDIGIT): Likewise.
37121 * lib/userspec.c (ISDIGIT): Likewise.
37123 2002-01-16 Jim Meyering <meyering@lucent.com>
37125 * lib/getdate.y: Add three semicolons, each just before a closing
37126 brace. Bison (as of version 1.31) no longer papers over that mistake.
37128 2002-01-05 Jim Meyering <meyering@lucent.com>
37130 * lib/version-etc.c (version_etc_copyright): Update copyright year.
37132 2001-12-19 Paul Eggert <eggert@twinsun.com>
37134 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
37135 not silently exit merely because the output buffer happens to
37136 have nothing pending.
37138 2001-12-18 Paul Eggert <eggert@twinsun.com>
37140 See the big note in ../ChangeLog.
37141 * lib/human.c (suffixes): Prefer K to k for 1024.
37142 (generate_suffix_backwards): New function.
37143 (human_readable_inexact): Use it.
37144 * lib/xstrtol.c (__xstrtol): If there is no number but there
37145 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
37146 Accept 'K' as well as 'k'.
37148 2001-12-15 Jim Meyering <meyering@lucent.com>
37150 * lib/regex.h (__restrict_arr): Update from libc.
37152 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
37153 as `remote' if the name starts with `//'. Suggested by Michael Stone.
37156 2001-12-14 Jim Meyering <meyering@lucent.com>
37158 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
37159 Suggestion from Bruno Haible.
37161 2001-12-10 Jim Meyering <meyering@lucent.com>
37163 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
37164 xrealloc, Instead, include "xalloc.h".
37165 (initbuffer): Don't cast xmalloc return value to char*.
37166 (readline): Reword comment.
37167 Don't cast xrealloc return value to char*
37168 Return NULL, not 0.
37170 2001-12-09 Jim Meyering <meyering@lucent.com>
37172 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
37173 about `signed and unsigned type in conditional expression'.
37174 * lib/posixtm.c (posix_time_parse): Likewise.
37176 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
37178 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
37179 to avoid a pedantic warning.
37181 * lib/getstr.c: Don't include assert.h.
37182 (getstr): Remove warning-evoking assertions.
37183 Return -1 if offset parameter is out of bounds.
37184 Change the type of a local from int to size_t.
37186 * lib/strftime.c (my_strftime_localtime_r): Include this function
37187 definition in the `#if ! HAVE_TM_GMTOFF' block.
37189 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
37190 Include xalloc.h instead.
37192 2001-12-02 Jim Meyering <meyering@lucent.com>
37194 * lib/tempname.c: Don't declare getenv, thus reverting the change of
37195 2001-11-18. It's no longer necessary, now that stdlib.h is always
37198 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
37199 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
37201 2001-11-30 Akim Demaille <akim@epita.fr>
37203 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
37204 before being defined.
37206 2001-11-27 Paul Eggert <eggert@twinsun.com>
37208 * lib/quotearg.h (quotearg_n, quotearg_n_style):
37209 First arg is int, not unsigned.
37210 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
37211 (SIZE_MAX, UINT_MAX): New macros.
37212 (quotearg_n_options): Abort if N is negative.
37213 Avoid overflow check on hosts where size_t is 64 bits and int
37214 is 32 bits, as overflow is impossible there.
37215 Fix off-by-one typo that caused unnecessary reallocation.
37217 2001-11-27 Jim Meyering <meyering@lucent.com>
37219 * lib/tempname.c: Merge with version from libc.
37220 * lib/regex.c: Likewise.
37222 * lib/tempname.c: Include stdlib.h unconditionally. On some old
37223 systems for which STDC_HEADERS is 0, it was not included, resulting in
37224 a warning about an integer-to-pointer conversion problem with getenv.
37225 Reported by Volker Borchert.
37227 2001-11-26 Jim Meyering <meyering@lucent.com>
37229 * lib/gtod.h: Remove file.
37230 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
37231 * lib/gettimeofday.c: Don't include gtod.h.
37232 (GTOD_init): Remove function.
37233 (rpl_gettimeofday): Do its job here instead, rather than aborting.
37234 Suggestion from Volker Borchert.
37236 2001-11-23 Jim Meyering <meyering@lucent.com>
37238 * lib/hash.h (struct hash_table): Don't define here. Merely declare
37240 * lib/hash.c (struct hash_table): Define it here instead.
37242 2001-11-22 Jim Meyering <meyering@lucent.com>
37244 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
37246 2001-11-20 Jim Meyering <meyering@lucent.com>
37248 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
37249 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
37251 2001-11-19 Jim Meyering <meyering@lucent.com>
37253 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
37254 directory. Use "conftestXXXXXX" as the template.
37255 Suggestion from Paul Eggert.
37257 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
37258 immediately, so the test doesn't mistakenly hit the max-open-files
37261 2001-11-18 Paul Eggert <eggert@twinsun.com>
37263 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
37264 (TEMPORARIES): New macro.
37265 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
37266 removes an artificial limitation (e.g. HP-UX 10.20, where
37269 2001-11-18 Jim Meyering <meyering@lucent.com>
37271 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
37273 2001-11-18 Jim Meyering <meyering@lucent.com>
37275 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
37278 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
37279 files will be created before anything else.
37281 2001-11-17 Paul Eggert <eggert@twinsun.com>
37283 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
37284 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
37286 2001-11-17 Jim Meyering <meyering@lucent.com>
37288 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
37289 Prompted by a report from Bob Proulx.
37291 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
37292 Instead, require UTILS_FUNC_MKSTEMP.
37294 2001-11-17 Jim Meyering <meyering@lucent.com>
37296 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
37297 Now, that's done as part of AC_FUNC_STRTOD.
37299 2001-11-17 Jim Meyering <meyering@lucent.com>
37301 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
37302 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
37303 rather than group writable. Patch by Juan F. Codagnone.
37305 * lib/readtokens.c: Remove explicit declarations of xmalloc and
37306 xrealloc, Instead, include "xalloc.h".
37308 * lib/mountlist.c: Include unlocked-io.h after all system headers.
37309 Remove explicit declarations of xmalloc, xrealloc,
37310 and xstrdup. Instead, include "xalloc.h".
37312 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
37314 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
37316 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
37318 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
37319 Reported by Padraig Brady.
37321 * lib/mkstemp.c: #undef mkstemp.
37323 (rpl_mkstemp): Rename from mkstemp.
37326 2001-11-16 Jim Meyering <meyering@lucent.com>
37328 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
37329 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
37330 determine the amount of total physical memory, use pstat_getstatic.
37331 HPUX-11 doesn't define _SC_PHYS_PAGES.
37332 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
37333 If sysconf couldn't be used to determine the amount of available
37334 physical memory, use both pstat_getstatic and pstat_getdynamic.
37335 Based on a patch from Bob Proulx.
37337 2001-11-10 Jim Meyering <meyering@lucent.com>
37339 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
37340 (jm_PREREQ): Use it.
37342 2001-11-09 Jim Meyering <meyering@lucent.com>
37344 * m4/jm-macros.m4: Require autoconf-2.52f.
37345 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
37346 Use these AC_-prefixed names, not the AM_-prefixed ones.
37348 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
37350 2001-11-05 Jim Meyering <meyering@lucent.com>
37352 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
37354 2001-11-04 Jim Meyering <meyering@lucent.com>
37356 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
37359 2001-11-03 Jim Meyering <meyering@lucent.com>
37361 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
37364 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
37365 know the name of the variable in the macro definition.
37367 2001-11-03 Jim Meyering <meyering@lucent.com>
37369 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
37370 in argmatch_to_argument call.
37372 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
37375 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
37376 e.g., a fault due to an attempt to free a NULL pointer.
37378 2001-11-01 Jim Meyering <meyering@lucent.com>
37380 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
37381 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
37383 2001-11-01 Jim Meyering <meyering@lucent.com>
37385 * lib/dirfd.c, lib/dirfd.h: New files.
37386 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
37388 * lib/hash.c (hash_print) [TESTING]: Clean up.
37390 2001-10-22 Paul Eggert <eggert@twinsun.com>
37392 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
37393 to avoid a warning if -Wall.
37395 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
37398 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
37399 (per RMS's instructions, this is now the canonical source)
37400 * lgpl/, gpl/: New directories.
37402 2001-10-21 Paul Eggert <eggert@twinsun.com>
37404 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
37406 2001-10-21 Jim Meyering <meyering@lucent.com>
37408 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
37409 this code would end up calling gettext even in packages built
37410 with --disable-nls.
37411 * lib/getopt.c (_): Likewise.
37412 * lib/regex.c (_): Likewise.
37414 2001-10-20 Paul Eggert <eggert@twinsun.com>
37416 * m4/error.m4 (jm_PREREQ_ERROR):
37417 Do not invoke AC_CHECK_FUNCS with strerror_r, as
37418 AC_FUNC_STRERROR_R does that.
37419 Check for strerror declaration.
37421 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
37422 are supposed to have them these days.
37423 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
37424 Merge changes from latest Autoconf CVS.
37425 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
37426 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
37427 POSIX decided to standardize on the int flavor of strerror_r.
37429 2001-10-20 Paul Eggert <eggert@twinsun.com>
37431 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
37432 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
37433 Use strerror_r that is only a macro, even if it is not a function.
37434 (strerror): Check for HAVE_DECL_STRERROR before declaring.
37435 (private_strerror): Use prototypes, not old-style function definition.
37436 (print_errno_message): New function.
37437 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
37438 char*-flavored one.
37439 (error_tail, error, error_at_line): Use it.
37441 2001-10-11 Jim Meyering <meyering@lucent.com>
37443 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
37444 and quote_n (1, ... to avoid clobbering a buffer.
37446 2001-10-05 Jim Meyering <meyering@lucent.com>
37448 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
37450 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
37451 * lib/hash-pjw.h: New file.
37453 2001-09-30 Jim Meyering <meyering@lucent.com>
37455 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
37456 `struct fsstat' has the `f_fstypename' member.
37457 Use that to define FS_TYPE, which is now used to make
37458 the getfsstat link test tighter.
37460 2001-09-30 Jim Meyering <meyering@lucent.com>
37462 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
37463 Include <sys/ucred.h>, for Apple Darwin.
37464 Include sys/mount.h and sys/fs_types.h only if available.
37466 (read_filesystem_list): Use FS_TYPE.
37468 2001-09-29 Paul Eggert <eggert@twinsun.com>
37470 * lib/exclude.c (excluded_filename): 0 -> false, since it's
37473 2001-09-29 Jim Meyering <meyering@lucent.com>
37475 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
37476 [one-argument getmntent function]): Include stdio.h before mntent.h.
37477 SunOS 4.1.x needs it for the declaration of `FILE'.
37478 Patch by Volker Borchert.
37480 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
37481 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
37482 sys/fs_types.h, and make the link-test for getfsstat guard #include
37483 directives with appropriate #if HAVE_*_H tests so that we can
37484 detect getfsstat on Apple Darwin1.3.7 systems.
37485 Reported by Nelson Beebe.
37486 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
37488 2001-09-28 Paul Eggert <eggert@twinsun.com>
37490 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
37491 #defines strtoimax. Also treat the other strto* functions
37494 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
37495 Check for strtoul and strtoumax,
37496 as those declarations are made even in the signed case.
37497 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
37498 Likewise, for strtol and strtoimax.
37500 2001-09-28 Paul Eggert <eggert@twinsun.com>
37502 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
37503 #defines strtoimax. Also treat the other strto* functions
37506 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
37507 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
37508 (strtoimax, strtoumax): Do not declare if already defined as a macro.
37510 2001-09-26 Jim Meyering <meyering@lucent.com>
37512 Most macros in unlocked-io.h had the wrong number of arguments.
37513 * lib/gen-uio: New script.
37514 (USE_UNLOCKED_IO): Define to 1 if not already defined.
37515 * lib/unlocked-io.hin: Remove file.
37516 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
37517 rather than trying to embed it here.
37518 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
37519 Reported by Padraig Brady.
37521 2001-09-25 Volker Borchert <bt@teknon.de>
37523 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
37526 2001-09-24 Jim Meyering <meyering@lucent.com>
37528 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
37530 2001-09-23 Jim Meyering <meyering@lucent.com>
37532 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
37533 instead of the mere test for existence of mntent.h. The latter
37534 would get a false-positive on AIX 3.4 systems.
37535 In the outer getmntent if-block, don't die if neither of the getmntent
37536 tests succeeds. Instead, just fall through and continue with the
37539 2001-09-23 Jim Meyering <meyering@lucent.com>
37541 * lib/mountlist.c: Remove useless parentheses in #if directives.
37542 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
37543 the deprecated MOUNTED symbol is no longer defined in mntent.h.
37545 2001-09-22 Jim Meyering <meyering@lucent.com>
37547 * m4/gettext.m4: New file. From gettext.
37548 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
37549 * m4/progtest.m4: Likewise
37550 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
37551 * m4/glibc21.m4: Likewise.
37553 * m4/libintl.m4: Remove. No longer used.
37555 2001-09-22 Jim Meyering <meyering@lucent.com>
37557 * lib/localcharset.c: Update from latest gettext.
37558 * lib/config.charset: Likewise.
37560 2001-09-20 Jim Meyering <meyering@lucent.com>
37562 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
37564 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
37567 2001-09-20 Jim Meyering <meyering@lucent.com>
37569 * lib/xstrtol.c (strtoimax): Guard declaration with
37570 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
37571 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
37572 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
37573 (strtoumax): Likewise, for completeness (it wasn't necessary).
37575 2001-09-17 Paul Eggert <eggert@twinsun.com>
37577 * lib/strtoimax.c (HAVE_LONG_LONG):
37578 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
37579 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
37580 to work around bug in IBM C compiler.
37582 2001-09-17 Jim Meyering <meyering@lucent.com>
37584 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
37585 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
37586 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
37587 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
37588 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
37589 whenever the right hand side need not be expanded by the shell.
37591 2001-09-16 Paul Eggert <eggert@twinsun.com>
37593 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
37594 library. It's not correct, as some older glibcs are buggy.
37595 fnmatch wasn't fixed until glibc 2.2.
37597 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
37598 special shell magic here.
37600 2001-09-16 Jim Meyering <meyering@lucent.com>
37602 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
37603 * m4/jm-macros.m4: Require it.
37605 2001-09-16 Jim Meyering <meyering@lucent.com>
37607 * lib/mkdir.c: New file.
37609 2001-09-15 Jim Meyering <meyering@lucent.com>
37611 * m4/jm-macros.m4: Check for help2man.
37613 2001-09-11 Jim Meyering <meyering@lucent.com>
37615 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
37616 The body, by Paul Eggert, was moved here from configure.in.
37617 * m4/jm-macros.m4: Require UTILS_HOST_OS.
37619 2001-09-04 Paul Eggert <eggert@twinsun.com>
37621 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
37622 (jm_PREREQ): Use it.
37624 2001-09-04 Paul Eggert <eggert@twinsun.com>
37626 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
37627 Use ssize_t, not int, to store result of readlink.
37628 Check for ssize_t overflow as well as size_t overflow,
37629 as POSIX says the result of readlink is implementation-defined
37630 when ssize_t overflows.
37631 Remove unnecessary cast to char*.
37632 Use free+malloc instead of realloc, as the storage doesn't need
37633 to be preserved and it's clearer and can be more efficient that way.
37634 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
37635 * lib/xreadlink.h (xreadlink): Update prototype.
37637 2001-09-04 Paul Eggert <eggert@twinsun.com>
37639 * lib/xgetcwd.c: Revert some of the previous change; intead,
37640 fix the HAVE_GETCWD_NULL code to behave more like the
37641 !HAVE_GETCWD_NULL code used to.
37643 Include "xalloc.h".
37644 (xgetcwd): Do not return NULL when memory is exhausted; instead,
37647 2001-09-03 Paul Eggert <eggert@twinsun.com>
37649 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
37650 sys/param.h, as pathmax.h includes them.
37652 2001-09-03 Paul Eggert <eggert@twinsun.com>
37654 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
37655 (jm_PREREQ_XGETCWD): New macro.
37657 * m4/getcwd.m4: New file.
37659 2001-09-03 Paul Eggert <eggert@twinsun.com>
37661 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
37662 like the HAVE_GETCWD_NULL code.
37663 Include pathmax.h if not HAVE_GETCWD.
37664 Do not include xalloc.h.
37665 (INITIAL_BUFFER_SIZE): New symbol.
37666 Do not use xmalloc / xrealloc, since the caller is responsible for
37667 handling errors. Preserve errno around `free' during failure.
37668 Do not overrun buffer when using getwd.
37670 2001-09-03 Paul Eggert <eggert@twinsun.com>
37672 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
37673 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
37676 2001-09-03 Paul Eggert <eggert@twinsun.com>
37678 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
37679 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
37680 spotted by Jim Meyering.
37682 2001-09-03 Jim Meyering <meyering@lucent.com>
37684 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
37687 2001-09-02 Jim Meyering <meyering@lucent.com>
37689 * lib/error.c: Update from GNU libc.
37691 2001-09-01 Jim Meyering <meyering@lucent.com>
37693 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
37696 2001-09-01 Jim Meyering <meyering@lucent.com>
37698 * lib/xreadlink.c: New file.
37699 * lib/xreadlink.h: New file.
37700 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
37703 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
37704 doesn't conflict with sparc Solaris 7's definition in
37705 /usr/include/sys/int_types.h.
37707 * lib/exclude.c: Use `""', not `<>' to #include non-system header
37709 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
37710 and strncasecmp as r-values. Unixware didn't have declarations.
37712 2001-08-31 Paul Eggert <eggert@twinsun.com>
37714 * lib/xstrtol.h: Add copyright notice.
37715 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
37716 LONGINT_INVALID_SUFFIX_CHAR.
37718 2001-08-31 Paul Eggert <eggert@twinsun.com>
37720 * lib/xstrtol.c (strtoimax): New decl.
37722 2001-08-31 Paul Eggert <eggert@twinsun.com>
37724 * lib/xgetcwd.c: Don't include pathmax.h.
37725 Include stdlib.h and unistd.h if available.
37727 (xmalloc, xstrdup, free): Remove decls.
37728 (xgetcwd): Don't assume sizes fit in unsigned.
37729 Check for overflow when computing sizes.
37730 Simplify reallocation code.
37732 2001-08-31 Paul Eggert <eggert@twinsun.com>
37734 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
37735 a directory's st_size can have an arbitrary value, so the old
37736 usage could waste an arbitrary amount of memory. All uses
37738 * lib/savedir.h: Update prototype.
37740 2001-08-31 Paul Eggert <eggert@twinsun.com>
37742 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
37744 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
37747 Also, make the following further changes to make this file's
37748 configuration more similar to that of strtol.c:
37749 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
37750 (strtoumax, uintmax_t, strtoull, strtol): Remove.
37751 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
37752 (strtoimax): Renamed from strtoumax. All uses of unsigned values
37753 changed to signed values.
37755 And make the following changes as well:
37756 Fix copyright notice, as 1999 was missing.
37757 (verify): New macro.
37758 (strtoimax): Check sizes at compile-time, not run-time.
37759 Prefer strtol to strtoll if both work.
37760 (main): Remove; it was not that useful and was a pain to maintain.
37762 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
37764 2001-08-31 Jim Meyering <meyering@lucent.com>
37766 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
37767 Use an initial, malloc'd, buffer of length 128 rather than
37768 a statically allocated one of length 1024.
37770 2001-08-30 Paul Eggert <eggert@twinsun.com>
37772 Simplify code, partly by assuming autoconf 2.52 semantics.
37774 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
37776 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
37777 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
37779 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
37780 Move AC_REQUIRE to next-to-top level, to avoid confusion.
37781 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
37782 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
37783 jm_AC_HEADER_INTTYPES_H.
37784 * m4/jm-macros.m4 (jm_MACROS): Likewise.
37786 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
37788 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
37789 Quote first arg of AC_DEFUN.
37790 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
37791 since they are needed to parse the include file even if we need
37792 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
37793 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
37794 but with opposite signedness.
37796 2001-08-30 Paul Eggert <eggert@twinsun.com>
37798 Merge 'exclude' changes from tar 1.13.22.
37799 This fixes one or two unlikely storage allocation overflow bugs,
37800 but doesn't change user-visible behavior otherwise.
37802 2001-08-30 Paul Eggert <eggert@twinsun.com>
37804 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
37805 (jm_PREREQ_EXCLUDE): New macro.
37807 2001-08-30 Paul Eggert <eggert@twinsun.com>
37809 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
37812 2001-08-30 Paul Eggert <eggert@twinsun.com>
37814 * lib/hash.c: Remove '2001' from copyright notice.
37816 2001-08-30 Paul Eggert <eggert@twinsun.com>
37818 * lib/full-write.h: New file.
37819 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
37820 * lib/full-write.c: Correct credits, as cccp.c no longer
37821 exists and anyway it was so heavily changed from the old cccp
37822 code as to be unrecognizable. Include full-write.h.
37823 (full_write) Return size_t, with short writes meaning failure.
37824 All callers changed. This fixes a bug with large buffers
37826 * lib/utime.c: Include full-write.h.
37828 2001-08-30 Paul Eggert <eggert@twinsun.com>
37830 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
37831 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
37832 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
37833 Include if available.
37834 (<xalloc.h>): Include
37835 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
37836 (verify): New macro. Use it to verify that EXCLUDE macros do not
37837 collide with FNM macros.
37838 (struct patopts): New struct.
37839 (struct exclude): Use it, as exclude patterns now come with options.
37840 (new_exclude): Support above changes.
37841 (new_exclude, add_exclude_file):
37842 Initial size must now be a power of two to simplify overflow checking.
37843 (free_exclude, fnmatch_no_wildcards): New function.
37844 (excluded_filename): No longer requires options arg, as the options
37845 are determined by add_exclude. Now returns bool, not int.
37846 (excluded_filename, add_exclude):
37847 Add support for the fancy new exclusion options.
37848 (add_exclude, add_exclude_file): Now takes int options arg.
37849 Check for arithmetic overflow when computing sizes.
37850 (add_exclude_file): xrealloc might modify errno, so don't
37851 realloc until after errno might be used.
37853 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
37855 (free_exclude): New decl.
37856 (add_exclude, add_exclude_file): Now takes int options arg.
37857 (excluded_filename): No longer requires options arg, as the options
37858 are determined by add_exclude. Now returns bool, not int.
37860 2001-08-30 Paul Eggert <eggert@twinsun.com>
37862 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
37864 2001-08-27 Jim Meyering <meyering@lucent.com>
37866 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
37868 * lib/version-etc.c (N_): Remove definition.
37869 Revert most of last change.
37870 Instead, simply don't mark the `Copyright...' string for translation.
37871 Based on advice from Paul Eggert.
37873 * lib/strtoxmax.c: Tweak comment.
37875 2001-08-26 Jim Meyering <meyering@lucent.com>
37877 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
37879 * m4/xstrtoimax.m4: New file.
37880 * m4/xstrtoumax.m4: Add comments explaining why we
37881 AC_REPLACE_FUNCS(strtol).
37883 2001-08-26 Jim Meyering <meyering@lucent.com>
37885 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
37886 of copyright with `%s' so translators don't get an untranslated
37888 (COPYRIGHT_YEAR): Define.
37889 (version_etc): Use fprintf rather than fputs.
37890 Suggestion from Ulrich Drepper.
37892 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
37894 * lib/strtoll.c: New file, from GNU libc.
37895 * lib/xstrtoimax.c: New file.
37897 * lib/xstrtol.h: Add xstrtoimax.
37898 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
37899 * lib/strtoimax.c: New file. Likewise, but first define
37902 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
37904 * lib/strtoxmax.c: ... then renamed to this.
37906 2001-08-18 Paul Eggert <eggert@twinsun.com>
37908 * m4/inttypes.m4: Add AC_PREREQ(2.13).
37909 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
37910 (jm_AC_TYPE_INTMAX_T): New macro.
37911 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
37913 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
37915 * m4/longlong.m4: Renamed from ulonglong.m4.
37916 * m4/inttypes.m4: Renamed from inttypes_h.m4.
37917 * m4/uintmax_t.m4: Removed.
37919 2001-08-13 Paul Eggert <eggert@twinsun.com>
37921 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
37922 Port to Solaris 8, where 'sed' requires a space after the 'r'
37923 command, and where sh dislikes "$/". Clean up the spacing a bit.
37924 Redirect output to $tmp just once.
37926 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
37928 * lib/addext.c (<errno.h>): Include.
37929 (errno): Declare if not defined.
37930 (addext): Work correctly when pathconf returns -1 and leaves
37931 errno alone because there is no limit. Also, work even if
37932 pathconf returns a value greater than SIZE_MAX.
37934 2001-08-12 Jim Meyering <meyering@lucent.com>
37936 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
37937 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
37938 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
37939 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
37940 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
37941 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
37942 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
37943 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
37944 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
37945 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
37946 utime.m4, utimes.m4, xstrtoumax.m4:
37947 Quote the first argument in each use of AC_DEFUN.
37949 2001-08-12 Jim Meyering <meyering@lucent.com>
37951 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
37952 Simply `return getcwd (NULL, 0);'.
37953 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
37954 Use 1300 as initial value for length, not PATH_MAX.
37956 * lib/pathmax.h: Clean up cpp syntax.
37958 2001-08-12 Jim Meyering <meyering@lucent.com>
37960 * lib/gettimeofday.c: New file.
37961 * lib/gtod.h: New file.
37962 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
37964 2001-08-05 Jim Meyering <meyering@lucent.com>
37966 * m4/jm-macros.m4: Require autoconf-2.52.
37968 2001-08-04 Jim Meyering <meyering@lucent.com>
37970 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
37971 stmt, to get in sync with glibc.
37973 2001-08-03 Paul Eggert <eggert@twinsun.com>
37975 The following changes are from gettext 0.10.39 as maintained by
37978 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
37979 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
37980 with inverted sense. All uses changed.
37982 * lib/mbswidth.c: Don't include <limits.h>.
37983 Include <stdlib.h> and <string.h> unconditionally.
37984 (iswcntrl, mbsinit, ISCNTRL): New macros.
37985 (mbsnwidth): Use K&R style function declarations.
37986 Don't bother checking for MB_LEN_MAX == 1, since the compiler
37987 can optimize it when MB_CUR_MAX == 1.
37988 The width of control characters is zero, not 1.
37990 2001-08-03 Paul Eggert <eggert@twinsun.com>
37992 The following changes are from gettext 0.10.39 as maintained by
37993 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
37995 * m4/codeset.m4: Upgrade to serial AM1.
37996 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
37997 all uses changed. Quote first arg of AC_DEFUN.
37998 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
38000 * m4/iconv.m4: Upgrade to serial AM2.
38001 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
38002 Add --with-libconv-prefix.
38003 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
38004 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
38005 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
38006 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
38007 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
38009 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
38010 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
38011 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
38012 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
38013 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
38014 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
38015 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
38016 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
38017 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
38019 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
38022 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
38023 not the default value.
38025 2001-06-25 Bruno Haible <haible@clisp.cons.org>
38026 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
38027 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
38028 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
38029 Also check for iswcntrl, used for wcwidth fallback.
38030 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
38033 2001-08-03 Jim Meyering <meyering@lucent.com>
38035 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
38036 as it was in the original. Reported by Paul Eggert.
38038 2001-07-16 Jim Meyering <meyering@lucent.com>
38040 * m4/gettimeofday.m4: New file.
38041 Prompted by a report from Bernhard Baehr.
38043 2001-07-15 Jim Meyering <meyering@lucent.com>
38045 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
38046 stuff. Now it's in ../Makefile.cfg.
38048 2001-07-15 Jim Meyering <meyering@lucent.com>
38050 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
38051 (BUILT_SOURCES): Add unlocked-io.h.
38052 (io_functions): Define.
38053 (unlocked-io.h): New rule.
38054 (DISTCLEANFILES): Add unlocked-io.h.
38055 (all-local): Depend on unlocked-io.h, to ensure it is created.
38057 * lib/unlocked-io.hin: New file
38059 * lib/regex.c: Update from glibc.
38061 2001-07-05 Jim Meyering <meyering@lucent.com>
38063 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
38065 (libfetish_a_SOURCES): Put all .h files here instead.
38066 Remove a thus-exposed (better checks in automake) duplicate and
38067 two unnecessary .h files.
38069 2001-07-04 Jim Meyering <meyering@lucent.com>
38071 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
38072 that generates jm-glibc-io.m4 so that it doesn't trigger any make
38075 2001-07-02 Jim Meyering <meyering@lucent.com>
38077 The following changes were prompted by suggestions from Bruno Haible.
38079 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
38081 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
38082 definition of EXTRA_DIST.
38083 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
38084 ensure that the generated file is created/updated whenever the list
38085 of $(unlocked_functions) is changed.
38086 (jm-glibc-io.m4): New rule.
38087 (unlocked-io.h): New rule -- currently unused.
38089 2001-06-24 Jim Meyering <meyering@lucent.com>
38091 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
38092 unmatched right bracket, rather than kludging it with an extra,
38093 falsely-matching quote in a comment. Patch by Akim Demaille.
38095 2001-06-11 Jim Meyering <meyering@lucent.com>
38097 * lib/regex.c: Update from GNU libc.
38099 2001-05-27 Jim Meyering <meyering@lucent.com>
38101 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
38102 Check for ut_type in struct utmp.
38104 2001-05-27 Jim Meyering <meyering@lucent.com>
38106 * lib/readutmp.h (UT_TYPE): Define.
38108 2001-05-24 Jim Meyering <meyering@lucent.com>
38110 * lib/argmatch.c: Include "quote.h".
38111 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
38112 quote function. Reported by Göran Uddeborg.
38114 2001-05-22 Jim Meyering <meyering@lucent.com>
38116 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
38117 now that we use the package-supplied version unconditionally.
38118 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
38120 2001-05-21 Jim Meyering <meyering@lucent.com>
38122 * m4/regex.m4: Change a couple backticks to single quotes to avoid
38123 shell syntax errors.
38125 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
38127 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
38129 2001-05-20 Paul Eggert <eggert@twinsun.com>
38131 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
38132 Don't bother to check library strftime, since
38133 we'll be using our own my_strftime function anyway.
38134 Define my_strftime instead of strftime.
38136 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
38138 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
38139 which is not yet declared.
38141 2001-05-15 Jim Meyering <meyering@lucent.com>
38143 * m4/regex.m4: Use proper quoting so brackets appear in the test
38145 Reported by, and with help from, Bruno Haible.
38147 2001-05-13 Jim Meyering <meyering@lucent.com>
38149 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
38152 2001-05-11 Paul Eggert <eggert@twinsun.com>
38154 dirname code cleanup. base_name now behaves more compatibly
38155 with POSIX basename when given file names that have trailing
38156 slashes, and similarly for dir_name. Add new primitives
38157 base_len and dir_len. Put the directory-name-related decls
38160 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
38161 * lib/backupfile.c (base_name): Likewise.
38162 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
38163 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
38164 * lib/makepath.c (strip_trailing_slashes): Likewise.
38165 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
38166 ISSLASH): Likewise.
38167 * lib/rename.c (strip_trailing_slashes): Likewise.
38168 * lib/same.c (base_name): Likewise.
38169 * lib/stripslash.c (ISSLASH): Likewise.
38171 * lib/addext.c: Include <dirname.h> after size_t is defined.
38172 * lib/backupfile.c: Likewise.
38174 * lib/addext.c (addext): Use base_len to trim redundant
38175 trailing slashes instead of doing it ourselves.
38176 But do not trim the last slash if it is not redundant.
38178 * lib/backupfile.c (find_backup_file_name,
38179 max_backup_version): Use base_len instead of rolling it ourselves.
38180 Handle the case of "" and (on DOS) "C:" correctly.
38182 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
38183 needed. Include <string.h>, <dirname.h>.
38184 (base_name): Allow file names ending in slashes, other than names
38185 that are all slashes. In this case, return the basename followed
38186 by the slashes. This is more general, and can be used in places
38187 where the original base_name purposely had an assertion failure.
38188 (base_len): New function.
38190 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
38191 Do not include <assert.h>; no longer needed.
38193 (memrchr): Remove decl.
38194 (dir_name_r): Remove.
38195 (dir_len): Renamed from dirlen. All callers changed.
38196 Rewrite in terms of base_name, for simplicity and consistency.
38197 (dir_name): Never return NULL. All callers changed.
38198 Do not include <stdlib.h> in test program; no longer needed.
38199 return 0; is fine for test program.
38201 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
38203 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
38205 * lib/path-concat.c (path_concat): Use base_len to compute
38206 base length, not strlen; this means we cannot rely on memcpy
38209 * lib/same.c (STREQ): Remove.
38210 (same_name): Handle the case where the basename ends in trailing '/'.
38212 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
38213 a slash was stripped. Do not strip the last slash after a
38214 file system prefix.
38216 2001-05-11 Paul Eggert <eggert@twinsun.com>
38218 * lib/Makefile.am (libfetish_a_SOURCES):
38219 Add strftime.c, since we now compile it on all hosts.
38221 * lib/strftime.c (my_strftime):
38222 Define to nstrftime if emacs, but only if my_strftime is not defined.
38223 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
38224 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
38225 Add one more extra argument: a nanoseconds value.
38228 (my_strftime function): Add %N format.
38229 (emacs_strftimeu): Renamed from emacs_strftime,
38230 with extra ut argument.
38232 2001-05-09 Paul Eggert <eggert@twinsun.com>
38234 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
38236 2001-04-21 Jim Meyering <meyering@lucent.com>
38238 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
38241 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
38243 * m4/ftruncate.m4: Check for chsize.
38244 Link with ftruncate.o unconditionally if ftruncate is missing.
38245 This was required when cross-compiling to i586-mingw32msvc.
38247 2001-04-08 Jim Meyering <meyering@lucent.com>
38249 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
38250 recomputed; that's necessary when the offset spans a DST transition.
38251 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
38253 2001-04-02 Jim Meyering <meyering@lucent.com>
38255 * lib/regex.h, regex.c: Update from GNU libc.
38257 2001-03-24 Jim Meyering <meyering@lucent.com>
38259 * m4/jm-macros.m4: Require autoconf-2.49d.
38261 2001-03-20 Bruno Haible <haible@clisp.cons.org>
38263 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
38265 2001-03-19 Paul Eggert <eggert@twinsun.com>
38267 * lib/version-etc.c (version_etc_copyright): Update to 2001.
38269 2001-03-17 Jim Meyering <meyering@lucent.com>
38271 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
38272 now that the version in autoconf is equivalent.
38273 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
38275 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
38276 Suggestion from Akim Demaille.
38278 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
38279 (jm_PREREQ_TEMPNAME): New function.
38281 2001-03-16 Paul Eggert <eggert@twinsun.com>
38283 * lib/tempname.c (uint64_t): Define to uintmax_t if
38284 not defined, and if UINT64_MAX is not defined.
38285 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
38286 Reported by John David Anglin.
38288 2001-03-15 Bruno Haible <haible@clisp.cons.org>
38290 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
38291 resolve alias if codeset is empty.
38292 * lib/config.charset (BeOS): Use wildcard syntax.
38294 2001-03-13 Jim Meyering <meyering@lucent.com>
38296 * lib/path-concat.c (path_concat)
38297 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
38298 concatenating e.g., `C:' and `foo'.
38301 2001-03-06 Bruno Haible <haible@clisp.cons.org>
38303 * lib/localcharset.c (locale_charset): Don't use
38304 setlocale(LC_CTYPE,NULL). Don't return NULL.
38305 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
38307 2001-03-06 Bruno Haible <haible@clisp.cons.org>
38309 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
38310 support for DOS/DJGPP.
38312 2001-03-01 Paul Eggert <eggert@twinsun.com>
38314 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
38315 lacks mkstemp. Compile our own tempname.c if we compile our own
38316 mkstemp.c, as mkstemp relies on tempname.
38318 2001-03-01 Jim Meyering <meyering@lucent.com>
38320 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
38321 AH_VERBATIM really does output its argument verbatim.
38323 2001-02-28 Paul Eggert <eggert@twinsun.com>
38325 * lib/Makefile.am (libfetish_a_SOURCES):
38326 Add dup-safer.c, fopen-safer.c.
38327 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
38329 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
38330 * lib/unistd-safer.h: New files.
38332 2001-02-25 Paul Eggert <eggert@twinsun.com>
38334 The mkstemp replacement is taken from glibc 2.2.2, with some
38335 portability fixes for use outside glibc, as follows:
38337 * lib/tempname.c (struct_stat64): New macro.
38338 (direxists, __gen_tempname): Use it.
38339 This avoids a portability problem with Solaris 8.
38341 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
38342 (<stddef.h>, <stdint.h>, <string.h>):
38343 Include only if STDC_HEADERS || _LIBC.
38344 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
38345 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
38346 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
38347 (__set_errno): Define this macro if <errno.h> doesn't.
38348 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
38349 Define these macros if <stdio.h> doesn't.
38350 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
38351 Define these macros if <sys/stat.h>
38352 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
38353 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
38354 __xstat64): Define if not _LIBC.
38355 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
38356 (__gen_tempname): Invoke gettimeofday only if
38357 HAVE_GETTIMEOFDAY || _LIBC;
38358 otherwise, fall back on plain "time".
38359 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
38361 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
38363 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
38365 2001-02-18 Paul Eggert <eggert@twinsun.com>
38367 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
38369 2001-02-17 Paul Eggert <eggert@twinsun.com>
38371 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
38372 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
38373 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
38374 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
38376 2001-02-17 Paul Eggert <eggert@twinsun.com>
38378 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
38379 Remove workaround macros for hosts that have mbrtowc but not
38380 mbstate_t, as we now insist on proper declarations for both
38381 before using mbrtowc.
38383 2001-02-17 Jim Meyering <meyering@lucent.com>
38385 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
38386 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
38387 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
38390 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
38391 rather than AC_CACHE_VAL.
38393 2001-02-17 Jim Meyering <meyering@lucent.com>
38395 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
38396 around included file name.
38398 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
38400 * lib/strftime.c: Update from GNU libc (the only changes were to
38403 2001-02-17 Jim Meyering <meyering@lucent.com>
38405 * lib/regex.c: Update from libc.
38407 2001-02-17 Bruno Haible <haible@clisp.cons.org>
38409 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
38412 2001-02-16 Paul Eggert <eggert@twinsun.com>
38414 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
38415 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
38416 Reported by Mark Hounschell via Paul Eggert.
38418 2001-02-07 Jim Meyering <meyering@lucent.com>
38420 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
38422 2001-02-05 Jim Meyering <meyering@lucent.com>
38424 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
38425 it includes the patch required for `large file' support with at least
38426 HP-UX's 10.20 /bin/cc.
38428 2001-02-03 Jim Meyering <meyering@lucent.com>
38430 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
38431 AS_IF, now that it works once again (mysteriously).
38432 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
38434 2001-01-30 Jim Meyering <meyering@lucent.com>
38436 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
38437 * m4/chown.m4: Rename conftestchown to conftest.chown.
38438 * m4/rename.m4: s/conftestdir/conftest.d1/ and
38439 s/conftestdir2/conftest.d2/.
38440 * m4/utimes.m4: s/conftestdata/conftest.data/
38441 Inspired by Pavel Roskin's change in autoconf.
38443 2001-01-30 Bruno Haible <haible@clisp.cons.org>
38445 * lib/config.charset: Update for FreeBSD 4.2.
38447 2001-01-27 Jim Meyering <meyering@lucent.com>
38449 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
38451 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
38453 2001-01-26 Jim Meyering <meyering@lucent.com>
38455 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
38456 quotearg.c includes it.
38458 2001-01-26 Jim Meyering <meyering@lucent.com>
38460 * lib/quotearg.c: Include stddef.h.
38461 * lib/quote.c: Include stddef.h.
38462 Reported by Axel Kittenberger.
38464 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
38465 line in double quotes so that it evokes a better diagnostic.
38466 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
38467 Reported by Axel Kittenberger.
38469 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
38471 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
38472 as if it was a `charset'.
38474 2001-01-21 Bruno Haible <haible@clisp.cons.org>
38476 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
38479 2001-01-21 Bruno Haible <haible@clisp.cons.org>
38481 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
38482 to avoid a warning. Add back 'const' to inptr.
38484 2001-01-20 Jim Meyering <meyering@lucent.com>
38486 Be sure that headers are checked before used in code compiled
38487 for the type checks.
38488 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
38489 In place of that, invoke jm_CHECK_ALL_TYPES.
38490 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
38491 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
38492 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
38493 The check for ssize_t was mistakenly run before the test for unistd.h.
38495 The configure-time check for stdbool.h was missing.
38496 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
38497 (jm_PREREQ_HASH): New function.
38499 2001-01-17 Jim Meyering <meyering@lucent.com>
38501 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
38502 for autoconf-2.49c.
38503 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
38505 2001-01-16 Jim Meyering <meyering@lucent.com>
38507 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
38510 2001-01-14 Jim Meyering <meyering@lucent.com>
38512 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
38513 foo and bar. Create conftestdir/ in the script, not in the C code.
38514 Remove directories in the script, not in the C code.
38515 Remove conftestdir{,2} before trying to create the directory.
38516 Make the entire configure script fail if the mkdir fails.
38518 2001-01-14 Jim Meyering <meyering@lucent.com>
38520 * lib/rename.c: New file. From Volker Borchert.
38521 Include stdlib.h, string.h or strings.h, and xalloc.h.
38522 Use strip_trailing_slashes rather than open-coding it.
38524 2001-01-03 Paul Eggert <eggert@twinsun.com>
38526 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
38528 2001-01-03 Jim Meyering <meyering@lucent.com>
38530 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
38531 of local `inptr' to avoid warning with some system declarations of
38534 2001-01-02 Volker Borchert <bt@teknon.de>
38536 * m4/rename.m4: New file.
38537 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
38539 2001-01-01 Jim Meyering <meyering@lucent.com>
38541 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
38542 even on systems with utmpx.h. It's necessary for the declaration of
38543 utmp's ut_user member. Reported by Andreas Jaeger.
38545 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
38546 available. They are required for the declarations of getgrgid and
38548 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
38549 Reported by Andreas Jaeger.
38551 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
38553 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
38554 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
38555 so `make install' also works in VPATH builds.
38557 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
38559 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
38560 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
38561 can be used in subdirectories.
38563 2000-12-29 Paul Eggert <eggert@twinsun.com>
38565 * lib/modechange.c: Do not assume that mode_t uses the
38566 traditional octal encoding. E.g. "chmod 1 FOO" should set
38567 the other-execute bit of FOO even if S_IXOTH != 1.
38569 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
38570 WOTH, XOTH, ALLM): New macros.
38571 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
38572 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
38574 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
38575 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
38577 No need to use uintmax_t; unsigned long is long enough.
38578 Don't bother to get suffix since we don't use it.
38580 2000-12-26 Jim Meyering <meyering@lucent.com>
38582 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
38583 better with autoheader.
38585 2000-12-24 Jim Meyering <meyering@lucent.com>
38587 * lib/hash.c (is_prime): Return explicit boolean values.
38588 (hash_get_first): Return NULL to appease Irix5.6's 89.
38589 Reported by Nelson Beebe.
38591 2000-12-19 Bruno Haible <haible@clisp.cons.org>
38593 * lib/localcharset.c (locale_charset): Add support for Win32.
38595 2000-12-18 Paul Eggert <eggert@twinsun.com>
38597 * lib/physmem.h, lib/physmem.c: New files.
38599 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
38600 (noinst_HEADERS): Add physmem.h.
38602 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
38603 't' for compatibility with Solaris 8 sort.
38605 2000-12-18 Bruno Haible <haible@clisp.cons.org>
38607 * lib/config.charset: Add support for BeOS.
38609 2000-12-17 Jim Meyering <meyering@lucent.com>
38611 * m4/dos.m4 (jm_AC_DOS): New file and macro.
38612 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
38614 2000-12-16 Jim Meyering <meyering@lucent.com>
38616 This bug had a serious impact on chown: `chown N:M FILE' (for integer
38617 N and M) would have treated it like `chown N:N FILE'.
38619 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
38621 2000-12-16 Jim Meyering <meyering@lucent.com>
38623 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
38624 SHELLS_FILE to a file name that's useful on djgpp systems.
38626 (ADDITIONAL_DEFAULT_SHELLS): Define.
38627 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
38628 Based mostly on a patch from Prashant TR.
38630 2000-12-16 Bruno Haible <haible@clisp.cons.org>
38632 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
38633 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
38634 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
38636 2000-12-08 Andreas Schwab <schwab@suse.de>
38638 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
38639 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
38641 2000-12-07 Jim Meyering <meyering@lucent.com>
38643 * lib/stripslash.c (ISSLASH): Define.
38644 (strip_trailing_slashes): Use ISSLASH rather than comparing against
38648 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
38649 (dir_name_r): Declare this function as static.
38650 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
38651 manifest itself on a name containing a mix of slashes and
38653 Make this function work with names starting with a DOS-style
38654 drive letter and colon prefix.
38655 (dir_name): Append `.' if necessary.
38656 Based mostly on patches from Prashant TR and Eli Zaretskii.
38658 * lib/dirname.h (dir_name_r): Remove prototype.
38660 2000-12-06 Paul Eggert <eggert@twinsun.com>
38662 * m4/off_t-format.m4: Remove this file.
38663 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
38665 2000-12-06 Jim Meyering <meyering@lucent.com>
38667 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
38668 replacement strtoull, we may well need the replacement strtoul, too.
38669 Check for declarations of strtoul and strtoull.
38670 Check for strtol. Mainly as a cue to cause automake to include
38671 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
38672 Check for limits.h -- strtol.c needs it.
38674 2000-12-05 Jim Meyering <meyering@lucent.com>
38676 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
38678 2000-12-04 Jim Meyering <meyering@lucent.com>
38680 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
38681 Also include memory.h, stdlib.h, unistd.h if appropriate.
38682 Reported by Andreas Jaeger (conflicting declaration of malloc).
38684 2000-12-02 Jim Meyering <meyering@lucent.com>
38686 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
38687 * m4/jm-macros.m4 (jm_MACROS): require it.
38689 2000-12-02 Jim Meyering <meyering@lucent.com>
38691 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
38693 2000-12-01 Paul Eggert <eggert@twinsun.com>
38695 * lib/memrchr.c: Include <config.h> before any system include file.
38697 2000-11-30 Jim Meyering <meyering@lucent.com>
38699 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
38701 2000-11-30 Jim Meyering <meyering@lucent.com>
38703 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
38705 2000-11-29 Paul Eggert <eggert@twinsun.com>
38707 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
38709 2000-11-26 Jim Meyering <meyering@lucent.com>
38711 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
38713 2000-11-22 Paul Eggert <eggert@twinsun.com>
38715 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
38716 size of (size_t) -1; it's not portable.
38718 2000-11-17 Jim Meyering <meyering@lucent.com>
38720 * lib/strstr.c: Update from GNU libc.
38722 2000-11-17 Akim Demaille <akim@epita.fr>
38724 * lib/obstack.h: Formatting changes.
38725 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
38726 prevent type checking.
38727 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
38728 cast the value to (void *): assigning a `foo *' to a `void *'
38730 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
38732 2000-11-16 Jim Meyering <meyering@lucent.com>
38734 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
38736 2000-11-11 Jim Meyering <meyering@lucent.com>
38738 * lib/error.c: Add a couple #includes, merging from GNU libc version.
38740 2000-11-10 Jim Meyering <meyering@lucent.com>
38742 * lib/obstack.h: Update from GNU libc.
38743 * lib/obstack.c: Likewise.
38745 2000-11-08 Bruno Haible <haible@clisp.cons.org>
38747 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
38749 2000-11-06 Paul Eggert <eggert@twinsun.com>
38751 * lib/getusershell.c (setusershell): Use rewind rather than
38752 fseek/fseeko, to avoid configuration hassles with fseeko.
38753 Don't bother opening SHELLS_FILE if shellstream is NULL;
38754 it's not necessary.
38756 2000-11-05 Jim Meyering <meyering@lucent.com>
38758 * lib/makepath.h (make_dir): Declare.
38759 * lib/makepath.c (make_dir): Remove `static' attribute.
38762 2000-11-04 Jim Meyering <meyering@lucent.com>
38764 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
38766 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
38768 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
38769 last one in a bucket, advance to the next bucket.
38771 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
38773 * lib/fnmatch.c: Do not comment out all the code if we are using
38774 the GNU C library, because in some cases we are replacing buggy
38775 code in the GNU C library itself.
38777 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
38779 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
38780 (regex_compile): Catch bogus \(\1\).
38782 2000-10-30 Paul Eggert <eggert@twinsun.com>
38784 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
38785 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
38786 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
38788 2000-10-30 Paul Eggert <eggert@twinsun.com>
38790 * lib/error.h, getline.h, modechange.h:
38791 Remove "2000" from Copyright line, as the file hasn't been
38792 changed this year other than in the copyright notice.
38794 * lib/xalloc.h: Add "2000" to Copyright line, as this file
38795 was changed this year.
38797 2000-10-29 Jim Meyering <meyering@lucent.com>
38799 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
38801 * m4/ls-mntd-fs.m4: Likewise
38803 2000-10-29 Jim Meyering <meyering@lucent.com>
38805 * lib/xstat.in: Fix grammar in comment.
38807 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
38809 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
38810 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
38811 doesn't define __restrict_arr.
38813 2000-10-28 Jim Meyering <meyering@lucent.com>
38815 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
38816 (jm_PREREQ_MEMCHR): New function.
38818 2000-10-28 Jim Meyering <meyering@lucent.com>
38820 * lib/memchr.c: Update from libc.
38821 Adjust for portability:
38822 [HAVE_STDLIB_H]: Include stdlib.h.
38823 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
38824 Undef __memchr, too.
38825 [!weak_alias]: Define __memchr to memchr.
38827 * lib/regex.c: Update from libc.
38828 * lib/regex.h: Likewise.
38829 * lib/getopt1.c: Likewise.
38830 * lib/memcmp.c: Likewise.
38832 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
38833 Avoid using fseek, when possible -- it's broken by design.
38834 Patch by Ulrich Drepper.
38836 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
38838 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
38839 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
38840 Giving in to popular pressure to shut up the compiler with casts.
38842 2000-10-26 Jim Meyering <meyering@lucent.com>
38844 * lib/strftime.c: Update from libc.
38846 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
38848 * regex.c: More `unsigned char' -> `re_char' changes.
38849 Also change several `int' into `re_wchar_t'.
38850 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
38851 (PUSH_FAILURE_POINTER): Don't cast any more.
38852 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
38853 We want GCC to complain, since this piece of code makes
38854 re_match non-reentrant, which *should* be fixed.
38855 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
38856 (EXTEND_BUFFER): Use RETALLOC.
38857 (SET_LIST_BIT): Don't cast.
38858 (re_wchar_t): New type.
38859 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
38860 that those two functions will always properly return.
38861 (IMMEDIATE_QUIT_CHECK): Cast to void.
38862 (analyse_first): Use recursion rather than an explicit stack.
38863 (re_compile_fastmap): Can't fail anymore.
38864 (re_search_2): Don't check re_compile_fastmap for failure.
38865 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
38866 Now also sets the new value (passed in a new argument).
38867 (re_match_2_internal): Use it.
38868 Also, use a new var `reg' of type size_t when looping through regs
38869 rather than reuse the inappropriate `mcnt'.
38871 2000-10-25 Jim Meyering <meyering@lucent.com>
38873 * lib/obstack.c: Update from libc.
38875 2000-10-24 Kenichi Handa <handa@etl.go.jp>
38877 * regex.c (regex_compile): Change the way of handling a range from
38878 a char less than 256 to a char not less than 256.
38880 2000-10-24 Andrew Innes <andrewi@gnu.org>
38882 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
38884 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
38885 so that re_search functions only quit when callers expect them to.
38887 2000-10-23 Jim Meyering <meyering@lucent.com>
38889 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
38890 wrong. That set_locale call must not have any side effects.
38893 2000-10-22 Jim Meyering <meyering@lucent.com>
38895 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
38896 [CYCLIC]: Remove now-unused definition.
38898 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
38899 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
38900 Suggestion from Ulrich Drepper.
38902 2000-10-21 Jim Meyering <meyering@lucent.com>
38904 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
38905 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
38906 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
38908 2000-10-21 Jim Meyering <meyering@lucent.com>
38910 * lib/dirname.c (memrchr): Declare if necessary.
38911 (dir_name): Remove the restriction that there be no
38912 trailing slashes. Now, this code skips past them, effectively
38914 [TEST_DIRNAME] (main): New unit tests.
38916 * lib/memrchr.c: New file from GNU libc.
38917 Undef __memrchr, too.
38918 [!weak_alias]: Define __memrchr to memrchr.
38919 Guard weak_alias use with `#ifdef weak_alias'.
38921 2000-10-21 Jim Meyering <meyering@lucent.com>
38923 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
38924 (dir_name): Use dir_name_r.
38925 * lib/dirname.h (dir_name_r): Declare it.
38927 2000-10-17 Jim Meyering <meyering@lucent.com>
38929 * lib/quote.h (PARAMS): Define and use.
38930 Reported by Akim Demaille.
38932 * lib/getopt.c: Update from libc.
38934 2000-10-16 Jim Meyering <meyering@lucent.com>
38936 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
38940 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
38942 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
38944 2000-09-25 Jim Meyering <meyering@lucent.com>
38946 * lib/md5.h (rol): Define (from GnuPG).
38948 * lib/sha.c: Give credit (GnuPG) where due.
38949 (M): Use rol rather than open-coding it.
38950 Add a FIXME comment.
38952 2000-09-21 Jim Meyering <meyering@lucent.com>
38954 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
38955 Reported by Michael Stone.
38957 2000-09-20 Jim Meyering <meyering@lucent.com>
38959 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
38960 (noinst_HEADERS): Add sha.h.
38961 Based on code from Scott G. Miller and from GnuPG.
38963 2000-09-18 Jim Meyering <meyering@lucent.com>
38965 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
38966 LIBS. Otherwise, everyone ends up linking with -lelf for some
38968 Reported by Mike Stone.
38970 2000-09-15 Jim Meyering <meyering@lucent.com>
38972 * lib/regex.c: Update from libc.
38974 2000-09-10 Jim Meyering <meyering@lucent.com>
38976 * lib/getopt.c (_getopt_internal): Update from glibc.
38978 2000-09-09 Jim Meyering <meyering@lucent.com>
38980 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
38981 think it should be used as a general replacement for isascii.
38982 * lib/fnmatch.c: Likewise.
38983 * lib/mbswidth.c: Likewise
38984 * lib/regex.c: Likewise.
38987 * lib/userspec.c: Include sys/param.h and limits.h.
38989 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
38990 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
38991 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
38992 UID, GID. Check range.
38994 2000-09-06 Jim Meyering <meyering@lucent.com>
38996 * lib/getopt.c (_getopt_internal): Update from glibc.
38998 2000-08-30 Jim Meyering <meyering@lucent.com>
39000 * lib/strftime.c: Merge in changes from GNU libc.
39002 2000-08-26 Jim Meyering <meyering@lucent.com>
39004 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
39005 * m4/fpending.m4: New file.
39007 2000-08-26 Jim Meyering <meyering@lucent.com>
39009 * lib/closeout.c: Include "__fpending.h".
39010 (close_stdout_status): Return right away if there's nothing to flush.
39012 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
39013 * lib/__fpending.c: New file.
39014 * lib/__fpending.h: New file.
39016 2000-08-20 Jim Meyering <meyering@lucent.com>
39018 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
39019 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
39020 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
39022 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
39024 Improve fileutils installation on systems where running
39025 programs (like install) can't be unlinked.
39026 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
39027 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
39029 2000-08-07 Paul Eggert <eggert@twinsun.com>
39031 Standardize on "memory exhausted" instead of "Memory exhausted"
39032 or "virtual memory exhausted".
39033 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
39034 "virtual memory exhausted".
39035 * lib/same.c (same_name): Invoke xalloc_die instead of printing
39037 * lib/userspec.c (parse_user_spec): Likewise.
39038 * lib/bumpalloc.h: comment fix
39039 * lib/same.c, userspec.c: Include xalloc.h.
39041 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
39042 not char *const and pointing to a constant array.
39043 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
39044 (xrealloc): Comment fix.
39046 * lib/userspec.c (parse_user_spec):
39047 Don't translate a message until just before returning,
39048 to avoid unnecessary translation.
39050 2000-08-07 Jim Meyering <meyering@lucent.com>
39052 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
39053 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
39054 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
39055 getgroups.c, gethostname.c, getopt.h, group-member.c,
39056 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
39057 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
39058 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
39059 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
39060 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
39061 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
39062 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
39063 yesno.c: Back out Copyright date changes for each file with no change
39064 this year. This eases coordination with other programs using the same
39065 source code modules. From Paul Eggert.
39067 2000-08-06 Paul Eggert <eggert@twinsun.com>
39069 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
39070 not char, for compatibility with glibc 2.1.3 strftime.c.
39072 2000-08-03 Greg McGary <greg@mcgary.org>
39074 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
39075 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
39076 (EXTEND_BUFFER): Use them.
39078 2000-08-01 Jim Meyering <meyering@lucent.com>
39080 * lib/dirname.c (ISSLASH): Define.
39081 (BACKSLASH_IS_PATH_SEPARATOR): Define.
39082 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
39083 both `\' and `/' may be use as path separators.
39084 Based on a patch from Prashant TR.
39086 2000-07-31 Paul Eggert <eggert@twinsun.com>
39088 * lib/quotearg.c (quotearg_n_options): Don't make the initial
39089 slot vector a constant, since it might get modified.
39091 2000-07-31 Jim Meyering <meyering@lucent.com>
39093 * lib/xmalloc.c: Use `virtual memory exhausted', not
39094 `Memory exhausted'.
39095 * lib/obstack.c (print_and_abort): Likewise.
39097 2000-07-30 Paul Eggert <eggert@twinsun.com>
39099 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
39100 buffer, so that the caller can always quote one small
39101 component of a "memory exhausted" message in slot 0.
39102 From a suggestion by Jim Meyering.
39104 2000-07-30 Jim Meyering <meyering@lucent.com>
39106 * lib/makepath.c (make_path): Quote the other instance, too.
39108 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
39109 (STATIC_BUF_SIZE): Define.
39110 (quotearg_n_options): Use only statically allocated storage when
39111 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
39112 than STATIC_BUF_SIZE.
39114 2000-07-29 Jim Meyering <meyering@lucent.com>
39116 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
39117 * lib/dirname.c (dir_name): Likewise.
39119 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
39122 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
39123 (dir_name): Assert that there are no trailing slashes.
39125 2000-07-29 Bruno Haible <haible@clisp.cons.org>
39127 * lib/mbswidth.h (mbswidth): Add a flags argument.
39128 (mbswidth): New declaration.
39129 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
39130 * lib/mbswidth.c (mbswidth): Add a flags argument.
39131 (mbsnwidth): New function.
39133 2000-07-24 Jim Meyering <meyering@lucent.com>
39135 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
39137 2000-07-23 Paul Eggert <eggert@twinsun.com>
39139 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
39141 2000-07-23 Paul Eggert <eggert@twinsun.com>
39143 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
39144 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
39145 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
39146 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
39147 invoke multibyte primitives.
39149 2000-07-23 Paul Eggert <eggert@twinsun.com>
39152 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
39153 so that mbstate_t is always defined.
39155 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
39156 be 1 in at least one GCC installation, and this configuration
39157 error is likely to be common. Ignoring MB_LEN_MAX hurts
39158 performance on hosts that have mbrtowc but have only unibyte
39159 locales, but I assume these hosts are rare.
39161 2000-07-23 Paul Eggert <eggert@twinsun.com>
39163 * lib/mbswidth.c (_XOPEN_SOURCE):
39164 Don't define; this causes problems on Solaris 7.
39165 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
39167 2000-07-23 Jim Meyering <meyering@lucent.com>
39169 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
39170 too: getgrgid, getpwuid, getuid.
39172 2000-07-23 Jim Meyering <meyering@lucent.com>
39174 * lib/basename.c (base_name): Add an assertion.
39176 2000-07-23 Bruno Haible <haible@clisp.cons.org>
39178 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
39179 shadow its mbsinit function.
39181 2000-07-17 Bruno Haible <haible@clisp.cons.org>
39183 * lib/mbswidth.h: New file.
39184 * lib/mbswidth.c: New file.
39185 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
39186 (noinst_HEADERS): Add mbswidth.h.
39188 2000-07-17 Bruno Haible <haible@clisp.cons.org>
39190 * lib/config.charset: Add support for FreeBSD. Improve support for
39193 2000-07-16 Bruno Haible <haible@clisp.cons.org>
39195 * m4/mbswidth.m4: New file.
39196 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
39198 2000-07-15 Jim Meyering <meyering@lucent.com>
39200 * lib/makepath.c: Include quote.h.
39201 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
39202 corresponding argument in a `quote (...)' call.
39203 Give better diagnostics.
39205 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
39206 (noinst_HEADERS): Add quote.h.
39208 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
39209 from tar's src/misc.c.
39210 * lib/quote.h: New file. Prototypes for same.
39212 2000-07-14 Paul Eggert <eggert@twinsun.com>
39214 From a suggestion by Bruno Haible.
39215 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
39216 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
39217 to decide whether to define the BeOS workaround macro;
39218 this adjusts to the change to AC_MBSTATE_T.
39220 2000-07-14 Jim Meyering <meyering@lucent.com>
39222 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
39223 jm_AC_TYPE_UINTMAX_T.
39225 2000-07-13 Paul Eggert <eggert@twinsun.com>
39227 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
39229 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
39230 quotearg_buffer_restyled): Add support for
39231 clocale_quoting_style. Undo previous change to
39232 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
39233 and "{RIGHT QUOTATION MARK}" msgids.
39235 2000-07-10 Paul Eggert <eggert@twinsun.com>
39237 From a suggestion by Bruno Haible.
39238 * m4/mbstate_t.m4 (AC_MBSTATE_T):
39239 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
39240 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
39241 and mbstate_t, to a single-part test that simply defines mbstate_t.
39242 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
39243 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
39245 2000-07-10 Jim Meyering <meyering@lucent.com>
39247 * m4/strerror_r.m4: Mirror the correction made in autoconf.
39249 * m4/gnu-source.m4: Output to confdefs.h directly.
39250 Suggestion from Akim Demaille.
39252 2000-07-09 Paul Eggert <eggert@twinsun.com>
39254 The old behavior of quoting `like this' doesn't look good with
39255 newer, ISO-style fonts. See:
39256 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
39258 Instead, quote "like this" by default. Let the translator
39259 tailor the locale-specific quoting behavior by providing
39260 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
39262 * lib/quotearg.c (N_): New macro.
39263 (gettext_default): New function.
39264 (quotearg_buffer_restyled): Use
39265 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
39266 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
39268 2000-07-09 Jim Meyering <meyering@lucent.com>
39270 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
39271 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
39273 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
39274 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
39276 2000-07-09 Jim Meyering <meyering@lucent.com>
39278 * lib/Most files: Update copyright dates to include 2000.
39280 2000-07-08 Jim Meyering <meyering@lucent.com>
39282 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
39284 (xgethostname): Remove now-unnecessary #ifdef.
39285 Move declaration of `err' into loop where it's used.
39287 2000-07-05 Paul Eggert <eggert@twinsun.com>
39288 and Bruno Haible <haible@clisp.cons.org>
39290 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
39291 only if the test for an object-type mbstate_t fails. This
39292 prevents us from mistakenly reporting that mbstate_t is a
39293 system object type after we "#define mbstate_t int" to work
39296 2000-07-05 Paul Eggert <eggert@twinsun.com>
39297 and Bruno Haible <haible@clisp.cons.org>
39299 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
39301 2000-07-05 Bruno Haible <haible@clisp.cons.org>
39303 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
39305 Include <ctype.h> for use of isalpha.
39307 2000-07-05 Bruno Haible <haible@clisp.cons.org>
39309 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
39310 by allocating a larger buffer. Test the gethostname return value for
39311 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
39312 returns an error and ENAMETOOLONG isn't defined.
39314 2000-07-05 Bruno Haible <haible@clisp.cons.org>
39316 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
39319 2000-07-04 Jim Meyering <meyering@lucent.com>
39321 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
39322 of the deprecated AC_CHECKING.
39324 2000-07-04 Jim Meyering <meyering@lucent.com>
39326 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
39327 Reported by Bruno Haible.
39329 2000-07-04 Jim Meyering <meyering@lucent.com>
39331 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
39332 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
39335 2000-07-03 Paul Eggert <eggert@twinsun.com>
39337 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
39338 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
39340 2000-07-03 Paul Eggert <eggert@twinsun.com>
39341 and Bruno Haible <haible@clisp.cons.org>
39343 * lib/quotearg.c (mbrtowc):
39344 Assign to *pwc, and return 1 only if result is nonzero.
39345 (iswprint): Use ISPRINT when substituting our own mbrtowc.
39347 2000-07-03 Jim Meyering <meyering@lucent.com>
39349 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
39351 2000-07-03 Jim Meyering <meyering@lucent.com>
39353 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
39354 This is necessary to get a definition of e.g., UTMP_FILE on
39358 2000-07-02 Jim Meyering <meyering@lucent.com>
39360 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
39362 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
39363 AC_LIBOBJ(function_name).
39364 * m4/chown.m4: Likewise.
39365 * m4/fnmatch.m4: Likewise.
39366 * m4/ftruncate.m4: Likewise.
39367 * m4/getgroups.m4: Likewise.
39368 * m4/getline.m4: Likewise.
39369 * m4/group-member.m4: Likewise.
39370 * m4/jm-macros.m4: Likewise.
39371 * m4/lstat.m4: Likewise.
39372 * m4/malloc.m4: Likewise.
39373 * m4/memcmp.m4: Likewise.
39374 * m4/nanosleep.m4: Likewise.
39375 * m4/putenv.m4: Likewise.
39376 * m4/realloc.m4: Likewise.
39377 * m4/regex.m4: Likewise.
39378 * m4/stat.m4: Likewise.
39379 * m4/strftime.m4: Likewise.
39381 2000-07-02 Jim Meyering <meyering@lucent.com>
39383 * lib/quotearg.c (mbstate_t): Don't define here.
39385 2000-07-02 Jim Meyering <meyering@lucent.com>
39387 * lib/nanosleep.c (SIGCONT): Define if not already defined.
39389 2000-07-01 Jim Meyering <meyering@lucent.com>
39391 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
39393 2000-07-01 Jim Meyering <meyering@lucent.com>
39395 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
39398 2000-07-01 Bruno Haible <haible@clisp.cons.org>
39400 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
39401 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
39403 2000-07-01 Bruno Haible <haible@clisp.cons.org>
39405 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
39406 per change in ../m4/ls-mntd-fs.m4.
39407 (read_filesystem_list): Ignore symbolic links.
39409 2000-06-29 Jim Meyering <meyering@lucent.com>
39411 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
39412 for declaration of strcmp.
39414 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
39416 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
39417 Avoid warning by casting result to `char *' to remove `const'.
39419 2000-06-28 Jim Meyering <meyering@lucent.com>
39421 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
39422 included by quotearg.c, for which we perform this test. From
39425 2000-06-27 Bruno Haible <haible@clisp.cons.org>
39427 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
39428 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
39429 <utmpx.h> exists, put readutmp.o into LIBOBJS.
39431 2000-06-27 Bruno Haible <haible@clisp.cons.org>
39433 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
39435 2000-06-26 Paul Eggert <eggert@twinsun.com>
39437 savedir now sets errno on failure and invokes xmalloc to get memory.
39438 Fix a couple of other minor bugs while we're at it.
39440 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
39441 (NAMLEN): Remove macro.
39442 (malloc, realloc): Remove decls.
39443 (stpcpy): Likewise.
39444 ("xalloc.h"): Include.
39445 (NAME_SIZE_DEFAULT): New macro.
39446 (savedir): Use xmalloc / xrealloc to allocate memory.
39447 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
39448 Skip "" directory entries.
39449 Use strlen to calculate directory entry length, since the old method
39450 is rarely used these days and isn't worth supporting.
39451 Don't use a pointer after freeing it.
39452 Check for integer overflow when calculating allocation size.
39453 Use memcpy to copy entries, instead of stpcpy.
39454 Set errno properly when returning NULL.
39455 Check for readdir error.
39457 2000-06-26 Jim Meyering <meyering@lucent.com>
39459 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
39461 2000-06-25 Jim Meyering <meyering@lucent.com>
39463 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
39464 Linux header bug when _XOPEN_SOURCE is defined to 500.
39466 2000-06-25 Bruno Haible <haible@clisp.cons.org>
39468 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
39471 2000-06-25 Bruno Haible <haible@clisp.cons.org>
39473 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
39475 Don't include <stdlib.h>. Don't declare malloc, realloc.
39477 2000-06-24 Jim Meyering <meyering@lucent.com>
39479 * m4/strerror_r.m4: Revive this file -- to try out an experimental
39480 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
39481 for which strerror does return char*, but which lacks a conveniently
39482 accessible declaration of the function. If the compile-test says
39483 strerror_r doesn't work, then resort to a `run'-test that works on
39484 BeOS and segfaults on DEC Unix.
39486 2000-06-24 Jim Meyering <meyering@lucent.com>
39488 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
39490 2000-06-23 Paul Eggert <eggert@twinsun.com>
39492 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
39493 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
39495 2000-06-23 Paul Eggert <eggert@twinsun.com>
39497 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
39498 (mbrtowc, mbstate_t): Define substitutes if
39499 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
39500 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
39501 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
39503 2000-06-23 Jim Meyering <meyering@lucent.com>
39505 * m4/afs.m4: Add missing AC_MSG_RESULT.
39506 Reported by Bruno Haible.
39508 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
39509 Suggestion from Bruno Haible.
39511 2000-06-23 Jim Meyering <meyering@lucent.com>
39513 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
39515 2000-06-21 Jim Meyering <meyering@lucent.com>
39517 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
39519 2000-06-21 Jim Meyering <meyering@lucent.com>
39521 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
39522 (noinst_HEADERS): Add getstr.h.
39524 * lib/getline.c (getstr): Move into a separate file.
39525 * lib/getstr.c (getstr): New file, extracted from getline.c, with
39526 the following changes: new parameter, delim2; both delim[12]
39527 parameters have type `int', not `char'. The latter would lose
39528 with 8-bit delimiters.
39529 * lib/getstr.h: New file.
39531 2000-06-21 Bruno Haible <haible@clisp.cons.org>
39533 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
39534 than 1024, return a memory chunk of least possible size, instead
39535 of size PATH_MAX + 2. In the loop, increment the size proportionally.
39536 Use free/xmalloc instead of xrealloc to avoid copying for very long
39539 2000-06-21 Bruno Haible <haible@clisp.cons.org>
39541 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
39544 2000-06-21 Bruno Haible <haible@clisp.cons.org>
39546 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
39547 address, not strdup. Include <stdlib.h> and don't declare free().
39549 2000-06-19 Jim Meyering <meyering@lucent.com>
39551 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
39553 2000-06-18 Jim Meyering <meyering@lucent.com>
39555 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
39557 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
39558 `checking whether...' message to be consistent with that of the
39561 2000-06-18 Jim Meyering <meyering@lucent.com>
39563 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
39564 Besides, these days every porting target provides a mkdir function.
39566 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
39567 needed. (this snippet comes from src/system.h).
39569 2000-06-16 Bruno Haible <haible@clisp.cons.org>
39571 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
39573 2000-06-15 Paul Eggert <eggert@twinsun.com>
39575 * lib/human.c (adjust_value): New function.
39576 (human_readable_inexact): Apply rounding style even when
39577 printing approximate values.
39579 2000-06-14 Paul Eggert <eggert@twinsun.com>
39581 * lib/human.c (human_readable_inexact): Allow an input block
39582 size that is not a multiple of the output block size, and vice versa.
39583 Reported by Piergiorgio Sartor.
39585 2000-06-14 Paul Eggert <eggert@twinsun.com>
39587 * lib/getdate.y (get_date): Apply relative times after time
39588 zone indicator, not before. Reported by Todd A. Jacobs.
39590 2000-06-13 Jim Meyering <meyering@lucent.com>
39592 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
39594 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
39596 2000-06-12 Paul Eggert <eggert@twinsun.com>
39598 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
39600 2000-06-12 Jim Meyering <meyering@lucent.com>
39602 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
39603 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
39605 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
39606 the optional argument, `lib'.
39608 2000-06-08 Jim Meyering <meyering@lucent.com>
39610 * m4/largefile.m4: Remove file (now that it's part of autoconf).
39612 2000-06-04 Paul Eggert <eggert@twinsun.com>
39614 Rewrite largefile configuration so that we don't need to run
39615 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
39616 AC_CANONICAL_HOST in configure.in -- jmm]
39618 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
39619 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
39620 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
39621 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
39622 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
39624 Instead of inspecting the output of getconf, try to compile the
39625 test program without and with the macro definition.
39626 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
39627 for getconf. Instead, check for the needed flags by compiling
39630 2000-06-04 Paul Eggert <eggert@twinsun.com>
39632 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
39634 2000-06-04 Jim Meyering <meyering@lucent.com>
39636 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
39637 SunOS 4.1.4 for which gid_t is an unsigned type.
39639 2000-06-03 Jim Meyering <meyering@lucent.com>
39641 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
39642 now that autoconf requires that.
39644 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
39645 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
39646 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
39648 2000-06-03 Jim Meyering <meyering@lucent.com>
39650 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
39652 2000-06-03 Bruno Haible <haible@clisp.cons.org>
39654 * m4/glibc21.m4: New file.
39655 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
39657 2000-06-03 Bruno Haible <haible@clisp.cons.org>
39659 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
39660 newer, don't install charset.alias.
39661 * lib/config.charset: Change the Linux/glibc rules so they become empty
39662 on glibc-2.1 or newer.
39664 2000-06-02 Jim Meyering <meyering@lucent.com>
39666 * lib/mountlist.c: Back out last change. Instead, do this...
39667 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
39668 me_dummy member using the same `ignore'-testing code.
39669 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
39673 2000-05-29 Jim Meyering <meyering@lucent.com>
39675 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
39676 mounts with the `ignore' attribute. Based on a patch from
39679 2000-05-28 Jim Meyering <meyering@lucent.com>
39681 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
39682 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39683 * m4/stat.m4: Likewise.
39684 * m4/lstat.m4: Likewise.
39685 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
39687 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
39688 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
39690 2000-05-26 Jim Meyering <meyering@lucent.com>
39692 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
39694 2000-05-24 Jim Meyering <meyering@lucent.com>
39696 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
39697 autoconf requires that.
39698 * m4/lib-check.m4: Likewise.
39699 * m4/jm-macros.m4: Likewise.
39700 * m4/strftime.m4: Likewise.
39702 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
39703 AC_CHECK_DECLS, now that autoconf requires that.
39705 2000-05-22 Jim Meyering <meyering@lucent.com>
39707 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39708 * m4/lstat.m4: Likewise.
39710 2000-05-22 Jim Meyering <meyering@lucent.com>
39712 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
39714 2000-05-20 Jim Meyering <meyering@lucent.com>
39716 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
39717 (jm_PREREQ): Use it.
39719 2000-05-18 Jim Meyering <meyering@lucent.com>
39721 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
39722 back, too, since it may have been modified by allocate_entry.
39723 (hash_delete): Rewrite to use neither the assignment operator
39724 nor the comma operator in an if-expression.
39726 2000-05-15 Paul Eggert <eggert@twinsun.com>
39729 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
39730 Remove; no longer needed.
39731 "quotearg.h": Add include.
39732 (file_name): Do not bother to explicitly initialize to NULL; it's less
39733 efficient on some hosts.
39734 (close_stdout_status): Remove test as to whether stdout was already
39735 closed; it breaks for the case "echo x | sort >&-".
39736 Quote file name colons.
39737 Do not assume that _("write error") lacks format strings.
39739 2000-05-15 Jim Meyering <meyering@lucent.com>
39741 * lib/version-etc.c (version_etc_copyright): Update the copyright
39742 string used in all --version output.
39744 2000-05-14 Jim Meyering <meyering@lucent.com>
39746 * lib/closeout.c (close_stdout_set_file_name): New function.
39747 (close_stdout_status): Use new file-scoped global.
39748 Return right away if fstat says the stdout file descriptor is invalid.
39749 * lib/closeout.h (close_stdout_set_file_name): Declare.
39751 2000-05-10 Jim Meyering <meyering@lucent.com>
39753 * lib/closeout.c [default_exit_status]: New file-scoped variable.
39754 (close_stdout_set_status): New function.
39755 * lib/closeout.h (close_stdout_set_status): Declare.
39757 2000-05-09 Jim Meyering <meyering@lucent.com>
39759 * m4/gettext.m4: Rename this...
39760 * m4/libintl.m4: ...to this.
39762 2000-05-08 Jim Meyering <meyering@lucent.com>
39764 * lib/long-options.c: Don't include closeout.h.
39765 (parse_long_options): Don't call close_stdout for --version.
39767 2000-05-06 Paul Eggert <eggert@twinsun.com>
39769 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
39770 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
39771 2.1.3 bug. This avoids a clash when files like regex.c define
39774 2000-05-06 Jim Meyering <meyering@lucent.com>
39776 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
39777 (AC_REPLACE_FUNCS): Add strnlen.
39779 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
39780 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
39782 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
39783 AC_SEARCH_LIBS call for nanosleep.
39784 (LIB_NANOSLEEP): Set and AC_SUBST.
39786 2000-05-06 Jim Meyering <meyering@lucent.com>
39788 * lib/strnlen.c: Undefine __strnlen and strnlen.
39789 [!weak_alias]: Define __strnlen to strnlen.
39791 * lib/atexit.c: New file, from libiberty.
39793 2000-05-06 Jim Meyering <meyering@lucent.com>
39795 * lib/closeout.c (close_stdout_status): Also check for errors on the
39798 2000-05-05 Jim Meyering <meyering@lucent.com>
39800 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
39801 AC_SEARCH_LIBS call for clock_gettime.
39802 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
39804 * m4/search-libs.m4: Update from autoconf.
39806 su doesn't work on Solaris 2.6.
39807 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
39808 <shadow.h>. Reported by Dragos Harabor.
39810 2000-05-05 Bruno Haible <haible@clisp.cons.org>
39812 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
39813 memcpy instead of xmalloc, xrealloc, path_concat.
39814 (locale_charset): Treat empty environment variables as absent.
39815 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
39817 2000-05-04 Jim Meyering <meyering@lucent.com>
39819 * lib/getopt.c: Update from glibc.
39820 * lib/obstack.c: Likewise.
39821 * lib/obstack.h: Likewise.
39822 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
39825 * lib/regex.h: Likewise.
39826 * lib/strndup.c: Likewise.
39827 * lib/strnlen.c: New file, from glibc.
39829 2000-05-03 Jim Meyering <meyering@lucent.com>
39831 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
39833 2000-05-02 Paul Eggert <eggert@twinsun.com>
39835 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
39836 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
39837 compile-time test, rather than inspecting host and OS, to
39838 decide whether to define _LARGEFILE_SOURCE.
39840 2000-05-01 Jim Meyering <meyering@lucent.com>
39842 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
39844 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
39845 Based on a patch from Bruno Haible.
39847 2000-05-01 Jim Meyering <meyering@lucent.com>
39849 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
39851 2000-04-29 Jim Meyering <meyering@lucent.com>
39853 * lib/path-concat.c: Declare strdup only if it's not defined.
39854 * lib/canon-host.c: Likewise.
39856 2000-04-28 Jim Meyering <meyering@lucent.com>
39858 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
39859 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
39860 is included first, then limits.h is included by locale.h by libintl.h.
39861 From John David Anglin.
39863 2000-04-25 Jim Meyering <meyering@lucent.com>
39865 * lib/makepath.c (S_IRWXUGO): Define.
39866 (make_path): Always perform explicit chmod if MODE specifies any
39867 of the `special' permission bits. Prompted by a bug report against
39868 install from Mate Wierdl and Joost van Baal.
39870 2000-04-18 Jim Meyering <meyering@lucent.com>
39872 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
39873 (jm_PREREQ): Use it.
39875 2000-04-18 Jim Meyering <meyering@lucent.com>
39877 * lib/README: New file.
39879 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
39880 getpagesize. For BeOS. Based on a patch from Bruno Haible.
39882 2000-04-17 Jim Meyering <meyering@lucent.com>
39885 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
39886 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
39887 Suggestion from Akim Demaille.
39889 2000-04-17 Jim Meyering <meyering@lucent.com>
39891 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
39892 the definition of it to rpl_strftime also defined-away the system's
39895 2000-04-15 Jim Meyering <meyering@lucent.com>
39897 Use `C' to denote so-called `contiguous' files, the same way
39899 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
39900 (ftypelet): Use S_ISCTG.
39901 From Michael Deutschmann.
39903 2000-04-14 Jim Meyering <meyering@lucent.com>
39905 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
39906 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
39909 2000-04-14 Jim Meyering <meyering@lucent.com>
39911 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
39913 2000-04-13 Jim Meyering <meyering@lucent.com>
39915 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
39916 AH_VERBATIM to insert required #ifndef into config.h.in.
39917 Suggestion from Akim Demaille.
39919 2000-04-12 Jim Meyering <meyering@lucent.com>
39921 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
39922 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
39923 Christian Krackowizer.
39925 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
39926 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
39927 (AC_SYS_LARGEFILE): Require.
39928 (AM_C_PROTOTYPES): Require.
39930 2000-04-08 Jim Meyering <meyering@lucent.com>
39932 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
39933 names don't conflict. Reported by Eli Zaretskii.
39935 2000-04-07 Jim Meyering <meyering@lucent.com>
39937 * lib/putenv.c: Move inclusion of errno.h so it follows that of
39938 sys/types.h, to work around system header problems on AIX 3.2.5.
39941 2000-04-07 Bruno Haible <haible@clisp.cons.org>
39943 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
39944 bug. Deal with the different error behavior of Irix iconv.
39946 2000-04-05 Paul Eggert <eggert@twinsun.com>
39948 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
39949 IRIX if the installer said otherwise.
39951 2000-04-05 Jim Meyering <meyering@lucent.com>
39953 Portability tweaks required for ultrix4.3.
39954 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
39955 (jm_CHECK_DECLS): Add getutent to the list of functions.
39956 (_jm_DECL_HEADERS): Add utmpx.h.
39957 From John David Anglin.
39959 * m4/strftime.m4: Back out the 2000-04-02 change.
39960 Instead of that change, simply undefine putenv in the test program.
39962 2000-04-05 Jim Meyering <meyering@lucent.com>
39964 Portability tweaks required for ultrix4.3.
39965 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
39967 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
39968 * lib/canon-host.c: Declare strdup.
39969 * lib/path-concat.c: Likewise.
39970 From John David Anglin.
39972 2000-04-04 Jim Meyering <meyering@lucent.com>
39974 Be more DOS 8.3-friendly.
39975 * lib/ref-add.sin: Renamed from ref-add.sed.in.
39976 * lib/ref-del.sin: Renamed from ref-del.sed.in.
39977 * lib/Makefile.am: Reflect renaming.
39978 Reported by Eli Zaretskii.
39980 Use a temporary file name that won't clash with `charset.alias'
39981 in the DOS 8.3 name space.
39982 * lib/Makefile.am (charset_tmp): Define.
39983 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
39984 (uninstall-local): Likewise.
39985 Reported by Eli Zaretskii.
39987 2000-04-03 Jim Meyering <meyering@lucent.com>
39989 * m4/gettext.m4: Fix typo in comment.
39991 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
39992 textutils/configure.in). Suggestion from Paul Eggert.
39993 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
39995 2000-04-02 Paul Eggert <eggert@twinsun.com>
39997 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
39998 variable in the shell rather than using putenv, which isn't
39999 portable. This avoids the configure-time inter-test dependency
40000 on the potentially-renamed putenv function.
40002 2000-03-30 Paul Eggert <eggert@twinsun.com>
40004 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
40005 before checking struct stat.st_blksize, so that
40006 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
40008 2000-03-29 Paul Eggert <eggert@twinsun.com>
40010 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
40011 since strftime.c uses HAVE_STRFTIME to decide whether to use
40012 the underlying strftime.
40014 2000-03-29 Paul Eggert <eggert@twinsun.com>
40016 * lib/time/strftime.c (my_strftime): Make sure we call the system
40017 strftime, not ourselves, when invoking the underlying strftime.
40019 2000-03-24 Jim Meyering <meyering@lucent.com>
40021 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
40022 (charset_alias): Define.
40023 (install-exec-local): Factor out common code.
40024 (uninstall-local): Split lines longer than 80.
40025 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
40026 (SUFFIXES): Define.
40027 (.sed.in.sed): New rule. Don't redirect directly to $@.
40028 (CLEANFILES): Add ref-add.sed and ref-del.sed.
40030 2000-03-19 Bruno Haible <haible@clisp.cons.org>
40032 * lib/config.charset: Output a line containing "Packages using this
40034 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
40035 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
40036 ref-del.sed): New rules.
40038 2000-03-17 Jim Meyering <meyering@lucent.com>
40040 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
40041 Otherwise, include <strings.h>
40043 2000-03-17 Bruno Haible <haible@clisp.cons.org>
40045 * lib/unicodeio.c (utf8_wctomb): New function.
40046 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
40047 format instead of in UCS-4 with platform dependent endianness.
40049 2000-03-10 Jim Meyering <meyering@lucent.com>
40051 * m4/lib-check.m4: Look for getspnam in -lgen, too.
40052 From Marco Franzen.
40054 2000-03-07 Paul Eggert <eggert@twinsun.com>
40056 * lib/savedir.c (savedir): Work even if directory size is
40057 negative; this can happen with some screwy NFS configurations.
40059 2000-03-06 Jim Meyering <meyering@lucent.com>
40061 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
40062 if it's NULL (because we ran out of memory). From Bruno Haible.
40064 2000-03-05 Jim Meyering <meyering@lucent.com>
40066 * lib/localcharset.c ("path-concat.h"): Include.
40067 (get_charset_aliases): Use path_concat instead of ANSI string
40070 * lib/unicodeio.h (PARAMS): Define.
40071 Use it to guard prototype.
40073 2000-03-04 Jim Meyering <meyering@lucent.com>
40075 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
40076 for lib/localcharset.c.
40078 2000-03-04 Jim Meyering <meyering@lucent.com>
40080 * lib/Makefile.am (install-exec-local): Create $(libdir) before
40081 installing into it.
40082 (uninstall-local): Uncomment this rule so `make distcheck' works
40085 * lib/unicodeio.c (<errno.h>): Include it.
40086 (errno): Declare if not defined.
40088 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
40090 * lib/config.charset: New version, incorporating remarks from a linux
40091 i18n mailing list. From Bruno Haible.
40093 2000-03-04 Bruno Haible <haible@clisp.cons.org>
40095 * m4/codeset.m4: New file.
40096 * m4/iconv.m4: New file.
40097 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
40099 2000-03-03 Jim Meyering <meyering@lucent.com>
40101 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
40103 2000-03-02 Jim Meyering <meyering@lucent.com>
40105 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
40106 the messages come out on separate lines.
40108 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
40109 rather than jm_CHECK_DECLARATIONS.
40110 * m4/decl.m4: Remove now-unused file.
40112 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
40115 2000-03-02 Jim Meyering <meyering@lucent.com>
40117 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
40119 2000-03-01 Jim Meyering <meyering@lucent.com>
40121 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
40122 * lib/unicodeio.c: Likewise.
40124 2000-03-01 Bruno Haible <haible@clisp.cons.org>
40126 * lib/config.charset: New file.
40127 * lib/localcharset.c: New file.
40128 * lib/unicodeio.h, lib/unicodeio.c: New files.
40129 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
40130 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
40131 (noinst_HEADERS): Add unicodeio.h.
40132 (all-local, install-exec-local, charset.alias): New targets.
40134 2000-02-28 Paul Eggert <eggert@twinsun.com>
40136 * lib/quotearg.c (ALERT_CHAR): New macro.
40137 (quotearg_buffer_restyled): Use it.
40139 2000-02-27 Jim Meyering <meyering@lucent.com>
40141 * m4/check-decl.m4: Add getenv to the list.
40143 2000-02-27 Jim Meyering <meyering@lucent.com>
40145 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
40146 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
40148 * lib/backupfile.c: Guard inclusion of stdlib.h with
40149 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
40150 Declare malloc if needed.
40152 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
40153 `#ifndef HAVE_DECL..'
40154 now that autoconf always defines the HAVE_DECL_ symbols.
40155 * lib/human.c: Likewise.
40156 * lib/same.c: Likewise.
40157 * lib/strtoumax.c: Likewise.
40159 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
40160 declaration check was not run.
40161 * lib/hash.c: Likewise.
40162 * lib/human.c: Likewise.
40163 * lib/same.c: Likewise.
40164 * lib/strtoumax.c: Likewise.
40166 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
40167 `.', then first look up the entire `.'-containing string as a login
40170 2000-02-23 Jim Meyering <meyering@lucent.com>
40172 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
40173 in place of my hack.
40175 2000-02-18 Paul Eggert <eggert@twinsun.com>
40177 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
40178 (textint): New typedef.
40179 (parser_control): Member year changed from int to textint.
40181 (YYSTYPE): Removed; replaced by %union with int and textint members.
40182 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
40183 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
40184 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
40185 (tSNUMBER, tUNUMBER): Now of type <textintval>.
40186 (date, number, to_year): Use width of number in digits, not its value,
40187 to determine whether it's a 2-digit year, or a 2-digit time.
40188 (yylex): Store number of digits of numeric tokens.
40189 Reported by John Kendall.
40191 (parser_control): Changed from struct parser_control to typedef (for
40192 consistency). All uses changed.
40194 (tID): Removed; not used.
40195 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
40197 2000-02-14 Paul Eggert <eggert@twinsun.com>
40199 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
40200 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
40202 2000-02-12 Jim Meyering <meyering@lucent.com>
40204 * lib/userspec.c (ISDIGIT): Define it.
40205 (isdigit): Remove definition.
40206 (is_number): Use ISDIGIT, not isdigit.
40207 <libintl.h>: Include.
40208 (_ and N_): Define.
40209 (parse_user_spec): Mark translatable strings.
40211 2000-02-10 Jim Meyering <meyering@lucent.com>
40213 With these changes, nanosleep.[ch] are finally enough like the other
40214 lib/* replacement files to compile on a few more losing systems.
40216 * lib/nanosleep.h: Don't include config.h.
40217 Remove prototype from declaration of nanosleep.
40218 (PARAMS): Remove now-unneeded definition.
40219 * lib/nanosleep.c: #undef nanosleep.
40220 (rpl_nanosleep): Rename from nanosleep.
40222 2000-02-10 Jim Meyering <meyering@lucent.com>
40224 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
40225 gnu_nanosleep to rpl_nanosleep.
40227 2000-02-09 Jim Meyering <meyering@lucent.com>
40229 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
40230 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
40232 2000-02-08 Akim Demaille <akim@epita.fr>
40234 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
40235 `[' and `]' and remove uses of `changequote'.
40236 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
40237 (AC_SYS_LARGEFILE): Likewise.
40238 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
40239 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
40241 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
40242 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
40243 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
40244 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
40246 2000-02-05 Jim Meyering <meyering@lucent.com>
40248 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
40249 Remove explicit use of AC_HEADER_TIME. It is required by
40250 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
40251 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
40252 in autoconf whereby the expansion of the latter ended up preceding
40253 the expansion of its prerequisite, AC_HEADER_TIME.
40254 Reported by Volker Borchert.
40256 2000-02-03 Jim Meyering <meyering@lucent.com>
40258 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
40260 2000-02-03 Jim Meyering <meyering@lucent.com>
40262 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
40263 rather than with `#if HAVE_UTMPNAME'.
40265 2000-02-02 Jim Meyering <meyering@lucent.com>
40267 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
40268 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
40269 Reported by Eli Zaretskii.
40271 2000-02-01 Jim Meyering <meyering@lucent.com>
40273 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
40275 2000-01-31 Jim Meyering <meyering@lucent.com>
40277 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
40278 functions. Add the time.h and sys/time.h headers along with the
40279 AC_REQUIRE'ment of AC_HEADER_TIME.
40281 2000-01-31 Jim Meyering <meyering@lucent.com>
40283 * lib/nanosleep.h (nanosleep): Guard declaration with
40284 `#if ! HAVE_DECL_NANOSLEEP'.
40285 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
40286 the declaration in that vendor's sys/timers.h.
40287 Reported by Christian Krackowizer.
40289 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
40290 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
40291 (ISPRINT): Likewise.
40292 Reported by Tom Tromey.
40294 2000-01-30 Jim Meyering <meyering@lucent.com>
40296 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
40298 * m4/prereq.m4 (utmp_includes): Define.
40299 Check for ut_user and ut_name members in both struct utmpx
40302 2000-01-30 Jim Meyering <meyering@lucent.com>
40304 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
40305 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
40306 header files where only utmpx.ut_user is declared.
40308 * lib/readutmp.h (UT_USER): Define.
40310 2000-01-29 Jim Meyering <meyering@lucent.com>
40312 * m4/lib-check.m4: New file containing library-related checks from
40313 fileutils and sh-utils (textutils had none).
40315 2000-01-28 Jim Meyering <meyering@lucent.com>
40317 * m4/perl.m4: Change format of warning message to look more like that
40318 from the missing script. Suggestion from François Pinard.
40320 2000-01-25 Jim Meyering <meyering@lucent.com>
40322 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
40323 well as time.h in the compile check.
40324 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
40325 Fix typo in cross-compiling case: s/yes/no/.
40327 2000-01-23 Jim Meyering <meyering@lucent.com>
40329 * m4/jm-macros.m4: Move df-related tests here from
40330 fileutils/configure.in
40332 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
40333 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
40335 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
40336 s/space/ac_fsusage_space/.
40337 (jm_FILE_SYSTEM_USAGE): Take two parameters.
40339 * m4/ftruncate.m4: New file (derived from part of
40340 fileutils/configure.in).
40341 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
40342 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
40344 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
40345 AC_SUBST these here, rather than just in sh-util/configure.in, so
40346 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
40348 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
40349 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
40350 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
40351 (AC_SUBST(POW_LIBM)): Likewise.
40352 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
40354 2000-01-23 Jim Meyering <meyering@lucent.com>
40356 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
40359 2000-01-22 Jim Meyering <meyering@lucent.com>
40361 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
40363 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
40365 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
40367 (AC_CHECK_HEADERS): Likewise for sh-utils.
40368 (AC_CHECK_HEADERS): Likewise for textutils.
40369 Merge the three lists of headers.
40371 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
40372 from fileutils' configure.in.
40374 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
40375 code. Moved tests into their own function (_jm_DECL_HEADERS) in
40378 * m4/check-decl.m4: Use #if rather than #ifdef.
40379 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
40380 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
40381 (_jm_DECL_HEADERS): Define new function.
40382 (jm_CHECK_DECLARATIONS): Require it.
40384 2000-01-22 Jim Meyering <meyering@lucent.com>
40386 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
40387 [! HAVE_DECL_STRTOULL]: Declare strtoull.
40388 Required for some AIX systems. Reported by Christian Krackowizer.
40389 [TESTING] (main): New function.
40391 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
40392 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
40395 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
40398 * lib/strverscmp.c (ISDIGIT): Define.
40399 (strverscmp): Use ISDIGIT, not isdigit.
40401 2000-01-19 Jim Meyering <meyering@lucent.com>
40403 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
40404 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
40405 defines `struct timespec' in <sys/time.h>
40407 * m4/c-bs-a.m4: Remove uses of changequote altogether.
40408 Thanks to Akim for explaining.
40410 2000-01-17 Paul Eggert <eggert@twinsun.com>
40412 * lib/nanosleep.c (nanosleep):
40413 Don't use SA_INTERRUPT to decide whether to call sigaction, as
40414 POSIX.1 doesn't require SA_INTERRUPT and some systems
40415 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
40416 it's been part of POSIX.1 since day 1 (in 1988).
40418 2000-01-17 Jim Meyering <meyering@lucent.com>
40420 * lib/interlock: Remove unused file. Reported by François Pinard.
40422 2000-01-16 Paul Eggert <eggert@twinsun.com>
40424 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
40425 alert, backslash, formfeed, and vertical tab unnecessarily in
40426 shell quoting style.
40428 2000-01-16 Jim Meyering <meyering@lucent.com>
40430 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
40431 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
40432 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
40433 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
40435 2000-01-16 Jim Meyering <meyering@lucent.com>
40437 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
40438 because the latter didn't work.
40440 2000-01-15 Jim Meyering <meyering@lucent.com>
40442 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
40443 (AC_REPLACE_FUNCS): Add memcpy and memset.
40444 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
40446 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
40448 2000-01-12 Jim Meyering <meyering@lucent.com>
40450 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
40451 (jm_PREREQ): Use it.
40452 (jm_PREREQ_READUTMP): New macro.
40453 (jm_PREREQ): Use it.
40455 2000-01-11 Paul Eggert <eggert@twinsun.com>
40457 Quote multibyte characters correctly.
40458 * m4/c-bs-a.m4: New file.
40459 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
40460 (jm_PREREQ): Use it.
40462 2000-01-11 Paul Eggert <eggert@twinsun.com>
40464 * m4/uintmax_t.m4: Port to autoconf 2.13.
40466 2000-01-08 Jim Meyering <meyering@ascend.com>
40468 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
40469 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
40471 2000-01-04 Jim Meyering <meyering@ascend.com>
40473 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
40474 jm_STRUCT_DIRENT_D_TYPE.
40475 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
40476 jm_STRUCT_DIRENT_D_INO.
40477 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
40479 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
40481 * m4/utime.m4: Likewise.
40483 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
40484 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
40486 2000-01-03 Paul Eggert <eggert@twinsun.com>
40488 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
40489 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
40491 2000-01-02 Jim Meyering <meyering@ascend.com>
40493 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
40494 remember if this is necessary.
40496 1999-12-26 Jim Meyering <meyering@ascend.com>
40498 * m4/jm-macros.m4: Use it here.
40499 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
40501 1999-12-23 Jim Meyering <meyering@ascend.com>
40503 * m4/jm-macros.m4: Check for clock_gettime (moved from
40504 fileutils/configure.in)
40505 Check for gettimeofday.
40507 1999-12-20 Jim Meyering <meyering@ascend.com>
40509 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
40510 autoconf-2.14a-1999-12-20.
40512 1999-12-19 Jim Meyering <meyering@ascend.com>
40514 * m4/lstat-slash.m4: New file.
40515 * m4/jm-macros.m4: Use the new macro:
40516 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
40518 1999-12-07 Jim Meyering <meyering@ascend.com>
40520 * m4/perl.m4: Require that File::Compare be available, too.
40521 Too many systems seem to lack it.
40523 * m4/strftime.m4: Add checks for most of the cpp macros tested in
40524 GNU's strftime.c. Prompted by a patch from Paul Eggert.
40526 1999-11-18 Paul Eggert <eggert@twinsun.com>
40528 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
40529 problem with the QNX 4.25 shell, which doesn't propagate exit
40530 status of failed commands inside shell assignments.
40532 1999-11-17 Jim Meyering <meyering@ascend.com>
40534 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
40536 1999-11-07 Jim Meyering <meyering@ascend.com>
40538 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
40540 1999-11-06 Jim Meyering <meyering@ascend.com>
40542 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
40543 * m4/jm-macros.m4 (jm_MACROS): Use it here.
40545 1999-11-05 Jim Meyering <meyering@ascend.com>
40547 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
40548 configure.in of textutils, fileutils, and sh-utils into this one
40549 (shared between those packages) file.
40550 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
40551 AC_STRUCT_ST_BLKSIZE.
40553 1999-11-03 Jim Meyering <meyering@ascend.com>
40555 * m4/ssize_t.m4: Remove file. No longer needed since the new version
40556 of AC_CHECK_TYPE checks includes unistd.h.
40557 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
40558 Suggestion from Akim Demaille.
40560 1999-10-30 Jim Meyering <meyering@ascend.com>
40562 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
40564 * m4/ls-mntd-fs.m4: Likewise.
40565 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
40566 * m4/jm-winsz1.m4: Likewise.
40568 * m4/const.m4: Remove file, since the fix made it into the experimental
40569 version of autoconf.
40570 * m4/mktime.m4: Likewise.
40572 * m4/check-type.m4: Remove file, now that the latest version of
40573 AC_CHECK_TYPE takes a third arg to specify additional #includes.
40575 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
40576 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
40579 1999-10-04 Jim Meyering <meyering@ascend.com>
40581 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
40583 1999-09-22 Paul Eggert <eggert@twinsun.com>
40585 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
40586 2.95.1 bug with HP-UX 10.20.
40588 1999-09-17 Jim Meyering <meyering@ascend.com>
40590 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
40591 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
40592 due to missing strdup (against sh-utils-2.0).
40594 1999-08-29 Jim Meyering <meyering@ascend.com>
40596 * m4/jm-macros.m4: Require jm_BISON.
40597 * m4/bison.m4: New file.
40599 1999-08-17 Paul Eggert <eggert@twinsun.com>
40601 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
40602 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
40604 1999-08-05 Jim Meyering <meyering@ascend.com>
40606 * m4/getline.m4: Rename test file from conftestdata to conftest.data
40607 to avoid conflicts with `conftest' on 8+3 filesystems.
40608 Suggestion from Eli Zaretskii.
40610 1999-08-04 Jim Meyering <meyering@ascend.com>
40612 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
40613 fileutils and sh-utils (textutils's getline test was inadequate).
40614 (AM_FUNC_GETLINE): Run this test.
40615 (AC_CHECK_FUNCS): Check for getdelim.
40616 Reported by Bob Proulx.
40618 1999-08-02 Jim Meyering <meyering@ascend.com>
40620 * m4/jm-macros.m4: Add a comment.
40622 1999-08-01 Paul Eggert <eggert@twinsun.com>
40624 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
40625 <inttypes.h> defines strtoumax as a macro (and not as a
40628 1999-08-01 Paul Eggert <eggert@twinsun.com>
40630 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
40631 that we can shift, multiply and divide unsigned long long
40632 values; Ultrix cc can't do it.
40634 1999-08-01 Paul Eggert <eggert@twinsun.com>
40636 * m4/mktime.m4: New file, which is a preview of what should appear
40637 in the next public autoconf release.
40639 1999-08-01 Paul Eggert <eggert@twinsun.com>
40641 * m4/lfs.m4: Remove this file.
40642 * m4/largefile.m4: New file. It contains the old contents of
40643 lfs.m4, except that all names with prefix AC_LFS have been
40644 changed to use the prefix AC_SYS_LARGEFILE instead, to be
40645 compatible with future autoconf versions. Also, some minor m4
40646 quoting problems have been fixed.
40648 1999-08-01 Paul Eggert <eggert@twinsun.com>
40650 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
40651 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
40652 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
40653 and simplify the shell code.
40655 1999-08-01 Jim Meyering <meyering@ascend.com>
40657 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
40660 1999-07-20 Jim Meyering <meyering@ascend.com>
40662 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
40664 1999-07-15 Jim Meyering <meyering@ascend.com>
40666 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
40668 1999-05-22 Jim Meyering <meyering@ascend.com>
40670 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
40672 1999-05-20 Jim Meyering <meyering@ascend.com>
40674 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
40675 Add a colon after each `then' in case $4 is empty.
40677 1999-05-16 Jim Meyering <meyering@ascend.com>
40679 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
40681 1999-05-10 Jim Meyering <meyering@ascend.com>
40683 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
40685 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
40688 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
40690 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
40692 1999-05-04 Paul Eggert <eggert@twinsun.com>
40694 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
40695 not CPPFLAGS, so that linking works correctly in IRIX.
40697 1999-04-30 Paul Eggert <eggert@twinsun.com>
40699 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
40701 1999-04-20 Paul Eggert <eggert@twinsun.com>
40703 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
40704 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
40705 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
40706 jm_AC_TYPE_UNSIGNED_LONG_LONG.
40707 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
40709 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
40711 1999-04-20 Jim Meyering <meyering@ascend.com>
40713 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
40714 AC_REPLACE xstroull if necessary. From Paul Eggert.
40715 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
40717 1999-04-18 Jim Meyering <meyering@ascend.com>
40719 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
40720 * m4/jm-macros.m4: Use it.
40722 1999-04-06 Jim Meyering <meyering@ascend.com>
40724 * m4/strftime.m4: Remove test for %f.
40726 1999-03-29 Jim Meyering <meyering@ascend.com>
40728 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
40729 superset of the AC_TYPE_* checks in the textutils, fileutils,
40730 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
40733 1999-03-28 Jim Meyering <meyering@ascend.com>
40735 * m4/jm-macros.m4: Define GNU_PACKAGE here.
40736 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
40737 replaced e.g., in the *.sh files of the sh-utils.
40739 1999-03-20 Jim Meyering <meyering@ascend.com>
40741 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
40742 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
40743 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
40745 1999-03-19 Jim Meyering <meyering@ascend.com>
40747 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
40749 1999-03-12 Jim Meyering <meyering@ascend.com>
40751 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
40753 1999-03-07 Jim Meyering <meyering@ascend.com>
40755 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
40758 1999-02-17 Jim Meyering <meyering@ascend.com>
40760 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
40761 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
40763 1999-02-07 Jim Meyering <meyering@ascend.com>
40765 * m4/group-member.m4: New file -- extracted from sh-utils'
40768 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
40769 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
40771 1999-02-06 Jim Meyering <meyering@ascend.com>
40773 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
40774 * m4/fnmatch.m4: Likewise.
40775 * m4/getgroups.m4: Likewise.
40776 * m4/lstat.m4: Likewise.
40777 * m4/malloc.m4: Likewise.
40778 * m4/putenv.m4: Likewise.
40779 * m4/realloc.m4: Likewise.
40780 * m4/regex.m4: Likewise.
40781 * m4/stat.m4: Likewise.
40782 * m4/strftime.m4: Likewise.
40783 Suggestion from Alain Magloire.
40785 * m4/chown.m4: Use `.$ac_objext', not `.o'.
40786 * m4/fnmatch.m4: Likewise.
40787 * m4/getgroups.m4: Likewise.
40788 * m4/getline.m4: Likewise.
40789 * m4/lstat.m4: Likewise.
40790 * m4/malloc.m4: Likewise.
40791 * m4/memcmp.m4: Likewise.
40792 * m4/putenv.m4: Likewise.
40793 * m4/realloc.m4: Likewise.
40794 * m4/regex.m4: Likewise.
40795 * m4/stat.m4: Likewise.
40796 * m4/strftime.m4: Likewise.
40797 Suggestion from Alain Magloire.
40799 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
40802 * m4/regex.m4: Add a run-time Test for proper operation of
40803 re_compile_pattern.
40805 1999-01-31 Jim Meyering <meyering@ascend.com>
40807 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
40809 1999-01-30 Jim Meyering <meyering@ascend.com>
40811 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
40813 * m4/jm-mktime.m4: Make this a wrapper around the official
40814 AM_FUNC_MKTIME rather than my private copy, now that the official one
40816 * m4/mktime.m4: Remove file.
40818 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
40819 * m4/uptime.m4: Likewise.
40820 * m4/uintmax_t.m4: Likewise.
40822 1999-01-28 Jim Meyering <meyering@ascend.com>
40824 * m4/jm-macros.m4: Use jm_AFS.
40825 * m4/afs.m4: New file (from fileutils' configure.in).
40827 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
40828 * m4/chown.m4: Likewise.
40829 * m4/d-ino.m4: Likewise.
40830 * m4/d-type.m4: Likewise.
40831 * m4/fnmatch.m4: Likewise.
40832 * m4/getgroups.m4: Likewise.
40833 * m4/gettext.m4: Likewise.
40834 * m4/jm-mktime.m4: Likewise.
40835 * m4/jm-winsz2.m4: Likewise.
40836 * m4/lcmessage.m4: Likewise.
40837 * m4/ls-mntd-fs.m4: Likewise.
40838 * m4/malloc.m4: Likewise.
40839 * m4/memcmp.m4: Likewise.
40840 * m4/putenv.m4: Likewise.
40841 * m4/realloc.m4: Likewise.
40842 * m4/st_mtim.m4: Likewise.
40843 * m4/strftime.m4: Likewise.
40845 1999-01-16 Jim Meyering <meyering@ascend.com>
40847 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
40848 (ARGMATCH_DIE_DECL): Define.
40850 1999-01-12 Jim Meyering <meyering@ascend.com>
40852 * m4/Makefile.am.in: Rewrite to avoid using fmt.
40853 Reported by Lars Hecking.
40855 1999-01-10 Jim Meyering <meyering@ascend.com>
40857 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
40859 * m4/inttypes_h.m4: Likewise.
40860 * m4/lstat.m4: Likewise.
40861 * m4/malloc.m4: Likewise.
40862 * m4/readdir.m4: Likewise.
40863 * m4/realloc.m4: Likewise.
40864 * m4/st_dm_mode.m4: Likewise.
40865 * m4/stat.m4: Likewise.
40866 * m4/utimbuf.m4: Likewise.
40867 * m4/utimes.m4: Likewise.
40869 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
40870 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
40871 comments in config.h.in are meaningful.
40873 * m4/jm-macros.m4: Require autoconf-2.13 here.
40875 * m4/regex.m4: By default, don't use the included regex.c on systems
40876 with glibc 2. Suggestion from Uli Drepper.
40878 1999-01-02 Jim Meyering <meyering@ascend.com>
40880 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
40882 1998-12-18 Jim Meyering <meyering@ascend.com>
40884 * m4/Makefile.am.in (Makefile.am): Simplify rule.
40885 Based on a suggestion from Lars Hecking.
40887 1998-11-16 Paul Eggert <eggert@twinsun.com>
40889 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
40891 1998-11-16 Jim Meyering <meyering@ascend.com>
40893 * m4/lfs.m4: Double-quote the `uname...` expression.
40895 1998-11-14 Jim Meyering <meyering@ascend.com>
40897 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
40898 * m4/stat.m4: Likewise.
40900 1998-11-03 Jim Meyering <meyering@ascend.com>
40902 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
40903 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
40905 1998-10-18 Jim Meyering <meyering@ascend.com>
40907 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
40909 1998-10-17 Jim Meyering <meyering@ascend.com>
40911 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
40912 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
40913 calls for those previously hard-coded headers. Instead, take a new
40915 (jm_CHECK_DECLARATIONS): Reflect interface change.
40916 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
40917 (jm_CHECK_DECL_LOCALTIME_R): New macro.
40919 * m4/mktime.m4: Test for spring-forward gap before long-running test.
40921 1998-10-14 Jim Meyering <meyering@ascend.com>
40923 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
40924 instead of "TZ=America/Vancouver". From Paul Eggert.
40926 1998-10-11 Jim Meyering <meyering@ascend.com>
40928 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
40929 This adds a test for a recently added compatibility fix for mktime.c.
40930 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
40932 1998-09-27 Jim Meyering <meyering@ascend.com>
40934 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
40936 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
40937 ../configure.in, including a change from Gordon Matzigkeit to allow
40938 cross-compiling for the Hurd.
40940 * m4/glibc.m4: New file/macro to test for the GNU C Library
40941 versions 1 and 2. From Gordon Matzigkeit.
40944 1998-09-21 Jim Meyering <meyering@ascend.com>
40946 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
40948 1998-08-18 Paul Eggert <eggert@twinsun.com>
40950 Port nanosecond-resolution times to UnixWare 2.1.2 and
40951 pedantic Solaris 2.6.
40953 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
40955 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
40956 Generate name of ns member, instead of just 1 or undef.
40957 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
40959 1998-08-15 Jim Meyering <meyering@ascend.com>
40961 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
40962 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
40963 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
40964 instead of jm_TYPE_SSIZE_T.
40966 1998-08-12 Jim Meyering <meyering@ascend.com>
40968 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
40970 1998-08-02 Jim Meyering <meyering@ascend.com>
40972 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
40973 in acconfig.h manually.
40975 1998-07-31 Paul Eggert <eggert@twinsun.com>
40977 * m4/st_mtim.m4: New file.
40979 1998-07-28 Jim Meyering <meyering@ascend.com>
40981 * m4/utimes.m4: Undef stat.
40983 1998-07-25 Jim Meyering <meyering@ascend.com>
40985 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
40986 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
40988 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
40990 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
40991 uid and gid actually remain unchanged.
40993 1998-07-07 Jim Meyering <meyering@ascend.com>
40995 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
40997 1998-07-04 Jim Meyering <meyering@ascend.com>
40999 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
41000 to prove that this macro can be used in packages without regex.c.
41002 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
41004 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
41007 1998-07-03 Jim Meyering <meyering@ascend.com>
41009 * m4/gettext.m4: Add -lintl if it's found to be necessary.
41011 * m4/gettext.m4: New file -- from gettext-0.10.35.
41012 * m4/lcmessage.m4: Likewise.
41013 * m4/progtest.m4: Likewise.
41015 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
41016 * m4/jm-macros.m4: Require the new macro.
41018 1998-06-29 Jim Meyering <meyering@ascend.com>
41020 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
41021 for the definition of NGROUPS (used in a system header included
41024 1998-06-28 Jim Meyering <meyering@ascend.com>
41026 * m4/ls-mntd-fs.m4: New file.
41027 * m4/fstypename.m4: New file.
41029 * m4/jm-macros.m4: Require the new macro.
41030 * m4/jm-glibc-io.m4: New file.
41032 1998-05-19 Jim Meyering <meyering@ascend.com>
41034 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
41035 * m4/lchown.m4: New file.
41037 * m4/Makefile.am.in: New file.
41038 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
41040 1998-05-14 Jim Meyering <meyering@ascend.com>
41042 * m4/Makefile.am (EXTRA_DIST): Add them.
41043 * m4/jm-macros.m4: New file.
41044 * m4/utimbuf.m4: New file.
41046 1998-05-12 Jim Meyering <meyering@ascend.com>
41048 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
41050 1998-05-11 Jim Meyering <meyering@ascend.com>
41052 * m4/isc-posix.m4: New file.
41054 1998-05-10 Jim Meyering <meyering@ascend.com>
41056 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
41058 1998-05-09 Jim Meyering <meyering@ascend.com>
41060 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
41061 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
41064 * m4/ssize_t.m4: New file.
41065 * m4/mktime.m4: Remove file -- the new automake has this now.
41067 1998-04-26 Jim Meyering <meyering@ascend.com>
41069 * m4/assert.m4: New file.
41070 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
41072 1998-04-05 Jim Meyering <meyering@ascend.com>
41074 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
41075 (jm_PREREQ): Use it here.
41077 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
41079 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
41082 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
41084 * m4/prereq.m4: New file.
41085 * m4/error.m4: New file.
41086 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
41088 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
41090 * m4/getline.m4: Don't set am_cv_func_working_getline before the
41091 cache-check for the same variable -- that defeated the purpose of
41092 the test; the test program was never run. This was a problem only
41093 on systems with losing getline functions -- HP-UX 10.20 is one.
41094 Reported by Bjorn Helgaas.
41096 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
41098 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
41100 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
41102 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
41104 * m4/const.m4: New file. Use an initializer in this declaration
41105 typedef int charset[2]; const charset x;
41106 Reported by Bob Glickstein.
41108 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
41110 * m4/chown.m4: Fix reversed types on -1 args to chown.
41113 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
41115 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
41116 Add lseek and memchr.
41118 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
41119 T.E.Dickey <dickey@clark.net> said that some older preprocessors
41120 have a 20-character limit on names.
41122 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
41124 * m4/inttypes_h.m4: New file.
41125 * m4/uintmax_t.m4: New file.
41126 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
41135 Copyright (C) 1997-2008 Free Software Foundation, Inc.
41137 Copying and distribution of this file, with or without
41138 modification, are permitted provided the copyright notice
41139 and this notice are preserved.