1 2008-06-10 Bruno Haible <bruno@clisp.org>
3 * lib/wait-process.c (wait_subprocess): Add an assertion.
5 2008-06-10 Bruno Haible <bruno@clisp.org>
7 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
9 2008-06-10 Bruno Haible <bruno@clisp.org>
11 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
13 * tests/test-strcasestr.c (main): Likewise.
14 * tests/test-strstr.c (main): Likewise.
16 2008-06-09 Bruno Haible <bruno@clisp.org>
18 Work around the Solaris 10 ACE ACLs ABI change.
19 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
20 declare if ACL_NO_TRIVIAL is present.
21 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
22 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
23 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
24 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
25 define if ACL_NO_TRIVIAL is present.
26 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
27 and use the current ABI.
28 (file_has_acl): Use same #if condition as elsewhere.
29 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
30 in use, and use the current ABI.
31 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
32 Reported by Jim Meyering.
34 2008-06-09 Eric Blake <ebb9@byu.net>
36 Work around environments that (stupidly) ignore SIGALRM.
37 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
39 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41 Reported by Ian Beckwith <ianb@erislabs.net>.
43 Produce autobuild blurb earlier in log.
44 * modules/autobuild (configure.ac-early): Move AB_INIT here.
46 2008-06-09 Jim Meyering <meyering@redhat.com>
47 and Ondřej Vašík <ovasik@redhat.com>
49 utimens.c: correct kernel bug work-around
50 Ondřej Vašík found that the invalid return value of 280 indicates
51 failure, not success, and the kernel bug we're trying to work
52 around affects not just the utimensat call, but also the fallback
54 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
56 [HAVE_FUTIMENS]: Use the same work-around, here.
58 2008-06-09 Jim Meyering <meyering@redhat.com>
60 add more guards around definition of ACE_-related code
61 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
62 ALLOW and ACE_OWNER are also defined.
64 2008-06-08 Bruno Haible <bruno@clisp.org>
66 * lib/acl-internal.h: Add me as co-author.
67 * lib/file-has-acl.c: Likewise.
68 * lib/set-mode-acl.c: Likewise.
69 * lib/copy-acl.c: Likewise.
71 2008-06-08 Bruno Haible <bruno@clisp.org>
73 Add support for AIX ACLs.
74 * lib/acl-internal.h (acl_nontrivial): New declaration.
75 * lib/file-has-acl.c (acl_nontrivial): New function.
76 (file_has_acl): Add implementation using AIX 4 ACL API.
77 * lib/set-mode-acl.c (qset_acl): Likewise.
78 * lib/copy-acl.c (qcopy_acl): Likewise.
80 2008-06-08 Bruno Haible <bruno@clisp.org>
82 Add support for HP-UX ACLs.
83 * lib/acl-internal.h (acl_nontrivial): New declaration.
84 * lib/file-has-acl.c (acl_nontrivial): New function.
85 (file_has_acl): Add implementation using HP-UX 11 ACL API.
86 * lib/set-mode-acl.c (qset_acl): Likewise.
87 * lib/copy-acl.c (qcopy_acl): Likewise.
89 2008-06-08 Bruno Haible <bruno@clisp.org>
91 Add support for Cygwin ACLs.
92 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
93 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
94 the chmod_or_fchmod call.
95 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
97 2008-06-08 Bruno Haible <bruno@clisp.org>
99 Fix bug with setuid modes in Solaris 10+ code.
100 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
101 succeeded, when the mode contains some special bits.
103 2008-06-08 Bruno Haible <bruno@clisp.org>
105 Add support for Solaris 7..10 ACLs.
106 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
108 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
110 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
111 * lib/set-mode-acl.c (qset_acl): Likewise.
112 * lib/copy-acl.c (qcopy_acl): Likewise.
114 2008-06-08 Bruno Haible <bruno@clisp.org>
116 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
118 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
119 (acl_access_nontrivial): Remove MacOS X case.
120 (file_has_acl): Use acl_extended_nontrivial.
121 * lib/copy-acl.c (qcopy_acl): Likewise.
123 2008-06-08 Bruno Haible <bruno@clisp.org>
125 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
127 2008-06-08 Jim Meyering <meyering@redhat.com>
129 * modules/acl (Maintainer): Add Bruno Haible.
131 2008-06-07 Bruno Haible <bruno@clisp.org>
133 Improve support for Tru64 ACLs.
134 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
137 2008-06-07 Bruno Haible <bruno@clisp.org>
139 Add support for MacOS X ACLs.
140 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
141 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
142 * lib/set-mode-acl.c (qset_acl): Likewise.
143 * lib/copy-acl.c (qcopy_acl): Likewise.
145 2008-06-07 Bruno Haible <bruno@clisp.org>
147 Fix memory leak introduced on 2008-05-22.
148 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
151 2008-06-07 Bruno Haible <bruno@clisp.org>
153 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
154 to construct an empty ACL.
156 2008-06-07 Bruno Haible <bruno@clisp.org>
158 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
160 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
162 2008-06-07 Bruno Haible <bruno@clisp.org>
164 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
165 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
167 2008-06-07 Bruno Haible <bruno@clisp.org>
169 * doc/posix-functions/_setjmp.texi: Explain the use of this function
171 * doc/posix-functions/_longjmp.texi: Likewise.
172 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
173 SystemV platform in this case.
175 2008-06-06 Eric Blake <ebb9@byu.net>
177 Document abort() bugs.
178 * doc/posix-functions/abort.texi (abort): Mention anomalies.
180 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
181 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
183 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
184 siglongjmp, but only as a macro.
185 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
187 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
189 Tweak documentation to cover cygwin argz bugs.
190 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
191 argz bug fix; no code change needed since no cygwin releases
192 occurred between the last fix and the bug being tested.
193 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
194 module and recently fixed cygwin bugs.
195 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
196 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
197 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
198 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
199 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
201 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
202 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
203 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
204 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
205 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
206 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
209 Avoid gcc warning on cygwin.
210 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
211 !ACL_NO_TRIVIAL]: Avoid unused variable.
213 2008-06-05 Eric Blake <ebb9@byu.net>
215 Be tolerant of UNKNOWN version in gnulib-tool test dir.
216 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
217 git-version-gen fails to come up with a version.
218 Reported by Simon Josefsson.
220 2008-06-05 Jim Meyering <meyering@redhat.com>
221 Paul Eggert <eggert@cs.ucla.edu>
223 utimens.c: work around a probable Linux kernel bug
224 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
225 appears to be a kernel bug that causes utimensat to return 280
226 instead of 0, indicating success.
228 2008-06-04 Bruno Haible <bruno@clisp.org>
230 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
233 2008-06-04 Bruno Haible <bruno@clisp.org>
235 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
236 * lib/file-has-acl.c (acl_access_nontrivial): New function.
237 (file_has_acl): Use it. Save errno afterwards.
238 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
240 2008-06-03 Bruno Haible <bruno@clisp.org>
242 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
243 draft code. Simplify #ifs.
244 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
245 Put Solaris code after POSIX-draft code. Fix comments regarding
246 Solaris 10, HP-UX. Mention Cygwin.
247 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
249 2008-06-03 Eric Blake <ebb9@byu.net>
251 Provide fallback for older kernels.
252 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
253 Provide runtime fallback if kernel lacks support.
254 Reported by Mike Frysinger.
256 2008-06-02 Bruno Haible <bruno@clisp.org>
258 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
261 2008-06-02 Bruno Haible <bruno@clisp.org>
263 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
264 * lib/copy-acl.c (qcopy_acl): Update comment.
266 2008-06-02 Bruno Haible <bruno@clisp.org>
268 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
271 2008-06-02 Bruno Haible <bruno@clisp.org>
273 * tests/test-file-has-acl.sh: Use different code for Cygwin.
274 * tests/test-set-mode-acl.sh: Likewise.
275 * tests/test-copy-acl.sh: Likewise.
276 * tests/test-copy-file.sh: Likewise.
278 2008-06-02 Bruno Haible <bruno@clisp.org>
280 * tests/test-file-has-acl.sh: Remove unused code.
282 2008-06-01 Bruno Haible <bruno@clisp.org>
284 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
285 (copy_acl): Just a wrapper around qcopy_acl that emits the error
287 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
289 2008-06-01 Bruno Haible <bruno@clisp.org>
291 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
292 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
293 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
295 * modules/acl-tests (configure.ac): Remove tests now contained in
298 2008-06-02 Jim Meyering <meyering@redhat.com>
300 announce-gen: use a better key-server host name
301 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
302 it may be more consistently reliable. Suggested by Werner Koch
303 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
305 2008-06-01 Bruno Haible <bruno@clisp.org>
307 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
308 Reported by Voroskoi Andras <voroskoi@gmail.com>.
310 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
312 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
314 2008-06-01 Bruno Haible <bruno@clisp.org>
317 * tests/test-file-has-acl.sh: New file.
318 * tests/test-file-has-acl.c: New file.
319 * tests/test-set-mode-acl.sh: New file.
320 * tests/test-set-mode-acl.c: New file.
321 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
322 * tests/test-copy-acl.c: New file.
323 * modules/acl-tests: New file, based on modules/copy-file-tests.
324 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
325 (Depends-on): Add acl-tests.
326 (configure.ac): Remove checks.
327 (Makefile.am): Don't create test-sameacls program here any more.
329 2008-06-01 Bruno Haible <bruno@clisp.org>
331 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
332 * tests/test-sameacls.c: Include progname.h.
333 (main): Invoke set_program_name. Portability fixes for MacOS X,
336 2008-06-01 Bruno Haible <bruno@clisp.org>
338 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
340 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
342 2008-06-01 Bruno Haible <bruno@clisp.org>
344 * modules/rpmatch (Depends-on): Add strdup.
346 2008-06-01 Bruno Haible <bruno@clisp.org>
348 * lib/pipe.c: Include unistd-safer.h.
349 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
350 * modules/pipe (Depends-on): Add unistd-safer.
352 2008-05-30 Simon Josefsson <simon@josefsson.org>
354 * modules/autobuild (configure.ac): Call AB_INIT.
356 2008-05-30 Simon Josefsson <simon@josefsson.org>
358 * tests/test-getaddrinfo.c: Don't print debug messages by default.
359 Suggested by Bruno Haible <bruno@clisp.org>.
361 2008-05-30 Simon Josefsson <simon@josefsson.org>
363 * tests/test-base64.c: Cast size_t to unsigned long when invoking
364 printf. Use %lu instead of %d. Reported by Bruno Haible
367 2008-05-29 Eric Blake <ebb9@byu.net>
369 Prefer new POSIX 200x interfaces over futimesat.
370 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
371 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
373 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
375 2008-05-28 Bruno Haible <bruno@clisp.org>
377 * modules/stpcpy (License): Change to LGPLv2+.
378 Requested by David Lutterkort <dlutter@redhat.com>.
380 2008-05-27 Bruno Haible <bruno@clisp.org>
382 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
384 Reported by Jose E. Marchesi <jemarch@gnu.org>.
386 2008-05-27 Bruno Haible <bruno@clisp.org>
388 * modules/iconv_open (Link): New section, from module 'iconv'.
389 * modules/striconv (Link): Likewise.
390 * modules/striconveh (Link): Likewise.
391 * modules/xstriconv (Link): Likewise.
392 * modules/unicodeio (Link): Likewise.
393 * modules/propername (Link): Likewise.
394 Reported by Jim Meyering.
396 2008-05-26 Jim Meyering <meyering@redhat.com>
398 sha256: do not artificially restrict buffer length to be < 2^32
399 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
401 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
404 avoid unaligned access errors, e.g., on sparc
405 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
406 direct access through a possibly-unaligned uint64* pointer.
407 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
408 direct access through a possibly-unaligned uint32* pointer.
409 Prompted by this patch from Tom "spot" Callaway:
410 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
412 sha512.c: fix typo in comment
413 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
415 2008-05-25 Bruno Haible <bruno@clisp.org>
417 * lib/set-mode-acl.c: Renamed from lib/acl.c.
418 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
419 (Makefile.am): Update lib_SOURCES.
421 2008-05-25 Bruno Haible <bruno@clisp.org>
423 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
425 2008-05-25 Jim Meyering <meyering@redhat.com>
427 useless-if-before-free: freed expr may have white-space differences
428 * build-aux/useless-if-before-free: Recognize cases in which the
429 freed expression differs from the tested one in embedded white
430 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
431 $1 was used, so we can't make any regexp shy. Improved tests now
434 useless-if-before-free: accept white space in the expression.
435 * build-aux/useless-if-before-free: For now, any white space
436 in the expression must be identical in the free argument.
438 useless-if-before-free: efficiency tweak
439 * build-aux/useless-if-before-free: Make the expression-matching
441 Make the *outer* regexp shy, not the expr-matching one.
443 update code-in-comment to accept cast of free arg
444 * build-aux/useless-if-before-free: Update regexp.
446 2008-05-25 Bruno Haible <bruno@clisp.org>
448 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
449 * modules/copy-file-tests (Files, Makefile.am): Update.
450 * tests/test-copy-file.c (func_test_copy): Update.
452 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
454 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
456 2008-05-23 Bruno Haible <bruno@clisp.org>
458 Improve support for ACLs on OSF/1.
459 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
460 Remove fallback for unknown flavors of ACLs.
462 2008-05-22 Bruno Haible <bruno@clisp.org>
464 Add support for ACLs on OSF/1.
465 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
467 (acl_free_text): New macro fallback.
468 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
470 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
471 acl_free_text function. Require AC_C_INLINE.
473 2008-05-22 Bruno Haible <bruno@clisp.org>
475 Make copy_acl work on MacOS X 10.5.
476 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
477 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
478 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
479 If MODE_INSIDE_ACL, don't assume that every system has the same text
480 representation for ACLs as FreeBSD.
481 * lib/copy-acl.c (copy_acl): Add support for platforms with
483 * lib/file-has-acl.c (file_has_acl): Likewise.
484 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
485 FreeBSD, MacOS X, or IRIX, respectively.
487 2008-05-22 Bruno Haible <bruno@clisp.org>
489 * lib/acl.h: Don't include <sys/acl.h>.
490 (GETACLCNT): Move fallback to lib/acl-internal.h.
491 * lib/acl-internal.h: Include <sys/acl.h> here.
492 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
494 2008-05-22 Bruno Haible <bruno@clisp.org>
496 Split off copy_acl function to separate file.
497 * lib/copy-acl.c: New file, extracted from lib/acl.c.
498 * lib/acl.c (copy_acl): Moved function to separate file.
499 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
500 * modules/acl (Files): Add lib/copy-acl.c.
501 (Makefiles.am): Augment lib_SOURCES.
503 2008-05-22 Bruno Haible <bruno@clisp.org>
505 * modules/copy-file-tests: New file.
506 * tests/test-copy-file.sh: New file.
507 * tests/test-copy-file.c: New file.
508 * tests/test-copy-file-sameacls.c: New file.
510 2008-05-22 Eric Blake <ebb9@byu.net>
513 * tests/test-memcmp.c (main): Pass NULL indirectly.
515 2008-05-21 Bruno Haible <bruno@clisp.org>
517 Add reference doc about ACLs.
518 * doc/acl-resources.txt: New file.
519 * doc/acl-cygwin.txt: New file.
521 2008-05-21 Bruno Haible <bruno@clisp.org>
523 Avoid one more warning from gcc.
524 * lib/vasnprintf.c (IF_LINT): Update comments.
525 (VASNPRINTF): Use it also for the 'prefix' array initializer.
527 2008-05-21 Jim Meyering <meyering@redhat.com>
529 avoid a warning from gcc
530 * lib/vasnprintf.c (IF_LINT): Define.
531 (scale10_round_decimal_long_double):
532 Use it to avoid a "may be used uninitialized" warning.
533 (scale10_round_decimal_double): Likewise.
535 2008-05-21 Simon Josefsson <simon@josefsson.org>
537 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
540 2008-05-20 Bruno Haible <bruno@clisp.org>
542 * tests/test-memcmp.c (main): Test also the sign of the result. Test
543 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
545 2008-05-20 Simon Josefsson <simon@josefsson.org>
547 * modules/memcmp-tests: New file.
548 * tests/test-memcmp.c: New file.
550 2008-05-19 Bruno Haible <bruno@clisp.org>
552 * modules/propername (Notice, configure.ac): Put quoted "..." into
554 * lib/propername.h: Update comments accordingly.
555 Reported by Eric Blake.
557 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
559 * modules/getpass-gnu (Depends-on): Add fseeko.
561 2008-05-19 Simon Josefsson <simon@josefsson.org>
563 * modules/base64-tests: New file.
565 2008-05-19 Bo Borgerson <gigabo@gmail.com>
567 * lib/base64.c (base64_decode_ctx): If a decode context structure
568 was passed in use it to ignore newlines. If a context structure
569 was _not_ passed in, continue to treat newlines as garbage (this
570 is the historical behavior). Formerly base64_decode.
571 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
572 takes a decode context structure.
573 * lib/base64.h (base64_decode): Macro for four-argument calls.
574 (base64_decode_alloc): Likewise.
575 * lib/base64.c (base64_decode_ctx): If a decode context structure
576 was passed in use it to ignore newlines. If a context structure
577 was _not_ passed in, continue to treat newlines as garbage (this
578 is the historical behavior). Formerly base64_decode.
579 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
580 takes a decode context structure.
581 * lib/base64.h (base64_decode): Macro for four-argument calls.
582 (base64_decode_alloc): Likewise.
584 2008-05-19 Jim Meyering <meyering@redhat.com>
586 avoid a warning from gcc
587 * lib/trim.c (IF_LINT): Define.
588 (trim2): Use it to avoid a "may be used uninitialized" warning.
591 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
593 2008-05-19 Bruno Haible <bruno@clisp.org>
595 * doc/glibc-functions/getpass.texi: Document limits of other
598 2008-05-19 Simon Josefsson <simon@josefsson.org>
599 Bruno Haible <bruno@clisp.org>
601 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
603 2008-05-18 Bruno Haible <bruno@clisp.org>
605 * modules/propername: New file, from GNU gettext.
606 * lib/propername.h: New file, from GNU gettext.
607 * lib/propername.c: New file, from GNU gettext.
608 * MODULES.html.sh (Internationalization functions): Add propername.
610 2008-05-16 Jim Meyering <meyering@redhat.com>
611 Bruno Haible <bruno@clisp.org>
613 Avoid some warnings from "gcc -Wshadow".
614 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
616 2008-05-15 Eric Blake <ebb9@byu.net>
618 Extend previous patch to cygwin 1.7.0.
619 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
620 fast implementation in cygwin >= 1.7.0.
621 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
622 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
624 2008-05-15 Bruno Haible <bruno@clisp.org>
626 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
627 implementation in glibc >= 2.9.
628 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
629 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
631 2008-05-15 Bruno Haible <bruno@clisp.org>
633 * MODULES.html.sh (Internationalization functions): Remove linebreak.
634 (Unicode string functions): Add unilbrk/*.
635 Reported by Karl Berry.
637 2008-05-15 Eric Blake <ebb9@byu.net>
639 Fix violation of <stdbool.h> replacement in regex.
640 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
641 * lib/regexec.c (re_search_internal): Likewise.
642 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
644 2008-05-15 Jim Meyering <meyering@redhat.com>
646 avoid distracting test output when git or cvs is not found
647 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
648 * tests/test-vc-list-files-git.sh: Likewise.
650 2008-05-15 Eric Blake <ebb9@byu.net>
652 Glibc finally accepted the memmem speedup code, bugzilla #5514.
653 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
655 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
656 * doc/posix-functions/strstr.texi (strstr): Likewise.
657 * lib/str-two-way.h (MAX): Sychronize with glibc.
659 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
661 * lib/regcomp.c (optimize_utf8): Add a note on why we test
663 (calc_first): Initialize constraint field.
664 (duplicate_node_closure): Use it instead of special casing ANCHORS.
666 (duplicate_node): Merge constraint field for all node types.
667 (calc_eclosure_iter): Look at constraint field for all node types.
668 * lib/regex_internal.c (create_cd_newstate): Don't look at
671 2008-05-14 Bruno Haible <bruno@clisp.org>
673 Help GCC to do better code generation.
674 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
675 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
676 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
677 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
678 Declare with attribute 'malloc' if supported.
680 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
682 use "echo STR|wc -c" rather than unportable "expr length STR"
683 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
684 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
686 2008-05-14 Jim Meyering <meyering@redhat.com>
688 use dd ibs=$n count=1 ... rather than less-portable head -c$n
689 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
690 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
691 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
694 2008-05-14 Eric Blake <ebb9@byu.net>
696 Avoid quadratic growth in gl_LIBSOURCES.
697 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
698 Suggested by Bruno Haible.
701 * modules/xmemdup0-tests: New file.
702 * tests/test-xmemdup0.c: Likewise.
704 2008-05-13 Eric Blake <ebb9@byu.net>
706 Split xmemdup0 into its own module.
707 * modules/xmemdup0: New file.
708 * lib/xmemdup0.h: Likewise.
709 * lib/xmemdup0.c: Likewise.
710 * MODULES.html.sh (Memory management functions): Add xmemdup0.
711 * lib/xalloc.h (xmemdup0): Remove.
712 * lib/xmalloc.c (xmemdup0): Likewise.
714 2008-05-13 Eric Blake <ebb9@byu.net>
715 Bruno Haible <bruno@clisp.org>
717 Reduce number of forks required during autoconf.
718 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
719 and gl_LIBSOURCES_DIR.
720 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
721 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
723 <m4_foreach_w>: Move...
724 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
726 2008-05-13 Eric Blake <ebb9@byu.net>
728 * gnulib-tool: Fix various comment typos.
730 2008-05-12 Bruno Haible <bruno@clisp.org>
732 Tailor the linebreaking algorithm.
733 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
735 2008-05-12 Bruno Haible <bruno@clisp.org>
737 Update to Unicode 5.0.0.
738 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
739 LBP_JV, LBP_JT. Redistribute values.
740 (unilbrk_table): Change size.
741 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
742 Unicode TR#14 rev. 22.
743 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
744 LBP_JV, LBP_JT. Redistribute values.
745 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
746 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
748 * lib/unilbrk/lbrkprop1.h: Regenerated.
749 * lib/unilbrk/lbrkprop2.h: Regenerated.
750 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
751 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
752 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
754 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
756 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
758 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
759 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
760 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
761 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
762 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
763 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
765 2008-05-11 Bruno Haible <bruno@clisp.org>
767 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
769 2008-05-11 Bruno Haible <bruno@clisp.org>
771 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
772 * modules/unilbrk/gen-lbrk: New file.
774 2008-05-11 Bruno Haible <bruno@clisp.org>
776 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
777 * m4/sha512.m4 (gl_SHA512): Likewise.
779 2008-05-11 Jim Meyering <meyering@redhat.com>
781 New modules: crypto/sha256, crypto/sha512 (from coreutils)
782 * modules/crypto/sha256: New file.
783 * modules/crypto/sha512: Likewise.
784 * lib/sha256.c: Likewise.
785 * lib/sha256.h: Likewise.
786 * lib/sha512.c: Likewise.
787 * lib/sha512.h: Likewise.
788 * lib/u64.h: Likewise.
789 * m4/sha256.m4: Likewise.
790 * m4/sha512.m4: Likewise.
791 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
793 2008-05-10 Bruno Haible <bruno@clisp.org>
795 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
796 (Input/Output <stdio.h>): Add xprintf.
797 (Signal handling <signal.h>): Add strsignal.
798 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
799 (Core language properties): Add func.
800 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
801 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
803 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
804 (Input/output): New section.
805 (File system functions): Add openat-die, stat-macros.
806 (Networking functions): Add sockets.
807 (Unicode string functions): Add unictype/*.
808 (Support for building libraries and executables): Add gperf.
809 (Support for building documentation): Add agpl-3.0.
812 2008-05-10 Bruno Haible <bruno@clisp.org>
814 * modules/unictype/gen-ctype: New file.
816 2008-05-10 Jim Meyering <meyering@redhat.com>
818 Make chdir-safer.c more efficient on a system with no symlinks.
819 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
820 also if ELOOP is zero. Suggested by Bruno Haible.
822 Make chdir-safer.c slightly safer.
823 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
824 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
826 Avoid compile failure on systems without ELOOP (like mingw).
827 * lib/chdir-safer.c (ELOOP): Define if not already defined.
828 Reported by Bruno Haible.
830 2008-05-10 Bruno Haible <bruno@clisp.org>
832 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
833 (is_utf8_encoding): Use a case-insensitive comparison.
834 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
837 2008-05-10 Bruno Haible <bruno@clisp.org>
839 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
840 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
841 * lib/unilbrk/ulc-common.h (iconv_string_length,
842 iconv_string_keeping_offsets): Remove declarations.
843 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
844 Don't include <iconv.h>, streq.h, xsize.h.
845 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
847 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
848 <iconv.h>, streq.h, xsize.h.
849 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
851 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
852 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
853 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
854 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
856 2008-05-10 Bruno Haible <bruno@clisp.org>
858 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
859 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
861 * modules/unilbrk/u32-width-linebreaks-tests: New file.
862 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
864 * modules/unilbrk/u16-width-linebreaks-tests: New file.
865 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
867 * modules/unilbrk/u8-width-linebreaks-tests: New file.
868 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
870 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
871 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
873 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
874 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
876 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
877 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
879 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
880 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
882 2008-05-10 Bruno Haible <bruno@clisp.org>
884 Split up 'linebreak' module.
885 * lib/unilbrk.h: New file, based on lib/linebreak.h.
886 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
887 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
889 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
890 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
891 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
893 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
895 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
897 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
898 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
899 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
901 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
903 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
905 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
907 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
909 * modules/unilbrk/base: New file.
910 * modules/unilbrk/tables: New file.
911 * modules/unilbrk/u8-possible-linebreaks: New file.
912 * modules/unilbrk/u16-possible-linebreaks: New file.
913 * modules/unilbrk/u32-possible-linebreaks: New file.
914 * modules/unilbrk/ulc-common: New file.
915 * modules/unilbrk/ulc-possible-linebreaks: New file.
916 * modules/unilbrk/u8-width-linebreaks: New file.
917 * modules/unilbrk/u16-width-linebreaks: New file.
918 * modules/unilbrk/u32-width-linebreaks: New file.
919 * modules/unilbrk/ulc-width-linebreaks: New file.
920 * lib/linebreak.h: Remove file.
921 * lib/linebreak.c: Remove file.
922 * m4/linebreak.m4: Remove file.
923 * modules/linebreak: Remove file.
924 * NEWS: Mention the changes.
926 2008-05-09 Eric Blake <ebb9@byu.net>
929 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
931 * lib/xmalloc.c (xmemdup0): New C implementation.
933 2008-05-08 Bruno Haible <bruno@clisp.org>
935 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
937 2008-05-07 Eric Blake <ebb9@byu.net>
939 Support cross-compilation of <wctype.h>.
940 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
943 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
945 * build-aux/vc-list-files: Add support for bzr.
947 2008-05-03 Jim Meyering <meyering@redhat.com>
949 avoid failed assertion with tight malloc
950 * tests/test-getndelim2.c: Correct an off-by-one assertion.
952 2008-05-03 Simon Josefsson <simon@josefsson.org>
954 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
955 are needed from arpa/inet.h.
956 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
957 Reported by Bruno Haible.
959 2008-05-02 Jim Meyering <meyering@redhat.com>
961 avoid compilation error on FreeBSD 6
962 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
964 2008-05-01 Jim Meyering <meyering@redhat.com>
966 useless-if-before-free: correct --help's exit status description
967 * build-aux/useless-if-before-free (usage): Like grep, exit 0
968 for one or more matches, etc. Reported by Bruno Haible.
970 vc-list-files: make the stand-alone gnulib test work
971 * modules/vc-list-files-tests (configure.ac):
972 Define and AC_SUBST abs_aux_dir.
973 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
974 $(abs_top_srcdir) to each script and having each of them
975 duplicate the work of setting PATH, set PATH here, using
976 the new variable, abs_aux_dir instead.
977 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
978 * tests/test-vc-list-files-git.sh: Likewise.
979 Reported by Bruno Haible.
981 2008-05-01 Bruno Haible <bruno@clisp.org>
983 * lib/getndelim2.c (getndelim2): Fix newsize computation during
984 reallocation. Rename 'done' to 'found_delimiter'.
986 2008-05-01 Jim Meyering <meyering@redhat.com>
988 vc-list-files: accommodate /bin/sh like the one from Solaris 10
989 * build-aux/vc-list-files: Use `...`, not $(...).
991 2008-04-30 Jim Meyering <meyering@redhat.com>
993 add tests for vc-list-files
994 * modules/vc-list-files-tests: New module.
995 * tests/test-vc-list-files-cvs.sh: New file.
996 * tests/test-vc-list-files-git.sh: New file.
998 avoid a warning from gcc
999 * lib/getndelim2.c (IF_LINT): Define.
1000 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
1002 vc-list-files: work properly with build-aux/cvsu, too
1003 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
1004 to all cvs-based clauses.
1006 vc-list-files: work properly in the CVS+awk case, too
1007 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
1009 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
1010 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
1011 take more than one file argument, so . Add quotes, just in case $dir
1012 ever contains a shell meta-character. Prompted by Soren Hansen in
1013 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
1015 2008-04-29 Eric Blake <ebb9@byu.net>
1017 Optimize getndelim2 to use block operations when possible.
1018 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
1019 freadseek, and memchr2.
1020 * lib/getndelim2.c (getndelim2): Use them for block reads.
1022 2008-04-29 Bruno Haible <bruno@clisp.org>
1024 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
1025 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
1026 * modules/inet_ntop (Depends-on): Add extensions.
1027 * modules/inet_pton (Depends-on): Likewise.
1028 Reported by Simon Josefsson.
1030 2008-04-29 Jim Meyering <meyering@redhat.com>
1032 When the is more than one match in a block, match all of them.
1033 * build-aux/useless-if-before-free: Iterate through each block
1034 until there are no more matches.
1036 Fix broken useless-if-before-free script.
1037 * build-aux/useless-if-before-free: Fix typo: missing "?" after
1038 the expression to match cast of argument to free-like function.
1040 2008-04-29 Eric Blake <ebb9@byu.net>
1043 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
1045 2008-04-29 Jim Meyering <meyering@redhat.com>
1047 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
1048 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
1049 by gnulib to exist and to declare e.g., inet_ntop.
1050 Don't include "inet_ntop.h", now removed.
1052 * m4/arpa_inet_h.m4: Remove trailing blanks.
1054 2008-04-29 Eric Blake <ebb9@byu.net>
1056 Silence valgrind on safe reads beyond potential array bounds.
1057 * lib/rawmemchr.valgrind: New file.
1058 * lib/strchrnul.valgrind: Likewise.
1059 * modules/rawmemchr (Files): Distribute new file.
1060 * modules/strchrnul (Files): Likewise.
1061 Suggested by Bruno Haible.
1063 2008-04-29 Bruno Haible <bruno@clisp.org>
1065 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
1066 (inet_ntop, inet_pton): Change portability warning's wording.
1067 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
1068 Invoke gl_CHECK_NEXT_HEADERS.
1069 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
1070 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
1072 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
1073 * modules/arpa_inet (Description): No longer only for systems that
1075 (Depends-on): Add include_next.
1076 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
1079 2008-04-29 Jim Meyering <meyering@redhat.com>
1081 * modules/mkdir (License): Re-license as LGPLv2+.
1083 2008-04-29 Bruno Haible <bruno@clisp.org>
1085 * modules/rawmemchr (Maintainer): Set to Eric.
1086 * modules/strchrnul (Maintainer): Likewise.
1088 2008-04-29 Simon Josefsson <simon@josefsson.org>
1090 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
1091 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
1093 * modules/arpa_inet (arpa/inet.h): Use them.
1095 2008-04-28 Eric Blake <ebb9@byu.net>
1098 * modules/getndelim2-tests: New file.
1099 * tests/test-getndelim2.c: Likewise.
1100 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
1102 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
1104 * MODULES.html.sh: Document new module.
1106 2008-04-20 Bruno Haible <bruno@clisp.org>
1108 * lib/c-stack.c (die): Use raise.
1109 * modules/c-stack (Depends-on): Add raise.
1111 2008-04-28 Bruno Haible <bruno@clisp.org>
1113 Expect rpmatch to be declared.
1114 * lib/yesno.c (rpmatch): Remove declaration.
1117 * lib/stdlib.in.h (rpmatch): New declaration.
1118 * lib/rpmatch.c: Include <stdlib.h> first.
1119 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
1120 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
1121 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
1123 * modules/rpmatch (Depends-on): Add stdlib, extensions.
1124 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
1125 (Include): Set to <stdlib.h>.
1126 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
1128 * NEWS: Document the change.
1130 2008-04-28 Bruno Haible <bruno@clisp.org>
1132 Change rpmatch to use nl_langinfo when appropriate.
1133 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
1135 (localized_pattern): New function/macro.
1136 (try): Remove match, nomatch arguments. Copy the pattern into safe
1137 memory before caching it.
1138 (rpmatch): Use localized_pattern. Add translator comments.
1139 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
1140 Suggested by Eric Blake.
1141 * modules/rpmatch (Depends-on): Add stdbool.
1143 2008-04-28 Eric Blake <ebb9@byu.net>
1145 Add rawmemchr module, matching glibc.
1146 * modules/string (Makefile.am): New indicator.
1147 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
1148 * lib/string.in.h (rawmemchr): Declare when appropriate.
1149 * modules/rawmemchr: New file.
1150 * m4/rawmemchr.m4: Likewise.
1151 * lib/rawmemchr.c: Likewise.
1152 * modules/rawmemchr-tests: Likewise.
1153 * tests/test-rawmemchr.c: Likewise.
1154 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
1156 * modules/strchrnul (Depends-on): Add rawmemchr.
1157 * lib/strchrnul.c (strchrnul): Optimize a corner case.
1160 * tests/test-strchrnul.c: Reindent.
1161 * lib/strchrnul.c: Likewise.
1163 Optimize and test strchrnul.
1164 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
1165 * modules/strchrnul-tests: New file.
1166 * tests/test-strchrnul.c: Likewise.
1168 Remove intprops dependency.
1169 * modules/memchr (Depends-on): Remove intprops.
1170 * modules/memrchr (Depends-on): Likewise.
1171 * modules/memchr2 (Depends-on): Likewise.
1172 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
1173 * lib/memrchr.c (__memrchr): Likewise.
1174 * lib/memrchr2.c (memchr2): Likewise.
1175 Reported by Simon Josefsson.
1177 2008-04-28 Simon Josefsson <simon@josefsson.org>
1179 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
1180 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1182 2008-04-28 Simon Josefsson <simon@josefsson.org>
1184 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
1186 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
1188 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
1190 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
1192 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
1194 * m4/inet_pton.m4: Don't check for header files.
1196 * m4/inet_ntop.m4: Don't check for header files.
1198 2008-04-28 Simon Josefsson <simon@josefsson.org>
1200 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
1201 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
1202 trigger for cygwin).
1203 Reported by Bruno Haible <bruno@clisp.org>.
1205 2008-04-28 Bruno Haible <bruno@clisp.org>
1207 * doc/posix-functions/strdup.texi: Mention mingw problem.
1209 2008-04-27 Bruno Haible <bruno@clisp.org>
1211 * modules/stat-time-tests (Depends-on): Add sleep.
1212 * tests/test-stat-time.c (force_unlink): New function.
1214 (test_mtime): Remove the ctime related tests.
1215 (test_ctime): New function, containing the ctime related tests.
1216 (main): Call test_ctime, except on native Windows platforms.
1218 2008-04-27 Bruno Haible <bruno@clisp.org>
1220 * lib/rpmatch.c (rpmatch): Add some comments.
1221 Reported by James Youngman <jay@gnu.org>.
1223 2008-04-27 Bruno Haible <bruno@clisp.org>
1225 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
1228 2008-04-27 Bruno Haible <bruno@clisp.org>
1230 Make test-yesno.sh work on mingw.
1231 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
1232 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
1233 (main): Set stdin to binary mode.
1234 * modules/yesno-tests (Depends-on): Add binary-io.
1236 2008-04-27 Bruno Haible <bruno@clisp.org>
1238 Fix 'isfinite' on x86, x86_64, ia64 platforms.
1239 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
1240 argument that lie outside the IEEE 854 domain.
1241 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
1242 (gl_ISFINITE): Use it.
1243 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
1245 2008-04-27 Bruno Haible <bruno@clisp.org>
1247 Allow local renaming in config.h.
1248 * lib/memrchr.c (memrchr): Don't undefine outside libc.
1250 2008-04-27 Bruno Haible <bruno@clisp.org>
1252 * lib/memchr.c (__memchr): Change type of 'i'.
1253 * lib/memchr2.c (memchr2): Likewise.
1255 2008-04-26 Eric Blake <ebb9@byu.net>
1256 and Bruno Haible <bruno@clisp.org>
1258 Optimize and test memrchr.
1259 * modules/memrchr (Depends-on): Add intprops.
1260 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
1261 * modules/memrchr-tests: New file.
1262 * tests/test-memrchr.c: New file.
1264 2008-04-26 Bruno Haible <bruno@clisp.org>
1266 Add tentative support for DragonFly BSD.
1267 * lib/stdio-impl.h: Add macros for DragonFly BSD.
1268 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
1270 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
1271 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
1272 * lib/fpurge.c (fpurge): Likewise.
1273 * lib/freadable.c (freaadable): Likewise.
1274 * lib/freadahead.c (freadahead): Likewise.
1275 * lib/freading.c (freading): Likewise.
1276 * lib/freadptr.c (freadptr): Likewise.
1277 * lib/freadseek.c (freadptrinc): Likewise.
1278 * lib/fseeko.c (fseeko): Likewise.
1279 * lib/fseterr.c (fseterr): Likewise.
1280 * lib/fwritable.c (fwritable): Likewise.
1281 * lib/fwriting.c (fwriting): Likewise.
1283 2008-04-26 Bruno Haible <bruno@clisp.org>
1285 * lib/stdio-impl.h: New file.
1286 * lib/fbufmode.c: Include stdio-impl.h.
1287 (fbufmode): Use fp_, remove redundant #defines.
1288 * lib/fflush.c: Include stdio-impl.h.
1289 (clear_ungetc_buffer): Remove redundant #defines.
1290 * lib/fpurge.c: Include stdio-impl.h.
1291 (fpurge): Remove redundant #defines.
1292 * lib/freadable.c: Include stdio-impl.h.
1293 (freadable): Remove redundant #defines.
1294 * lib/freadahead.c: Include stdio-impl.h.
1295 (freadahead): Remove redundant #defines.
1296 * lib/freading.c: Include stdio-impl.h.
1297 (freading): Remove redundant #defines.
1298 * lib/freadptr.c: Include stdio-impl.h.
1299 (freadptr): Remove redundant #defines.
1300 * lib/freadseek.c: Include stdio-impl.h.
1301 (freadptrinc): Remove redundant #defines.
1302 * lib/fseeko.c: Include stdio-impl.h.
1303 (rpl_fseeko): Remove redundant #defines.
1304 * lib/fseterr.c: Include stdio-impl.h.
1305 (fseterr): Remove redundant #defines.
1306 * lib/fwritable.c: Include stdio-impl.h.
1307 (fwritable: Remove redundant #defines.
1308 * lib/fwriting.c: Include stdio-impl.h.
1309 (fwriting): Remove redundant #defines.
1310 * modules/fbufmode (Files): Add lib/stdio-impl.h.
1311 * modules/fflush (Files): Likewise.
1312 * modules/fpurge (Files): Likewise.
1313 * modules/freadable (Files): Likewise.
1314 * modules/freadahead (Files): Likewise.
1315 * modules/freading (Files): Likewise.
1316 * modules/freadptr (Files): Likewise.
1317 * modules/freadseek (Files): Likewise.
1318 * modules/fseeko (Files): Likewise.
1319 * modules/fseterr (Files): Likewise.
1320 * modules/fwritable (Files): Likewise.
1321 * modules/fwriting (Files): Likewise.
1323 2008-04-26 Bruno Haible <bruno@clisp.org>
1325 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
1326 restore_seek_optimization, update_fpos_cache): New functions, extracted
1328 (rpl_fflush): Use them.
1329 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
1330 (gl_REPLACE_FFLUSH): Use it.
1332 2008-04-26 Bruno Haible <bruno@clisp.org>
1334 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
1336 * tests/test-xstrtoimax.sh: Likewise.
1337 * tests/test-xstrtoumax.sh: Likewise.
1338 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1340 2008-04-26 Bruno Haible <bruno@clisp.org>
1342 * modules/memchr-tests: New file.
1343 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
1345 2008-04-26 Eric Blake <ebb9@byu.net>
1346 Bruno Haible <bruno@clisp.org>
1348 * lib/memchr.c: Include intprops.h.
1349 (__memchr): Optimize parallel detection of matching bytes. Rename local
1350 variables. Add explanatory comments.
1352 2008-04-26 Bruno Haible <bruno@clisp.org>
1354 Fix module 'memchr', broken since 2000-10-28.
1355 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
1357 2008-04-26 Bruno Haible <bruno@clisp.org>
1359 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
1362 2008-04-25 Eric Blake <ebb9@byu.net>
1364 Use native fstatat on cygwin 1.7.0.
1365 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
1368 2008-04-23 Eric Blake <ebb9@byu.net>
1370 Improve memchr2 performance.
1371 * lib/memchr2.c (memchr2): Further optimize parallel detection of
1373 * modules/memchr2 (Depends-on): Use intprops.h.
1375 2008-04-23 Simon Josefsson <simon@josefsson.org>
1377 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
1378 an inline function instead of a CPP macro. Patch by Ben Pfaff
1379 <blp@cs.stanford.edu>.
1381 2008-04-23 Simon Josefsson <simon@josefsson.org>
1383 * lib/arpa_inet.in.h: New file.
1385 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
1386 (Makefile.am): Sed in substitute header file.
1388 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
1389 gl_ARPA_INET_MODULE_INDICATOR. Use them.
1391 * modules/inet_ntop (configure.ac): Use
1392 gl_ARPA_INET_MODULE_INDICATOR.
1394 * modules/inet_pton (configure.ac): Use
1395 gl_ARPA_INET_MODULE_INDICATOR.
1397 2008-04-22 Jim Meyering <meyering@redhat.com>
1399 * modules/verify (License): Re-license as LGPLv2+.
1401 2008-04-22 Simon Josefsson <simon@josefsson.org>
1403 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
1404 parameter to void* as per POSIX standard (MinGW uses char*).
1406 2008-04-21 Bruno Haible <bruno@clisp.org>
1408 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
1409 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
1410 Define to replacements if REPLACE_ISWCNTRL is 1.
1411 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
1412 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
1413 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
1414 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
1416 * doc/posix-functions/iswalpha.texi: Likewise.
1417 * doc/posix-functions/iswblank.texi: Likewise.
1418 * doc/posix-functions/iswcntrl.texi: Likewise.
1419 * doc/posix-functions/iswdigit.texi: Likewise.
1420 * doc/posix-functions/iswgraph.texi: Likewise.
1421 * doc/posix-functions/iswlower.texi: Likewise.
1422 * doc/posix-functions/iswprint.texi: Likewise.
1423 * doc/posix-functions/iswpunct.texi: Likewise.
1424 * doc/posix-functions/iswspace.texi: Likewise.
1425 * doc/posix-functions/iswupper.texi: Likewise.
1426 * doc/posix-functions/iswxdigit.texi: Likewise.
1427 Reported by Alain Guibert.
1429 2008-04-21 Bruno Haible <bruno@clisp.org>
1431 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
1432 Patch by Alain Guibert.
1434 2008-04-21 Bruno Haible <bruno@clisp.org>
1436 Fix test failures on mingw.
1437 * tests/test-xstrtol.c (print_no_progname): New function.
1438 (main): Install it in error_print_progname hook.
1439 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
1440 * tests/test-xstrtoimax.sh: Likewise.
1441 * tests/test-xstrtoumax.sh: Likewise.
1443 2008-04-21 Bruno Haible <bruno@clisp.org>
1445 Fix test failure on mingw.
1446 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
1448 2008-04-21 Bruno Haible <bruno@clisp.org>
1450 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
1451 Actually assign a value.
1453 2008-04-20 Bruno Haible <bruno@clisp.org>
1455 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
1457 * lib/canonicalize.c (canonicalize_file_name): Elide if the
1458 'canonicalize-lgpl' module is also used.
1459 * lib/canonicalize-lgpl.c: Undo last change.
1460 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
1462 2008-04-20 Bruno Haible <bruno@clisp.org>
1464 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
1465 config.h. Provide _mkdir based fallback for mingw.
1466 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
1467 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
1468 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
1469 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
1470 rather than defining mkdir in config.h.
1471 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
1472 (gl_SYS_STAT_H_DEFAULTS): New macro.
1473 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
1475 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
1476 HAVE_DECL_MKDIR and HAVE_IO_H.
1478 2008-04-20 Bruno Haible <bruno@clisp.org>
1480 * lib/isapipe.c: Port to native Windows platforms.
1482 2008-04-20 Bruno Haible <bruno@clisp.org>
1484 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
1486 2008-04-21 Eric Blake <ebb9@byu.net>
1488 Work around preprocessors that don't handle UINTMAX_MAX.
1489 * lib/memchr2.c (memchr2): Avoid embedded #if.
1490 Reported by Alain Guibert, fix suggested by Bruno Haible.
1492 2008-04-21 Simon Josefsson <simon@josefsson.org>
1494 * doc/posix-functions/strftime.texi (strftime): Explain better
1495 Windows incompatibility. Suggested by Micah Cowan
1498 2008-04-20 Bruno Haible <bruno@clisp.org>
1500 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
1503 2008-04-20 Bruno Haible <bruno@clisp.org>
1505 Fix test failure on platforms with non-GNU iconv.
1506 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
1507 (U_TO_U8): Use it, rather than u16_to_u8.
1508 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
1509 units at the end of the input string.
1510 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
1512 2008-04-20 Bruno Haible <bruno@clisp.org>
1514 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
1515 when the resulting length is 0.
1516 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
1518 2008-04-20 Bruno Haible <bruno@clisp.org>
1520 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
1522 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
1524 2008-04-20 Bruno Haible <bruno@clisp.org>
1526 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
1527 * modules/tsearch-tests (configure.ac): Test for initstate function.
1529 2008-04-20 Bruno Haible <bruno@clisp.org>
1531 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
1532 for nlink_t if missing.
1533 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
1535 2008-04-19 Bruno Haible <bruno@clisp.org>
1537 Work around snprintf bug on Linux libc5.
1538 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
1539 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
1541 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1542 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
1544 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
1545 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
1546 * modules/snprintf (Files): Add m4/printf.m4.
1547 * modules/vsnprintf (Files): Likewise.
1548 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
1549 * doc/posix-functions/vsnprintf.texi: Likewise.
1551 2008-04-19 Bruno Haible <bruno@clisp.org>
1553 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
1554 from 0.0058 to less than 10^-7.
1556 2008-04-19 Bruno Haible <bruno@clisp.org>
1558 Fix rounding when a precision is given.
1559 * lib/vasnprintf.c (is_borderline): New function.
1560 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
1562 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
1564 * tests/test-vasprintf-posix.c (test_function): Likewise.
1565 * tests/test-snprintf-posix.h (test_function): Likewise.
1566 * tests/test-sprintf-posix.h (test_function): Likewise.
1567 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
1568 * tests/test-printf-posix.h (test_function): Likewise.
1569 * tests/test-printf-posix.output: Update.
1570 Reported by John Darrington <john@darrington.wattle.id.au> via
1571 Ben Pfaff <blp@cs.stanford.edu>.
1573 2008-04-18 Simon Josefsson <simon@josefsson.org>
1575 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
1576 Suggested by Bruno Haible <bruno@clisp.org>.
1578 2008-04-17 Bruno Haible <bruno@clisp.org>
1580 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
1581 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
1583 Patch by Bruce Merry <bmerry@gmail.com>.
1585 2008-04-17 Simon Josefsson <simon@josefsson.org>
1587 * doc/posix-functions/strftime.texi (strftime): Mention that %e
1588 doesn't work under Windows.
1590 2008-04-16 Bruno Haible <bruno@clisp.org>
1592 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
1594 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
1595 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
1596 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
1597 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
1598 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
1599 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
1600 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
1602 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
1603 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
1604 Northern Sotho, Uighur.
1606 2008-04-16 Bruno Haible <bruno@clisp.org>
1608 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
1609 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
1610 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
1611 Reported by Daniel Bergström <daniel@octocode.com>.
1613 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
1614 Bruno Haible <bruno@clisp.org>
1616 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
1618 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
1619 New functions, mostly extracted from gl_locale_name_default.
1620 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
1622 2008-04-16 Eric Blake <ebb9@byu.net>
1624 Adjust strtod detection to catch glibc 2.7 bug.
1625 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
1626 Reported by John Gatewood Ham.
1628 2008-04-16 Bruno Haible <bruno@clisp.org>
1630 Add tentative support for Linux libc5.
1631 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
1632 * lib/fpurge.c (fpurge): Likewise.
1633 * lib/freadable.c (freadable): Likewise.
1634 * lib/freadahead.c (freadahead): Likewise.
1635 * lib/freading.c (freading): Likewise.
1636 * lib/freadptr.c (freadptr): Likewise.
1637 * lib/freadseek.c (freadptrinc): Likewise.
1638 * lib/fseeko.c (rpl_fseeko): Likewise.
1639 * lib/fseterr.c (fseterr): Likewise.
1640 * lib/fwritable.c (fwritable): Likewise.
1641 * lib/fwriting.c (fwriting): Likewise.
1642 Reported by Alain Guibert <alguibert+bts@free.fr>.
1644 2008-04-15 Bruno Haible <bruno@clisp.org>
1646 * modules/mathl (configure.ac): Define module indicator.
1648 2008-04-15 Bruno Haible <bruno@clisp.org>
1650 * lib/logl.c (logl): Remove unused variables.
1652 2008-04-15 Bruno Haible <bruno@clisp.org>
1654 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
1657 2008-04-15 Bruno Haible <bruno@clisp.org>
1659 * lib/trim.c (trim2): Fix argument of isspace() macro.
1661 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
1663 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
1665 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
1667 2008-04-14 Bruno Haible <bruno@clisp.org>
1669 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
1670 AC_LANG_PROGRAM argument.
1671 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
1672 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
1673 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
1674 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1675 * m4/math_h.m4 (gl_MATH_H): Likewise.
1676 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
1677 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
1678 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
1679 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
1680 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
1681 * m4/regex.m4 (gl_REGEX): Likewise.
1682 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
1683 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
1684 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1685 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
1686 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
1687 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
1688 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1689 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1691 2008-04-14 Jim Meyering <meyering@redhat.com>
1693 test-strtod: fix typos: s/abs/fabs/
1694 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
1696 2008-04-13 Bruno Haible <bruno@clisp.org>
1698 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
1699 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
1700 module is also used and while not building the reloc-wrapper.
1702 2008-04-13 Bruno Haible <bruno@clisp.org>
1704 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
1706 2008-04-13 Bruno Haible <bruno@clisp.org>
1708 Fix AIX compilation failure introduced on 2008-04-02.
1709 * tests/test-frexp.c (exp): Undefine before redefining.
1710 * tests/test-frexpl.c (exp): Likewise.
1712 2008-04-13 Bruno Haible <bruno@clisp.org>
1714 Work around a HP-UX stdio bug.
1715 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
1716 * tests/test-ftello.c (main): Likewise.
1717 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
1718 * doc/posix-functions/ftello.texi: Likewise.
1720 2008-04-13 Bruno Haible <bruno@clisp.org>
1722 Make test-signbit pass on HP-UX/hppa.
1723 * tests/test-signbit.c (minus_zerol): New variable.
1724 (test_signbitl): Use it.
1726 2008-04-13 Bruno Haible <bruno@clisp.org>
1728 Make truncl work on OSF/1 4.0.
1729 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
1730 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
1731 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
1732 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
1734 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
1736 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
1738 2008-04-13 Bruno Haible <bruno@clisp.org>
1740 * lib/unictype.h: Remove trailing comma from enumeration definitions.
1742 2008-04-13 Bruno Haible <bruno@clisp.org>
1744 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
1745 expression, so as to avoid HP-UX 11 cc compiler bug.
1747 2008-04-13 Bruno Haible <bruno@clisp.org>
1749 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
1751 2008-04-13 Bruno Haible <bruno@clisp.org>
1753 * lib/git-merge-changelog.c: Remove empty declaration outside of
1756 2008-04-13 Bruno Haible <bruno@clisp.org>
1758 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
1760 2008-04-13 Bruno Haible <bruno@clisp.org>
1762 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
1763 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
1764 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
1765 also if it exists but lacks definitions of the SHUT_* macros.
1766 * modules/sys_socket (Description): Update.
1767 Reported by Elbert Pol <e.pol@chello.nl>.
1769 2008-04-13 Bruno Haible <bruno@clisp.org>
1771 * lib/localcharset.c (OS2): Don't redefine if already defined.
1772 Reported by Elbert Pol <e.pol@chello.nl>.
1774 2008-04-13 Bruno Haible <bruno@clisp.org>
1776 * lib/binary-io.h [__EMX__]: Include <io.h>.
1777 Reported by Elbert Pol <e.pol@chello.nl>.
1779 2008-04-12 Bruno Haible <bruno@clisp.org>
1781 * lib/fpucw.h: Enable the definitions also for x86_64.
1782 Needed for NetBSD/x86_64.
1783 Reported by Thomas Klausner <tk@giga.or.at>.
1785 2008-04-12 Bruno Haible <bruno@clisp.org>
1787 * tests/test-strtod.c: Include isnand.h.
1788 (main): Use isnand instead of isnan.
1789 Reported by Jim Meyering.
1791 2008-04-12 Bruno Haible <bruno@clisp.org>
1793 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
1794 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
1796 2008-04-12 Jim Meyering <meyering@redhat.com>
1798 * m4/math_h.m4 (gl_MATH_H): Fix typos.
1800 2008-04-12 Bruno Haible <bruno@clisp.org>
1802 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
1803 Reported by Elbert Pol <e.pol@chello.nl>.
1805 2008-04-12 Eric Blake <ebb9@byu.net>
1807 Work around Solaris 10 math.h bug.
1808 * m4/math_h.m4 (gl_MATH_H): Check for bug.
1809 (gl_MATH_H_DEFAULTS): Set up default.
1810 * modules/math (Makefile.am): Replace new indicators.
1811 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
1812 * tests/test-math.c (main): Test this.
1813 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
1814 * doc/posix-headers/math.texi (math.h): Mention bug.
1815 Reported by Nelson H. F. Beebe and Jim Meyering.
1817 2008-04-11 Bruno Haible <bruno@clisp.org>
1819 Adapt to future versions of Apple GCC.
1820 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
1821 Reported by Peter O'Gorman <peter@pogma.com>.
1823 2008-04-11 Bruno Haible <bruno@clisp.org>
1825 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
1827 2008-04-11 Bruno Haible <bruno@clisp.org>
1829 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
1831 * modules/getaddrinfo-tests (Makefile.am): Define
1832 test_getaddrinfo_LDADD.
1834 2008-04-11 Bruno Haible <bruno@clisp.org>
1836 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
1837 (init): Fix syntax error.
1838 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
1841 2008-04-11 Bruno Haible <bruno@clisp.org>
1843 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
1844 * modules/glob (Depends-on): Add stdbool.
1846 2008-04-11 Bruno Haible <bruno@clisp.org>
1848 * lib/trim.c: Include <string.h>.
1850 2008-04-11 Eric Blake <ebb9@byu.net>
1852 Avoid compile failure on OS/2.
1853 * lib/regex_internal.h (internal_function): Disable optimization
1854 on OS/2 (__EMX__), where it caused compiler error.
1855 Reported by Elbert Pol.
1857 2008-04-11 Bruno Haible <bruno@clisp.org>
1859 Flush the standard error stream before aborting. Needed on mingw.
1860 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
1861 * tests/test-array_list.c (ASSERT): Likewise.
1862 * tests/test-array_oset.c (ASSERT): Likewise.
1863 * tests/test-avltree_list.c (ASSERT): Likewise.
1864 * tests/test-avltree_oset.c (ASSERT): Likewise.
1865 * tests/test-avltreehash_list.c (ASSERT): Likewise.
1866 * tests/test-binary-io.c (ASSERT): Likewise.
1867 * tests/test-byteswap.c (ASSERT): Likewise.
1868 * tests/test-c-ctype.c (ASSERT): Likewise.
1869 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
1870 * tests/test-c-strcasestr.c (ASSERT): Likewise.
1871 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
1872 * tests/test-c-strstr.c (ASSERT): Likewise.
1873 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
1874 * tests/test-canonicalize.c (ASSERT): Likewise.
1875 * tests/test-carray_list.c (ASSERT): Likewise.
1876 * tests/test-ceilf1.c (ASSERT): Likewise.
1877 * tests/test-ceilf2.c (ASSERT): Likewise.
1878 * tests/test-ceill.c (ASSERT): Likewise.
1879 * tests/test-count-one-bits.c (ASSERT): Likewise.
1880 * tests/test-fbufmode.c (ASSERT): Likewise.
1881 * tests/test-fflush2.c (ASSERT): Likewise.
1882 * tests/test-floorf1.c (ASSERT): Likewise.
1883 * tests/test-floorf2.c (ASSERT): Likewise.
1884 * tests/test-floorl.c (ASSERT): Likewise.
1885 * tests/test-fopen.c (ASSERT): Likewise.
1886 * tests/test-fpending.c (ASSERT): Likewise.
1887 * tests/test-fprintf-posix.c (ASSERT): Likewise.
1888 * tests/test-fpurge.c (ASSERT): Likewise.
1889 * tests/test-freadable.c (ASSERT): Likewise.
1890 * tests/test-freadahead.c (ASSERT): Likewise.
1891 * tests/test-freading.c (ASSERT): Likewise.
1892 * tests/test-freadptr.c (ASSERT): Likewise.
1893 * tests/test-freadptr2.c (ASSERT): Likewise.
1894 * tests/test-freadseek.c (ASSERT): Likewise.
1895 * tests/test-freopen.c (ASSERT): Likewise.
1896 * tests/test-frexp.c (ASSERT): Likewise.
1897 * tests/test-frexpl.c (ASSERT): Likewise.
1898 * tests/test-fseek.c (ASSERT): Likewise.
1899 * tests/test-fseeko.c (ASSERT): Likewise.
1900 * tests/test-fstrcmp.c (ASSERT): Likewise.
1901 * tests/test-ftell.c (ASSERT): Likewise.
1902 * tests/test-ftello.c (ASSERT): Likewise.
1903 * tests/test-func.c (ASSERT): Likewise.
1904 * tests/test-fwritable.c (ASSERT): Likewise.
1905 * tests/test-fwriting.c (ASSERT): Likewise.
1906 * tests/test-getdelim.c (ASSERT): Likewise.
1907 * tests/test-getline.c (ASSERT): Likewise.
1908 * tests/test-i-ring.c (ASSERT): Likewise.
1909 * tests/test-iconv-utf.c (ASSERT): Likewise.
1910 * tests/test-iconv.c (ASSERT): Likewise.
1911 * tests/test-isfinite.c (ASSERT): Likewise.
1912 * tests/test-isnand.c (ASSERT): Likewise.
1913 * tests/test-isnanf.c (ASSERT): Likewise.
1914 * tests/test-isnanl.h (ASSERT): Likewise.
1915 * tests/test-ldexpl.c (ASSERT): Likewise.
1916 * tests/test-linked_list.c (ASSERT): Likewise.
1917 * tests/test-linkedhash_list.c (ASSERT): Likewise.
1918 * tests/test-localename.c (ASSERT): Likewise.
1919 * tests/test-lseek.c (ASSERT): Likewise.
1920 * tests/test-mbscasecmp.c (ASSERT): Likewise.
1921 * tests/test-mbscasestr1.c (ASSERT): Likewise.
1922 * tests/test-mbscasestr2.c (ASSERT): Likewise.
1923 * tests/test-mbscasestr3.c (ASSERT): Likewise.
1924 * tests/test-mbscasestr4.c (ASSERT): Likewise.
1925 * tests/test-mbschr.c (ASSERT): Likewise.
1926 * tests/test-mbscspn.c (ASSERT): Likewise.
1927 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
1928 * tests/test-mbspbrk.c (ASSERT): Likewise.
1929 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
1930 * tests/test-mbsrchr.c (ASSERT): Likewise.
1931 * tests/test-mbsspn.c (ASSERT): Likewise.
1932 * tests/test-mbsstr1.c (ASSERT): Likewise.
1933 * tests/test-mbsstr2.c (ASSERT): Likewise.
1934 * tests/test-mbsstr3.c (ASSERT): Likewise.
1935 * tests/test-memchr2.c (ASSERT): Likewise.
1936 * tests/test-memmem.c (ASSERT): Likewise.
1937 * tests/test-open.c (ASSERT): Likewise.
1938 * tests/test-printf-frexp.c (ASSERT): Likewise.
1939 * tests/test-printf-frexpl.c (ASSERT): Likewise.
1940 * tests/test-printf-posix.c (ASSERT): Likewise.
1941 * tests/test-quotearg.c (ASSERT): Likewise.
1942 * tests/test-rbtree_list.c (ASSERT): Likewise.
1943 * tests/test-rbtree_oset.c (ASSERT): Likewise.
1944 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
1945 * tests/test-round1.c (ASSERT): Likewise.
1946 * tests/test-roundf1.c (ASSERT): Likewise.
1947 * tests/test-roundl.c (ASSERT): Likewise.
1948 * tests/test-signbit.c (ASSERT): Likewise.
1949 * tests/test-sleep.c (ASSERT): Likewise.
1950 * tests/test-snprintf-posix.c (ASSERT): Likewise.
1951 * tests/test-snprintf.c (ASSERT): Likewise.
1952 * tests/test-sprintf-posix.c (ASSERT): Likewise.
1953 * tests/test-stat-time.c (ASSERT): Likewise.
1954 * tests/test-strcasestr.c (ASSERT): Likewise.
1955 * tests/test-strerror.c (ASSERT): Likewise.
1956 * tests/test-striconv.c (ASSERT): Likewise.
1957 * tests/test-striconveh.c (ASSERT): Likewise.
1958 * tests/test-striconveha.c (ASSERT): Likewise.
1959 * tests/test-strsignal.c (ASSERT): Likewise.
1960 * tests/test-strstr.c (ASSERT): Likewise.
1961 * tests/test-strtod.c (ASSERT): Likewise.
1962 * tests/test-trunc1.c (ASSERT): Likewise.
1963 * tests/test-trunc2.c (ASSERT): Likewise.
1964 * tests/test-truncf1.c (ASSERT): Likewise.
1965 * tests/test-truncf2.c (ASSERT): Likewise.
1966 * tests/test-truncl.c (ASSERT): Likewise.
1967 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
1968 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
1969 * tests/test-vasnprintf.c (ASSERT): Likewise.
1970 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
1971 * tests/test-vasprintf.c (ASSERT): Likewise.
1972 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
1973 * tests/test-vprintf-posix.c (ASSERT): Likewise.
1974 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
1975 * tests/test-vsnprintf.c (ASSERT): Likewise.
1976 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
1977 * tests/test-wcwidth.c (ASSERT): Likewise.
1978 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
1979 * tests/test-xprintf-posix.c (ASSERT): Likewise.
1980 * tests/test-xvasprintf.c (ASSERT): Likewise.
1981 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
1982 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
1983 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
1984 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
1985 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
1986 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
1987 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
1988 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
1989 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
1990 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
1991 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
1992 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
1993 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
1994 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
1995 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
1996 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
1997 * tests/unictype/test-block_list.c (ASSERT): Likewise.
1998 * tests/unictype/test-block_of.c (ASSERT): Likewise.
1999 * tests/unictype/test-block_test.c (ASSERT): Likewise.
2000 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
2001 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
2002 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
2003 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
2004 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
2005 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
2006 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
2007 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
2008 * tests/unictype/test-combining.c (ASSERT): Likewise.
2009 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
2010 * tests/unictype/test-digit.c (ASSERT): Likewise.
2011 * tests/unictype/test-mirror.c (ASSERT): Likewise.
2012 * tests/unictype/test-numeric.c (ASSERT): Likewise.
2013 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
2014 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
2015 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
2016 * tests/unictype/test-scripts.c (ASSERT): Likewise.
2017 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
2018 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
2019 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
2020 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
2021 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
2022 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
2023 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
2024 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
2025 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
2026 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
2027 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
2028 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
2029 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
2030 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
2031 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
2032 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
2033 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
2034 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
2035 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
2036 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
2037 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
2038 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
2039 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
2040 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
2041 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
2042 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
2043 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
2044 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
2045 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
2046 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
2047 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
2048 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
2049 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
2050 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
2051 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
2052 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
2053 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
2054 Reported by Eric Blake.
2056 2008-04-11 Bruno Haible <bruno@clisp.org>
2058 * lib/wchar.in.h: Tweak comment.
2060 2008-04-11 Bruno Haible <bruno@clisp.org>
2062 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
2063 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
2065 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
2067 2008-04-11 Bruno Haible <bruno@clisp.org>
2069 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
2071 2008-04-11 Simon Josefsson <simon@josefsson.org>
2073 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
2074 of attempting to use non-existing /dev/*random. Based on patch
2075 from Adam Strzelecki <ono@java.pl> in
2076 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
2078 2008-04-08 Bruno Haible <bruno@clisp.org>
2080 Add tentative support for emx+gcc.
2081 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
2082 * lib/fpurge.c (fpurge): Likewise.
2083 * lib/freadable.c (freadable): Likewise.
2084 * lib/freadahead.c (freadahead): Likewise.
2085 * lib/freading.c (freading): Likewise.
2086 * lib/freadptr.c (freadptr): Likewise.
2087 * lib/freadseek.c (freadptrinc): Likewise.
2088 * lib/fseeko.c (rpl_fseeko): Likewise.
2089 * lib/fseterr.c (fseterr): Likewise.
2090 * lib/fwritable.c (fwritable): Likewise.
2091 * lib/fwriting.c (fwriting): Likewise.
2092 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
2094 2008-04-09 Eric Blake <ebb9@byu.net>
2096 Avoid some autoconf warnings.
2097 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
2098 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
2099 * m4/afs.m4 (gl_AFS): Likewise.
2100 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
2101 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
2102 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
2103 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
2104 (gl_INTEGER_TYPE_SUFFIX): Likewise.
2105 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
2106 (AC_CHECK_DECLS_ONCE): Likewise.
2108 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
2109 gnulib-tool requires autoconf 2.59 or better.
2110 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
2112 2008-04-08 Eric Blake <ebb9@byu.net>
2114 Use 'git describe --match' if present (added in git 1.5.5).
2115 * build-aux/git-version-gen: Limit result to tags that match 'v*'
2118 2008-04-08 Bruno Haible <bruno@clisp.org>
2120 Add tentative support for OpenServer.
2121 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
2123 * lib/fpurge.c (fpurge): Likewise.
2124 * lib/freadable.c (freadable): Likewise.
2125 * lib/freadahead.c (freadahead): Likewise.
2126 * lib/freading.c (freading): Likewise.
2127 * lib/freadptr.c (freadptr): Likewise.
2128 * lib/freadseek.c (freadptrinc): Likewise.
2129 * lib/fseeko.c (rpl_fseeko): Likewise.
2130 * lib/fseterr.c (fseterr): Likewise.
2131 * lib/fwritable.c (fwritable): Likewise.
2132 * lib/fwriting.c (fwriting): Likewise.
2133 Reported by Roger Cornelius <rac@tenzing.org> and
2134 Brian K. White <brian@aljex.com>.
2136 2008-04-06 Jim Meyering <meyering@redhat.com>
2138 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
2140 2008-04-06 Bruno Haible <bruno@clisp.org>
2142 Avoid possible error with non-ASCII bytes in UTF-8 locales.
2143 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
2144 * tests/test-printf-posix.sh: Likewise.
2145 * tests/test-vfprintf-posix.sh: Likewise.
2146 * tests/test-vprintf-posix.sh: Likewise.
2147 * tests/test-xprintf-posix.sh: Likewise.
2149 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2151 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
2152 hide error from 'ls', needed on OS/2.
2153 Report by Elbert Pol <elbert.pol@gmail.com>.
2155 2008-04-04 Eric Blake <ebb9@byu.net>
2157 Make test-fseeko.c failures meaningful.
2158 * tests/test-fseeko.c: Print line number on failure.
2159 * tests/test-fseek.c: Likewise.
2160 Reported by Nelson H. F. Beebe.
2162 Improve strtod bug detection check.
2163 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
2164 required for Solaris 10.
2165 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
2167 2008-04-04 Bruno Haible <bruno@clisp.org>
2169 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
2172 2008-04-03 Eric Blake <ebb9@byu.net>
2174 Ensure sane .version contents.
2175 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
2177 * build-aux/git-version-gen: Improve documentation.
2179 Make GNU make output nicer.
2180 * top/GNUmakefile [!_have-Makefile]: Add dependency on
2181 MAKECMDGOALS to enforce message for all command line targets. Set
2182 srcdir for use in maint.mk.
2184 Another maintainer tweak.
2185 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
2186 a target that regenerates version.
2188 2008-04-03 Jim Meyering <meyering@redhat.com>
2190 vc-list-files: don't cause coreutils "make po-check" failure
2191 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
2193 2008-04-03 Eric Blake <ebb9@byu.net>
2195 Allow VPATH usage of vc-list-files.
2196 * build-aux/vc-list-files (scriptversion): Add timestamp.
2197 (options): Add --help, --version, -C.
2198 (CVS): Support installed cvsu.
2200 2008-04-02 Bruno Haible <bruno@clisp.org>
2202 Avoid some "statement with no effect" warnings from gcc.
2203 * tests/test-wctype.c (main): Explicitly ignore unused values.
2204 Reported by Jim Meyering.
2206 2008-04-02 Jim Meyering <meyering@redhat.com>
2208 Avoid some warnings from "gcc -Wshadow".
2209 * tests/test-frexp.c (exp): Define to a different identifier.
2210 * tests/test-frexpl.c (exp): Likewise.
2212 2008-04-03 Jim Meyering <meyering@redhat.com>
2214 bootstrap: remove dangling *.[ch] symlinks from lib
2215 * build-aux/bootstrap [dangling symlink removal]: Move find's
2216 -depth option to precede all others, to avoid a warning.
2217 Remove *.[ch] files too, and from "$source_base" (usually lib/).
2219 2008-04-02 Bruno Haible <bruno@clisp.org>
2221 Avoid some warnings from "gcc -Wshadow".
2222 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
2223 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
2224 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
2225 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
2226 Reported by Jim Meyering.
2228 2008-04-01 Bruno Haible <bruno@clisp.org>
2230 Fix test to work on IRIX 6.5 with cc.
2231 * tests/test-math.c (numeric_equal): New function.
2234 2008-04-01 Bruno Haible <bruno@clisp.org>
2236 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
2238 2008-04-01 Bruno Haible <bruno@clisp.org>
2240 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
2241 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
2242 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
2243 (Depends-on): Remove math.
2245 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
2246 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
2247 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
2248 (Depends-on): Remove math.
2250 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
2251 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
2252 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
2253 (Depends-on): Remove math.
2254 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
2255 (Depends-on): Remove math.
2257 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
2258 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
2259 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
2260 (Depends-on): Remove math.
2261 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
2262 (Depends-on): Remove math.
2264 * tests/test-round1.c: Include nan.h.
2265 (main): Use NaNd instead of NAN.
2266 * modules/round-tests (Files): Add tests/nan.h.
2268 * tests/test-trunc1.c: Include nan.h.
2269 (main): Use NaNd instead of NAN.
2270 * modules/trunc-tests (Files): Add tests/nan.h.
2272 * tests/test-roundf1.c: Include nan.h.
2273 (main): Use NaNf instead of NAN.
2274 * modules/roundf-tests (Files): Add tests/nan.h.
2276 * tests/test-truncf1.c: Include nan.h.
2277 (main): Use NaNf instead of NAN.
2278 * modules/truncf-tests (Files): Add tests/nan.h.
2280 * tests/test-ceilf1.c: Include nan.h.
2281 (main): Use NaNf instead of NAN.
2282 * modules/ceilf-tests (Files): Add tests/nan.h.
2284 * tests/test-floorf1.c: Include nan.h.
2285 (main): Use NaNf instead of NAN.
2286 * modules/floorf-tests (Files): Add tests/nan.h.
2288 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
2289 (main): Use NaNf instead of NAN.
2290 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
2292 * tests/test-isnand.c: Include nan.h instead of <math.h>.
2293 (main): Use NaNd instead of NAN.
2294 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
2296 * tests/test-frexp.c: Include nan.h.
2297 (main): Use NaNd instead of NAN.
2298 * modules/frexp-tests (Files): Add tests/nan.h.
2300 * lib/isnan.c: Don't include <math.h>.
2301 (FUNC): Don't use NAN macro.
2302 * modules/isnand-nolibm (Depends-on): Remove math.
2303 * modules/isnanf-nolibm (Depends-on): Remove math.
2304 * modules/isnanl (Depends-on): Remove math.
2305 * modules/isnanl-nolibm (Depends-on): Remove math.
2307 * tests/nan.h: New file.
2309 2008-04-01 Eric Blake <ebb9@byu.net>
2312 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
2313 values to be the right type.
2315 For now, cater to gnulib strtod inaccuracies.
2316 * tests/test-strtod.c (main): Allow 1-ulp error on expected
2317 fractional results. While not as nice from a QoI perspective, it
2318 is a quicker patch than correctly implementing decimal to binary
2321 2008-03-31 Eric Blake <ebb9@byu.net>
2323 Guarantee a definition of NAN.
2324 * lib/math.in.h (NAN): Define if missing.
2325 * tests/test-math.c (main): Test it.
2326 * doc/posix-headers/math.texi (math.h): Document this.
2327 * lib/isnan.c (rpl_isnand): Use it.
2328 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
2329 * tests/test-floorf1.c (NaN): Likewise.
2330 * tests/test-frexp.c (NaN): Likewise.
2331 * tests/test-isnand.c (NaN): Likewise.
2332 * tests/test-isnanf.c (NaN): Likewise.
2333 * tests/test-round1.c (NaN): Likewise.
2334 * tests/test-roundf1.c (NaN): Likewise.
2335 * tests/test-snprintf-posix.h (NaN): Likewise.
2336 * tests/test-sprintf-posix.h (NaN): Likewise.
2337 * tests/test-trunc1.c (NaN): Likewise.
2338 * tests/test-truncf1.c (NaN): Likewise.
2339 * tests/test-vasnprintf-posix.c (NaN): Likewise.
2340 * tests/test-vasprintf-posix.c (NaN): Likewise.
2341 * modules/isnand-nolibm (Depends-on): Add math.
2342 * modules/isnanf-nolibm (Depends-on): Likewise.
2343 * modules/isnanl (Depends-on): Likewise.
2344 * modules/isnanl-nolibm (Depends-on): Likewise.
2345 * modules/snprintf-posix-tests (Depends-on): Likewise.
2346 * modules/sprintf-posix-tests (Depends-on): Likewise.
2347 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
2348 * modules/vsprintf-posix-tests (Depends-on): Likewise.
2349 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
2350 * modules/vasprintf-posix-tests (Depends-on): Likewise.
2352 2008-03-31 Bruno Haible <bruno@clisp.org>
2354 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
2355 * doc/posix-functions/strtod.texi: Likewise.
2357 2008-03-31 Bruno Haible <bruno@clisp.org>
2359 * tests/test-strtod.c (main): Don't use C99 syntax.
2361 2008-03-31 Bruno Haible <bruno@clisp.org>
2363 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
2364 Reported by Eric Blake.
2366 2008-03-31 Jim Meyering <meyering@redhat.com>
2368 Don't compare actual signbit return values.
2369 * tests/test-strtod.c (main): Rather, compare only their
2370 zero/non-zero nature.
2372 2008-03-31 Eric Blake <ebb9@byu.net>
2374 More strtod documentation.
2375 * doc/posix-functions/strtod.texi (strtod): Interpret more test
2376 failures as distinct bugs.
2378 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
2380 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
2381 Problem reported by Erik Benada in
2382 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
2384 2008-03-30 Bruno Haible <bruno@clisp.org>
2386 * tests/test-strtod.c: Add comments about which assertion fails on which
2388 * doc/posix-functions/strtod.texi: Add info about many more platforms.
2390 2008-03-30 Eric Blake <ebb9@byu.net>
2392 Test signbit behavior on zeros.
2393 * tests/test-signbit.c (test_signbitf): Add tests for zero.
2394 (test_signbitd, test_signbitl): Likewise.
2396 More strtod touchups.
2397 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
2398 sign of negative underflow, for now. Use .5, not .1.
2399 * doc/posix-functions/strtod.texi (strtod): Mention these
2401 Reported by Jim Meyering.
2403 2008-03-30 Bruno Haible <bruno@clisp.org>
2405 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
2406 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
2408 2008-03-30 Bruno Haible <bruno@clisp.org>
2410 Avoid failure when attempting to return empty iconv results on some
2412 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
2413 allocation, don't report ENOMEM when the resulting string is empty.
2415 2008-03-30 Bruno Haible <bruno@clisp.org>
2418 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
2419 Don't consider the width for tmp_length. Check count against tmp_length
2420 before doing the padding. Ensure enough allocation during padding.
2422 2008-03-30 Eric Blake <ebb9@byu.net>
2425 * lib/strtod.c (strtod): Avoid compiler warnings.
2426 Reported by Jim Meyering.
2428 2008-03-30 Bruno Haible <bruno@clisp.org>
2430 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
2431 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
2432 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
2433 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
2434 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
2435 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
2436 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
2437 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
2439 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
2440 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
2441 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
2442 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
2443 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
2444 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
2445 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
2446 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
2448 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
2449 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
2450 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
2451 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
2452 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
2453 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
2454 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
2455 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
2457 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
2458 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
2460 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
2461 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
2463 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
2464 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
2466 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
2467 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
2468 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
2470 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
2471 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
2472 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
2474 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
2475 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
2476 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
2478 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
2479 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
2480 * modules/vasprintf (Depends-on): Add EOVERFLOW.
2482 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
2483 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
2484 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
2485 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
2486 (Depends-on): Add EOVERFLOW.
2487 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
2488 (Depends-on): Add EOVERFLOW.
2489 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
2490 (Depends-on): Add EOVERFLOW.
2491 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
2492 (Depends-on): Add EOVERFLOW.
2493 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
2494 (Depends-on): Add EOVERFLOW.
2495 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
2496 (Depends-on): Add EOVERFLOW.
2497 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
2498 (Depends-on): Add EOVERFLOW.
2499 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
2500 (Depends-on): Add EOVERFLOW.
2502 * lib/sprintf.c (EOVERFLOW): Remove fallback.
2503 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
2504 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
2506 * lib/snprintf.c (EOVERFLOW): Remove fallback.
2507 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
2508 * modules/snprintf (Depends-on): Add EOVERFLOW.
2510 * lib/poll.c (EOVERFLOW): Remove fallback.
2511 * modules/poll (Depends-on): Add EOVERFLOW.
2513 * lib/getugroups.c (EOVERFLOW): Remove fallback.
2514 * modules/getugroups (Depends-on): Add EOVERFLOW.
2516 * lib/getdelim.c (EOVERFLOW): Remove fallback.
2517 * modules/getdelim (Depends-on): Add EOVERFLOW.
2519 * lib/ftell.c (EOVERFLOW): Remove fallback.
2520 * modules/ftell (Depends-on): Add EOVERFLOW.
2522 * lib/fprintf.c (EOVERFLOW): Remove fallback.
2523 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
2524 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
2526 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
2528 * modules/EOVERFLOW-tests: New file.
2529 * tests/test-EOVERFLOW.c: New file.
2531 * modules/EOVERFLOW: New file.
2532 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
2534 2008-03-30 Bruno Haible <bruno@clisp.org>
2536 Fix bug introduced on 2007-06-10.
2537 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
2538 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
2540 2008-03-30 Bruno Haible <bruno@clisp.org>
2542 Improve freadseek's efficiency after ungetc.
2543 * lib/freadseek.c: Include freadahead.h.
2544 (freadptrinc): New function, extracted from freadseek.
2545 (freadseek): Use it in a loop. Use freadahead to determine the number
2547 * modules/freadseek (Depends-on): Add freadahead.
2548 (configure.ac): Require AC_C_INLINE.
2550 2008-03-30 Bruno Haible <bruno@clisp.org>
2552 * lib/freadseek.c (freadseek): Don't ignore the return value of
2555 2008-03-29 Eric Blake <ebb9@byu.net>
2557 Add hex float support.
2558 * modules/strtod (Depends-on): Add c-ctype.
2559 (Link): Mention POW_LIB.
2560 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
2561 whitespace between 'e' and exponent.
2562 * tests/test-strtod.c (main): Enable hex float tests.
2563 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
2566 Document various strtod bugs, with some fixes.
2567 * doc/posix-functions/strtod.texi (strtod): Document bugs with
2568 "-0x", "inf", "nan", and hex constants.
2569 * doc/posix-functions/atof.texi (atof): Likewise.
2570 * modules/stdlib (Makefile.am): Support strtod.
2571 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
2572 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
2573 detect additional strtod bugs.
2574 * lib/stdlib.in.h (rpl_strtod): Add declarations.
2575 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
2576 bool where appropriate. Parse 'inf' and 'nan'.
2577 * tests/test-strtod.c: New file.
2578 * modules/strtod (Depends-on): Add stdbool, stdlib.
2579 (configure.ac): Turn on module indicator.
2580 * modules/strtod-tests: New module.
2582 2008-03-29 Eric Blake <ebb9@byu.net>
2585 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
2586 * modules/ftell-tests (Depends-on): Add binary-io.
2587 * modules/ftello-tests (Depends-on): Likewise.
2588 * tests/test-ftell.c (main): Enhance test to cover behavior after
2589 ungetc. Enforce binary mode.
2590 * tests/test-ftello.c (main): Likewise.
2592 Pass test-freadseek on cygwin.
2593 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
2594 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
2597 * tests/test-fflush2.c (main): Fix typo.
2599 2008-03-29 Bruno Haible <bruno@clisp.org>
2601 * tests/test-fflush2.c (main): Temporarily disable the contents of
2603 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
2604 Reported by Eric Blake.
2606 2008-03-28 Simon Josefsson <simon@josefsson.org>
2608 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
2609 (GC_SHA224_DIGEST_SIZE): Add.
2611 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
2612 (gc_hash_digest_length): Likewise.
2613 (gc_hash_buffer): Likewise.
2615 2008-03-25 Bruno Haible <bruno@clisp.org>
2617 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
2618 detail which gettext release to use.
2619 Reported by Simon Josefsson.
2621 2008-03-26 Jim Meyering <meyering@redhat.com>
2623 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
2624 * modules/gnumakefile (clean-GNUmakefile): Also, use
2625 test ... && ... || : syntax rather than if-then ... fi.
2627 gnumakefile: Don't double-quote-expand $(VPATH) value.
2628 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
2630 2008-03-24 Eric Blake <ebb9@byu.net>
2632 Alter GNUmakefile to install into top directory.
2633 * modules/maintainer-makefile: Split, and add dependency...
2634 * modules/gnumakefile: to this new module.
2635 * build-aux/GNUmakefile: Move...
2636 * top/GNUmakefile: ...here.
2637 * build-aux/maint.mk: Move...
2638 * top/maint.mk: ...here.
2639 * MODULES.html.sh (Support for maintaining...): Document new
2642 2008-03-23 Bruno Haible <bruno@clisp.org>
2644 * gnulib-tool: New options --vc-files, --no-vc-files.
2645 (func_usage): Document them.
2646 (vc_files): New variable.
2647 (func_import): Consider vc_files.
2648 (func_create_testdir): Set vc_files to empty.
2649 Suggested by Jim Meyering and Karl Berry.
2651 2008-03-23 Bruno Haible <bruno@clisp.org>
2653 Fix regex compilation error on HP-UX 11.
2654 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
2655 * modules/regex (Files): Add m4/mbstate_t.m4.
2656 Reported by Ton Voon <ton.voon@altinity.com>.
2658 2008-03-23 Bruno Haible <bruno@clisp.org>
2660 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
2662 2008-03-23 Eric Blake <ebb9@byu.net>
2663 Bruno Haible <bruno@clisp.org>
2665 Install files from top/ in the destination directory.
2666 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
2667 augmentation also for the files from top/.
2668 (func_import, func_create_testdir): Rewrite file names:
2669 top/filename -> filename.
2671 2008-03-23 Bruno Haible <bruno@clisp.org>
2673 Tweak "gnulib --version" output.
2674 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
2676 2008-03-23 Bruno Haible <bruno@clisp.org>
2678 Tweak "gnulib --version" output.
2679 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
2680 rather than contents of ChangeLog, when possible.
2682 2008-03-21 Eric Blake <ebb9@byu.net>
2684 More --version tweaks.
2685 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
2686 date of last ChangeLog entry.
2688 2008-03-21 Jim Meyering <meyering@redhat.com>
2690 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
2692 2008-03-20 Eric Blake <ebb9@byu.net>
2695 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
2697 2008-03-20 Simon Josefsson <simon@josefsson.org>
2699 * build-aux/GNUmakefile: Make git-version-gen optional. Add
2700 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
2702 2008-03-20 Eric Blake <ebb9@byu.net>
2704 Sync GNUmakefile with coreutils.
2705 * build-aux/GNUmakefile (have-Makefile): Rename...
2706 (_have-Makefile): ...to this, for namespace consideration.
2707 (GNUmakefile.cfg): Include, if present.
2708 (_autoreconf): Define a default.
2709 (_is-dist-target): New rule for rebuilds to pick up intra-release
2711 (maint-cfg.mk): Rename...
2712 (cfg.mk): ...to this.
2714 2008-03-18 Jim Meyering <meyering@redhat.com>
2716 New script and module: mktempd
2717 * MODULES.html.sh (maint+release support): Add mktempd.
2718 * build-aux/mktempd: New file.
2719 * modules/mktempd: New file.
2721 2008-03-15 Jim Meyering <meyering@redhat.com>
2724 * lib/sha1.c, lib/md5.c: 63 != ~63.
2725 Reported by Andreas Schwab.
2727 sha1.c, md5.c: Hoist a redundant expression.
2728 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
2729 "ctx->buflen" only once, before calling *_process_block.
2730 * lib/md5.c (md5_process_bytes): Likewise.
2732 2008-03-14 Eric Blake <ebb9@byu.net>
2734 Bump copyright year in files generated by gnulib-tool.
2735 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
2736 gnulib-tool, rather than hard-coding it.
2738 Fix 'gnulib-tool --version' output to work with git.
2739 * gnulib-tool (func_gnulib_dir): New function, extracted from...
2741 (func_version): Use it to invoke git-version-gen, rather than
2742 relying on CVS keyword expansion. Modernize wording.
2743 (cvsdatestamp, last_checkin_date, version): Kill unused
2746 2008-03-12 Jim Meyering <meyering@redhat.com>
2748 Recognize optional cast of the argument to free.
2749 * build-aux/useless-if-before-free: Update regexps.
2751 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
2753 2008-03-11 Bruno Haible <bruno@clisp.org>
2755 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
2756 by a single package.
2757 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
2758 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
2759 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
2760 Reported by Sam Steingold <sds@gnu.org>.
2762 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
2764 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
2767 2008-03-11 Bruno Haible <bruno@clisp.org>
2769 Avoid conflicts between local macro definitions.
2770 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
2771 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
2773 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
2774 Bruno Haible <bruno@clisp.org>
2776 Make va_copy work with some version of xlc on AIX 5.1.
2777 * lib/stdarg.in.h: New file.
2778 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
2779 On AIX, use a <stdarg.h> file substitute.
2780 * modules/stdarg (Files): Add lib/stdarg.in.h.
2781 (Depends-on): Add include_next.
2782 (Makefile.am): Build a stdarg.h substitute if requested.
2783 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
2785 2008-03-10 Bruno Haible <bruno@clisp.org>
2787 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
2788 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
2789 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
2791 2008-03-10 Bruno Haible <bruno@clisp.org>
2793 * modules/stdlib (Depends-on): Add include_next, remove
2796 2008-03-09 Bruno Haible <bruno@clisp.org>
2798 * lib/freadahead.h (freadahead): Document more precisely.
2799 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
2800 the sum of both buffer sizes.
2801 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
2802 * NEWS: Document the change.
2804 2008-03-09 Bruno Haible <bruno@clisp.org>
2806 Extend freadptr to return also the buffer size.
2807 * lib/freadptr.h (freadptr): Add sizep argument.
2808 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
2809 (freadptr): Add sizep argument. Determine buffer size like freadahead
2811 * tests/test-freadptr.c: Don't include freadahead.h.
2812 (main): Adapt for new calling convention of freadptr.
2813 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
2814 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
2815 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
2816 tests/test-freadptr2.sh.
2817 (Depends): Remove freadahead.
2818 (TESTS): Add test-freadptr2.sh.
2819 (check_PROGRAMS): Add test-freadptr2.
2821 2008-03-09 Bruno Haible <bruno@clisp.org>
2823 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
2824 Report and solution by Simon Josefsson.
2826 2008-03-06 Bruno Haible <bruno@clisp.org>
2828 Make fflush after ungetc work on BSD platforms.
2829 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
2830 * tests/test-fflush2.c: New file.
2831 * tests/test-fflush2.sh: New file.
2832 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
2833 tests/test-fflush2.c.
2834 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
2835 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
2837 2008-03-06 Eric Blake <ebb9@byu.net>
2839 Likewise for ftello.
2840 * modules/ftello (Dependencies): Add extensions.
2841 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
2843 2008-03-06 Bruno Haible <bruno@clisp.org>
2845 * modules/fseeko (Dependencies): Add extensions.
2846 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
2847 Needed on glibc systems.
2849 2008-03-06 Bruno Haible <bruno@clisp.org>
2851 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
2853 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
2855 2008-03-06 Bruno Haible <bruno@clisp.org>
2857 * users.txt: Add libgnupdf.
2859 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
2861 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
2862 (Header File Substitutes, Function Substitutes,
2863 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
2864 (Build robot for gnulib): Fix typo.
2866 2008-03-06 Bruno Haible <bruno@clisp.org>
2868 * doc/gnulib-tool.texi (VCS Issues): Small updates.
2869 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
2871 2008-03-06 Bruno Haible <bruno@clisp.org>
2873 * doc/func.texi: New file, extracted from doc/gnulib.texi.
2874 * doc/gnulib.texi: Include it.
2876 2008-03-06 Simon Josefsson <simon@josefsson.org>
2878 * modules/func (License): Change license to unlimited; there was
2879 no LGPL parts in the module anyway.
2881 2008-03-06 Simon Josefsson <simon@josefsson.org>
2883 * modules/__func__: Renamed to modules/func.
2884 * modules/__func__-tests: Renamed to modules/func-tests.
2885 * tests/test-__func__.c: Renamed to tests/test-func.c.
2886 * m4/__func__.m4: Renamed to m4/func.m4.
2887 * doc/gnulib.texi (__func__): Section renamed to func.
2888 Suggested by Eric Blake <ebb9@byu.net>.
2890 2008-03-06 Simon Josefsson <simon@josefsson.org>
2892 * doc/gnulib.texi (__func__): Use C99 terminology when talking
2893 about __func__. Make example self-contained. Suggested by Eric
2894 Blake <ebb9@byu.net>.
2896 * tests/test-__func__.c (main): Avoid extraneous () around __func.
2897 Suggested by Eric Blake <ebb9@byu.net>.
2899 2008-03-06 Simon Josefsson <simon@josefsson.org>
2901 * modules/__func__: New file.
2902 * modules/__func__-tests: New file.
2903 * tests/test-__func__.c: New file.
2904 * m4/__func__.m4: New file.
2905 * doc/gnulib.texi (__func__): Document __func__ module.
2907 2008-03-05 Simon Josefsson <simon@josefsson.org>
2909 * modules/byteswap (License): Re-license as LGPLv2+.
2911 2008-03-05 Simon Josefsson <simon@josefsson.org>
2913 * doc/Makefile: Add pdf target.
2915 2008-03-05 Simon Josefsson <simon@josefsson.org>
2917 * modules/inline (License): Use 'unlimited', since there are only
2918 *.m4 files in this module.
2920 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
2921 Bruno Haible <bruno@clisp.org>
2923 Add support for HP C 7.1 on OpenVMS 8.3.
2924 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
2926 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
2928 Update VMS specifics.
2929 * lib/getopt.c [VMS]: Remove include of unixlib.h.
2931 2008-03-02 Jim Meyering <meyering@redhat.com>
2933 Remove the last dependency on the "free" module.
2934 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
2935 Reported by Bob Proulx.
2937 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
2939 Remove useless "if" tests before free. Deprecate "free" module.
2940 * doc/posix-functions/free.texi: Mention that this
2941 module is no longer useful.
2942 * modules/free (Notice): Say this module is obsolete.
2943 * modules/readutmp (Depends-on): Remove free.
2944 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
2945 * lib/putenv.c (putenv): Likewise.
2946 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
2947 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
2948 * tests/test-c-strcasestr.c (main): Likewise.
2949 * tests/test-c-strstr.c (main): Likewise.
2950 * tests/test-mbscasestr1.c (main): Likewise.
2951 * tests/test-mbscasestr2.c (main): Likewise.
2952 * tests/test-mbsstr1.c (main): Likewise.
2953 * tests/test-mbsstr2.c (main): Likewise.
2954 * tests/test-memmem.c (main): Likewise.
2955 * tests/test-strcasestr.c (main): Likewise.
2956 * tests/test-striconv.c (main): Likewise.
2957 * tests/test-striconveh.c (main): Likewise.
2958 * tests/test-striconveha.c (main): Likewise.
2959 * tests/test-strstr.c (main): Likewise.
2961 * build-aux/git-version-gen: Adjust a comment and the Usage string.
2963 bootstrap: sync from coreutils again
2964 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
2966 2008-03-01 Jim Meyering <meyering@redhat.com>
2968 bootstrap: sync from coreutils
2969 * build-aux/bootstrap (update_po_files): Copy a .po file into place
2970 also when the target doesn't exist.
2972 2008-03-01 Eric Blake <ebb9@byu.net>
2974 Fix bugs in last patch.
2975 * lib/memchr2.c (memchr2): Fix typo.
2976 * tests/test-memchr2.c: Test previous bug, and don't use GNU
2978 Reported by Bruce Korb.
2980 New module 'memchr2'.
2981 * modules/memchr2: New file.
2982 * modules/memchr2-tests: Likewise.
2983 * lib/memchr2.h: Likewise.
2984 * lib/memchr2.c: Likewise, based on memchr.c.
2985 * tests/test-memchr2.c: New test.
2986 * MODULES.html.sh (String handling): Add memchr2.
2988 2008-02-29 Bruno Haible <bruno@clisp.org>
2990 * modules/freadseek-tests: New file.
2991 * tests/test-freadseek.sh: New file.
2992 * tests/test-freadseek.c: New file.
2994 New module 'freadseek'.
2995 * modules/freadseek: New file.
2996 * lib/freadseek.h: New file.
2997 * lib/freadseek.c: New file.
2998 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
3000 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
3002 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
3005 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
3006 program_invocation_name and program_invocation_short_name are
3009 2008-02-28 Bruno Haible <bruno@clisp.org>
3011 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
3012 * tests/test-freadptr.sh: Also test non-seekable stdin.
3014 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
3016 * build-aux/bootstrap (source_base, m4_base)
3017 (doc_base, tests_base): New variables.
3018 (gnulib_tool_options): Do not hardcode base directories, use
3019 the above variables instead.
3021 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
3023 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
3025 2008-02-28 Bruno Haible <bruno@clisp.org>
3027 * modules/freadptr-tests: New file.
3028 * tests/test-freadptr.sh: New file.
3029 * tests/test-freadptr.c: New file.
3031 New module 'freadptr'.
3032 * modules/freadptr: New file.
3033 * lib/freadptr.h: New file.
3034 * lib/freadptr.c: New file.
3035 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
3037 2008-02-26 Karl Berry <karl@freefriends.org>
3040 * libltdl/argz.c (argz_add, argz_count): New functions.
3041 * libltdl/argz.in.h: Declare them.
3042 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
3044 2008-02-22 Bruno Haible <bruno@clisp.org>
3046 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
3047 is a pointer type. Needed for HP-UX 10.
3048 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
3049 * doc/posix-functions/gmtime_r.texi: Likewise.
3050 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
3052 2008-02-24 Bruno Haible <bruno@clisp.org>
3054 * modules/environ-tests: New file.
3055 * tests/test-environ.c: New file.
3057 New module 'environ'.
3058 * modules/environ: New file.
3059 * lib/unistd.in.h (environ): New declaration.
3060 * m4/environ.m4: New file.
3061 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
3063 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
3065 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
3067 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
3068 wrong claim that 'environ' is missing on some systems.
3069 * modules/execute (Depends-on): Add environ.
3070 * lib/execute.c (environ): Remove fallback declaration.
3071 * modules/pipe (Depends-on): Add environ.
3072 * lib/pipe.c (environ): Remove fallback declaration.
3073 * modules/setenv (Depends-on): Add environ.
3074 * lib/setenv.c (environ): Remove fallback declaration.
3075 * modules/unsetenv (Depends-on): Add environ.
3076 * lib/unsetenv.c (environ): Remove fallback declaration.
3077 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
3079 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
3080 (gl_PREREQ_UNSETENV): Likewise.
3082 2008-02-24 Bruno Haible <bruno@clisp.org>
3084 * doc/posix-functions/environ.texi: Document the MacOS X problem.
3086 2008-02-20 Bob Proulx <bob@proulx.com>
3088 Enable use of older two part flavor 'git describe'.
3089 * build-aux/git-version-gen: If using the older two part flavor of
3090 git version then recreate the third part now present in the
3091 newer three part flavor of git describe.
3093 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
3095 * lib/fts.c (fts_build): Typo correction to comment.
3097 2008-02-17 Bruno Haible <bruno@clisp.org>
3099 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
3100 generating no-op conflicts.
3102 2008-02-17 Bruno Haible <bruno@clisp.org>
3105 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
3106 result_entries, rather than an index-based loop.
3108 2008-02-17 Bruno Haible <bruno@clisp.org>
3111 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
3113 (entry_create): New function.
3114 (entry_hashcode): Use the cached hashcode if possible.
3115 (read_changelog_file, try_split_merged_entry): Use entry_create.
3117 2008-02-17 Bruno Haible <bruno@clisp.org>
3119 Speed up from O(n^2) to O(n) for long ChangeLog files.
3120 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
3121 (read_changelog_file): Change implementation of entries_reversed list
3123 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
3125 2008-02-17 Bruno Haible <bruno@clisp.org>
3127 New option --split-merged-entry.
3128 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
3129 (find_paragraph_end, try_split_merged_entry): New functions.
3130 (long_options): Add option --split-merged-entry.
3131 (usage): Document option --split-merged-entry.
3132 (main): Implement option --split-merged-entry.
3133 Reported by Eric Blake.
3135 2008-02-17 Bruno Haible <bruno@clisp.org>
3137 * lib/git-merge-changelog.c: Include c-strstr.h.
3138 (main): Support the "git pull --rebase" situation.
3139 * modules/git-merge-changelog (Depends-on): Add c-strstr.
3140 Reported by Eric Blake.
3142 2008-02-16 Eric Blake <ebb9@byu.net>
3144 Avoid doubling \ in common case of "c-maybe" quoting style.
3145 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
3146 eliding outer quotes.
3147 * lib/quotearg.h: Document this.
3148 * tests/test-quotearg.c (result_strings, inputs, results_g)
3149 (flag_results, locale_results): Test it by adding a new string to
3151 (compare_strings): Test new string.
3153 2008-02-13 Eric Blake <ebb9@byu.net>
3155 Avoid trigraph quoting in default output.
3156 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
3157 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
3158 unless explicitly requested.
3159 * tests/test-quotearg.c (flag_results, main): Add additional tests.
3161 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
3163 Don't rely on signed integer overflowing to negative value.
3164 * lib/getugroups.c (getugroups): Include <limits.h>.
3165 Instead, compare against INT_MAX, and increment only if the test passes.
3167 2008-02-13 Jim Meyering <meyering@redhat.com>
3168 and Eric Blake <ebb9@byu.net>
3170 Avoid shadowing warning and compile errors on Linux.
3171 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
3172 forwarding macros on Linux.
3173 (dcgettext): Define a stub, for Linux.
3174 (results_g, main): Avoid warnings.
3176 2008-02-12 Eric Blake <ebb9@byu.net>
3178 Silence warning in last patch.
3179 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
3181 Quotearg part 4: add tests, fix c-maybe colon quoting.
3182 * lib/quotearg.h: Improve documentation.
3183 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
3184 escapes when adding outer quotes. When quoting trigraphs, use
3185 valid C notation. When quoting NUL, omit extra characters if next
3186 character is not digit. Alter prototype.
3187 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
3189 * modules/quotearg-tests: New module.
3190 * tests/test-quotearg.c: New test.
3192 2008-02-07 Eric Blake <ebb9@byu.net>
3194 Quotearg part 3: add flag to control outer quote elision.
3195 * lib/quotearg.h (c_maybe_quoting_style): New style.
3196 (enum quoting_flags): Better documentation of flags.
3197 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
3199 (quotearg_buffer_restyled): Handle new flag to elide outer
3202 Quotearg part 2: add flag that can control NUL elision.
3203 * lib/quotearg.h (set_quoting_flags): New prototype.
3204 * lib/quotearg.c (struct quoting_options): Add flag field.
3205 (set_quoting_flags): New function.
3206 (quotearg_buffer_restyled): Add flags parameter.
3207 (quotearg_alloc_mem): Set the flag if length cannot be returned.
3208 (quotearg_n_options): Set the flag, since length cannot be
3210 (quoting_options_from_style): Default flags correctly.
3212 Quotearg part 1: more wrappers, restore quotearg_char state.
3213 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
3214 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
3215 (quotearg_colon_mem): New wrappers.
3216 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
3217 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
3219 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
3220 (quotearg_colon_mem): New functions.
3222 2008-02-11 Bruno Haible <bruno@clisp.org>
3224 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
3225 library in the current directory: it does not work with parallel make.
3226 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3228 2008-02-11 Bruno Haible <bruno@clisp.org>
3230 * .gitattributes: New file.
3232 2008-02-11 Jim Meyering <meyering@redhat.com>
3234 useless-if-before-free: Fix reversed exit values.
3235 * build-aux/useless-if-before-free: Use correct values
3236 for EXIT_MATCH and EXIT_NO_MATCH.
3238 * build-aux/useless-if-before-free: Close stdout carefully.
3240 2008-02-10 Bruno Haible <bruno@clisp.org>
3242 New module 'git-merge-changelog'.
3243 * modules/git-merge-changelog: New file.
3244 * lib/git-merge-changelog.c: New file.
3246 2008-02-10 Jim Meyering <meyering@redhat.com>
3248 useless-if-before-free: New option: --list (-l).
3250 useless-if-before-free: Don't exit immediately upon open failure.
3251 * build-aux/useless-if-before-free: Exit 2 for errors.
3252 Upon failure to open a file, don't exit immediately.
3253 Rather, just warn and continue with any remaining files.
3255 2008-02-10 Bruno Haible <bruno@clisp.org>
3257 New abstract list operation 'node_set_value'.
3258 * lib/gl_list.h (gl_list_node_set_value): New function.
3259 (struct gl_list_implementation): New field node_set_value.
3260 * lib/gl_list.c (gl_list_node_set_value): New function.
3261 * lib/gl_array_list.c (gl_array_node_set_value): New function.
3262 (gl_array_list_implementation): Update.
3263 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
3264 (gl_carray_list_implementation): Update.
3265 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
3266 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
3267 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
3268 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
3269 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
3270 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
3271 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
3273 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
3274 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
3275 (gl_sublist_list_implementation): Update.
3277 2008-02-10 Bruno Haible <bruno@clisp.org>
3279 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
3280 Needed when ELEMENT is #defined to 'some_type *'.
3282 2008-02-10 Jim Meyering <meyering@redhat.com>
3284 New script and module: useless-if-before-free
3285 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
3286 * build-aux/useless-if-before-free: New file.
3287 * modules/useless-if-before-free: New file.
3289 * build-aux/gitlog-to-changelog: Use committer date, not author date.
3291 xstrtol_error: Fix typo.
3292 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
3293 s/exit_failure/exit_status/.
3295 2008-02-09 Jim Meyering <meyering@redhat.com>
3297 New script and module: gitlog-to-changelog
3298 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
3299 * modules/gitlog-to-changelog: New file.
3300 * build-aux/gitlog-to-changelog: New file.
3302 2008-02-08 Jim Meyering <meyering@redhat.com>
3304 Avoid two "parameter unused" warnings.
3305 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
3308 Use "git COMMAND", not "git-COMMAND".
3309 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
3310 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
3311 * build-aux/git-version-gen: Use "git status", not "git-status".
3313 2008-02-07 Bruno Haible <bruno@clisp.org>
3315 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
3316 Avoids a crash on Windows Vista.
3317 Reported by Adam Strzelecki <ono@java.pl> via
3318 Simon Josefsson <simon@josefsson.org>.
3320 2008-02-06 Bruno Haible <bruno@clisp.org>
3322 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
3323 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
3324 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
3325 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
3326 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
3327 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
3328 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
3329 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
3330 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
3331 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
3332 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
3333 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
3334 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
3335 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3336 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
3337 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
3339 * tests/test-snprintf-posix.h (test_function): Likewise.
3340 * tests/test-sprintf-posix.h (test_function): Likewise.
3341 * tests/test-vasprintf-posix.c (test_function): Likewise.
3342 * doc/posix-functions/fprintf.texi: Update.
3343 * doc/posix-functions/printf.texi: Update.
3344 * doc/posix-functions/snprintf.texi: Update.
3345 * doc/posix-functions/sprintf.texi: Update.
3346 * doc/posix-functions/vfprintf.texi: Update.
3347 * doc/posix-functions/vprintf.texi: Update.
3348 * doc/posix-functions/vsnprintf.texi: Update.
3349 * doc/posix-functions/vsprintf.texi: Update.
3350 Reported by Peter Fales <psfales@alcatel-lucent.com>.
3352 2008-02-06 Bruno Haible <bruno@clisp.org>
3354 Fix bug introduced on 2008-01-26.
3355 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
3357 2008-02-06 Bruno Haible <bruno@clisp.org>
3359 Fix bug introduced on 2007-06-10.
3360 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
3361 !NEED_PRINTF_FLAG_ZERO.
3363 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
3365 getloadavg: use libperfstat on AIX5
3366 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
3368 2008-02-03 Bruno Haible <bruno@clisp.org>
3370 * lib/diffseq.h: Add comments about required #includes.
3371 Reported by Michael Biggs <gnulib@doubleplum.net>.
3373 2008-02-01 Bruno Haible <bruno@clisp.org>
3375 * users.txt: Add gnuit.
3377 2008-01-31 Bruno Haible <bruno@clisp.org>
3379 * lib/md4.c (set_uint32): Mark as inline.
3380 * lib/md5.c (set_uint32): Likewise.
3381 * lib/sha1.c (set_uint32): Likewise.
3382 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
3383 * m4/md5.m4 (gl_MD5): Likewise.
3384 * m4/sha1.m4 (gl_SHA1): Likewise.
3386 2008-01-31 Jim Meyering <meyering@redhat.com>
3388 Use "sizeof VAR", rather than a literal "4".
3389 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
3390 * lib/md4.c (md4_read_ctx): Likewise.
3391 * lib/sha1.c (sha1_read_ctx): Likewise.
3393 2008-01-31 Simon Josefsson <simon@josefsson.org>
3395 * tests/test-sha1.c: New file, based on test-md5.c.
3397 * modules/crypto/sha1-tests: New file.
3399 2008-01-31 Simon Josefsson <simon@josefsson.org>
3401 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
3403 2008-01-31 Jim Meyering <meyering@redhat.com>
3405 Prefer "sizeof v" over the equivalent "4".
3406 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
3407 * lib/md5.c (set_uint32): Likewise.
3408 * lib/sha1.c (set_uint32): Likewise.
3410 2008-01-31 Simon Josefsson <simon@josefsson.org>
3412 * lib/sha1.c (set_uint32): Mark function as static.
3414 2008-01-31 Simon Josefsson <simon@josefsson.org>
3416 md2: clarify comments to say that alignment is not required.
3417 * lib/md2.h: Remove warning about alignment in comment.
3418 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
3419 never been required.
3421 2008-01-31 Simon Josefsson <simon@josefsson.org>
3423 md4: adapt alignment constraint fix from sha1.
3424 * lib/md4.c (set_uint32): New function, from sha1.c
3425 (md4_read_ctx): Use it.
3426 (md4_finish_ctx): Doc fix.
3427 * lib/md4.h: Doc fix.
3429 2008-01-31 Simon Josefsson <simon@josefsson.org>
3431 md5: adapt alignment constraint fix from sha1.
3432 * lib/md5.c (set_uint32): New function, from sha1.c
3433 (md5_read_ctx): Use it.
3434 (md5_finish_ctx): Doc fix.
3435 * lib/md5.h: Doc fix.
3437 2008-01-30 Peter Palfrader <weasel@debian.org>
3439 sha1: remove the result buffer alignment constraint
3440 * lib/sha1.c (set_uint32): New function.
3441 (sha1_read_ctx): Rewrite to remove the result buffer alignment
3443 (sha1_finish_ctx): Remove comment warning about alignment constraint.
3444 * lib/sha1.h: Likewise.
3446 2008-01-30 Andreas Schwab <schwab@suse.de>
3447 Bruno Haible <bruno@clisp.org>
3449 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
3450 correct definition of LDBL_MIN_EXP.
3452 2008-01-30 Karl Berry <karl@gnu.org>
3454 * config/srclist-update: try to preserve x bit on updates.
3455 * config/srclistvars.sh: update for karl.
3457 2008-01-29 Jim Meyering <meyering@redhat.com>
3459 vasnprintf.c: Avoid warning about unused label
3460 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
3461 "overflow" label definition and associated code with the
3462 same cpp condition that guards the sole use of that label.
3464 2008-01-26 Bruno Haible <bruno@clisp.org>
3466 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
3467 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
3468 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
3469 * lib/isnanl-nolibm.h (isnanl): Likewise.
3470 Reported by Paul Eggert <eggert@cs.ucla.edu>.
3472 2008-01-26 Bruno Haible <bruno@clisp.org>
3474 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
3475 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
3477 2008-01-26 Bruno Haible <bruno@clisp.org>
3479 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
3480 GCC >= 4.0 built-in.
3481 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
3483 2008-01-26 Bruno Haible <bruno@clisp.org>
3485 Rename isnan, applicable to 'double' only, to isnand.
3486 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
3487 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
3488 (configure.ac): Update.
3489 (Include): Replace "isnan.h" with "isnand.h".
3490 * m4/isnand.m4: Renamed from m4/isnan.m4.
3491 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
3492 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
3494 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
3495 instead of HAVE_ISNAN_IN_LIBC.
3496 (isnand): Renamed from isnan.
3497 * lib/isnand.c: New file.
3498 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
3499 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
3500 (Makefile.am): Update.
3501 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
3502 Include isnand.h instead of isnan.h.
3503 (main): Test isnand instead of isnan.
3504 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
3506 * modules/frexp (Depends-on): Likewise.
3507 * modules/frexp-tests (Depends-on): Likewise.
3508 * modules/frexp-nolibm (Depends-on): Likewise.
3509 * modules/frexp-nolibm-tests (Depends-on): Likewise.
3510 * modules/isfinite (Depends-on): Likewise.
3511 * modules/round-tests (Depends-on): Likewise.
3512 * modules/signbit (Depends-on): Likewise.
3513 * modules/signbit-tests (Depends-on): Likewise.
3514 * modules/snprintf-posix (Depends-on): Likewise.
3515 * modules/sprintf-posix (Depends-on): Likewise.
3516 * modules/trunc-tests (Depends-on): Likewise.
3517 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
3518 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3519 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3520 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3521 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3522 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3523 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3524 * modules/vasnprintf-posix (Depends-on): Likewise.
3525 * modules/vasprintf-posix (Depends-on): Likewise.
3526 * modules/vfprintf-posix (Depends-on): Likewise.
3527 * modules/vsnprintf-posix (Depends-on): Likewise.
3528 * modules/vsprintf-posix (Depends-on): Likewise.
3529 * lib/frexp.c: Include isnand.h instead of isnan.h.
3530 (ISNAN): Set to isnand instead of isnan.
3531 * lib/isfinite.c: Include isnand.h instead of isnan.h.
3532 (gl_isfinited): Use isnand instead of isnan.
3533 * lib/signbitd.c: Include isnand.h instead of isnan.h.
3534 (gl_signbitd): Use isnand instead of isnan.
3535 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
3536 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
3537 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
3538 (main): Use isnand instead of isnan.
3539 * tests/test-round1.c: Include isnand.h.
3540 (main): Use isnand instead of isnan.
3541 * tests/test-round2.c: Include isnand.h instead of isnan.h.
3542 (ISNAN): Set to isnand instead of isnan.
3543 * tests/test-trunc1.c: Include isnand.h.
3544 (main): Use isnand instead of isnan.
3545 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
3546 (equal): Use isnand instead of isnan.
3547 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
3549 * NEWS: Mention the change.
3551 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
3552 Bruno Haible <bruno@clisp.org>
3554 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
3555 the GCC builtins for signbits are present and set
3556 REPLACE_SIGNBIT_USING_GCC if so.
3557 * lib/math.in.h (signbit): Define using GCC builtins if
3558 REPLACE_SIGNBIT_USING_GCC is set.
3559 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
3560 REPLACE_SIGNBIT_USING_GCC.
3561 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
3563 2008-01-25 Jim Meyering <meyering@redhat.com>
3565 Prefer <config.h> over "config.h". See autoconf doc for explanation.
3566 * lib/poll.c: Include <config.h>, not "config.h".
3567 * tests/test-getaddrinfo.c: Likewise.
3569 2008-01-25 Simon Josefsson <simon@josefsson.org>
3571 * modules/sockets-tests: New file.
3573 2008-01-24 Simon Josefsson <simon@josefsson.org>
3575 * modules/sockets: New module, can be used to call WSA_Startup and
3576 WSA_Cleanup when needed.
3578 * lib/sockets.h, lib/sockets.c: New files.
3580 * m4/sockets.m4: New file.
3582 * tests/test-sockets.c: New file.
3584 2008-01-19 Bruno Haible <bruno@clisp.org>
3586 * doc/posix-headers: Renamed from doc/headers.
3587 * doc/posix-functions: Renamed from doc/functions.
3588 * doc/gnulib.texi: Update.
3590 2008-01-19 Bruno Haible <bruno@clisp.org>
3592 * doc/glibc-functions/strcasestr.texi: Include contents of
3593 doc/functions/strcasestr.texi, fixing the list of platforms.
3594 * doc/functions/strcasestr.texi: Remove file.
3596 2008-01-19 Bruno Haible <bruno@clisp.org>
3598 * doc/glibc-functions/memmem.texi: Include contents of
3599 doc/functions/memmem.texi.
3600 * doc/functions/memmem.texi: Remove file.
3602 2008-01-18 Bruno Haible <bruno@clisp.org>
3604 * doc/glibc-functions/*.texi: New files.
3605 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
3606 to use the new files.
3608 2008-01-17 Bruno Haible <bruno@clisp.org>
3610 * tests/test-gethostname.c (main): Fix printf statement.
3612 2008-01-17 Simon Josefsson <simon@josefsson.org>
3614 * modules/gethostname-tests: New file.
3616 * tests/test-gethostname.c: New file.
3618 2008-01-17 Simon Josefsson <simon@josefsson.org>
3620 * lib/gethostname.c: Include string.h unconditionally, strncpy is
3621 used by the UNAME case. Reported by Bruno Haible
3624 2008-01-17 Eric Blake <ebb9@byu.net>
3626 Convert c-strcasestr to be more efficient.
3627 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
3628 (Depends-on): Add c-strcase, remove malloca, strnlen.
3629 * tests/test-c-strcasestr.c (main): Enhance test.
3630 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
3632 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
3634 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
3635 Use it in creating po/Makevars.
3637 2008-01-15 Simon Josefsson <simon@josefsson.org>
3639 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
3640 Applications that requires it should initialize libgcrypt
3643 2008-01-16 Simon Josefsson <simon@josefsson.org>
3645 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
3647 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
3649 Fix problem with getdate on mingw32 reported by Simon Josefsson
3650 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
3651 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
3652 tzname", when deciding whether to declare tzname.
3653 * lib/strftime.c (tzname): Likewise.
3655 2008-01-15 Bruno Haible <bruno@clisp.org>
3657 Work around a MacOS X 10.5 bug in frexpl().
3658 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
3659 * doc/functions/frexpl.texi: Document the bug.
3660 Reported by Elias Pipping <pipping@gentoo.org>.
3662 2008-01-14 Eric Blake <ebb9@byu.net>
3664 Touch up previous patch.
3665 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
3666 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
3668 Convert strcasestr module to use Two-Way algorithm.
3669 * modules/strcasestr-simple: New module, based on the old
3670 strcasestr, but with Two-Way rather than KMP.
3671 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
3672 * lib/string.in.h (rpl_strcasestr): Declare.
3673 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
3675 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
3676 * modules/string (Makefile.am): Support strcasestr.
3677 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
3678 * modules/strcasestr-tests (Depends-on): Check for alarm.
3679 * tests/test-strcasestr.c: Augment test.
3680 * lib/str-two-way.h: Clean up stray macro.
3681 * NEWS: Document new module.
3682 * MODULES.html.sh (string handling): Likewise.
3683 * doc/functions/strcasestr.texi: New file.
3684 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
3685 here, since it is not a POSIX function.
3687 2008-01-14 Colin Watson <cjwatson@debian.org>
3688 Bruno Haible <bruno@clisp.org>
3690 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
3691 works fine; if not, set REPLACE_STRSIGNAL.
3692 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
3693 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3695 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
3696 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
3697 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
3699 2008-01-14 Bruno Haible <bruno@clisp.org>
3701 * modules/strsignal (Include): Change to <string.h>.
3703 2008-01-14 Colin Watson <cjwatson@debian.org>
3705 * modules/argp (Notice): Add a notice recommending to change
3707 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
3709 2008-01-13 Colin Watson <cjwatson@debian.org>
3711 * modules/strsignal-tests: New file.
3712 * tests/test-strsignal.c: New file.
3714 * lib/strsignal.c: New file, from glibc with modifications.
3715 * lib/siglist.h: New file, from glibc with modifications.
3716 * lib/string.in.h (strsignal): New declaration.
3717 * m4/strsignal.m4: New file.
3718 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3719 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
3720 * modules/strsignal: New file.
3721 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
3722 HAVE_DECL_STRSIGNAL.
3724 2008-01-13 Bruno Haible <bruno@clisp.org>
3726 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
3727 locale encoding is not ASCII. Needed for OpenBSD 4.0.
3728 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3729 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3731 2008-01-13 Bruno Haible <bruno@clisp.org>
3733 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
3734 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
3735 * lib/argp.h (__attribute__): Likewise.
3736 * lib/c-stack.c (__attribute__): Likewise.
3737 * lib/error.h (__attribute__): Likewise.
3738 * lib/fts.c (__attribute__): Likewise.
3739 * lib/openat.h (__attribute__): Likewise.
3740 * lib/stdio.in.h (__attribute__): Likewise.
3741 * lib/string.in.h (__attribute__): Likewise.
3742 * lib/utimens.c (__attribute__): Likewise.
3743 * lib/vasnprintf.h (__attribute__): Likewise.
3744 * lib/xalloc.h (__attribute__): Likewise.
3745 * lib/xprintf.h (__attribute__): Likewise.
3746 * lib/xstrtol.h (__attribute__): Likewise.
3747 * lib/xvasprintf.h (__attribute__): Likewise.
3749 2008-01-12 Bruno Haible <bruno@clisp.org>
3751 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
3752 * doc/glibc-headers/a.out.texi: New file.
3753 * doc/glibc-headers/aliases.texi: New file.
3754 * doc/glibc-headers/alloca.texi: New file.
3755 * doc/glibc-headers/ar.texi: New file.
3756 * doc/glibc-headers/argp.texi: New file.
3757 * doc/glibc-headers/argz.texi: New file.
3758 * doc/glibc-headers/byteswap.texi: New file.
3759 * doc/glibc-headers/crypt.texi: New file.
3760 * doc/glibc-headers/endian.texi: New file.
3761 * doc/glibc-headers/envz.texi: New file.
3762 * doc/glibc-headers/err.texi: New file.
3763 * doc/glibc-headers/error.texi: New file.
3764 * doc/glibc-headers/execinfo.texi: New file.
3765 * doc/glibc-headers/fpu_control.texi: New file.
3766 * doc/glibc-headers/fstab.texi: New file.
3767 * doc/glibc-headers/fts.texi: New file.
3768 * doc/glibc-headers/getopt.texi: New file.
3769 * doc/glibc-headers/ieee754.texi: New file.
3770 * doc/glibc-headers/ifaddrs.texi: New file.
3771 * doc/glibc-headers/libintl.texi: New file.
3772 * doc/glibc-headers/mcheck.texi: New file.
3773 * doc/glibc-headers/mntent.texi: New file.
3774 * doc/glibc-headers/obstack.texi: New file.
3775 * doc/glibc-headers/paths.texi: New file.
3776 * doc/glibc-headers/printf.texi: New file.
3777 * doc/glibc-headers/pty.texi: New file.
3778 * doc/glibc-headers/resolv.texi: New file.
3779 * doc/glibc-headers/shadow.texi: New file.
3780 * doc/glibc-headers/sysexits.texi: New file.
3781 * doc/glibc-headers/ttyent.texi: New file.
3783 2008-01-12 Jim Meyering <meyering@redhat.com>
3785 announce-gen: emit Gnulib's git-based version string.
3786 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
3787 New option --gnulib-version=V, where V is expected to be
3788 the output of running git describe in the gnulib directory.
3789 (get_tool_versions): Request feedback on xdelta. I suspect it's
3790 not useful, and plan to stop publishing an xdelta file with each
3793 * build-aux/announce-gen: Also check for lzma-compressed files.
3795 2008-01-11 Bruno Haible <bruno@clisp.org>
3797 * tests/test-memmem.c (main): Increase maximum allowed time.
3798 * tests/test-strstr.c (main): Likewise.
3800 2008-01-11 Bruno Haible <bruno@clisp.org>
3802 * doc/functions/memmem.texi: Add more precisions about platforms.
3803 * doc/functions/strstr.texi: Likewise.
3805 2008-01-10 Eric Blake <ebb9@byu.net>
3807 * m4/strstr.m4: Delete cruft from copy-n-paste.
3808 Reported by Bruno Haible.
3810 2008-01-10 Bruno Haible <bruno@clisp.org>
3812 Make c-strstr rely on strstr.
3813 * lib/c-strstr.c: Don't include str-kmp.h.
3814 (c_strstr): Define in terms of strstr.
3815 * modules/c-strstr (Files): Remove lib/str-kmp.h.
3816 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
3818 2008-01-10 Bruno Haible <bruno@clisp.org>
3820 * doc/gnulib.texi (String Functions in C Locale): New section.
3821 * doc/c-ctype.texi: New file.
3822 * doc/c-strcase.texi: New file.
3823 * doc/c-strcaseeq.texi: New file.
3824 * doc/c-strcasestr.texi: New file.
3825 * doc/c-strstr.texi: New file.
3826 * doc/c-strtod.texi: New file.
3827 * doc/c-strtold.texi: New file.
3829 2008-01-10 Eric Blake <ebb9@byu.net>
3831 * lib/relocatable.h: Fix a comment.
3833 2008-01-10 Eric Blake <ebb9@byu.net>
3835 Share two-way algorithm.
3836 * lib/str-two-way.h: New file, merged from...
3837 * lib/memmem.c: ...here...
3838 * lib/strstr.c: ...and here.
3839 * modules/memmem (Files): Use it.
3840 * modules/strstr (Files): Likewise.
3842 Avoid quadratic strstr implementations.
3843 * lib/strstr.c: New file.
3844 * m4/strstr.m4: Likewise.
3845 * modules/strstr: Likewise.
3846 * modules/strstr-tests: Likewise.
3847 * tests/test-strstr.c: Likewise.
3848 * lib/string.in.h (rpl_strstr): Declare.
3849 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
3850 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
3851 * modules/string (Makefile.am): Likewise.
3852 * MODULES.html.sh (string handling): Mention new module.
3853 * doc/functions/strstr.texi (strstr): Document the bug.
3855 2008-01-10 Bruno Haible <bruno@clisp.org>
3857 * lib/relocatable.h (relocate): State whether result is freshly
3859 * lib/relocatable.c (relocate): Return a freshly allocated string
3860 instead of a pointer to a privately held string.
3861 Reported by Sylvain Beucler <beuc@gnu.org>.
3863 2008-01-10 Colin Watson <cjwatson@debian.org>
3865 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
3868 2008-01-09 Bruno Haible <bruno@clisp.org>
3870 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
3872 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
3873 if it's only a guess.
3874 * modules/memmem: Simplify by depending on memmem-simple.
3876 2008-01-09 Bruno Haible <bruno@clisp.org>
3878 Work around OpenBSD 4.0 tdelete() bug.
3879 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
3880 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
3881 macros and don't redefine the enum values.
3882 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
3883 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
3884 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
3886 2008-01-09 Bruno Haible <bruno@clisp.org>
3888 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
3889 (main): Don't perform the tests if setlocale did not install a UTF-8
3890 locale. Needed on OpenBSD 4.0.
3891 * modules/wcwidth-tests (Depends-on): Add localcharset.
3893 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
3895 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
3896 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
3897 * NEWS: announce this.
3898 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
3900 2008-01-09 Simon Josefsson <simon@josefsson.org>
3901 and Eric Blake <ebb9@byu.net>
3903 Add memmem-simple module.
3904 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
3905 (gl_FUNC_MEMMEM): Separate performance from presence checks.
3906 * modules/memmem-simple: New file.
3907 * modules/memmem (Description): Tweak.
3908 * MODULES.html.sh (string handling): Mention new module.
3909 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
3910 addressed by memmem-simple.
3911 * NEWS: Document the difference.
3913 2008-01-09 Eric Blake <ebb9@byu.net>
3915 Give gcc some memmem optimization hints.
3916 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
3917 (strcasestr): Declare as pure.
3918 * modules/memmem (Maintainer): Claim my implementation.
3920 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3922 Support AIX 6.1 and higher.
3923 * build-aux/config.libpath: Likewise.
3924 * build-aux/config.rpath: Likewise.
3926 2008-01-08 Jim Meyering <meyering@redhat.com>
3927 Bruno Haible <bruno@clisp.org>
3929 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
3930 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
3931 Reported by Peter Fales in
3932 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
3934 2008-01-08 Bruno Haible <bruno@clisp.org>
3936 * modules/unictype/category-of (Depends-on): Add
3937 unictype/category-none.
3938 * modules/unictype/category-and-tests (Depends-on): Add
3939 unictype/category-{L,N,Lu,Nd}.
3940 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
3941 * modules/unictype/category-or-tests (Depends-on): Add
3942 unictype/category-{L,N}.
3943 * modules/unictype/category-name-tests (Depends-on): Add
3944 unictype/category-{Z,Nl}.
3945 Reported by Simon Josefsson.
3947 2008-01-08 Bruno Haible <bruno@clisp.org>
3949 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
3951 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
3952 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
3953 Reported by Peter Miller <millerp@canb.auug.org.au>.
3955 2008-01-08 Eric Blake <ebb9@byu.net>
3957 Rewrite memmem to guarantee linear complexity without malloc.
3958 * lib/memmem.c (memmem): Use Two-Way rather than
3959 Knuth-Morris-Pratt, to allow O(1) space usage.
3960 (critical_factorization, two_way_short_needle)
3961 (two_way_long_needle): New functions.
3962 (knuth_morris_pratt): Delete.
3963 * modules/memmem (Depends-on): No longer need malloca or stdbool.
3965 * tests/test-memmem.c (main): Add tests for periodic needle and
3966 sublinear performance.
3967 * doc/functions/memmem.texi (memmem): Document other deficiencies
3968 in cygwin and older glibc.
3970 2008-01-08 Bruno Haible <bruno@clisp.org>
3972 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
3975 2008-01-08 Mike Frysinger <vapier@gentoo.org>
3977 Add a configure time option: --disable-acl.
3978 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
3981 2008-01-06 Simon Josefsson <simon@josefsson.org>
3983 * tests/test-localename.c: Don't include obsolete "setenv.h".
3985 * modules/localename-tests (Depends-on): Need unsetenv.
3987 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3989 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
3991 2008-01-06 Colin Watson <cjwatson@debian.org>
3993 * users.txt: Add man-db.
3995 2008-01-07 Bruno Haible <bruno@clisp.org>
3997 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
3998 previous section name.
4000 2008-01-07 Bruno Haible <bruno@clisp.org>
4002 * lib/progname.c (set_program_name): Don't strip off a leading
4003 "lt-" prefix outside a .libs directory.
4004 Suggested by Paul Eggert.
4006 2008-01-01 Sylvain Beucler <beuc@gnu.org>
4007 Bruno Haible <bruno@clisp.org>
4009 Improve memory cleanup in 'relocatable' module.
4010 * lib/relocatable.h (compute_curr_prefix): Change return type to
4012 * lib/relocatable.c (compute_curr_prefix): Change return type to
4013 'char *'. Free curr_installdir after use.
4014 (relocate): Free curr_prefix_better after use.
4015 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
4017 2008-01-01 Bruno Haible <bruno@clisp.org>
4019 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
4020 failure on older glibc systems.
4021 Reported by Peter Fales <psfales@alcatel-lucent.com>.
4023 2008-01-05 Eric Blake <ebb9@byu.net>
4025 Avoid quadratic system memmem.
4026 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
4027 Reported by Ralf Wildenhues.
4029 Fix memmem test for mingw.
4030 * modules/memmem-tests (configure.ac): Check for alarm.
4031 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
4033 * doc/functions/memmem.texi: New file.
4034 * doc/gnulib.texi (Function Substitutes): Add memmem.
4035 Reported by Bruno Haible.
4037 2008-01-04 Bruno Haible <bruno@clisp.org>
4039 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
4040 Require gl_HEADER_STRINGS_H_DEFAULTS, not
4041 gl_HEADER_STRING_H_DEFAULTS.
4043 2008-01-04 Eric Blake <ebb9@byu.net>
4045 Shorten duration of memmem test.
4046 * tests/test-memmem.c (main): Use alarm to declare failure if test
4048 Reported by Ralf Wildenhues.
4050 2007-12-21 Simon Josefsson <simon@josefsson.org>
4052 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
4053 string, needed by strerror.
4055 2008-01-03 Colin Watson <cjwatson@debian.org>
4056 Bruno Haible <bruno@clisp.org>
4058 * doc/gnulib-tool.texi (Localization): New section.
4060 2008-01-02 Bruno Haible <bruno@clisp.org>
4062 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
4063 variables to 'unsigned char *' type.
4064 Reported by Paul Eggert.
4066 2008-01-02 Jim Meyering <jim@meyering.net>
4068 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
4070 2007-12-31 Jim Meyering <jim@meyering.net>
4072 Avoid use of private FTS type name.
4073 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
4075 2007-12-30 Karl Berry <karl@gnu.org>
4077 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
4078 work around defect in Texinfo and/or the standalone Info browser.
4080 2007-12-30 Bruno Haible <bruno@clisp.org>
4082 Unify 5 copies of the KMP code.
4083 * lib/str-kmp.h: New file.
4084 * lib/c-strcasestr.c: Include str-kmp.h.
4085 (knuth_morris_pratt): Remove function.
4086 (c_strcasestr): Update.
4087 * lib/c-strstr.c: Include str-kmp.h.
4088 (knuth_morris_pratt): Remove function.
4089 (c_strcasestr): Update.
4090 * lib/mbscasestr.c: Include str-kmp.h.
4091 (knuth_morris_pratt_unibyte): Remove function.
4092 * lib/mbsstr.c: Include str-kmp.h.
4093 (knuth_morris_pratt_unibyte): Remove function.
4094 * lib/strcasestr.c: Include str-kmp.h.
4095 (knuth_morris_pratt): Remove function.
4096 (strcasestr): Update.
4097 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
4098 * modules/c-strstr (Files): Likewise.
4099 * modules/mbscasestr (Files): Likewise.
4100 * modules/mbsstr (Files): Likewise.
4101 * modules/strcasestr (Files): Likewise.
4102 Suggested by Paul Eggert.
4104 2007-12-30 Bruno Haible <bruno@clisp.org>
4106 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
4109 2007-12-30 Bruno Haible <bruno@clisp.org>
4111 * lib/xmalloca.h: Include xalloc.h.
4112 (xnmalloca): New macro.
4114 2007-12-30 Bruno Haible <bruno@clisp.org>
4116 * lib/malloca.h (nmalloca): New macro.
4117 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
4118 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
4119 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
4120 knuth_morris_pratt_multibyte): Likewise.
4121 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
4122 knuth_morris_pratt_multibyte): Likewise.
4123 * lib/memmem.c (knuth_morris_pratt): Likewise.
4124 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
4126 2007-12-25 Bruno Haible <bruno@clisp.org>
4128 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
4129 * lib/glob.c: Don't include openat.h.
4130 (link_exists2_p): Add back the code that deals with the
4131 !GLOB_ALTDIRFUNC case.
4132 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
4133 let it do the filename concatenation.
4134 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
4135 * modules/glob (Depends-on): Remove openat.
4137 2007-12-31 Bruno Haible <bruno@clisp.org>
4139 * modules/dirfd (License): Change to LGPLv2+.
4140 Approved by Jim Meyering.
4142 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
4144 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
4145 when multiplying M by sizeof (size_t).
4147 2007-12-10 Martin Lambers <marlam@marlam.de>
4149 Override getpagesize on mingw.
4150 * lib/getpagesize.c: New file.
4151 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
4152 * modules/getpagesize (Files): Add lib/getpagesize.c.
4153 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
4154 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4155 REPLACE_GETPAGESIZE.
4156 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
4158 2007-12-25 Bruno Haible <bruno@clisp.org>
4160 * modules/localcharset (Notice): New field.
4161 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
4162 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
4164 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
4165 Bruno Haible <bruno@clisp.org>
4167 Avoid using the syntax symbol() in formatted documentation.
4168 * MODULES.html.sh (func_module): When replacing symbol() with a
4169 hyperlink, remove the parentheses. Show an error if some remain.
4170 Recognize and render the '...' syntax.
4171 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
4172 Rework. Add paragraph about GCC's inlining.
4173 * doc/alloca.texi: Likewise.
4174 * doc/error.texi: Remove parentheses from symbol reference.
4175 * doc/gnulib-intro.texi: Likewise.
4176 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
4177 * modules/fnmatch (Description): Reword to say "the ... function".
4178 * modules/full-read (Description): Likewise.
4179 * modules/full-write (Description): Likewise.
4180 * modules/safe-read (Description): Likewise.
4181 * modules/safe-write (Description): Likewise.
4182 * modules/strchrnul (Description): Likewise.
4183 * modules/trim (Description): Likewise.
4184 * modules/error (Description): Remove parentheses from symbol
4186 * modules/verror (Description): Likewise.
4187 Reported by Karl Berry.
4189 2007-12-25 Bruno Haible <bruno@clisp.org>
4191 Fixup after 2007-10-16 commit.
4192 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
4194 2007-12-24 Bruno Haible <bruno@clisp.org>
4196 Make --enable-relocatable work with DESTDIR.
4197 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
4198 to compute installdir from destprog.
4199 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
4200 also set the RELOC_DESTDIR variable.
4201 Reported by Левашев Иван <octagram@bluebottle.com>.
4203 2007-12-24 Bruno Haible <bruno@clisp.org>
4205 Fix link error due to xalloc_die().
4206 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
4208 * lib/relocwrapper.c: Update comments.
4209 * build-aux/install-reloc: Remove xreadlink.c from file list.
4210 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
4212 Reported by Левашев Иван <octagram@bluebottle.com>.
4214 2007-12-24 Bruno Haible <bruno@clisp.org>
4216 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
4217 * lib/setenv.h: Remove file.
4218 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
4220 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
4221 (Depends-on): Add stdlib.
4222 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
4224 (Include): Replace setenv.h with <stdlib.h>.
4225 * modules/unsetenv: New file.
4226 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
4227 * lib/unsetenv.c: Include <stdlib.h> first.
4228 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
4229 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
4230 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
4231 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
4232 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
4233 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
4234 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
4235 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
4236 * doc/functions/unsetenv.texi: Update.
4237 * modules/xsetenv (Depends-on): Add unsetenv.
4238 * modules/getdate (Depends-on): Likewise.
4239 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
4240 * lib/xsetenv.c: Don't include setenv.h.
4241 * lib/getdate.y: Likewise.
4242 * lib/relocwrapper.c: Likewise.
4243 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
4244 (Depends-on): Add stdlib.
4245 * NEWS: Mention the changes.
4246 Reported by Левашев Иван <octagram@bluebottle.com>.
4248 2007-12-23 Bruno Haible <bruno@clisp.org>
4250 * lib/memmem.c (memmem): Use lowercase variable names. Tab
4253 2007-12-23 Bruno Haible <bruno@clisp.org>
4255 * lib/c-strcasestr.c: Add more comments.
4256 * lib/c-strstr.c: Likewise.
4257 * lib/mbscasestr.c: Likewise.
4258 * lib/mbsstr.c: Likewise.
4259 * lib/strcasestr.c: Likewise.
4260 * lib/memmem.c: Likewise.
4262 2007-12-23 Bruno Haible <bruno@clisp.org>
4264 * tests/test-memmem.c: Include <string.h> first.
4266 2007-12-22 Bruno Haible <bruno@clisp.org>
4268 * gnulib-tool (func_create_testdir): Change $auxdir while generating
4269 the contents of $testsbase.
4270 Reported by Ralf Wildenhues.
4272 2007-12-22 Bruno Haible <bruno@clisp.org>
4274 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
4275 two variables local_ldadd_before, local_ldadd_last.
4277 2007-12-20 Eric Blake <ebb9@byu.net>
4279 Work around circular library issue when cross-compiling.
4280 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
4281 that progname.o does not need to pull in rpl_memcmp.
4283 2007-12-19 Eric Blake <ebb9@byu.net>
4285 Fix memmem to avoid O(n^2) worst-case complexity.
4286 * lib/memmem.c (knuth_morris_pratt): New function.
4287 (memmem): Use it if first few naive iterations fail.
4288 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
4289 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
4290 * modules/memchr (License): Likewise.
4291 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
4293 * tests/test-memmem.c: Rewrite, borrowing ideas from
4294 test-mbsstr1.c; the old version wouldn't even compile!
4295 * modules/memmem-tests: New file.
4296 * lib/string.in.h (rpl_memmem): Add declaration.
4297 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
4298 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
4301 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
4303 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
4304 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
4305 before any system include files, and undef after them all. This
4306 should fix a problem on VMS reported by John E. Malmberg in
4307 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
4309 2007-12-17 Eric Blake <ebb9@byu.net>
4311 Revert addition of verify, for BSD/OS.
4312 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
4313 can't handle large files, for the sake of obsolete platforms.
4314 * modules/fseeko (Depends-on): Remove verify.
4315 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
4316 * doc/functions/ftello.texi (ftello): Likewise.
4317 * doc/functions/fgetpos.texi (fgetpos): Likewise.
4318 Reported by Larry Jones.
4320 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
4322 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
4323 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
4325 2007-12-17 Jim Meyering <meyering@redhat.com>
4327 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
4328 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
4329 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
4330 * modules/getcwd (Depends-on): Add openat.
4331 Reported by Petr Salinger.
4333 2007-12-17 Bruno Haible <bruno@clisp.org>
4335 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
4336 avoid a segmentation fault of the configure test on x86_64 systems.
4338 2007-12-15 Jim Meyering <meyering@redhat.com>
4340 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
4342 2007-12-13 Eric Blake <ebb9@byu.net>
4345 * tests/test-fseek.c (main): Also test ungetc handling.
4346 * tests/test-fseeko.c (main): Likewise.
4347 * modules/fseeko (Depends-on): Add verify.
4348 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
4350 Reported by Larry Jones.
4352 Fix fseeko on mingw.
4353 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
4356 Beef up fseek tests.
4357 * tests/test-fseek.c (main): Also test eof handling.
4358 * tests/test-fseeko.c (main): Likewise.
4359 Reported by Larry Jones.
4361 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
4363 Fix fseeko on BSD-based platforms.
4364 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
4367 2007-12-12 Eric Blake <ebb9@byu.net>
4369 Allow circular dependency of separate libtests.a
4370 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
4373 2007-12-11 Eric Blake <ebb9@byu.net>
4375 Fix bug with -0.0L in previous patch.
4376 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
4377 * tests/test-isnan.c (main): Also test on zeroes.
4378 * tests/test-isnanf.c (main): Likewise.
4379 * tests/test-isnanl.h (main): Likewise.
4381 Detect pseudo-denormals on x86 even when cross-compiling.
4382 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
4383 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
4384 invalid bit patterns that happen to satisfy ==.
4386 Avoid link failures with separate libtests.a.
4387 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
4388 last, to satisfy circular dependencies.
4390 2007-12-11 Eric Blake <ebb9@byu.net>
4391 and Bruno Haible <bruno@clisp.org>
4393 Fix OpenBSD 4.0 <float.h> handling of long double.
4394 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
4395 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
4396 * doc/headers/float.texi (float.h): Document OpenBSD bug.
4398 2007-12-11 Jim Meyering <meyering@redhat.com>
4400 * users.txt: Add libvirt.
4402 Support versions of autoconf prior to 2.59c.
4403 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
4404 if it is not already defined.
4406 2007-12-09 Bruno Haible <bruno@clisp.org>
4408 Let 'gnulib-tool --import' collect sources needed for the tests in
4409 tests/ rather than in lib/.
4410 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
4411 argument. If true, add rules to generate libtests.a, and put libtests.a
4412 into $(LDADD). Consider source files in subdirectories and set
4414 (func_emit_initmacro_start, func_emit_initmacro_end,
4415 func_emit_initmacro_done): Pass all arguments explicitly.
4416 (func_import): Determine two module lists main_modules,
4417 testsrelated_modules. Determine use_libtests. Determine two variables
4418 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
4419 instead of just sed_transform_lib_file. Determine two variables
4420 main_files and testsrelated_files. Compute 'files' as the union of
4421 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
4422 func_add_or_update. In the generated gnulib-comp.m4, collect the
4423 object files for tests/ in different variables than those for lib/.
4424 Substitute LIBTESTS_LIBDEPS.
4425 (func_create_testdir): Combine the uses_subdirs results from
4426 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
4428 2007-12-09 Bruno Haible <bruno@clisp.org>
4430 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
4431 the build-aux directory.
4433 2007-12-09 Bruno Haible <bruno@clisp.org>
4435 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
4436 introduced on 2006-09-09.
4438 2007-12-07 Jim Meyering <meyering@redhat.com>
4440 Let these macros work also with autoconf-2.59.
4441 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
4442 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
4443 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
4445 2007-12-06 Jim Meyering <meyering@redhat.com>
4447 Avoid a configure-time syntax error in gl_FUNC_ACL.
4448 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
4449 function in each branch, before testing the cache variable.
4451 2007-12-04 Eric Blake <ebb9@byu.net>
4453 Make scripts executable.
4454 * build-aux/config.guess: Add execute permissions.
4455 * build-aux/config.sub: Likewise.
4456 * build-aux/gendocs.sh: Likewise.
4459 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
4461 * doc/functions/frexp.texi (frexp): Document the bug.
4463 Make cygwin fseeko check more reliable.
4464 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
4465 version numbers, rather than unrelated feature check.
4466 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
4467 * doc/functions/ftello.texi (ftello): Likewise.
4468 Reported by Bruno Haible.
4470 * m4/strerror.m4: Bump version number.
4472 2007-12-03 Bruno Haible <bruno@clisp.org>
4474 * doc/functions/mprotect.texi: Mention the mingw problem.
4476 2007-12-03 Eric Blake <ebb9@byu.net>
4478 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
4479 REPLACE_STRERROR is initialized before this macro.
4481 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
4483 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
4484 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
4485 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
4486 put -lsec in even for programs other than 'ls'. This fixes a problem
4487 for gettext reported by Bruno Haible in
4488 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
4489 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
4490 Add support for Solaris 10. This isn't efficient, but should get the
4493 2007-12-03 James Youngman <jay@gnu.org>
4495 * doc/regexprops-generic.texi: change "an close-group" to "a
4496 close-group" and "illegal" to "not allowed".
4498 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4500 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
4501 pr_byname.h. Needed for the rare case when the maintainer has done
4502 "make maintainer-clean" in the source directory and then attempts a
4503 build outside the source directory.
4504 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
4507 2007-12-02 Martin Lambers <marlam@marlam.de>
4508 Bruno Haible <bruno@clisp.org>
4510 * lib/getpagesize.h: Remove file.
4511 * lib/unistd.in.h: Include declaration of getpagesize here.
4512 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
4513 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
4515 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
4516 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
4517 * modules/getpagesize (Files): Remove lib/getpagesize.h.
4518 (Depends-on): Add unistd.
4519 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
4520 (Include): Use <unistd.h> instead of getpagesize.h.
4521 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
4522 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
4523 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
4524 gl_GETPAGESIZE invocation, already handled by module dependency.
4525 * lib/pagealign_alloc.c: Don't include getpagesize.h.
4527 2007-12-02 Bruno Haible <bruno@clisp.org>
4529 * modules/strings-tests: New file.
4530 * tests/test-strings.c: New file.
4532 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
4533 * lib/strings.in.h: New file.
4534 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
4535 * m4/strings_h.m4: New file.
4536 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
4537 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
4538 * modules/strings: New file.
4539 * modules/string (Makefile.am): Update.
4540 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
4541 Reported by Karl Berry.
4543 2007-12-01 Eric Blake <ebb9@byu.net>
4545 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
4546 accomodate fix in cygwin 1.5.25.
4548 2007-12-01 Jim Meyering <meyering@redhat.com>
4550 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
4551 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
4552 that would inhibit utf8-optimization of a regexp containing line-
4553 or buffer-anchors, e.g., `^', `$'.
4555 2007-11-30 Bruno Haible <bruno@clisp.org>
4557 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
4558 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
4559 glthread_recursive_lock_init.
4560 * lib/lock.c (glthread_recursive_lock_init)
4561 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
4562 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
4564 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
4566 New function qset_acl, like set_acl but with syscall semantics.
4567 * lib/acl.h (qset_acl): New decl.
4568 * lib/acl.c (qset_acl): New function.
4569 (set_acl): Use new function. Use more-consistent diagnostics.
4571 2007-11-28 Jim Meyering <meyering@redhat.com>
4573 * modules/physmem (License): Change from GPL to LGPLv2+.
4575 2007-11-26 Bruno Haible <bruno@clisp.org>
4577 * lib/vasnprintf.c (decode_long_double): Don't abort if the
4578 'long double' type has excess precision.
4579 Reported by Jim Meyering in
4580 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
4582 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4584 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
4585 Sync from <http://gnu.org/licenses>.
4586 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
4587 with license text from same location.
4588 * doc/maintain.texi, doc/standards.texi: Sync from
4589 <http://savannah.gnu.org/projects/gnustandards>.
4591 2007-11-22 Ondřej Vašík <ovasik@redhat.com>
4592 and Jim Meyering <meyering@redhat.com>
4594 Adjust getdate' grammar to accept a slightly more regular language.
4595 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
4596 Before, the former was rejected.
4597 * lib/getdate.y (digits_to_date_time): New function, factored
4599 (number): ...here. Just call digits_to_date_time.
4600 (hybrid): New non-terminal to handle an <unsigned number,
4601 signed relative offset> sequence consistently.
4603 2007-11-18 Jim Meyering <meyering@redhat.com>
4605 Pull my changes from coreutils:
4606 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
4607 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
4608 use of $gnulib_tool_option_extras, so that it's separated from the
4611 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
4612 * build-aux/bootstrap (cp_mark_as_generated): Create any required
4613 parent destination directories before copying a file into place.
4615 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
4617 bootstrap: work also with 4-argument variant of AC_INIT
4618 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
4620 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
4622 Port test-getaddrinfo to Solaris.
4623 Problem reported by Bruno Haible in
4624 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
4625 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
4626 explanation of setting 'hints'.
4627 Don't reject an implementation merely because it returns EAI_SERVICE.
4628 (EAI_SERVICE): Define to 0 if not defined.
4630 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
4632 The license of gnu-make and posix-shell is now "GPLed build tool".
4633 * modules/gnu-make (License): Likewise.
4634 * modules/posix-shell (License): Likewise.
4636 New module posix-shell, for determining a POSIX shell
4637 or perhaps something that is close enough to a POSIX shell.
4638 * m4/posix-shell.m4: New file.
4639 * modules/posix-shell: New file.
4641 * MODULES.html.sh: Mention new module.
4643 New module gnu-make, for determining whether we're using GNU Make.
4644 * m4/gnu-make.m4: New file.
4645 * modules/gnu-make: New file.
4646 * MODULES.html.sh: Mention new module.
4648 2007-11-14 Jim Meyering <meyering@redhat.com>
4650 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
4651 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
4652 use this macro to create a function _definition_.
4653 Remove useless "#undef ARGMATCH_DIE".
4655 2007-11-14 Bruno Haible <bruno@clisp.org>
4657 * lib/config.charset: Update for OpenBSD 4.1.
4658 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
4660 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
4662 Document 64-bit #if problems in stdint.texi.
4663 * doc/headers/stdint.texi (stdint.h): Mention problems with
4664 64-bit-#if, and how to work around them.
4666 Don't insist on 'long long int' support in the preprocessor. It
4667 breaks too many things. For example, PRIdMAX still uses a 'long
4668 long int' format with the latest Sun compiler, even though
4669 HAVE_LONG_LONG_INT isn't defined due to that compiler's
4670 preprocessor problem. This causes the latest coreutils to dump
4671 core on Solaris 10 sparc with the Sun C compiler.
4672 Instead, fix the 2007-10-16 problem in a different way, by evaluating
4673 the troublesome expressions at configure-time, not at #if-time.
4674 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
4676 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
4677 compile-time C checks, done at 'configure'-time.
4678 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
4679 * modules/inttypes (Makefile): Substitute the new symbols that
4680 gl_INTTYPES_H now generates.
4681 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
4683 2007-11-12 Bruno Haible <bruno@clisp.org>
4685 Tests for Unicode character classification functions.
4687 * modules/unictype/bidicategory-byname-tests: New file.
4688 * modules/unictype/bidicategory-name-tests: New file.
4689 * modules/unictype/bidicategory-of-tests: New file.
4690 * modules/unictype/bidicategory-test-tests: New file.
4691 * modules/unictype/block-list-tests: New file.
4692 * modules/unictype/block-of-tests: New file.
4693 * modules/unictype/block-test-tests: New file.
4694 * modules/unictype/category-C-tests: New file.
4695 * modules/unictype/category-Cc-tests: New file.
4696 * modules/unictype/category-Cf-tests: New file.
4697 * modules/unictype/category-Cn-tests: New file.
4698 * modules/unictype/category-Co-tests: New file.
4699 * modules/unictype/category-Cs-tests: New file.
4700 * modules/unictype/category-L-tests: New file.
4701 * modules/unictype/category-Ll-tests: New file.
4702 * modules/unictype/category-Lm-tests: New file.
4703 * modules/unictype/category-Lo-tests: New file.
4704 * modules/unictype/category-Lt-tests: New file.
4705 * modules/unictype/category-Lu-tests: New file.
4706 * modules/unictype/category-M-tests: New file.
4707 * modules/unictype/category-Mc-tests: New file.
4708 * modules/unictype/category-Me-tests: New file.
4709 * modules/unictype/category-Mn-tests: New file.
4710 * modules/unictype/category-N-tests: New file.
4711 * modules/unictype/category-Nd-tests: New file.
4712 * modules/unictype/category-Nl-tests: New file.
4713 * modules/unictype/category-No-tests: New file.
4714 * modules/unictype/category-P-tests: New file.
4715 * modules/unictype/category-Pc-tests: New file.
4716 * modules/unictype/category-Pd-tests: New file.
4717 * modules/unictype/category-Pe-tests: New file.
4718 * modules/unictype/category-Pf-tests: New file.
4719 * modules/unictype/category-Pi-tests: New file.
4720 * modules/unictype/category-Po-tests: New file.
4721 * modules/unictype/category-Ps-tests: New file.
4722 * modules/unictype/category-S-tests: New file.
4723 * modules/unictype/category-Sc-tests: New file.
4724 * modules/unictype/category-Sk-tests: New file.
4725 * modules/unictype/category-Sm-tests: New file.
4726 * modules/unictype/category-So-tests: New file.
4727 * modules/unictype/category-Z-tests: New file.
4728 * modules/unictype/category-Zl-tests: New file.
4729 * modules/unictype/category-Zp-tests: New file.
4730 * modules/unictype/category-Zs-tests: New file.
4731 * modules/unictype/category-and-not-tests: New file.
4732 * modules/unictype/category-and-tests: New file.
4733 * modules/unictype/category-byname-tests: New file.
4734 * modules/unictype/category-name-tests: New file.
4735 * modules/unictype/category-none-tests: New file.
4736 * modules/unictype/category-of-tests: New file.
4737 * modules/unictype/category-or-tests: New file.
4738 * modules/unictype/category-test-withtable-tests: New file.
4739 * modules/unictype/combining-class-tests: New file.
4740 * modules/unictype/ctype-alnum-tests: New file.
4741 * modules/unictype/ctype-alpha-tests: New file.
4742 * modules/unictype/ctype-blank-tests: New file.
4743 * modules/unictype/ctype-cntrl-tests: New file.
4744 * modules/unictype/ctype-digit-tests: New file.
4745 * modules/unictype/ctype-graph-tests: New file.
4746 * modules/unictype/ctype-lower-tests: New file.
4747 * modules/unictype/ctype-print-tests: New file.
4748 * modules/unictype/ctype-punct-tests: New file.
4749 * modules/unictype/ctype-space-tests: New file.
4750 * modules/unictype/ctype-upper-tests: New file.
4751 * modules/unictype/ctype-xdigit-tests: New file.
4752 * modules/unictype/decimal-digit-tests: New file.
4753 * modules/unictype/digit-tests: New file.
4754 * modules/unictype/mirror-tests: New file.
4755 * modules/unictype/numeric-tests: New file.
4756 * modules/unictype/property-alphabetic-tests: New file.
4757 * modules/unictype/property-ascii-hex-digit-tests: New file.
4758 * modules/unictype/property-bidi-arabic-digit-tests: New file.
4759 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
4760 * modules/unictype/property-bidi-block-separator-tests: New file.
4761 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
4762 * modules/unictype/property-bidi-common-separator-tests: New file.
4763 * modules/unictype/property-bidi-control-tests: New file.
4764 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
4765 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
4766 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
4767 * modules/unictype/property-bidi-european-digit-tests: New file.
4768 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
4769 * modules/unictype/property-bidi-left-to-right-tests: New file.
4770 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
4771 * modules/unictype/property-bidi-other-neutral-tests: New file.
4772 * modules/unictype/property-bidi-pdf-tests: New file.
4773 * modules/unictype/property-bidi-segment-separator-tests: New file.
4774 * modules/unictype/property-bidi-whitespace-tests: New file.
4775 * modules/unictype/property-byname-tests: New file.
4776 * modules/unictype/property-combining-tests: New file.
4777 * modules/unictype/property-composite-tests: New file.
4778 * modules/unictype/property-currency-symbol-tests: New file.
4779 * modules/unictype/property-dash-tests: New file.
4780 * modules/unictype/property-decimal-digit-tests: New file.
4781 * modules/unictype/property-default-ignorable-code-point-tests: New file.
4782 * modules/unictype/property-deprecated-tests: New file.
4783 * modules/unictype/property-diacritic-tests: New file.
4784 * modules/unictype/property-extender-tests: New file.
4785 * modules/unictype/property-format-control-tests: New file.
4786 * modules/unictype/property-grapheme-base-tests: New file.
4787 * modules/unictype/property-grapheme-extend-tests: New file.
4788 * modules/unictype/property-grapheme-link-tests: New file.
4789 * modules/unictype/property-hex-digit-tests: New file.
4790 * modules/unictype/property-hyphen-tests: New file.
4791 * modules/unictype/property-id-continue-tests: New file.
4792 * modules/unictype/property-id-start-tests: New file.
4793 * modules/unictype/property-ideographic-tests: New file.
4794 * modules/unictype/property-ids-binary-operator-tests: New file.
4795 * modules/unictype/property-ids-trinary-operator-tests: New file.
4796 * modules/unictype/property-ignorable-control-tests: New file.
4797 * modules/unictype/property-iso-control-tests: New file.
4798 * modules/unictype/property-join-control-tests: New file.
4799 * modules/unictype/property-left-of-pair-tests: New file.
4800 * modules/unictype/property-line-separator-tests: New file.
4801 * modules/unictype/property-logical-order-exception-tests: New file.
4802 * modules/unictype/property-lowercase-tests: New file.
4803 * modules/unictype/property-math-tests: New file.
4804 * modules/unictype/property-non-break-tests: New file.
4805 * modules/unictype/property-not-a-character-tests: New file.
4806 * modules/unictype/property-numeric-tests: New file.
4807 * modules/unictype/property-other-alphabetic-tests: New file.
4808 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
4809 * modules/unictype/property-other-grapheme-extend-tests: New file.
4810 * modules/unictype/property-other-id-continue-tests: New file.
4811 * modules/unictype/property-other-id-start-tests: New file.
4812 * modules/unictype/property-other-lowercase-tests: New file.
4813 * modules/unictype/property-other-math-tests: New file.
4814 * modules/unictype/property-other-uppercase-tests: New file.
4815 * modules/unictype/property-paired-punctuation-tests: New file.
4816 * modules/unictype/property-paragraph-separator-tests: New file.
4817 * modules/unictype/property-pattern-syntax-tests: New file.
4818 * modules/unictype/property-pattern-white-space-tests: New file.
4819 * modules/unictype/property-private-use-tests: New file.
4820 * modules/unictype/property-punctuation-tests: New file.
4821 * modules/unictype/property-quotation-mark-tests: New file.
4822 * modules/unictype/property-radical-tests: New file.
4823 * modules/unictype/property-sentence-terminal-tests: New file.
4824 * modules/unictype/property-soft-dotted-tests: New file.
4825 * modules/unictype/property-space-tests: New file.
4826 * modules/unictype/property-terminal-punctuation-tests: New file.
4827 * modules/unictype/property-test-tests: New file.
4828 * modules/unictype/property-titlecase-tests: New file.
4829 * modules/unictype/property-unassigned-code-value-tests: New file.
4830 * modules/unictype/property-unified-ideograph-tests: New file.
4831 * modules/unictype/property-uppercase-tests: New file.
4832 * modules/unictype/property-variation-selector-tests: New file.
4833 * modules/unictype/property-white-space-tests: New file.
4834 * modules/unictype/property-xid-continue-tests: New file.
4835 * modules/unictype/property-xid-start-tests: New file.
4836 * modules/unictype/property-zero-width-tests: New file.
4837 * modules/unictype/scripts-tests: New file.
4838 * modules/unictype/syntax-c-ident-tests: New file.
4839 * modules/unictype/syntax-c-whitespace-tests: New file.
4840 * modules/unictype/syntax-java-ident-tests: New file.
4841 * modules/unictype/syntax-java-whitespace-tests: New file.
4842 * tests/unictype/test-bidi_byname.c: New file.
4843 * tests/unictype/test-bidi_name.c: New file.
4844 * tests/unictype/test-bidi_of.c: New file.
4845 * tests/unictype/test-bidi_test.c: New file.
4846 * tests/unictype/test-block_list.c: New file.
4847 * tests/unictype/test-block_of.c: New file.
4848 * tests/unictype/test-block_test.c: New file.
4849 * tests/unictype/test-categ_and.c: New file.
4850 * tests/unictype/test-categ_and_not.c: New file.
4851 * tests/unictype/test-categ_byname.c: New file.
4852 * tests/unictype/test-categ_name.c: New file.
4853 * tests/unictype/test-categ_none.c: New file.
4854 * tests/unictype/test-categ_of.c: New file.
4855 * tests/unictype/test-categ_or.c: New file.
4856 * tests/unictype/test-categ_test_withtable.c: New file.
4857 * tests/unictype/test-combining.c: New file.
4858 * tests/unictype/test-decdigit.c: New file.
4859 * tests/unictype/test-digit.c: New file.
4860 * tests/unictype/test-mirror.c: New file.
4861 * tests/unictype/test-numeric.c: New file.
4862 * tests/unictype/test-pr_byname.c: New file.
4863 * tests/unictype/test-pr_test.c: New file.
4864 * tests/unictype/test-predicate-part1.h: New file.
4865 * tests/unictype/test-predicate-part2.h: New file.
4866 * tests/unictype/test-scripts.c: New file.
4867 * tests/unictype/test-sy_c_ident.c: New file.
4868 * tests/unictype/test-sy_java_ident.c: New file.
4870 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
4872 * tests/unictype/test-categ_Cc.c: Likewise.
4873 * tests/unictype/test-categ_Cf.c: Likewise.
4874 * tests/unictype/test-categ_Cn.c: Likewise.
4875 * tests/unictype/test-categ_Co.c: Likewise.
4876 * tests/unictype/test-categ_Cs.c: Likewise.
4877 * tests/unictype/test-categ_L.c: Likewise.
4878 * tests/unictype/test-categ_Ll.c: Likewise.
4879 * tests/unictype/test-categ_Lm.c: Likewise.
4880 * tests/unictype/test-categ_Lo.c: Likewise.
4881 * tests/unictype/test-categ_Lt.c: Likewise.
4882 * tests/unictype/test-categ_Lu.c: Likewise.
4883 * tests/unictype/test-categ_M.c: Likewise.
4884 * tests/unictype/test-categ_Mc.c: Likewise.
4885 * tests/unictype/test-categ_Me.c: Likewise.
4886 * tests/unictype/test-categ_Mn.c: Likewise.
4887 * tests/unictype/test-categ_N.c: Likewise.
4888 * tests/unictype/test-categ_Nd.c: Likewise.
4889 * tests/unictype/test-categ_Nl.c: Likewise.
4890 * tests/unictype/test-categ_No.c: Likewise.
4891 * tests/unictype/test-categ_P.c: Likewise.
4892 * tests/unictype/test-categ_Pc.c: Likewise.
4893 * tests/unictype/test-categ_Pd.c: Likewise.
4894 * tests/unictype/test-categ_Pe.c: Likewise.
4895 * tests/unictype/test-categ_Pf.c: Likewise.
4896 * tests/unictype/test-categ_Pi.c: Likewise.
4897 * tests/unictype/test-categ_Po.c: Likewise.
4898 * tests/unictype/test-categ_Ps.c: Likewise.
4899 * tests/unictype/test-categ_S.c: Likewise.
4900 * tests/unictype/test-categ_Sc.c: Likewise.
4901 * tests/unictype/test-categ_Sk.c: Likewise.
4902 * tests/unictype/test-categ_Sm.c: Likewise.
4903 * tests/unictype/test-categ_So.c: Likewise.
4904 * tests/unictype/test-categ_Z.c: Likewise.
4905 * tests/unictype/test-categ_Zl.c: Likewise.
4906 * tests/unictype/test-categ_Zp.c: Likewise.
4907 * tests/unictype/test-categ_Zs.c: Likewise.
4908 * tests/unictype/test-ctype_alnum.c: Likewise.
4909 * tests/unictype/test-ctype_alpha.c: Likewise.
4910 * tests/unictype/test-ctype_blank.c: Likewise.
4911 * tests/unictype/test-ctype_cntrl.c: Likewise.
4912 * tests/unictype/test-ctype_digit.c: Likewise.
4913 * tests/unictype/test-ctype_graph.c: Likewise.
4914 * tests/unictype/test-ctype_lower.c: Likewise.
4915 * tests/unictype/test-ctype_print.c: Likewise.
4916 * tests/unictype/test-ctype_punct.c: Likewise.
4917 * tests/unictype/test-ctype_space.c: Likewise.
4918 * tests/unictype/test-ctype_upper.c: Likewise.
4919 * tests/unictype/test-ctype_xdigit.c: Likewise.
4920 * tests/unictype/test-decdigit.h: Likewise.
4921 * tests/unictype/test-digit.h: Likewise.
4922 * tests/unictype/test-numeric.h: Likewise.
4923 * tests/unictype/test-pr_alphabetic.c: Likewise.
4924 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
4925 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
4926 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
4927 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
4928 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
4929 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
4930 * tests/unictype/test-pr_bidi_control.c: Likewise.
4931 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
4932 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
4933 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
4934 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
4935 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
4936 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
4937 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
4938 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
4939 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
4940 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
4941 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
4942 * tests/unictype/test-pr_combining.c: Likewise.
4943 * tests/unictype/test-pr_composite.c: Likewise.
4944 * tests/unictype/test-pr_currency_symbol.c: Likewise.
4945 * tests/unictype/test-pr_dash.c: Likewise.
4946 * tests/unictype/test-pr_decimal_digit.c: Likewise.
4947 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
4948 * tests/unictype/test-pr_deprecated.c: Likewise.
4949 * tests/unictype/test-pr_diacritic.c: Likewise.
4950 * tests/unictype/test-pr_extender.c: Likewise.
4951 * tests/unictype/test-pr_format_control.c: Likewise.
4952 * tests/unictype/test-pr_grapheme_base.c: Likewise.
4953 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
4954 * tests/unictype/test-pr_grapheme_link.c: Likewise.
4955 * tests/unictype/test-pr_hex_digit.c: Likewise.
4956 * tests/unictype/test-pr_hyphen.c: Likewise.
4957 * tests/unictype/test-pr_id_continue.c: Likewise.
4958 * tests/unictype/test-pr_id_start.c: Likewise.
4959 * tests/unictype/test-pr_ideographic.c: Likewise.
4960 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
4961 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
4962 * tests/unictype/test-pr_ignorable_control.c: Likewise.
4963 * tests/unictype/test-pr_iso_control.c: Likewise.
4964 * tests/unictype/test-pr_join_control.c: Likewise.
4965 * tests/unictype/test-pr_left_of_pair.c: Likewise.
4966 * tests/unictype/test-pr_line_separator.c: Likewise.
4967 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
4968 * tests/unictype/test-pr_lowercase.c: Likewise.
4969 * tests/unictype/test-pr_math.c: Likewise.
4970 * tests/unictype/test-pr_non_break.c: Likewise.
4971 * tests/unictype/test-pr_not_a_character.c: Likewise.
4972 * tests/unictype/test-pr_numeric.c: Likewise.
4973 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
4974 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
4975 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
4976 * tests/unictype/test-pr_other_id_continue.c: Likewise.
4977 * tests/unictype/test-pr_other_id_start.c: Likewise.
4978 * tests/unictype/test-pr_other_lowercase.c: Likewise.
4979 * tests/unictype/test-pr_other_math.c: Likewise.
4980 * tests/unictype/test-pr_other_uppercase.c: Likewise.
4981 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
4982 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
4983 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
4984 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
4985 * tests/unictype/test-pr_private_use.c: Likewise.
4986 * tests/unictype/test-pr_punctuation.c: Likewise.
4987 * tests/unictype/test-pr_quotation_mark.c: Likewise.
4988 * tests/unictype/test-pr_radical.c: Likewise.
4989 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
4990 * tests/unictype/test-pr_soft_dotted.c: Likewise.
4991 * tests/unictype/test-pr_space.c: Likewise.
4992 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
4993 * tests/unictype/test-pr_titlecase.c: Likewise.
4994 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
4995 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
4996 * tests/unictype/test-pr_uppercase.c: Likewise.
4997 * tests/unictype/test-pr_variation_selector.c: Likewise.
4998 * tests/unictype/test-pr_white_space.c: Likewise.
4999 * tests/unictype/test-pr_xid_continue.c: Likewise.
5000 * tests/unictype/test-pr_xid_start.c: Likewise.
5001 * tests/unictype/test-pr_zero_width.c: Likewise.
5002 * tests/unictype/test-sy_c_whitespace.c: Likewise.
5003 * tests/unictype/test-sy_java_whitespace.c: Likewise.
5005 2007-11-12 Bruno Haible <bruno@clisp.org>
5007 Unicode character classification functions.
5008 * lib/unictype.h: New file.
5009 * modules/unictype/base: New file.
5010 * modules/unictype/category-L: New file.
5011 * modules/unictype/category-Lu: New file.
5012 * modules/unictype/category-Ll: New file.
5013 * modules/unictype/category-Lt: New file.
5014 * modules/unictype/category-Lm: New file.
5015 * modules/unictype/category-Lo: New file.
5016 * modules/unictype/category-M: New file.
5017 * modules/unictype/category-Mn: New file.
5018 * modules/unictype/category-Mc: New file.
5019 * modules/unictype/category-Me: New file.
5020 * modules/unictype/category-N: New file.
5021 * modules/unictype/category-Nd: New file.
5022 * modules/unictype/category-Nl: New file.
5023 * modules/unictype/category-No: New file.
5024 * modules/unictype/category-P: New file.
5025 * modules/unictype/category-Pc: New file.
5026 * modules/unictype/category-Pd: New file.
5027 * modules/unictype/category-Ps: New file.
5028 * modules/unictype/category-Pe: New file.
5029 * modules/unictype/category-Pi: New file.
5030 * modules/unictype/category-Pf: New file.
5031 * modules/unictype/category-Po: New file.
5032 * modules/unictype/category-S: New file.
5033 * modules/unictype/category-Sm: New file.
5034 * modules/unictype/category-Sc: New file.
5035 * modules/unictype/category-Sk: New file.
5036 * modules/unictype/category-So: New file.
5037 * modules/unictype/category-Z: New file.
5038 * modules/unictype/category-Zs: New file.
5039 * modules/unictype/category-Zl: New file.
5040 * modules/unictype/category-Zp: New file.
5041 * modules/unictype/category-C: New file.
5042 * modules/unictype/category-Cc: New file.
5043 * modules/unictype/category-Cf: New file.
5044 * modules/unictype/category-Cs: New file.
5045 * modules/unictype/category-Co: New file.
5046 * modules/unictype/category-Cn: New file.
5047 * modules/unictype/category-or: New file.
5048 * modules/unictype/category-of: New file.
5049 * modules/unictype/category-test: New file.
5050 * modules/unictype/category-test-withtable: New file.
5051 * modules/unictype/category-byname: New file.
5052 * modules/unictype/category-none: New file.
5053 * modules/unictype/category-and: New file.
5054 * modules/unictype/category-and-not: New file.
5055 * modules/unictype/category-name: New file.
5056 * modules/unictype/combining-class: New file.
5057 * modules/unictype/category-all: New file.
5058 * modules/unictype/bidicategory-all: New file.
5059 * modules/unictype/bidicategory-byname: New file.
5060 * modules/unictype/bidicategory-name: New file.
5061 * modules/unictype/bidicategory-of: New file.
5062 * modules/unictype/bidicategory-test: New file.
5063 * modules/unictype/decimal-digit: New file.
5064 * modules/unictype/digit: New file.
5065 * modules/unictype/numeric: New file.
5066 * modules/unictype/mirror: New file.
5067 * modules/unictype/property-white-space: New file.
5068 * modules/unictype/property-alphabetic: New file.
5069 * modules/unictype/property-other-alphabetic: New file.
5070 * modules/unictype/property-not-a-character: New file.
5071 * modules/unictype/property-default-ignorable-code-point: New file.
5072 * modules/unictype/property-other-default-ignorable-code-point: New
5074 * modules/unictype/property-deprecated: New file.
5075 * modules/unictype/property-logical-order-exception: New file.
5076 * modules/unictype/property-variation-selector: New file.
5077 * modules/unictype/property-private-use: New file.
5078 * modules/unictype/property-unassigned-code-value: New file.
5079 * modules/unictype/property-uppercase: New file.
5080 * modules/unictype/property-other-uppercase: New file.
5081 * modules/unictype/property-lowercase: New file.
5082 * modules/unictype/property-other-lowercase: New file.
5083 * modules/unictype/property-titlecase: New file.
5084 * modules/unictype/property-soft-dotted: New file.
5085 * modules/unictype/property-id-start: New file.
5086 * modules/unictype/property-other-id-start: New file.
5087 * modules/unictype/property-id-continue: New file.
5088 * modules/unictype/property-other-id-continue: New file.
5089 * modules/unictype/property-xid-start: New file.
5090 * modules/unictype/property-xid-continue: New file.
5091 * modules/unictype/property-pattern-white-space: New file.
5092 * modules/unictype/property-pattern-syntax: New file.
5093 * modules/unictype/property-join-control: New file.
5094 * modules/unictype/property-grapheme-base: New file.
5095 * modules/unictype/property-grapheme-extend: New file.
5096 * modules/unictype/property-other-grapheme-extend: New file.
5097 * modules/unictype/property-grapheme-link: New file.
5098 * modules/unictype/property-bidi-control: New file.
5099 * modules/unictype/property-bidi-left-to-right: New file.
5100 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
5101 * modules/unictype/property-bidi-arabic-right-to-left: New file.
5102 * modules/unictype/property-bidi-european-digit: New file.
5103 * modules/unictype/property-bidi-eur-num-separator: New file.
5104 * modules/unictype/property-bidi-eur-num-terminator: New file.
5105 * modules/unictype/property-bidi-arabic-digit: New file.
5106 * modules/unictype/property-bidi-common-separator: New file.
5107 * modules/unictype/property-bidi-block-separator: New file.
5108 * modules/unictype/property-bidi-segment-separator: New file.
5109 * modules/unictype/property-bidi-whitespace: New file.
5110 * modules/unictype/property-bidi-non-spacing-mark: New file.
5111 * modules/unictype/property-bidi-boundary-neutral: New file.
5112 * modules/unictype/property-bidi-pdf: New file.
5113 * modules/unictype/property-bidi-embedding-or-override: New file.
5114 * modules/unictype/property-bidi-other-neutral: New file.
5115 * modules/unictype/property-hex-digit: New file.
5116 * modules/unictype/property-ascii-hex-digit: New file.
5117 * modules/unictype/property-ideographic: New file.
5118 * modules/unictype/property-unified-ideograph: New file.
5119 * modules/unictype/property-radical: New file.
5120 * modules/unictype/property-ids-binary-operator: New file.
5121 * modules/unictype/property-ids-trinary-operator: New file.
5122 * modules/unictype/property-zero-width: New file.
5123 * modules/unictype/property-space: New file.
5124 * modules/unictype/property-non-break: New file.
5125 * modules/unictype/property-iso-control: New file.
5126 * modules/unictype/property-format-control: New file.
5127 * modules/unictype/property-dash: New file.
5128 * modules/unictype/property-hyphen: New file.
5129 * modules/unictype/property-punctuation: New file.
5130 * modules/unictype/property-line-separator: New file.
5131 * modules/unictype/property-paragraph-separator: New file.
5132 * modules/unictype/property-quotation-mark: New file.
5133 * modules/unictype/property-sentence-terminal: New file.
5134 * modules/unictype/property-terminal-punctuation: New file.
5135 * modules/unictype/property-currency-symbol: New file.
5136 * modules/unictype/property-math: New file.
5137 * modules/unictype/property-other-math: New file.
5138 * modules/unictype/property-paired-punctuation: New file.
5139 * modules/unictype/property-left-of-pair: New file.
5140 * modules/unictype/property-combining: New file.
5141 * modules/unictype/property-composite: New file.
5142 * modules/unictype/property-decimal-digit: New file.
5143 * modules/unictype/property-numeric: New file.
5144 * modules/unictype/property-diacritic: New file.
5145 * modules/unictype/property-extender: New file.
5146 * modules/unictype/property-ignorable-control: New file.
5147 * modules/unictype/property-test: New file.
5148 * modules/unictype/property-byname: New file.
5149 * modules/unictype/property-all: New file.
5150 * modules/unictype/scripts: New file.
5151 * modules/unictype/scripts-all: New file.
5152 * modules/unictype/block-of: New file.
5153 * modules/unictype/block-test: New file.
5154 * modules/unictype/block-list: New file.
5155 * modules/unictype/block-all: New file.
5156 * modules/unictype/syntax-c-whitespace: New file.
5157 * modules/unictype/syntax-java-whitespace: New file.
5158 * modules/unictype/syntax-c-ident: New file.
5159 * modules/unictype/syntax-java-ident: New file.
5160 * modules/unictype/ctype-alnum: New file.
5161 * modules/unictype/ctype-alpha: New file.
5162 * modules/unictype/ctype-cntrl: New file.
5163 * modules/unictype/ctype-digit: New file.
5164 * modules/unictype/ctype-graph: New file.
5165 * modules/unictype/ctype-lower: New file.
5166 * modules/unictype/ctype-print: New file.
5167 * modules/unictype/ctype-punct: New file.
5168 * modules/unictype/ctype-space: New file.
5169 * modules/unictype/ctype-upper: New file.
5170 * modules/unictype/ctype-xdigit: New file.
5171 * modules/unictype/ctype-blank: New file.
5172 * lib/unictype/bidi_byname.c: New file.
5173 * lib/unictype/bidi_name.c: New file.
5174 * lib/unictype/bidi_of.c: New file.
5175 * lib/unictype/bidi_test.c: New file.
5176 * lib/unictype/bitmap.h: New file.
5177 * lib/unictype/block_test.c: New file.
5178 * lib/unictype/blocks.c: New file.
5179 * lib/unictype/categ_C.c: New file.
5180 * lib/unictype/categ_Cc.c: New file.
5181 * lib/unictype/categ_Cf.c: New file.
5182 * lib/unictype/categ_Cn.c: New file.
5183 * lib/unictype/categ_Co.c: New file.
5184 * lib/unictype/categ_Cs.c: New file.
5185 * lib/unictype/categ_L.c: New file.
5186 * lib/unictype/categ_Ll.c: New file.
5187 * lib/unictype/categ_Lm.c: New file.
5188 * lib/unictype/categ_Lo.c: New file.
5189 * lib/unictype/categ_Lt.c: New file.
5190 * lib/unictype/categ_Lu.c: New file.
5191 * lib/unictype/categ_M.c: New file.
5192 * lib/unictype/categ_Mc.c: New file.
5193 * lib/unictype/categ_Me.c: New file.
5194 * lib/unictype/categ_Mn.c: New file.
5195 * lib/unictype/categ_N.c: New file.
5196 * lib/unictype/categ_Nd.c: New file.
5197 * lib/unictype/categ_Nl.c: New file.
5198 * lib/unictype/categ_No.c: New file.
5199 * lib/unictype/categ_P.c: New file.
5200 * lib/unictype/categ_Pc.c: New file.
5201 * lib/unictype/categ_Pd.c: New file.
5202 * lib/unictype/categ_Pe.c: New file.
5203 * lib/unictype/categ_Pf.c: New file.
5204 * lib/unictype/categ_Pi.c: New file.
5205 * lib/unictype/categ_Po.c: New file.
5206 * lib/unictype/categ_Ps.c: New file.
5207 * lib/unictype/categ_S.c: New file.
5208 * lib/unictype/categ_Sc.c: New file.
5209 * lib/unictype/categ_Sk.c: New file.
5210 * lib/unictype/categ_Sm.c: New file.
5211 * lib/unictype/categ_So.c: New file.
5212 * lib/unictype/categ_Z.c: New file.
5213 * lib/unictype/categ_Zl.c: New file.
5214 * lib/unictype/categ_Zp.c: New file.
5215 * lib/unictype/categ_Zs.c: New file.
5216 * lib/unictype/categ_and.c: New file.
5217 * lib/unictype/categ_and_not.c: New file.
5218 * lib/unictype/categ_byname.c: New file.
5219 * lib/unictype/categ_name.c: New file.
5220 * lib/unictype/categ_none.c: New file.
5221 * lib/unictype/categ_of.c: New file.
5222 * lib/unictype/categ_or.c: New file.
5223 * lib/unictype/categ_test.c: New file.
5224 * lib/unictype/combining.c: New file.
5225 * lib/unictype/ctype_alnum.c: New file.
5226 * lib/unictype/ctype_alpha.c: New file.
5227 * lib/unictype/ctype_blank.c: New file.
5228 * lib/unictype/ctype_cntrl.c: New file.
5229 * lib/unictype/ctype_digit.c: New file.
5230 * lib/unictype/ctype_graph.c: New file.
5231 * lib/unictype/ctype_lower.c: New file.
5232 * lib/unictype/ctype_print.c: New file.
5233 * lib/unictype/ctype_punct.c: New file.
5234 * lib/unictype/ctype_space.c: New file.
5235 * lib/unictype/ctype_upper.c: New file.
5236 * lib/unictype/ctype_xdigit.c: New file.
5237 * lib/unictype/decdigit.c: New file.
5238 * lib/unictype/digit.c: New file.
5239 * lib/unictype/identsyntaxmap.h: New file.
5240 * lib/unictype/mirror.c: New file.
5241 * lib/unictype/numeric.c: New file.
5242 * lib/unictype/pr_alphabetic.c: New file.
5243 * lib/unictype/pr_ascii_hex_digit.c: New file.
5244 * lib/unictype/pr_bidi_arabic_digit.c: New file.
5245 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
5246 * lib/unictype/pr_bidi_block_separator.c: New file.
5247 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
5248 * lib/unictype/pr_bidi_common_separator.c: New file.
5249 * lib/unictype/pr_bidi_control.c: New file.
5250 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
5251 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
5252 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
5253 * lib/unictype/pr_bidi_european_digit.c: New file.
5254 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
5255 * lib/unictype/pr_bidi_left_to_right.c: New file.
5256 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
5257 * lib/unictype/pr_bidi_other_neutral.c: New file.
5258 * lib/unictype/pr_bidi_pdf.c: New file.
5259 * lib/unictype/pr_bidi_segment_separator.c: New file.
5260 * lib/unictype/pr_bidi_whitespace.c: New file.
5261 * lib/unictype/pr_byname.c: New file.
5262 * lib/unictype/pr_byname.gperf: New file.
5263 * lib/unictype/pr_combining.c: New file.
5264 * lib/unictype/pr_composite.c: New file.
5265 * lib/unictype/pr_currency_symbol.c: New file.
5266 * lib/unictype/pr_dash.c: New file.
5267 * lib/unictype/pr_decimal_digit.c: New file.
5268 * lib/unictype/pr_default_ignorable_code_point.c: New file.
5269 * lib/unictype/pr_deprecated.c: New file.
5270 * lib/unictype/pr_diacritic.c: New file.
5271 * lib/unictype/pr_extender.c: New file.
5272 * lib/unictype/pr_format_control.c: New file.
5273 * lib/unictype/pr_grapheme_base.c: New file.
5274 * lib/unictype/pr_grapheme_extend.c: New file.
5275 * lib/unictype/pr_grapheme_link.c: New file.
5276 * lib/unictype/pr_hex_digit.c: New file.
5277 * lib/unictype/pr_hyphen.c: New file.
5278 * lib/unictype/pr_id_continue.c: New file.
5279 * lib/unictype/pr_id_start.c: New file.
5280 * lib/unictype/pr_ideographic.c: New file.
5281 * lib/unictype/pr_ids_binary_operator.c: New file.
5282 * lib/unictype/pr_ids_trinary_operator.c: New file.
5283 * lib/unictype/pr_ignorable_control.c: New file.
5284 * lib/unictype/pr_iso_control.c: New file.
5285 * lib/unictype/pr_join_control.c: New file.
5286 * lib/unictype/pr_left_of_pair.c: New file.
5287 * lib/unictype/pr_line_separator.c: New file.
5288 * lib/unictype/pr_logical_order_exception.c: New file.
5289 * lib/unictype/pr_lowercase.c: New file.
5290 * lib/unictype/pr_math.c: New file.
5291 * lib/unictype/pr_non_break.c: New file.
5292 * lib/unictype/pr_not_a_character.c: New file.
5293 * lib/unictype/pr_numeric.c: New file.
5294 * lib/unictype/pr_other_alphabetic.c: New file.
5295 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
5296 * lib/unictype/pr_other_grapheme_extend.c: New file.
5297 * lib/unictype/pr_other_id_continue.c: New file.
5298 * lib/unictype/pr_other_id_start.c: New file.
5299 * lib/unictype/pr_other_lowercase.c: New file.
5300 * lib/unictype/pr_other_math.c: New file.
5301 * lib/unictype/pr_other_uppercase.c: New file.
5302 * lib/unictype/pr_paired_punctuation.c: New file.
5303 * lib/unictype/pr_paragraph_separator.c: New file.
5304 * lib/unictype/pr_pattern_syntax.c: New file.
5305 * lib/unictype/pr_pattern_white_space.c: New file.
5306 * lib/unictype/pr_private_use.c: New file.
5307 * lib/unictype/pr_punctuation.c: New file.
5308 * lib/unictype/pr_quotation_mark.c: New file.
5309 * lib/unictype/pr_radical.c: New file.
5310 * lib/unictype/pr_sentence_terminal.c: New file.
5311 * lib/unictype/pr_soft_dotted.c: New file.
5312 * lib/unictype/pr_space.c: New file.
5313 * lib/unictype/pr_terminal_punctuation.c: New file.
5314 * lib/unictype/pr_test.c: New file.
5315 * lib/unictype/pr_titlecase.c: New file.
5316 * lib/unictype/pr_unassigned_code_value.c: New file.
5317 * lib/unictype/pr_unified_ideograph.c: New file.
5318 * lib/unictype/pr_uppercase.c: New file.
5319 * lib/unictype/pr_variation_selector.c: New file.
5320 * lib/unictype/pr_white_space.c: New file.
5321 * lib/unictype/pr_xid_continue.c: New file.
5322 * lib/unictype/pr_xid_start.c: New file.
5323 * lib/unictype/pr_zero_width.c: New file.
5324 * lib/unictype/scripts.c: New file.
5325 * lib/unictype/sy_c_ident.c: New file.
5326 * lib/unictype/sy_c_whitespace.c: New file.
5327 * lib/unictype/sy_java_ident.c: New file.
5328 * lib/unictype/sy_java_whitespace.c: New file.
5330 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
5332 * lib/unictype/blocks.h: Likewise.
5333 * lib/unictype/categ_C.h: Likewise.
5334 * lib/unictype/categ_Cc.h: Likewise.
5335 * lib/unictype/categ_Cf.h: Likewise.
5336 * lib/unictype/categ_Cn.h: Likewise.
5337 * lib/unictype/categ_Co.h: Likewise.
5338 * lib/unictype/categ_Cs.h: Likewise.
5339 * lib/unictype/categ_L.h: Likewise.
5340 * lib/unictype/categ_Ll.h: Likewise.
5341 * lib/unictype/categ_Lm.h: Likewise.
5342 * lib/unictype/categ_Lo.h: Likewise.
5343 * lib/unictype/categ_Lt.h: Likewise.
5344 * lib/unictype/categ_Lu.h: Likewise.
5345 * lib/unictype/categ_M.h: Likewise.
5346 * lib/unictype/categ_Mc.h: Likewise.
5347 * lib/unictype/categ_Me.h: Likewise.
5348 * lib/unictype/categ_Mn.h: Likewise.
5349 * lib/unictype/categ_N.h: Likewise.
5350 * lib/unictype/categ_Nd.h: Likewise.
5351 * lib/unictype/categ_Nl.h: Likewise.
5352 * lib/unictype/categ_No.h: Likewise.
5353 * lib/unictype/categ_P.h: Likewise.
5354 * lib/unictype/categ_Pc.h: Likewise.
5355 * lib/unictype/categ_Pd.h: Likewise.
5356 * lib/unictype/categ_Pe.h: Likewise.
5357 * lib/unictype/categ_Pf.h: Likewise.
5358 * lib/unictype/categ_Pi.h: Likewise.
5359 * lib/unictype/categ_Po.h: Likewise.
5360 * lib/unictype/categ_Ps.h: Likewise.
5361 * lib/unictype/categ_S.h: Likewise.
5362 * lib/unictype/categ_Sc.h: Likewise.
5363 * lib/unictype/categ_Sk.h: Likewise.
5364 * lib/unictype/categ_Sm.h: Likewise.
5365 * lib/unictype/categ_So.h: Likewise.
5366 * lib/unictype/categ_Z.h: Likewise.
5367 * lib/unictype/categ_Zl.h: Likewise.
5368 * lib/unictype/categ_Zp.h: Likewise.
5369 * lib/unictype/categ_Zs.h: Likewise.
5370 * lib/unictype/categ_of.h: Likewise.
5371 * lib/unictype/combining.h: Likewise.
5372 * lib/unictype/ctype_alnum.h: Likewise.
5373 * lib/unictype/ctype_alpha.h: Likewise.
5374 * lib/unictype/ctype_blank.h: Likewise.
5375 * lib/unictype/ctype_cntrl.h: Likewise.
5376 * lib/unictype/ctype_digit.h: Likewise.
5377 * lib/unictype/ctype_graph.h: Likewise.
5378 * lib/unictype/ctype_lower.h: Likewise.
5379 * lib/unictype/ctype_print.h: Likewise.
5380 * lib/unictype/ctype_punct.h: Likewise.
5381 * lib/unictype/ctype_space.h: Likewise.
5382 * lib/unictype/ctype_upper.h: Likewise.
5383 * lib/unictype/ctype_xdigit.h: Likewise.
5384 * lib/unictype/decdigit.h: Likewise.
5385 * lib/unictype/digit.h: Likewise.
5386 * lib/unictype/mirror.h: Likewise.
5387 * lib/unictype/numeric.h: Likewise.
5388 * lib/unictype/pr_alphabetic.h: Likewise.
5389 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
5390 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5391 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
5392 * lib/unictype/pr_bidi_block_separator.h: Likewise.
5393 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
5394 * lib/unictype/pr_bidi_common_separator.h: Likewise.
5395 * lib/unictype/pr_bidi_control.h: Likewise.
5396 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
5397 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
5398 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5399 * lib/unictype/pr_bidi_european_digit.h: Likewise.
5400 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5401 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5402 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5403 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5404 * lib/unictype/pr_bidi_pdf.h: Likewise.
5405 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
5406 * lib/unictype/pr_bidi_whitespace.h: Likewise.
5407 * lib/unictype/pr_combining.h: Likewise.
5408 * lib/unictype/pr_composite.h: Likewise.
5409 * lib/unictype/pr_currency_symbol.h: Likewise.
5410 * lib/unictype/pr_dash.h: Likewise.
5411 * lib/unictype/pr_decimal_digit.h: Likewise.
5412 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
5413 * lib/unictype/pr_deprecated.h: Likewise.
5414 * lib/unictype/pr_diacritic.h: Likewise.
5415 * lib/unictype/pr_extender.h: Likewise.
5416 * lib/unictype/pr_format_control.h: Likewise.
5417 * lib/unictype/pr_grapheme_base.h: Likewise.
5418 * lib/unictype/pr_grapheme_extend.h: Likewise.
5419 * lib/unictype/pr_grapheme_link.h: Likewise.
5420 * lib/unictype/pr_hex_digit.h: Likewise.
5421 * lib/unictype/pr_hyphen.h: Likewise.
5422 * lib/unictype/pr_id_continue.h: Likewise.
5423 * lib/unictype/pr_id_start.h: Likewise.
5424 * lib/unictype/pr_ideographic.h: Likewise.
5425 * lib/unictype/pr_ids_binary_operator.h: Likewise.
5426 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
5427 * lib/unictype/pr_ignorable_control.h: Likewise.
5428 * lib/unictype/pr_iso_control.h: Likewise.
5429 * lib/unictype/pr_join_control.h: Likewise.
5430 * lib/unictype/pr_left_of_pair.h: Likewise.
5431 * lib/unictype/pr_line_separator.h: Likewise.
5432 * lib/unictype/pr_logical_order_exception.h: Likewise.
5433 * lib/unictype/pr_lowercase.h: Likewise.
5434 * lib/unictype/pr_math.h: Likewise.
5435 * lib/unictype/pr_non_break.h: Likewise.
5436 * lib/unictype/pr_not_a_character.h: Likewise.
5437 * lib/unictype/pr_numeric.h: Likewise.
5438 * lib/unictype/pr_other_alphabetic.h: Likewise.
5439 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
5440 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
5441 * lib/unictype/pr_other_id_continue.h: Likewise.
5442 * lib/unictype/pr_other_id_start.h: Likewise.
5443 * lib/unictype/pr_other_lowercase.h: Likewise.
5444 * lib/unictype/pr_other_math.h: Likewise.
5445 * lib/unictype/pr_other_uppercase.h: Likewise.
5446 * lib/unictype/pr_paired_punctuation.h: Likewise.
5447 * lib/unictype/pr_paragraph_separator.h: Likewise.
5448 * lib/unictype/pr_pattern_syntax.h: Likewise.
5449 * lib/unictype/pr_pattern_white_space.h: Likewise.
5450 * lib/unictype/pr_private_use.h: Likewise.
5451 * lib/unictype/pr_punctuation.h: Likewise.
5452 * lib/unictype/pr_quotation_mark.h: Likewise.
5453 * lib/unictype/pr_radical.h: Likewise.
5454 * lib/unictype/pr_sentence_terminal.h: Likewise.
5455 * lib/unictype/pr_soft_dotted.h: Likewise.
5456 * lib/unictype/pr_space.h: Likewise.
5457 * lib/unictype/pr_terminal_punctuation.h: Likewise.
5458 * lib/unictype/pr_titlecase.h: Likewise.
5459 * lib/unictype/pr_unassigned_code_value.h: Likewise.
5460 * lib/unictype/pr_unified_ideograph.h: Likewise.
5461 * lib/unictype/pr_uppercase.h: Likewise.
5462 * lib/unictype/pr_variation_selector.h: Likewise.
5463 * lib/unictype/pr_white_space.h: Likewise.
5464 * lib/unictype/pr_xid_continue.h: Likewise.
5465 * lib/unictype/pr_xid_start.h: Likewise.
5466 * lib/unictype/pr_zero_width.h: Likewise.
5467 * lib/unictype/scripts.h: Likewise.
5468 * lib/unictype/scripts_byname.gperf: Likewise.
5469 * lib/unictype/sy_c_ident.h: Likewise.
5470 * lib/unictype/sy_c_whitespace.h: Likewise.
5471 * lib/unictype/sy_java_ident.h: Likewise.
5472 * lib/unictype/sy_java_whitespace.h: Likewise.
5474 * lib/unictype/Makefile: New file.
5475 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
5477 * lib/unictype/3level.h: New file, copied from glibc.
5478 * lib/unictype/3levelbit.h: New file.
5480 2007-11-11 Bruno Haible <bruno@clisp.org>
5482 * modules/gperf: New file.
5483 * modules/iconv_open (Depends-on): Add it.
5484 (Makefile.am): Remove the GPERF definition.
5486 2007-11-11 Bruno Haible <bruno@clisp.org>
5488 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
5489 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
5491 2007-11-11 Bruno Haible <bruno@clisp.org>
5493 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
5494 (usage): Remove function.
5496 2007-11-11 Bruno Haible <bruno@clisp.org>
5498 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
5500 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
5502 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
5504 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
5505 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
5506 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
5508 2007-11-11 Bruno Haible <bruno@clisp.org>
5510 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
5511 roundf were declared but do not exist on functions.
5512 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
5513 roundl were declared but do not exist on functions.
5514 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
5515 HAVE_FLOORL_AND_CEILL, respectively.
5516 Needed for Sun C on Solaris 10.
5518 2007-11-11 Bruno Haible <bruno@clisp.org>
5520 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
5521 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
5522 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
5523 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
5524 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
5525 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
5526 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
5528 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
5529 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
5530 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
5531 of HAVE_DECL_ROUND*.
5532 * modules/math (Makefile.am): Update.
5534 2007-11-10 Bruno Haible <bruno@clisp.org>
5536 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
5537 ptrdiff_t as m4/intl.m4.
5539 2007-11-10 Jim Meyering <meyering@redhat.com>
5541 Avoid link failure for the argmatch test.
5542 * tests/test-argmatch.c (usage): Define function to avoid a link
5543 failure: argmatch_die requires a usage function.
5545 2007-11-09 Bruno Haible <bruno@clisp.org>
5547 * doc/functions/snprintf.texi: Mention BeOS deficiency.
5548 * doc/functions/vsnprintf.texi: Likewise.
5549 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
5550 with a size argument < 2.
5552 2007-11-09 Bruno Haible <bruno@clisp.org>
5554 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
5555 buffer. Fixes an inefficiency introduced on 2007-11-03.
5557 2007-11-09 Bruno Haible <bruno@clisp.org>
5559 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
5560 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
5562 2007-11-08 Jim Meyering <meyering@redhat.com>
5564 Change cache variable name prefix "jm_" to "gl_" everywhere.
5565 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
5566 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
5567 * m4/uptime.m4: s/gl_/jm_/
5569 2007-11-07 Bruno Haible <bruno@clisp.org>
5571 Update to GNU gettext 0.17.
5572 * m4/intl.m4: Update to GNU gettext 0.17.
5573 * m4/po.m4: Likewise.
5574 * modules/gettext (Files): Remove m4/ulonglong.m4.
5575 (configure.ac): Require gettext infrastructure from version 0.17.
5577 2007-11-06 Bruno Haible <bruno@clisp.org>
5579 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
5580 symbolic values are not defined in a public header.
5581 * lib/freadable.c (freadable) [QNX]: Likewise.
5582 * lib/freadahead.c (freadahead) [QNX]: Likewise.
5583 * lib/freading.c (freading) [QNX]: Likewise.
5584 * lib/fseterr.c (fseterr) [QNX]: Likewise.
5585 * lib/fwritable.c (fwritable) [QNX]: Likewise.
5586 * lib/fwriting.c (fwriting) [QNX]: Likewise.
5587 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
5588 Reported by Alain Magloire.
5590 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
5592 2007-11-05 Bruno Haible <bruno@clisp.org>
5594 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
5595 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
5596 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
5597 Reported by Eric Blake.
5599 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5600 Bruno Haible <bruno@clisp.org>
5602 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
5603 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
5604 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
5605 (malloc): Undefine also before including <stdlib.h>.
5606 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
5607 Needed on OSF/1 4.0.
5609 2007-11-05 Jim Meyering <meyering@redhat.com>
5611 git-version-gen: sync from coreutils.
5612 * build-aux/git-version-gen: Add comments.
5613 Change the first '-' to '.' in the snapshot version string,
5614 e.g., 6.9-377-08144 -> 6.9.377-08144
5615 Remove first parameter.
5616 Don't declare a version "-dirty" merely because a time
5619 2007-11-04 Bruno Haible <bruno@clisp.org>
5621 * lib/lock.h: Protect all macro definitions containing an 'if'
5622 statement through a "do { ... } while (0)".
5623 * lib/tls.h: Likewise.
5625 2007-11-04 Bruno Haible <bruno@clisp.org>
5627 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
5629 2007-11-04 Bruno Haible <bruno@clisp.org>
5631 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
5632 * modules/fprintf-posix (Depends-on): Add nocrash.
5633 * modules/snprintf-posix (Depends-on): Likewise.
5634 * modules/sprintf-posix (Depends-on): Likewise.
5635 * modules/vasnprintf-posix (Depends-on): Likewise.
5636 * modules/vasprintf-posix (Depends-on): Likewise.
5637 * modules/vfprintf-posix (Depends-on): Likewise.
5638 * modules/vsnprintf-posix (Depends-on): Likewise.
5639 * modules/vsprintf-posix (Depends-on): Likewise.
5640 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
5641 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
5642 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
5643 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
5644 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
5645 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
5646 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
5648 2007-11-04 Bruno Haible <bruno@clisp.org>
5650 * modules/nocrash: New file.
5651 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
5652 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
5654 2007-11-04 Bruno Haible <bruno@clisp.org>
5656 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
5658 * tests/test-vasprintf-posix.c (test_function): Likewise.
5659 * tests/test-snprintf-posix.h (test_function): Likewise.
5660 * tests/test-sprintf-posix.h (test_function): Likewise.
5662 Fix *printf behaviour for large precisions on mingw and BeOS.
5663 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
5664 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
5665 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
5666 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
5667 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
5668 gl_PRINTF_PRECISION and test its result. Invoke
5669 gl_PREREQ_VASNPRINTF_PRECISION.
5670 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5671 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5672 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5673 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5674 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5675 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5676 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5677 * doc/functions/fprintf.texi: Update.
5678 * doc/functions/printf.texi: Update.
5679 * doc/functions/snprintf.texi: Update.
5680 * doc/functions/sprintf.texi: Update.
5681 * doc/functions/vfprintf.texi: Update.
5682 * doc/functions/vprintf.texi: Update.
5683 * doc/functions/vsnprintf.texi: Update.
5684 * doc/functions/vsprintf.texi: Update.
5686 2007-11-04 Bruno Haible <bruno@clisp.org>
5688 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
5690 2007-11-04 Bruno Haible <bruno@clisp.org>
5692 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
5693 Reported by Sylvain Beucler <beuc@gnu.org>.
5695 2007-11-03 Bruno Haible <bruno@clisp.org>
5697 * tests/test-fprintf-posix2.sh: New file.
5698 * tests/test-fprintf-posix2.c: New file.
5699 * modules/fprintf-posix-tests (Files): Add them.
5700 (TESTS): Add test-fprintf-posix2.sh.
5701 (configure.ac): Check for getrlimit and setrlimit.
5702 (check_PROGRAMS): Add test-fprintf-posix2.
5704 * tests/test-printf-posix2.sh: New file.
5705 * tests/test-printf-posix2.c: New file.
5706 * modules/printf-posix-tests (Files): Add them.
5707 (TESTS): Add test-printf-posix2.sh.
5708 (configure.ac): Check for getrlimit and setrlimit.
5709 (check_PROGRAMS): Add test-printf-posix2.
5711 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
5712 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
5713 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
5714 (decode_double): New function, copied from decode_long_double.
5715 (scale10_round_decimal_decoded): New function, extracted from
5716 scale10_round_decimal_long_double.
5717 (scale10_round_decimal_long_double): Use it.
5718 (scale10_round_decimal_double): New function.
5719 (floorlog10): New function.
5720 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
5721 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
5722 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
5723 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
5724 gl_PRINTF_ENOMEM and test its result. Invoke
5725 gl_PREREQ_VASNPRINTF_ENOMEM.
5726 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
5727 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5728 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5729 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5730 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
5731 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5732 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5733 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
5734 * modules/snprintf-posix (Depends-on): Likewise.
5735 * modules/sprintf-posix (Depends-on): Likewise.
5736 * modules/vasnprintf-posix (Depends-on): Likewise.
5737 * modules/vasprintf-posix (Depends-on): Likewise.
5738 * modules/vfprintf-posix (Depends-on): Likewise.
5739 * modules/vsnprintf-posix (Depends-on): Likewise.
5740 * modules/vsprintf-posix (Depends-on): Likewise.
5741 * doc/functions/fprintf.texi: Update.
5742 * doc/functions/printf.texi: Update.
5743 * doc/functions/snprintf.texi: Update.
5744 * doc/functions/sprintf.texi: Update.
5745 * doc/functions/vfprintf.texi: Update.
5746 * doc/functions/vprintf.texi: Update.
5747 * doc/functions/vsnprintf.texi: Update.
5748 * doc/functions/vsprintf.texi: Update.
5750 2007-11-03 Bruno Haible <bruno@clisp.org>
5752 * modules/frexp-nolibm-tests: New file.
5754 * modules/frexp-nolibm: New file.
5755 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
5757 2007-11-03 Bruno Haible <bruno@clisp.org>
5759 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
5760 value is C99 compliant.
5761 Needed for OSF/1 5.1.
5763 2007-11-03 Bruno Haible <bruno@clisp.org>
5765 Fix out-of-memory handling of vasnprintf.
5766 * lib/printf-parse.c: Include <errno.h>.
5767 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
5768 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
5771 2007-11-02 Eric Blake <ebb9@byu.net>
5773 Fix tests on cygwin.
5774 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
5776 2007-11-01 Bruno Haible <bruno@clisp.org>
5778 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
5780 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
5781 needed for POSIX compatibility.
5783 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
5785 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
5786 for compatibility with GNU.
5788 2007-11-01 Bruno Haible <bruno@clisp.org>
5790 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
5791 (putenv): Renamed from rpl_putenv. Change argument type from
5792 'const char *' to 'char *'.
5793 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
5794 of defining putenv in config.h, just set REPLACE_PUTENV.
5795 * modules/putenv (Depends-on): Add stdlib.
5796 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5797 (Include): Use <stdlib.h>.
5798 * lib/stdlib.in.h (putenv): New declaration.
5799 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
5801 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
5803 Needed for MacOS X 10.5.0.
5804 Reported by Peter O'Gorman <peter@pogma.com>.
5806 2007-11-01 Jim Meyering <meyering@redhat.com>
5808 Treat an empty date string exactly like "0".
5809 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
5810 if the remaining date string (to be parsed) is empty, use "0".
5811 Reported by Mischa Molhoek and discussed in this thread:
5812 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
5814 2007-10-31 Bruno Haible <bruno@clisp.org>
5816 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
5817 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
5818 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
5819 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
5820 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
5821 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
5823 2007-10-31 Bruno Haible <bruno@clisp.org>
5825 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
5826 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
5827 (AC_TYPE_LONG_LONG_INT): Use it.
5828 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
5830 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
5832 * modules/stdint (Files): Remove m4/ulonglong.m4.
5833 * modules/strtoull (Files): Use m4/longlong.m4 instead of
5835 * modules/strtoumax (Files): Likewise.
5837 2007-10-30 Bruno Haible <bruno@clisp.org>
5839 * modules/xvasprintf-posix: New file.
5840 Suggested by Eric Blake.
5842 2007-10-30 Bruno Haible <bruno@clisp.org>
5844 * modules/xprintf-posix-tests: New file.
5845 * tests/test-xprintf-posix.sh: New file.
5846 * tests/test-xprintf-posix.c: New file.
5847 * tests/test-xfprintf-posix.c: New file.
5849 * modules/xprintf-posix: New file.
5851 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5853 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
5854 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
5855 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
5857 2007-10-29 Bruno Haible <bruno@clisp.org>
5859 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
5860 contain the special marker '_cv_'.
5861 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
5862 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
5863 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
5864 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
5865 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
5866 Reported by Ralf Wildenhues.
5868 2007-10-29 Bruno Haible <bruno@clisp.org>
5870 * gnulib-tool (func_import): When --lgpl is not specified, set
5871 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
5873 Reported by Simon Josefsson.
5875 2007-10-28 Bruno Haible <bruno@clisp.org>
5877 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
5878 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
5880 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
5881 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
5884 2007-10-28 Bruno Haible <bruno@clisp.org>
5886 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
5887 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
5889 2007-10-28 Bruno Haible <bruno@clisp.org>
5891 Fix link errors with Sun C 5.0 on Solaris 10.
5892 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
5893 function is declared but not present in the compiler's libm.
5894 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
5895 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5896 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
5897 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
5898 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
5899 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
5900 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
5901 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
5902 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
5903 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
5904 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
5907 2007-10-28 Bruno Haible <bruno@clisp.org>
5909 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
5910 gl_FUNC_FLOORL. Cache the result.
5911 (gl_FUNC_FLOORL): Use it.
5912 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
5913 gl_FUNC_CEILL. Cache the result.
5914 (gl_FUNC_CEILL): Use it.
5916 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
5917 gl_FUNC_FLOOR. Cache the result.
5918 (gl_FUNC_FLOOR): Use it.
5919 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
5920 gl_FUNC_CEIL. Cache the result.
5921 (gl_FUNC_CEIL): Use it.
5923 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
5924 gl_FUNC_FLOORF. Cache the result.
5925 (gl_FUNC_FLOORF): Use it.
5926 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
5927 gl_FUNC_CEILF. Cache the result.
5928 (gl_FUNC_CEILF): Use it.
5930 2007-10-28 Bruno Haible <bruno@clisp.org>
5932 * gnulib-tool: Allow specifying the LGPL version number through
5933 --lgpl=2 or --lgpl=3.
5934 (func_usage): Document --lgpl with argument.
5935 Handle --lgpl=... arguments.
5936 (func_import): Recognize also gl_LGPL calls with an argument. When
5937 --lgpl=2 is used and the module's license is just LGPL, report an
5938 error. Set sed_transform_lib_file according to the lgpl variable. In
5939 the generated files, use --lgpl or gl_LGPL invocations with argument,
5941 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
5943 * doc/gnulib-tool.texi (Modified imports): Update explanation of
5946 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5947 Bruno Haible <bruno@clisp.org>
5949 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
5950 (u16_uctomb_aux): Likewise.
5951 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
5953 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
5955 2007-10-28 Bruno Haible <bruno@clisp.org>
5957 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
5958 Invoke AM_GETTEXT_OPTION if it exists.
5959 * modules/vasprintf: Likewise.
5960 * modules/verror: Likewise.
5961 * modules/xprintf: Likewise.
5962 * modules/xvasprintf: Likewise.
5964 2007-10-27 Ben Pfaff <blp@gnu.org>
5966 * lib/math.in.h: Define isfinite macro and prototypes for
5967 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
5969 * m4/math_h.m4: New substitutions for isfinite module.
5970 * lib/isfinite.c: New file.
5971 * m4/isfinite.m4: New file.
5972 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
5973 * modules/isfinite: New file.
5974 * modules/isfinite-tests: New file.
5975 * tests/tests-isfinite.c: New file.
5976 * doc/functions/isfinite.texi: Mention isfinite module.
5977 * MODULES.html.sh: Mention new module.
5979 2007-10-27 Ben Pfaff <blp@gnu.org>
5981 Ralf Wildenhues reported that Tru64 4.0D declares the round
5982 functions but does not have definitions.
5983 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
5984 cannot be found in any library, set the output variable to
5985 "missing" instead of "".
5986 * m4/round.m4: Also use our substitute if we cannot find round in
5987 any library, even if it is declared.
5988 * m4/roundf.m4: Likewise for roundf.
5989 * m4/roundl.m4: Likewise for roundl.
5990 * lib/math.in.h: Undefine roundf, round, roundl before defining
5991 their replacements, to allow for hypothetical systems where these
5992 may be defined as macros but not available in libraries.
5994 2007-10-27 Bruno Haible <bruno@clisp.org>
5996 * doc/gnulib.texi: Invoke @firstparagraphindent.
5997 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
5999 (Source changes): New section.
6001 2007-10-26 Bruno Haible <bruno@clisp.org>
6003 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
6004 borrowed from autoconf.
6006 2007-10-26 Bruno Haible <bruno@clisp.org>
6008 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
6009 strerror returned the empty string. Needed on HP-UX 11.00.
6011 2007-10-24 Micah Cowan <micah@cowan.name>
6013 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
6014 * build-aux/bootstrap: Remove support for now-unnecessary option,
6015 --cvs-user, and envvars CVS_USER, CVS_RSH.
6017 2007-10-24 Jim Meyering <meyering@redhat.com>
6019 Avoid diagnostics from sha1sum when there is no cached checksum.
6020 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
6021 if the po.s1 file hasn't been created yet.
6023 * build-aux/bootstrap: Sync from coreutils:
6024 2007-10-24 Jim Meyering <meyering@redhat.com>
6025 Get gnulib from the git repository, not from an obsolete cvs one.
6026 * build-aux/bootstrap: Suggestion from Micah Cowan.
6027 2007-10-04 Jim Meyering <jim@meyering.net>
6028 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
6029 (update_po_files): Work also when there are no .po files in po/.
6031 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
6033 * README: Append ".git" to git and cg examples.
6034 Problem reported by Benoit Sigoure.
6036 2007-10-23 Micah Cowan <micah@cowan.name>
6038 * users.txt: Add wget.
6040 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6042 Fix linking of some unistdio tests on FreeBSD.
6043 * modules/unistdio/u16-vsnprintf-tests
6044 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
6045 * modules/unistdio/u16-vsprintf-tests
6046 (test_u16_vsnprintf1_LDADD): Likewise.
6047 * modules/unistdio/u32-vsnprintf-tests
6048 (test_u32_vsnprintf1_LDADD): Likewise.
6049 * modules/unistdio/u32-vsprintf-tests
6050 (test_u32_vsprintf1_LDADD): Likewise.
6051 * modules/unistdio/u8-vsnprintf-tests
6052 (test_u8_vsnprintf1_LDADD): Likewise.
6053 * modules/unistdio/u8-vsprintf-tests
6054 (test_u8_vsprintf1_LDADD): Likewise.
6055 * modules/unistdio/ulc-vsnprintf-tests
6056 (test_ulc_vsnprintf1_LDADD): Likewise.
6057 * modules/unistdio/ulc-vsprintf-tests
6058 (test_ulc_vsprintf1_LDADD): Likewise.
6060 Fix linking of some uniconv tests on FreeBSD.
6061 * modules/uniconv/u16-conv-from-enc-tests
6062 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
6063 * modules/uniconv/u16-conv-to-enc-tests
6064 (test_u16_conv_to_enc_LDADD): Likewise.
6065 * modules/uniconv/u16-strconv-from-enc-tests
6066 (test_u16_strconv_from_enc_LDADD): Likewise.
6067 * modules/uniconv/u16-strconv-to-enc-tests
6068 (test_u16_strconv_to_enc_LDADD): Likewise.
6069 * modules/uniconv/u32-conv-from-enc-tests
6070 (test_u32_conv_from_enc_LDADD): Likewise.
6071 * modules/uniconv/u32-conv-to-enc-tests
6072 (test_u32_conv_to_enc_LDADD): Likewise.
6073 * modules/uniconv/u32-strconv-from-enc-tests
6074 (test_u32_strconv_from_enc_LDADD): Likewise.
6075 * modules/uniconv/u32-strconv-to-enc-tests
6076 (test_u32_strconv_to_enc_LDADD): Likewise.
6077 * modules/uniconv/u8-conv-from-enc-tests
6078 (test_u8_conv_from_enc_LDADD): Likewise.
6079 * modules/uniconv/u8-conv-to-enc-tests
6080 (test_u8_conv_to_enc_LDADD): Likewise.
6081 * modules/uniconv/u8-strconv-from-enc-tests
6082 (test_u8_strconv_from_enc_LDADD): Likewise.
6083 * modules/uniconv/u8-strconv-to-enc-tests
6084 (test_u8_strconv_to_enc_LDADD): Likewise.
6086 2007-10-22 Bruno Haible <bruno@clisp.org>
6088 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
6091 2007-10-22 Eric Blake <ebb9@byu.net>
6093 Tweak x*printf documentation.
6094 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
6095 variable name and comments.
6096 Suggested by Bruno Haible.
6098 2007-10-22 Bruno Haible <bruno@clisp.org>
6100 * lib/acl.c (copy_acl): Fix file name in comment.
6102 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
6104 Fix Tru64 problem with stdbool.h.
6105 * lib/stdbool.in.h (false, true):
6106 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
6107 Don't declare as an enum in this situation; it runs afoul of Tru64.
6108 Problem reported by Steven M. Schweda in
6109 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
6111 2007-10-22 Eric Blake <ebb9@byu.net>
6113 Also wrap vf?printf.
6114 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
6115 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
6116 (xvprintf, xvfprintf): New functions.
6118 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6120 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
6121 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
6123 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
6124 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
6126 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
6128 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
6131 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6134 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
6135 Undef `sys' after including sys/table.h, for Tru64 4.0D.
6137 * tests/test-i-ring.c: Work for C89.
6139 2007-10-22 Bruno Haible <bruno@clisp.org>
6141 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
6142 -1u, in preprocessor expression, so that we don't test for the bug
6143 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
6144 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
6146 2007-10-22 Eric Blake <ebb9@byu.net>
6148 * tests/test-yesno.sh: Silence stderr during test.
6150 2007-10-22 Simon Josefsson <simon@josefsson.org>
6152 * modules/crypto/gc-camellia: New file.
6154 * m4/gc-camellia.m4: New file.
6156 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
6158 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
6160 2007-10-22 Simon Josefsson <simon@josefsson.org>
6162 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
6163 --help to stdout. Reported by sms@antinode.org (Steven
6166 2007-10-22 Simon Josefsson <simon@josefsson.org>
6168 * users.txt: Fix link to libksba.
6170 2007-10-21 Ben Pfaff <blp@gnu.org>
6172 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
6173 round.c roundf implementation that depends on floorf and ceilf to
6174 be tested unconditionally.
6176 2007-10-21 Ben Pfaff <blp@gnu.org>
6178 * m4/check-libm-func.m4: Removed.
6179 * m4/check-math-lib.m4: New file.
6180 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
6181 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
6182 definition and lack of AC_LIBOBJ([roundf]).
6183 * m4/roundl.m4: Ditto, and similarly for roundl.
6184 * modules/round: Reference new m4 file.
6185 * modules/roundf: Ditto.
6186 * modules/roundl: Ditto.
6187 * tests/test-round2.c (main): Use ROUND instead of round.
6188 Bug report from Bruno Haible.
6190 2007-10-21 Bruno Haible <bruno@clisp.org>
6192 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
6195 2007-10-21 Bruno Haible <bruno@clisp.org>
6197 * tests/test-wcwidth.c (main): Allow negative result for some control
6200 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
6201 Needed on OSF/1 5.1.
6203 2007-10-21 Bruno Haible <bruno@clisp.org>
6205 * tests/test-floorf1.c: Include isnanf.h.
6206 (main): Use isnanf() instead of isnan().
6207 * tests/test-ceilf1.c: Include isnanf.h.
6208 (main): Use isnanf() instead of isnan().
6209 * tests/test-truncf1.c: Include isnanf.h.
6210 (main): Use isnanf() instead of isnan().
6211 * tests/test-roundf1.c: Include isnanf.h.
6212 (main): Use isnanf() instead of isnan().
6214 2007-10-21 Eric Blake <ebb9@byu.net>
6216 * users.txt: Update URL for m4.
6218 2007-10-21 Bruno Haible <bruno@clisp.org>
6220 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
6222 2007-10-21 Bruno Haible <bruno@clisp.org>
6224 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
6225 Git's management files if the CVS files are not present.
6227 2007-10-20 Bruno Haible <bruno@clisp.org>
6229 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
6232 2007-10-20 Ben Pfaff <blp@gnu.org>
6234 * lib/math.in.h: Declare round, roundf, roundl if we are providing
6236 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
6237 * lib/round.c: New file.
6238 * lib/roundf.c: New file.
6239 * lib/roundl.c: New file.
6240 * m4/round.m4: New file.
6241 * m4/roundf.m4: New file.
6242 * m4/roundl.m4: New file.
6243 * m4/check-libm-func-m4: New file.
6244 * modules/math: Replace round, roundf, roundl related @VARS@ in
6246 * modules/round: New file.
6247 * modules/round-tests: New file.
6248 * modules/roundf: New file.
6249 * modules/roundf-tests: New file.
6250 * modules/roundl: New file.
6251 * modules/roundl-tests: New file.
6252 * tests/test-round1.c: New file.
6253 * tests/test-round2.c: New file.
6254 * tests/test-roundf1.c: New file.
6255 * tests/test-roundf2.c: New file.
6256 * tests/test-roundl.c: New file.
6257 * doc/functions/round.texi: Mention round module.
6258 * doc/functions/roundf.texi: Mention roundf module.
6259 * doc/functions/roundl.texi: Mention roundl module.
6260 * MODULES.html.sh: Mention new modules.
6261 Thanks to Bruno Haible for suggestions.
6263 2007-10-20 Jim Meyering <meyering@redhat.com>
6265 * lib/xprintf.c: Include <config.h> unconditionally.
6267 Change xprintf's license to GPL.
6268 * modules/xprintf (License): s/LGPL/GPL/, since this module
6269 depends on modules (exit and exitfail) which are GPL.
6270 Suggestion from Bruno Haible.
6273 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
6274 Use a clearer diagnostic.
6275 Patch from Bruno Haible.
6277 2007-10-20 Bruno Haible <bruno@clisp.org>
6279 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
6280 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
6281 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6283 2007-10-20 Bruno Haible <bruno@clisp.org>
6285 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
6286 precision in the comparison result > x - 1 or similar.
6287 * tests/test-ceilf2.c (correct_result_p): Likewise.
6288 * tests/test-truncf2.c (correct_result_p): Likewise.
6289 * tests/test-trunc2.c (correct_result_p): Likewise.
6290 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6292 2007-10-20 Bruno Haible <bruno@clisp.org>
6294 * modules/ceil: New file.
6295 * m4/ceil.m4: New file.
6296 * doc/functions/ceil.texi: Mention the 'ceil' module.
6298 2007-10-20 Bruno Haible <bruno@clisp.org>
6300 * modules/floor: New file.
6301 * m4/floor.m4: New file.
6302 * doc/functions/floor.texi: Mention the 'floor' module.
6304 2007-10-20 Bruno Haible <bruno@clisp.org>
6306 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
6308 * modules/floorf-tests (Depends-on): Likewise.
6309 * modules/truncf-tests (Depends-on): Likewise.
6310 * modules/trunc-tests (Depends-on): Likewise.
6311 Reported by Ben Pfaff.
6313 2007-10-19 Jim Meyering <meyering@redhat.com>
6315 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
6316 Don't bother testing specific errno values. Just test ferror.
6319 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
6321 2007-10-19 Bruno Haible <bruno@clisp.org>
6323 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
6325 * modules/javaexec (Makefile.am): Likewise.
6326 * modules/relocatable-prog (Makefile.am): Likewise.
6327 Suggested by Jim Meyering.
6329 2007-10-18 Bruno Haible <bruno@clisp.org>
6331 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
6332 Reported by Jim Meyering.
6334 2007-10-18 Eric Blake <ebb9@byu.net>
6336 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
6338 2007-10-18 Bruno Haible <bruno@clisp.org>
6340 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
6341 the format string into writable memory. Needed in Fortify conditions.
6343 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
6344 Bruno Haible <bruno@clisp.org>
6346 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
6347 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
6348 * modules/trim (Depends-on): Add mbchar.
6349 (configure.ac): Add gl_FUNC_MBRTOWC.
6350 (Makefile.am): Augment lib_SOURCES.
6352 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
6354 Modify glob.c to use fstatat and dirfd, to simplify it.
6355 Suggested by Eric Blake.
6356 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
6357 Don't include <stdbool.h>; not used.
6358 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
6359 (link_exists_p): Simplify implementation, since we can now assume
6361 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
6363 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6365 * gnulib-tool (func_get_dependencies): Fix sed script to
6368 2007-10-17 Bruno Haible <bruno@clisp.org>
6370 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
6371 allow locale names without encoding suffix.
6372 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
6373 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6375 2007-10-16 Bruno Haible <bruno@clisp.org>
6377 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
6378 * lib/getgroups.c (getgroups): Likewise.
6379 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
6381 2007-10-16 Bruno Haible <bruno@clisp.org>
6383 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
6384 * modules/malloc-posix (License): Likewise.
6385 * modules/realloc-posix (License): Likewise.
6386 * modules/calloc-posix (License): Likewise.
6387 * modules/intprops (License): Change from GPL to LGPL, with
6388 Paul Eggert's approval.
6390 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
6392 Merge glibc changes into lib/glob.c.
6394 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
6395 2007-10-15 04:59:03 UTC. Here are the changes:
6397 2007-10-14 Ulrich Drepper <drepper@redhat.com>
6399 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
6401 * lib/glob.c: Add some branch prediction throughout.
6403 2007-10-07 Ulrich Drepper <drepper@redhat.com>
6406 * lib/glob.c (glob): Recognize patterns starting \/.
6408 2007-02-14 Jakub Jelinek <jakub@redhat.com>
6411 * lib/glob.c (attribute_hidden): Define if not defined.
6412 (glob): Unescape dirname, filename or username when needed and not
6413 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
6414 is NULL. Handle unescaped [ in pattern without closing ].
6415 Don't pass GLOB_CHECK down to recursive glob for directories.
6416 (__glob_pattern_type): New function.
6417 (__glob_pattern_p): Implement using __glob_pattern_type.
6418 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
6419 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
6420 Remove unreachable code.
6422 2006-09-30 Ulrich Drepper <drepper@redhat.com>
6424 * lib/glob.c (glob_in_dir): Add some comments and asserts to
6425 explain why there are no leaks.
6427 2006-09-25 Jakub Jelinek <jakub@redhat.com>
6430 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
6431 time, rather allocate increasingly bigger arrays of pointers, if
6432 possible with alloca, if too large with malloc.
6434 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
6436 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
6437 Problem reported by H.Merijn Brand in
6438 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
6439 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
6440 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
6442 2007-10-15 Bruno Haible <bruno@clisp.org>
6444 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
6445 with explicit rpl_ prefix.
6446 * lib/fopen.c (fopen): Likewise.
6447 * lib/freopen.c (freopen): Likewise.
6448 * lib/iconv.c (iconv): Likewise.
6449 * lib/iconv_close.c (iconv_close): Likewise.
6451 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6453 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
6455 2007-10-15 Bruno Haible <bruno@clisp.org>
6457 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
6458 <stddef.h> instead of <stdlib.h> since we only need NULL.
6459 Reported by Ben Pfaff <blp@cs.stanford.edu>.
6461 2007-10-15 Bruno Haible <bruno@clisp.org>
6463 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
6464 Replace paragraph talking about LIBOBJS.
6465 Reported by Colin Watson <cjwatson@debian.org>.
6467 2007-10-15 Bruno Haible <bruno@clisp.org>
6469 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
6470 <stdlib.h> before using NULL.
6472 2007-10-15 Simon Josefsson <simon@josefsson.org>
6474 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
6475 Reported by Albert Chin <china@thewrittenword.com>.
6477 2007-10-14 Bruno Haible <bruno@clisp.org>
6479 * modules/iconv_open-utf-tests: New file.
6480 * tests/test-iconv-utf.c: New file.
6482 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
6483 * modules/iconv_open-utf: New file.
6484 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
6485 (iconv, iconv_close): New declarations.
6486 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
6488 (iconv_open): Add special handling of conversion between UTF-8 and
6490 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
6491 * lib/iconv_close.c: New file.
6492 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
6494 (gl_FUNC_ICONV_OPEN): Use it.
6495 (gl_FUNC_ICONV_OPEN_UTF): New macro.
6496 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
6497 and REPLACE_ICONV_UTF.
6498 * modules/iconv_open (Depends-on): Add c-strcase.
6499 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
6501 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
6503 2007-10-13 Albert Chin <china@thewrittenword.com>
6504 Bruno Haible <bruno@clisp.org>
6506 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
6507 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
6509 2007-10-13 Bruno Haible <bruno@clisp.org>
6511 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
6512 defined, use the ISO C99 inline semantics.
6513 * lib/argp.h (ARGP_EI): Likewise.
6515 2007-10-13 Bruno Haible <bruno@clisp.org>
6517 Handle 'inline' change in gcc 4.3.0.
6518 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
6519 argp_fmtstream_write, argp_fmtstream_set_lmargin,
6520 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
6521 argp_fmtstream_point): Disable 'extern' declaration if the function
6522 definition is going to be provided inline.
6523 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
6524 semantics, not the ISO C99 inline semantics.
6525 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
6526 'extern' declaration if the function definition is going to be provided
6528 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
6529 the GNU C inline semantics, not the ISO C99 inline semantics. With
6530 GCC 4.2, avoid a warning.
6532 2007-10-13 Bruno Haible <bruno@clisp.org>
6534 * lib/freading.h (freading): Enable the use of __freading for
6536 * lib/freading.c (freading): Likewise.
6538 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
6540 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
6541 "warning: C99 inline functions are not supported; using GNU89".
6543 2007-10-12 Bruno Haible <bruno@clisp.org>
6545 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
6547 * tests/test-ceilf2.c: New file.
6548 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
6550 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
6551 * modules/ceilf-tests: Update.
6553 2007-10-12 Bruno Haible <bruno@clisp.org>
6555 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
6557 * tests/test-floorf2.c: New file.
6558 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
6560 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
6561 * modules/floorf-tests: Update.
6563 2007-10-12 Bruno Haible <bruno@clisp.org>
6565 * tests/test-trunc2.c: New file.
6566 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
6568 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
6569 * modules/trunc-tests: Update.
6571 2007-10-12 Bruno Haible <bruno@clisp.org>
6573 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
6575 * tests/test-truncf2.c: New file.
6576 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
6578 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
6579 * modules/truncf-tests: Update.
6581 2007-10-11 Eric Blake <ebb9@byu.net>
6583 Don't claim strerror is broken on Interix.
6584 * doc/functions/strerror.texi (strerror): Known broken systems are
6585 now Solaris 8, and not Interix.
6586 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
6587 Interix on cross-compile.
6588 Reported by Martin Koeppe in
6589 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
6591 2007-10-11 Bruno Haible <bruno@clisp.org>
6593 * modules/i-ring-tests: New file.
6594 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
6597 2007-10-11 Bruno Haible <bruno@clisp.org>
6599 * modules/filenamecat-tests: New file.
6600 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
6601 * lib/filenamecat.c: Remove test code.
6603 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
6605 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
6607 * lib/strerror.c: Include <string.h> always, to test interface,
6608 and to remove the need for the dummy.
6609 Include intprops.h to compute width instead of doing it ourselves
6610 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
6611 (strerror): Define it to return NULL if there's no system strerror.
6612 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
6613 Omit !HAVE_STRERROR code. We don't need to worry about supporting
6614 ancient pre-strerror Unix systems well any more. Saying "unknown
6615 system error" is enough.
6616 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
6617 simpler strerror.c implementation.
6618 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
6619 Simplify the tests to reflect the simpler strerror implementation.
6620 * modules/strerror (Depends-on): Add intprops.
6622 2007-10-09 Eric Blake <ebb9@byu.net>
6624 Silence test-fpending.
6625 * modules/fpending-tests (Files): Add wrapper script.
6626 * tests/test-fpending.sh: New file.
6628 2007-10-09 Bruno Haible <bruno@clisp.org>
6630 * MODULES.html.sh (func_module): Don't create a hyperlink for
6631 function names like 'printf_frexp'.
6632 (Misc): Add crc, memxor.
6633 (Characteristics of floating types): New section.
6634 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
6635 isnanf-nolibm, signbit, trunc, truncf, truncl.
6636 (Enhancements for ISO C 99 functions): New subsection Input/output.
6637 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
6638 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
6639 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
6640 (Compatibility checks for POSIX:2001 functions): Add clock-time.
6641 (Enhancements for POSIX:2001 functions): Add chdir-long.
6642 (File system functions): Add areadlink, chdir-safer, read-file.
6644 (File system as inode set): New section.
6645 (Date and time): Add gethrxtime.
6646 (Multithreading): Add openmp.
6647 (Internationalization functions): Add localename.
6648 (Unicode string functions): Add unistr/u*-mbsnlen.
6649 (Support for maintaining and releasing projects): Add git-version-gen.
6650 (Lone files): Remove directories.
6652 2007-10-08 Ben Pfaff <blp@gnu.org>
6654 * lib/xmalloca.h: Fix typo in comment.
6656 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
6658 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
6659 when avoiding problems with integer overflow. Use a portable test
6662 2007-10-08 Simon Josefsson <simon@josefsson.org>
6664 * modules/dummy (License): Change to LGPLv2+.
6665 * modules/float (License): Likewise
6666 * modules/realloc (License): Likewise
6667 * modules/stdlib (License): Likewise
6669 2007-10-07 Bruno Haible <bruno@clisp.org>
6671 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
6672 * floor.c (TWO_MANT_DIG): Likewise.
6673 * ceil.c (TWO_MANT_DIG): Likewise.
6674 Reported by Ben Pfaff.
6676 2007-10-07 Bruno Haible <bruno@clisp.org>
6678 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
6679 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
6680 * lib/frexp.c (FUNC): Likewise.
6681 * lib/printf-frexp.h (printf_frexp): Likewise.
6682 * lib/printf-frexpl.h (printf_frexpl): Likewise.
6683 * lib/printf-frexp.c (FUNC): Likewise.
6684 Suggested by Jim Meyering.
6686 2007-10-07 Jim Meyering <meyering@redhat.com>
6688 Make xnanosleep's integer overflow test more robust.
6689 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
6690 so that gcc-4.3.0 doesn't optimize away this test for overflow.
6692 2007-10-07 Bruno Haible <bruno@clisp.org>
6694 * NEWS: Mention the license change.
6696 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
6697 abbreviations in the modules files.
6699 Change copyright notice from GPLv2+ to GPLv3+.
6700 * README: Change copyright notice.
6701 * MODULES.html.sh: Likewise.
6702 * build-aux/bootstrap.conf: Likewise.
6703 * build-aux/config.libpath: Likewise.
6704 * build-aux/csharpcomp.sh.in: Likewise.
6705 * build-aux/csharpexec.sh.in: Likewise.
6706 * build-aux/install-reloc: Likewise.
6707 * build-aux/javacomp.sh.in: Likewise.
6708 * build-aux/javaexec.sh.in: Likewise.
6709 * build-aux/ldd.sh.in: Likewise.
6710 * build-aux/reloc-ldflags: Likewise.
6711 * build-aux/relocatable.sh.in: Likewise.
6712 * build-aux/x-to-1.in: Likewise.
6713 * check-module: Likewise.
6714 * config/srclistvars.sh: Likewise.
6715 * gnulib-tool: Likewise.
6716 * lib/acl-internal.h: Likewise.
6717 * lib/acl.c: Likewise.
6718 * lib/acl.h: Likewise.
6719 * lib/acl_entries.c: Likewise.
6720 * lib/areadlink-with-size.c: Likewise.
6721 * lib/areadlink.c: Likewise.
6722 * lib/areadlink.h: Likewise.
6723 * lib/argmatch.c: Likewise.
6724 * lib/argmatch.h: Likewise.
6725 * lib/argp-ba.c: Likewise.
6726 * lib/argp-eexst.c: Likewise.
6727 * lib/argp-fmtstream.c: Likewise.
6728 * lib/argp-fmtstream.h: Likewise.
6729 * lib/argp-fs-xinl.c: Likewise.
6730 * lib/argp-help.c: Likewise.
6731 * lib/argp-namefrob.h: Likewise.
6732 * lib/argp-parse.c: Likewise.
6733 * lib/argp-pin.c: Likewise.
6734 * lib/argp-pv.c: Likewise.
6735 * lib/argp-pvh.c: Likewise.
6736 * lib/argp-xinl.c: Likewise.
6737 * lib/argp.h: Likewise.
6738 * lib/at-func.c: Likewise.
6739 * lib/atanl.c: Likewise.
6740 * lib/backupfile.c: Likewise.
6741 * lib/backupfile.h: Likewise.
6742 * lib/basename.c: Likewise.
6743 * lib/binary-io.h: Likewise.
6744 * lib/byteswap.in.h: Likewise.
6745 * lib/c-stack.c: Likewise.
6746 * lib/c-stack.h: Likewise.
6747 * lib/c-strcasestr.c: Likewise.
6748 * lib/c-strcasestr.h: Likewise.
6749 * lib/c-strstr.c: Likewise.
6750 * lib/c-strstr.h: Likewise.
6751 * lib/c-strtod.c: Likewise.
6752 * lib/calloc.c: Likewise.
6753 * lib/canon-host.c: Likewise.
6754 * lib/canon-host.h: Likewise.
6755 * lib/canonicalize-lgpl.c: Likewise.
6756 * lib/canonicalize.c: Likewise.
6757 * lib/canonicalize.h: Likewise.
6758 * lib/ceil.c: Likewise.
6759 * lib/ceilf.c: Likewise.
6760 * lib/ceill.c: Likewise.
6761 * lib/chdir-long.c: Likewise.
6762 * lib/chdir-long.h: Likewise.
6763 * lib/chdir-safer.c: Likewise.
6764 * lib/chdir-safer.h: Likewise.
6765 * lib/chown.c: Likewise.
6766 * lib/classpath.c: Likewise.
6767 * lib/classpath.h: Likewise.
6768 * lib/clean-temp.c: Likewise.
6769 * lib/clean-temp.h: Likewise.
6770 * lib/cloexec.c: Likewise.
6771 * lib/close-stream.c: Likewise.
6772 * lib/closein.c: Likewise.
6773 * lib/closein.h: Likewise.
6774 * lib/closeout.c: Likewise.
6775 * lib/closeout.h: Likewise.
6776 * lib/concat-filename.c: Likewise.
6777 * lib/copy-file.c: Likewise.
6778 * lib/copy-file.h: Likewise.
6779 * lib/count-one-bits.h: Likewise.
6780 * lib/crc.c: Likewise.
6781 * lib/crc.h: Likewise.
6782 * lib/creat-safer.c: Likewise.
6783 * lib/csharpcomp.c: Likewise.
6784 * lib/csharpcomp.h: Likewise.
6785 * lib/csharpexec.c: Likewise.
6786 * lib/csharpexec.h: Likewise.
6787 * lib/cycle-check.c: Likewise.
6788 * lib/cycle-check.h: Likewise.
6789 * lib/diacrit.c: Likewise.
6790 * lib/diacrit.h: Likewise.
6791 * lib/diffseq.h: Likewise.
6792 * lib/dirchownmod.c: Likewise.
6793 * lib/dirent.in.h: Likewise.
6794 * lib/dirfd.c: Likewise.
6795 * lib/dirfd.h: Likewise.
6796 * lib/dirname.c: Likewise.
6797 * lib/dirname.h: Likewise.
6798 * lib/dummy.c: Likewise.
6799 * lib/dup-safer.c: Likewise.
6800 * lib/dup2.c: Likewise.
6801 * lib/eealloc.h: Likewise.
6802 * lib/error.c: Likewise.
6803 * lib/error.h: Likewise.
6804 * lib/euidaccess.c: Likewise.
6805 * lib/exclude.c: Likewise.
6806 * lib/exclude.h: Likewise.
6807 * lib/execute.c: Likewise.
6808 * lib/execute.h: Likewise.
6809 * lib/exitfail.c: Likewise.
6810 * lib/exitfail.h: Likewise.
6811 * lib/expl.c: Likewise.
6812 * lib/fatal-signal.c: Likewise.
6813 * lib/fatal-signal.h: Likewise.
6814 * lib/fbufmode.c: Likewise.
6815 * lib/fbufmode.h: Likewise.
6816 * lib/fchdir.c: Likewise.
6817 * lib/fchmodat.c: Likewise.
6818 * lib/fchownat.c: Likewise.
6819 * lib/fcntl--.h: Likewise.
6820 * lib/fcntl-safer.h: Likewise.
6821 * lib/fcntl.in.h: Likewise.
6822 * lib/fd-safer.c: Likewise.
6823 * lib/fflush.c: Likewise.
6824 * lib/file-has-acl.c: Likewise.
6825 * lib/file-set.c: Likewise.
6826 * lib/file-type.c: Likewise.
6827 * lib/file-type.h: Likewise.
6828 * lib/fileblocks.c: Likewise.
6829 * lib/filemode.c: Likewise.
6830 * lib/filemode.h: Likewise.
6831 * lib/filename.h: Likewise.
6832 * lib/filenamecat.c: Likewise.
6833 * lib/filenamecat.h: Likewise.
6834 * lib/findprog.c: Likewise.
6835 * lib/findprog.h: Likewise.
6836 * lib/float.in.h: Likewise.
6837 * lib/floor.c: Likewise.
6838 * lib/floorf.c: Likewise.
6839 * lib/floorl.c: Likewise.
6840 * lib/fopen-safer.c: Likewise.
6841 * lib/fopen.c: Likewise.
6842 * lib/fpending.c: Likewise.
6843 * lib/fpending.h: Likewise.
6844 * lib/fprintf.c: Likewise.
6845 * lib/fprintftime.h: Likewise.
6846 * lib/fpucw.h: Likewise.
6847 * lib/fpurge.c: Likewise.
6848 * lib/fpurge.h: Likewise.
6849 * lib/freadable.c: Likewise.
6850 * lib/freadable.h: Likewise.
6851 * lib/freadahead.c: Likewise.
6852 * lib/freadahead.h: Likewise.
6853 * lib/freading.c: Likewise.
6854 * lib/freading.h: Likewise.
6855 * lib/free.c: Likewise.
6856 * lib/freopen.c: Likewise.
6857 * lib/frexp.c: Likewise.
6858 * lib/frexpl.c: Likewise.
6859 * lib/fseek.c: Likewise.
6860 * lib/fseterr.c: Likewise.
6861 * lib/fseterr.h: Likewise.
6862 * lib/fstatat.c: Likewise.
6863 * lib/fstrcmp.c: Likewise.
6864 * lib/fstrcmp.h: Likewise.
6865 * lib/fsusage.c: Likewise.
6866 * lib/fsusage.h: Likewise.
6867 * lib/ftell.c: Likewise.
6868 * lib/ftello.c: Likewise.
6869 * lib/fts-cycle.c: Likewise.
6870 * lib/fts.c: Likewise.
6871 * lib/fts_.h: Likewise.
6872 * lib/full-read.c: Likewise.
6873 * lib/full-read.h: Likewise.
6874 * lib/full-write.c: Likewise.
6875 * lib/full-write.h: Likewise.
6876 * lib/fwritable.c: Likewise.
6877 * lib/fwritable.h: Likewise.
6878 * lib/fwriteerror.c: Likewise.
6879 * lib/fwriteerror.h: Likewise.
6880 * lib/fwriting.c: Likewise.
6881 * lib/fwriting.h: Likewise.
6882 * lib/gcd.c: Likewise.
6883 * lib/gcd.h: Likewise.
6884 * lib/getcwd.c: Likewise.
6885 * lib/getdate.h: Likewise.
6886 * lib/getdate.y: Likewise.
6887 * lib/getdomainname.c: Likewise.
6888 * lib/getdomainname.h: Likewise.
6889 * lib/getgroups.c: Likewise.
6890 * lib/gethostname.c: Likewise.
6891 * lib/gethrxtime.c: Likewise.
6892 * lib/gethrxtime.h: Likewise.
6893 * lib/getloadavg.c: Likewise.
6894 * lib/getndelim2.c: Likewise.
6895 * lib/getndelim2.h: Likewise.
6896 * lib/getnline.c: Likewise.
6897 * lib/getnline.h: Likewise.
6898 * lib/getopt.c: Likewise.
6899 * lib/getopt.in.h: Likewise.
6900 * lib/getopt1.c: Likewise.
6901 * lib/getopt_int.h: Likewise.
6902 * lib/getpagesize.h: Likewise.
6903 * lib/getsubopt.c: Likewise.
6904 * lib/gettime.c: Likewise.
6905 * lib/getugroups.c: Likewise.
6906 * lib/getugroups.h: Likewise.
6907 * lib/getusershell.c: Likewise.
6908 * lib/gl_anyavltree_list1.h: Likewise.
6909 * lib/gl_anyavltree_list2.h: Likewise.
6910 * lib/gl_anyhash_list1.h: Likewise.
6911 * lib/gl_anyhash_list2.h: Likewise.
6912 * lib/gl_anylinked_list1.h: Likewise.
6913 * lib/gl_anylinked_list2.h: Likewise.
6914 * lib/gl_anyrbtree_list1.h: Likewise.
6915 * lib/gl_anyrbtree_list2.h: Likewise.
6916 * lib/gl_anytree_list1.h: Likewise.
6917 * lib/gl_anytree_list2.h: Likewise.
6918 * lib/gl_anytree_oset.h: Likewise.
6919 * lib/gl_anytreehash_list1.h: Likewise.
6920 * lib/gl_anytreehash_list2.h: Likewise.
6921 * lib/gl_array_list.c: Likewise.
6922 * lib/gl_array_list.h: Likewise.
6923 * lib/gl_array_oset.c: Likewise.
6924 * lib/gl_array_oset.h: Likewise.
6925 * lib/gl_avltree_list.c: Likewise.
6926 * lib/gl_avltree_list.h: Likewise.
6927 * lib/gl_avltree_oset.c: Likewise.
6928 * lib/gl_avltree_oset.h: Likewise.
6929 * lib/gl_avltreehash_list.c: Likewise.
6930 * lib/gl_avltreehash_list.h: Likewise.
6931 * lib/gl_carray_list.c: Likewise.
6932 * lib/gl_carray_list.h: Likewise.
6933 * lib/gl_linked_list.c: Likewise.
6934 * lib/gl_linked_list.h: Likewise.
6935 * lib/gl_linkedhash_list.c: Likewise.
6936 * lib/gl_linkedhash_list.h: Likewise.
6937 * lib/gl_list.c: Likewise.
6938 * lib/gl_list.h: Likewise.
6939 * lib/gl_oset.c: Likewise.
6940 * lib/gl_oset.h: Likewise.
6941 * lib/gl_rbtree_list.c: Likewise.
6942 * lib/gl_rbtree_list.h: Likewise.
6943 * lib/gl_rbtree_oset.c: Likewise.
6944 * lib/gl_rbtree_oset.h: Likewise.
6945 * lib/gl_rbtreehash_list.c: Likewise.
6946 * lib/gl_rbtreehash_list.h: Likewise.
6947 * lib/gl_sublist.c: Likewise.
6948 * lib/gl_sublist.h: Likewise.
6949 * lib/group-member.c: Likewise.
6950 * lib/group-member.h: Likewise.
6951 * lib/hard-locale.c: Likewise.
6952 * lib/hard-locale.h: Likewise.
6953 * lib/hash-pjw.c: Likewise.
6954 * lib/hash-pjw.h: Likewise.
6955 * lib/hash-triple.c: Likewise.
6956 * lib/hash.c: Likewise.
6957 * lib/hash.h: Likewise.
6958 * lib/human.c: Likewise.
6959 * lib/human.h: Likewise.
6960 * lib/i-ring.c: Likewise.
6961 * lib/i-ring.h: Likewise.
6962 * lib/idcache.c: Likewise.
6963 * lib/imaxabs.c: Likewise.
6964 * lib/imaxdiv.c: Likewise.
6965 * lib/inet_pton.c: Likewise.
6966 * lib/inet_pton.h: Likewise.
6967 * lib/intprops.h: Likewise.
6968 * lib/inttostr.c: Likewise.
6969 * lib/inttostr.h: Likewise.
6970 * lib/inttypes.in.h: Likewise.
6971 * lib/isapipe.c: Likewise.
6972 * lib/isdir.c: Likewise.
6973 * lib/isnan.c: Likewise.
6974 * lib/isnan.h: Likewise.
6975 * lib/isnanf.c: Likewise.
6976 * lib/isnanf.h: Likewise.
6977 * lib/isnanl-nolibm.h: Likewise.
6978 * lib/isnanl.c: Likewise.
6979 * lib/isnanl.h: Likewise.
6980 * lib/javacomp.c: Likewise.
6981 * lib/javacomp.h: Likewise.
6982 * lib/javaexec.c: Likewise.
6983 * lib/javaexec.h: Likewise.
6984 * lib/javaversion.c: Likewise.
6985 * lib/javaversion.h: Likewise.
6986 * lib/javaversion.java: Likewise.
6987 * lib/lbrkprop.h: Likewise.
6988 * lib/lchmod.h: Likewise.
6989 * lib/lchown.c: Likewise.
6990 * lib/ldexpl.c: Likewise.
6991 * lib/linebreak.c: Likewise.
6992 * lib/linebreak.h: Likewise.
6993 * lib/linebuffer.c: Likewise.
6994 * lib/linebuffer.h: Likewise.
6995 * lib/locale.in.h: Likewise.
6996 * lib/logl.c: Likewise.
6997 * lib/long-options.c: Likewise.
6998 * lib/long-options.h: Likewise.
6999 * lib/lstat.c: Likewise.
7000 * lib/lstat.h: Likewise.
7001 * lib/math.in.h: Likewise.
7002 * lib/mbchar.c: Likewise.
7003 * lib/mbchar.h: Likewise.
7004 * lib/mbfile.h: Likewise.
7005 * lib/mbiter.h: Likewise.
7006 * lib/mbscasecmp.c: Likewise.
7007 * lib/mbscasestr.c: Likewise.
7008 * lib/mbschr.c: Likewise.
7009 * lib/mbscspn.c: Likewise.
7010 * lib/mbslen.c: Likewise.
7011 * lib/mbsncasecmp.c: Likewise.
7012 * lib/mbsnlen.c: Likewise.
7013 * lib/mbspbrk.c: Likewise.
7014 * lib/mbspcasecmp.c: Likewise.
7015 * lib/mbsrchr.c: Likewise.
7016 * lib/mbssep.c: Likewise.
7017 * lib/mbsspn.c: Likewise.
7018 * lib/mbsstr.c: Likewise.
7019 * lib/mbstok_r.c: Likewise.
7020 * lib/mbswidth.c: Likewise.
7021 * lib/mbswidth.h: Likewise.
7022 * lib/mbuiter.h: Likewise.
7023 * lib/memcasecmp.c: Likewise.
7024 * lib/memcasecmp.h: Likewise.
7025 * lib/memchr.c: Likewise.
7026 * lib/memcmp.c: Likewise.
7027 * lib/memcoll.c: Likewise.
7028 * lib/memcoll.h: Likewise.
7029 * lib/memcpy.c: Likewise.
7030 * lib/memrchr.c: Likewise.
7031 * lib/mkancesdirs.c: Likewise.
7032 * lib/mkdir-p.c: Likewise.
7033 * lib/mkdir-p.h: Likewise.
7034 * lib/mkdir.c: Likewise.
7035 * lib/mkdirat.c: Likewise.
7036 * lib/mkdtemp.c: Likewise.
7037 * lib/mkstemp-safer.c: Likewise.
7038 * lib/mkstemp.c: Likewise.
7039 * lib/modechange.c: Likewise.
7040 * lib/modechange.h: Likewise.
7041 * lib/mountlist.c: Likewise.
7042 * lib/mountlist.h: Likewise.
7043 * lib/mpsort.c: Likewise.
7044 * lib/nanosleep.c: Likewise.
7045 * lib/obstack.c: Likewise.
7046 * lib/obstack.h: Likewise.
7047 * lib/open-safer.c: Likewise.
7048 * lib/open.c: Likewise.
7049 * lib/openat-die.c: Likewise.
7050 * lib/openat-priv.h: Likewise.
7051 * lib/openat-proc.c: Likewise.
7052 * lib/openat.c: Likewise.
7053 * lib/openat.h: Likewise.
7054 * lib/pagealign_alloc.c: Likewise.
7055 * lib/pagealign_alloc.h: Likewise.
7056 * lib/physmem.c: Likewise.
7057 * lib/physmem.h: Likewise.
7058 * lib/pipe-safer.c: Likewise.
7059 * lib/pipe.c: Likewise.
7060 * lib/pipe.h: Likewise.
7061 * lib/posixtm.c: Likewise.
7062 * lib/posixtm.h: Likewise.
7063 * lib/posixver.c: Likewise.
7064 * lib/printf-frexp.c: Likewise.
7065 * lib/printf-frexp.h: Likewise.
7066 * lib/printf-frexpl.c: Likewise.
7067 * lib/printf-frexpl.h: Likewise.
7068 * lib/printf.c: Likewise.
7069 * lib/progname.c: Likewise.
7070 * lib/progname.h: Likewise.
7071 * lib/progreloc.c: Likewise.
7072 * lib/putenv.c: Likewise.
7073 * lib/quote.c: Likewise.
7074 * lib/quote.h: Likewise.
7075 * lib/quotearg.c: Likewise.
7076 * lib/quotearg.h: Likewise.
7077 * lib/raise.c: Likewise.
7078 * lib/readline.c: Likewise.
7079 * lib/readline.h: Likewise.
7080 * lib/readlink.c: Likewise.
7081 * lib/readtokens.c: Likewise.
7082 * lib/readtokens.h: Likewise.
7083 * lib/readtokens0.c: Likewise.
7084 * lib/readtokens0.h: Likewise.
7085 * lib/readutmp.c: Likewise.
7086 * lib/readutmp.h: Likewise.
7087 * lib/realloc.c: Likewise.
7088 * lib/relocwrapper.c: Likewise.
7089 * lib/rename-dest-slash.c: Likewise.
7090 * lib/rename.c: Likewise.
7091 * lib/rmdir.c: Likewise.
7092 * lib/rpmatch.c: Likewise.
7093 * lib/safe-read.c: Likewise.
7094 * lib/safe-read.h: Likewise.
7095 * lib/safe-write.c: Likewise.
7096 * lib/safe-write.h: Likewise.
7097 * lib/same-inode.h: Likewise.
7098 * lib/same.c: Likewise.
7099 * lib/same.h: Likewise.
7100 * lib/save-cwd.c: Likewise.
7101 * lib/save-cwd.h: Likewise.
7102 * lib/savedir.c: Likewise.
7103 * lib/savedir.h: Likewise.
7104 * lib/savewd.c: Likewise.
7105 * lib/savewd.h: Likewise.
7106 * lib/search.in.h: Likewise.
7107 * lib/setenv.c: Likewise.
7108 * lib/setenv.h: Likewise.
7109 * lib/settime.c: Likewise.
7110 * lib/sh-quote.c: Likewise.
7111 * lib/sh-quote.h: Likewise.
7112 * lib/sig2str.c: Likewise.
7113 * lib/sig2str.h: Likewise.
7114 * lib/signal.in.h: Likewise.
7115 * lib/signbitd.c: Likewise.
7116 * lib/signbitf.c: Likewise.
7117 * lib/signbitl.c: Likewise.
7118 * lib/sigprocmask.c: Likewise.
7119 * lib/sincosl.c: Likewise.
7120 * lib/sleep.c: Likewise.
7121 * lib/sprintf.c: Likewise.
7122 * lib/sqrtl.c: Likewise.
7123 * lib/stat-time.h: Likewise.
7124 * lib/stdio--.h: Likewise.
7125 * lib/stdio-safer.h: Likewise.
7126 * lib/stdlib--.h: Likewise.
7127 * lib/stdlib-safer.h: Likewise.
7128 * lib/stdlib.in.h: Likewise.
7129 * lib/stpcpy.c: Likewise.
7130 * lib/stpncpy.c: Likewise.
7131 * lib/strchrnul.c: Likewise.
7132 * lib/strcspn.c: Likewise.
7133 * lib/strerror.c: Likewise.
7134 * lib/strftime.c: Likewise.
7135 * lib/strftime.h: Likewise.
7136 * lib/striconveh.c: Likewise.
7137 * lib/striconveh.h: Likewise.
7138 * lib/striconveha.c: Likewise.
7139 * lib/striconveha.h: Likewise.
7140 * lib/stripslash.c: Likewise.
7141 * lib/strnlen1.c: Likewise.
7142 * lib/strnlen1.h: Likewise.
7143 * lib/strtod.c: Likewise.
7144 * lib/strtoimax.c: Likewise.
7145 * lib/strtok_r.c: Likewise.
7146 * lib/strtol.c: Likewise.
7147 * lib/strtoll.c: Likewise.
7148 * lib/strtoul.c: Likewise.
7149 * lib/strtoull.c: Likewise.
7150 * lib/sysexits.in.h: Likewise.
7151 * lib/tempname.c: Likewise.
7152 * lib/tempname.h: Likewise.
7153 * lib/timespec.h: Likewise.
7154 * lib/tls.c: Likewise.
7155 * lib/tls.h: Likewise.
7156 * lib/tmpdir.c: Likewise.
7157 * lib/tmpdir.h: Likewise.
7158 * lib/tmpfile-safer.c: Likewise.
7159 * lib/tmpfile.c: Likewise.
7160 * lib/trigl.c: Likewise.
7161 * lib/trigl.h: Likewise.
7162 * lib/trim.c: Likewise.
7163 * lib/trim.h: Likewise.
7164 * lib/trunc.c: Likewise.
7165 * lib/truncf.c: Likewise.
7166 * lib/truncl.c: Likewise.
7167 * lib/tsearch.c: Likewise.
7168 * lib/unicodeio.c: Likewise.
7169 * lib/unicodeio.h: Likewise.
7170 * lib/unistd--.h: Likewise.
7171 * lib/unistd-safer.h: Likewise.
7172 * lib/unistdio/ulc-fprintf.c: Likewise.
7173 * lib/unistdio/ulc-vfprintf.c: Likewise.
7174 * lib/unlinkdir.c: Likewise.
7175 * lib/unlinkdir.h: Likewise.
7176 * lib/unlocked-io.h: Likewise.
7177 * lib/unsetenv.c: Likewise.
7178 * lib/userspec.c: Likewise.
7179 * lib/utime.c: Likewise.
7180 * lib/utimecmp.c: Likewise.
7181 * lib/utimecmp.h: Likewise.
7182 * lib/utimens.c: Likewise.
7183 * lib/verify.h: Likewise.
7184 * lib/verror.c: Likewise.
7185 * lib/verror.h: Likewise.
7186 * lib/version-etc-fsf.c: Likewise.
7187 * lib/version-etc.c: Likewise.
7188 * lib/version-etc.h: Likewise.
7189 * lib/vfprintf.c: Likewise.
7190 * lib/vprintf.c: Likewise.
7191 * lib/vsprintf.c: Likewise.
7192 * lib/w32spawn.h: Likewise.
7193 * lib/wait-process.c: Likewise.
7194 * lib/wait-process.h: Likewise.
7195 * lib/wcwidth.c: Likewise.
7196 * lib/write-any-file.c: Likewise.
7197 * lib/xalloc-die.c: Likewise.
7198 * lib/xalloc.h: Likewise.
7199 * lib/xasprintf.c: Likewise.
7200 * lib/xgetcwd.c: Likewise.
7201 * lib/xgetcwd.h: Likewise.
7202 * lib/xgetdomainname.c: Likewise.
7203 * lib/xgetdomainname.h: Likewise.
7204 * lib/xgethostname.c: Likewise.
7205 * lib/xmalloc.c: Likewise.
7206 * lib/xmalloca.c: Likewise.
7207 * lib/xmalloca.h: Likewise.
7208 * lib/xmemcoll.c: Likewise.
7209 * lib/xnanosleep.c: Likewise.
7210 * lib/xreadlink.c: Likewise.
7211 * lib/xreadlink.h: Likewise.
7212 * lib/xsetenv.c: Likewise.
7213 * lib/xsetenv.h: Likewise.
7214 * lib/xstriconv.c: Likewise.
7215 * lib/xstriconv.h: Likewise.
7216 * lib/xstrndup.c: Likewise.
7217 * lib/xstrndup.h: Likewise.
7218 * lib/xstrtod.c: Likewise.
7219 * lib/xstrtod.h: Likewise.
7220 * lib/xstrtol-error.c: Likewise.
7221 * lib/xstrtol.c: Likewise.
7222 * lib/xstrtol.h: Likewise.
7223 * lib/xtime.h: Likewise.
7224 * lib/xvasprintf.c: Likewise.
7225 * lib/xvasprintf.h: Likewise.
7226 * lib/yesno.c: Likewise.
7227 * lib/yesno.h: Likewise.
7228 * posix-modules: Likewise.
7229 * tests/test-alloca-opt.c: Likewise.
7230 * tests/test-arcfour.c: Likewise.
7231 * tests/test-arctwo.c: Likewise.
7232 * tests/test-argmatch.c: Likewise.
7233 * tests/test-argp-2.sh: Likewise.
7234 * tests/test-argp.c: Likewise.
7235 * tests/test-arpa_inet.c: Likewise.
7236 * tests/test-array_list.c: Likewise.
7237 * tests/test-array_oset.c: Likewise.
7238 * tests/test-atexit.c: Likewise.
7239 * tests/test-avltree_list.c: Likewise.
7240 * tests/test-avltree_oset.c: Likewise.
7241 * tests/test-avltreehash_list.c: Likewise.
7242 * tests/test-base64.c: Likewise.
7243 * tests/test-binary-io.c: Likewise.
7244 * tests/test-byteswap.c: Likewise.
7245 * tests/test-c-ctype.c: Likewise.
7246 * tests/test-c-strcasecmp.c: Likewise.
7247 * tests/test-c-strcasestr.c: Likewise.
7248 * tests/test-c-strncasecmp.c: Likewise.
7249 * tests/test-c-strstr.c: Likewise.
7250 * tests/test-canonicalize-lgpl.c: Likewise.
7251 * tests/test-canonicalize.c: Likewise.
7252 * tests/test-carray_list.c: Likewise.
7253 * tests/test-ceilf.c: Likewise.
7254 * tests/test-ceill.c: Likewise.
7255 * tests/test-count-one-bits.c: Likewise.
7256 * tests/test-crc.c: Likewise.
7257 * tests/test-dirname.c: Likewise.
7258 * tests/test-fbufmode.c: Likewise.
7259 * tests/test-fcntl.c: Likewise.
7260 * tests/test-fflush.c: Likewise.
7261 * tests/test-floorf.c: Likewise.
7262 * tests/test-floorl.c: Likewise.
7263 * tests/test-fopen.c: Likewise.
7264 * tests/test-fprintf-posix.c: Likewise.
7265 * tests/test-fprintf-posix.h: Likewise.
7266 * tests/test-fpurge.c: Likewise.
7267 * tests/test-freadable.c: Likewise.
7268 * tests/test-freadahead.c: Likewise.
7269 * tests/test-freading.c: Likewise.
7270 * tests/test-freopen.c: Likewise.
7271 * tests/test-frexp.c: Likewise.
7272 * tests/test-frexpl.c: Likewise.
7273 * tests/test-fseek.c: Likewise.
7274 * tests/test-fseeko.c: Likewise.
7275 * tests/test-fseterr.c: Likewise.
7276 * tests/test-fstrcmp.c: Likewise.
7277 * tests/test-ftell.c: Likewise.
7278 * tests/test-ftello.c: Likewise.
7279 * tests/test-fwritable.c: Likewise.
7280 * tests/test-fwriting.c: Likewise.
7281 * tests/test-getaddrinfo.c: Likewise.
7282 * tests/test-getpass.c: Likewise.
7283 * tests/test-gettimeofday.c: Likewise.
7284 * tests/test-hmac-md5.c: Likewise.
7285 * tests/test-hmac-sha1.c: Likewise.
7286 * tests/test-iconv.c: Likewise.
7287 * tests/test-iconvme.c: Likewise.
7288 * tests/test-inttypes.c: Likewise.
7289 * tests/test-isnan.c: Likewise.
7290 * tests/test-isnanf.c: Likewise.
7291 * tests/test-isnanl-nolibm.c: Likewise.
7292 * tests/test-isnanl.c: Likewise.
7293 * tests/test-isnanl.h: Likewise.
7294 * tests/test-ldexpl.c: Likewise.
7295 * tests/test-linked_list.c: Likewise.
7296 * tests/test-linkedhash_list.c: Likewise.
7297 * tests/test-locale.c: Likewise.
7298 * tests/test-localename.c: Likewise.
7299 * tests/test-lock.c: Likewise.
7300 * tests/test-lseek.c: Likewise.
7301 * tests/test-malloca.c: Likewise.
7302 * tests/test-math.c: Likewise.
7303 * tests/test-mbscasecmp.c: Likewise.
7304 * tests/test-mbscasestr1.c: Likewise.
7305 * tests/test-mbscasestr2.c: Likewise.
7306 * tests/test-mbscasestr3.c: Likewise.
7307 * tests/test-mbscasestr4.c: Likewise.
7308 * tests/test-mbschr.c: Likewise.
7309 * tests/test-mbscspn.c: Likewise.
7310 * tests/test-mbsncasecmp.c: Likewise.
7311 * tests/test-mbspbrk.c: Likewise.
7312 * tests/test-mbspcasecmp.c: Likewise.
7313 * tests/test-mbsrchr.c: Likewise.
7314 * tests/test-mbsspn.c: Likewise.
7315 * tests/test-mbsstr1.c: Likewise.
7316 * tests/test-mbsstr2.c: Likewise.
7317 * tests/test-mbsstr3.c: Likewise.
7318 * tests/test-md5.c: Likewise.
7319 * tests/test-memmem.c: Likewise.
7320 * tests/test-netinet_in.c: Likewise.
7321 * tests/test-open.c: Likewise.
7322 * tests/test-printf-frexp.c: Likewise.
7323 * tests/test-printf-frexpl.c: Likewise.
7324 * tests/test-printf-posix.c: Likewise.
7325 * tests/test-printf-posix.h: Likewise.
7326 * tests/test-rbtree_list.c: Likewise.
7327 * tests/test-rbtree_oset.c: Likewise.
7328 * tests/test-rbtreehash_list.c: Likewise.
7329 * tests/test-read-file.c: Likewise.
7330 * tests/test-rijndael.c: Likewise.
7331 * tests/test-search.c: Likewise.
7332 * tests/test-signbit.c: Likewise.
7333 * tests/test-sleep.c: Likewise.
7334 * tests/test-snprintf-posix.c: Likewise.
7335 * tests/test-snprintf-posix.h: Likewise.
7336 * tests/test-snprintf.c: Likewise.
7337 * tests/test-sprintf-posix.c: Likewise.
7338 * tests/test-sprintf-posix.h: Likewise.
7339 * tests/test-stat-time.c: Likewise.
7340 * tests/test-stdbool.c: Likewise.
7341 * tests/test-stdint.c: Likewise.
7342 * tests/test-stdio.c: Likewise.
7343 * tests/test-stdlib.c: Likewise.
7344 * tests/test-stpncpy.c: Likewise.
7345 * tests/test-strcasestr.c: Likewise.
7346 * tests/test-striconv.c: Likewise.
7347 * tests/test-striconveh.c: Likewise.
7348 * tests/test-striconveha.c: Likewise.
7349 * tests/test-string.c: Likewise.
7350 * tests/test-sys_select.c: Likewise.
7351 * tests/test-sys_socket.c: Likewise.
7352 * tests/test-sys_stat.c: Likewise.
7353 * tests/test-sys_time.c: Likewise.
7354 * tests/test-sysexits.c: Likewise.
7355 * tests/test-time.c: Likewise.
7356 * tests/test-tls.c: Likewise.
7357 * tests/test-trunc.c: Likewise.
7358 * tests/test-truncf.c: Likewise.
7359 * tests/test-truncl.c: Likewise.
7360 * tests/test-unistd.c: Likewise.
7361 * tests/test-vasnprintf-posix.c: Likewise.
7362 * tests/test-vasnprintf-posix2.c: Likewise.
7363 * tests/test-vasnprintf.c: Likewise.
7364 * tests/test-vasprintf-posix.c: Likewise.
7365 * tests/test-vasprintf.c: Likewise.
7366 * tests/test-verify.c: Likewise.
7367 * tests/test-vfprintf-posix.c: Likewise.
7368 * tests/test-vprintf-posix.c: Likewise.
7369 * tests/test-vsnprintf-posix.c: Likewise.
7370 * tests/test-vsnprintf.c: Likewise.
7371 * tests/test-vsprintf-posix.c: Likewise.
7372 * tests/test-wchar.c: Likewise.
7373 * tests/test-wctype.c: Likewise.
7374 * tests/test-wcwidth.c: Likewise.
7375 * tests/test-xstrtol.c: Likewise.
7376 * tests/test-xvasprintf.c: Likewise.
7377 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
7378 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
7379 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
7380 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
7381 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
7382 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
7383 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
7384 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
7385 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
7386 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
7387 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
7388 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
7389 * tests/uniname/test-uninames.c: Likewise.
7390 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
7391 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
7392 * tests/unistdio/test-u16-printf1.h: Likewise.
7393 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
7394 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
7395 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
7396 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
7397 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
7398 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
7399 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
7400 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
7401 * tests/unistdio/test-u32-printf1.h: Likewise.
7402 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
7403 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
7404 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
7405 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
7406 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
7407 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
7408 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
7409 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
7410 * tests/unistdio/test-u8-printf1.h: Likewise.
7411 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
7412 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
7413 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
7414 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
7415 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
7416 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
7417 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
7418 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
7419 * tests/unistdio/test-ulc-printf1.h: Likewise.
7420 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
7421 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
7422 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
7423 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
7424 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
7425 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
7426 * tests/uniwidth/test-u16-strwidth.c: Likewise.
7427 * tests/uniwidth/test-u16-width.c: Likewise.
7428 * tests/uniwidth/test-u32-strwidth.c: Likewise.
7429 * tests/uniwidth/test-u32-width.c: Likewise.
7430 * tests/uniwidth/test-u8-strwidth.c: Likewise.
7431 * tests/uniwidth/test-u8-width.c: Likewise.
7432 * tests/uniwidth/test-uc_width.c: Likewise.
7433 * config/srclist-update: Likewise.
7434 (fixlicense): Update to GPLv3+.
7436 Change copyright notice from LGPLv2.1+ to LGPLv3+.
7437 * tests/test-tsearch.c: Change copyright notice.
7439 Change copyright notice from LGPLv2.0+ to LGPLv3+.
7440 * lib/c-strcaseeq.h: Change copyright notice.
7441 * lib/streq.h: Likewise.
7442 * lib/uniconv.h: Likewise.
7443 * lib/uniconv/u-conv-from-enc.h: Likewise.
7444 * lib/uniconv/u-conv-to-enc.h: Likewise.
7445 * lib/uniconv/u-strconv-from-enc.h: Likewise.
7446 * lib/uniconv/u-strconv-to-enc.h: Likewise.
7447 * lib/uniconv/u16-conv-from-enc.c: Likewise.
7448 * lib/uniconv/u16-conv-to-enc.c: Likewise.
7449 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
7450 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
7451 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
7452 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
7453 * lib/uniconv/u32-conv-from-enc.c: Likewise.
7454 * lib/uniconv/u32-conv-to-enc.c: Likewise.
7455 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
7456 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
7457 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
7458 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
7459 * lib/uniconv/u8-conv-from-enc.c: Likewise.
7460 * lib/uniconv/u8-conv-to-enc.c: Likewise.
7461 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
7462 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
7463 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
7464 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
7465 * lib/uniname.h: Likewise.
7466 * lib/uniname/uniname.c: Likewise.
7467 * lib/unistdio.h: Likewise.
7468 * lib/unistdio/u-asnprintf.h: Likewise.
7469 * lib/unistdio/u-asprintf.h: Likewise.
7470 * lib/unistdio/u-printf-args.c: Likewise.
7471 * lib/unistdio/u-printf-args.h: Likewise.
7472 * lib/unistdio/u-printf-parse.h: Likewise.
7473 * lib/unistdio/u-snprintf.h: Likewise.
7474 * lib/unistdio/u-sprintf.h: Likewise.
7475 * lib/unistdio/u-vasprintf.h: Likewise.
7476 * lib/unistdio/u-vsnprintf.h: Likewise.
7477 * lib/unistdio/u-vsprintf.h: Likewise.
7478 * lib/unistdio/u16-asnprintf.c: Likewise.
7479 * lib/unistdio/u16-asprintf.c: Likewise.
7480 * lib/unistdio/u16-printf-parse.c: Likewise.
7481 * lib/unistdio/u16-snprintf.c: Likewise.
7482 * lib/unistdio/u16-sprintf.c: Likewise.
7483 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
7484 * lib/unistdio/u16-u16-asprintf.c: Likewise.
7485 * lib/unistdio/u16-u16-snprintf.c: Likewise.
7486 * lib/unistdio/u16-u16-sprintf.c: Likewise.
7487 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
7488 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
7489 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
7490 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
7491 * lib/unistdio/u16-vasnprintf.c: Likewise.
7492 * lib/unistdio/u16-vasprintf.c: Likewise.
7493 * lib/unistdio/u16-vsnprintf.c: Likewise.
7494 * lib/unistdio/u16-vsprintf.c: Likewise.
7495 * lib/unistdio/u32-asnprintf.c: Likewise.
7496 * lib/unistdio/u32-asprintf.c: Likewise.
7497 * lib/unistdio/u32-printf-parse.c: Likewise.
7498 * lib/unistdio/u32-snprintf.c: Likewise.
7499 * lib/unistdio/u32-sprintf.c: Likewise.
7500 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
7501 * lib/unistdio/u32-u32-asprintf.c: Likewise.
7502 * lib/unistdio/u32-u32-snprintf.c: Likewise.
7503 * lib/unistdio/u32-u32-sprintf.c: Likewise.
7504 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
7505 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
7506 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
7507 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
7508 * lib/unistdio/u32-vasnprintf.c: Likewise.
7509 * lib/unistdio/u32-vasprintf.c: Likewise.
7510 * lib/unistdio/u32-vsnprintf.c: Likewise.
7511 * lib/unistdio/u32-vsprintf.c: Likewise.
7512 * lib/unistdio/u8-asnprintf.c: Likewise.
7513 * lib/unistdio/u8-asprintf.c: Likewise.
7514 * lib/unistdio/u8-printf-parse.c: Likewise.
7515 * lib/unistdio/u8-snprintf.c: Likewise.
7516 * lib/unistdio/u8-sprintf.c: Likewise.
7517 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
7518 * lib/unistdio/u8-u8-asprintf.c: Likewise.
7519 * lib/unistdio/u8-u8-snprintf.c: Likewise.
7520 * lib/unistdio/u8-u8-sprintf.c: Likewise.
7521 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
7522 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
7523 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
7524 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
7525 * lib/unistdio/u8-vasnprintf.c: Likewise.
7526 * lib/unistdio/u8-vasprintf.c: Likewise.
7527 * lib/unistdio/u8-vsnprintf.c: Likewise.
7528 * lib/unistdio/u8-vsprintf.c: Likewise.
7529 * lib/unistdio/ulc-asnprintf.c: Likewise.
7530 * lib/unistdio/ulc-asprintf.c: Likewise.
7531 * lib/unistdio/ulc-printf-parse.c: Likewise.
7532 * lib/unistdio/ulc-snprintf.c: Likewise.
7533 * lib/unistdio/ulc-sprintf.c: Likewise.
7534 * lib/unistdio/ulc-vasnprintf.c: Likewise.
7535 * lib/unistdio/ulc-vasprintf.c: Likewise.
7536 * lib/unistdio/ulc-vsnprintf.c: Likewise.
7537 * lib/unistdio/ulc-vsprintf.c: Likewise.
7538 * lib/unistr.h: Likewise.
7539 * lib/unistr/u-cpy-alloc.h: Likewise.
7540 * lib/unistr/u-cpy.h: Likewise.
7541 * lib/unistr/u-endswith.h: Likewise.
7542 * lib/unistr/u-move.h: Likewise.
7543 * lib/unistr/u-set.h: Likewise.
7544 * lib/unistr/u-startswith.h: Likewise.
7545 * lib/unistr/u-stpcpy.h: Likewise.
7546 * lib/unistr/u-stpncpy.h: Likewise.
7547 * lib/unistr/u-strcat.h: Likewise.
7548 * lib/unistr/u-strcpy.h: Likewise.
7549 * lib/unistr/u-strcspn.h: Likewise.
7550 * lib/unistr/u-strdup.h: Likewise.
7551 * lib/unistr/u-strlen.h: Likewise.
7552 * lib/unistr/u-strncat.h: Likewise.
7553 * lib/unistr/u-strncpy.h: Likewise.
7554 * lib/unistr/u-strnlen.h: Likewise.
7555 * lib/unistr/u-strpbrk.h: Likewise.
7556 * lib/unistr/u-strspn.h: Likewise.
7557 * lib/unistr/u-strstr.h: Likewise.
7558 * lib/unistr/u-strtok.h: Likewise.
7559 * lib/unistr/u16-check.c: Likewise.
7560 * lib/unistr/u16-chr.c: Likewise.
7561 * lib/unistr/u16-cmp.c: Likewise.
7562 * lib/unistr/u16-cpy-alloc.c: Likewise.
7563 * lib/unistr/u16-cpy.c: Likewise.
7564 * lib/unistr/u16-endswith.c: Likewise.
7565 * lib/unistr/u16-mblen.c: Likewise.
7566 * lib/unistr/u16-mbsnlen.c: Likewise.
7567 * lib/unistr/u16-mbtouc-aux.c: Likewise.
7568 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
7569 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
7570 * lib/unistr/u16-mbtouc.c: Likewise.
7571 * lib/unistr/u16-mbtoucr.c: Likewise.
7572 * lib/unistr/u16-move.c: Likewise.
7573 * lib/unistr/u16-next.c: Likewise.
7574 * lib/unistr/u16-prev.c: Likewise.
7575 * lib/unistr/u16-set.c: Likewise.
7576 * lib/unistr/u16-startswith.c: Likewise.
7577 * lib/unistr/u16-stpcpy.c: Likewise.
7578 * lib/unistr/u16-stpncpy.c: Likewise.
7579 * lib/unistr/u16-strcat.c: Likewise.
7580 * lib/unistr/u16-strchr.c: Likewise.
7581 * lib/unistr/u16-strcmp.c: Likewise.
7582 * lib/unistr/u16-strcpy.c: Likewise.
7583 * lib/unistr/u16-strcspn.c: Likewise.
7584 * lib/unistr/u16-strdup.c: Likewise.
7585 * lib/unistr/u16-strlen.c: Likewise.
7586 * lib/unistr/u16-strmblen.c: Likewise.
7587 * lib/unistr/u16-strmbtouc.c: Likewise.
7588 * lib/unistr/u16-strncat.c: Likewise.
7589 * lib/unistr/u16-strncmp.c: Likewise.
7590 * lib/unistr/u16-strncpy.c: Likewise.
7591 * lib/unistr/u16-strnlen.c: Likewise.
7592 * lib/unistr/u16-strpbrk.c: Likewise.
7593 * lib/unistr/u16-strrchr.c: Likewise.
7594 * lib/unistr/u16-strspn.c: Likewise.
7595 * lib/unistr/u16-strstr.c: Likewise.
7596 * lib/unistr/u16-strtok.c: Likewise.
7597 * lib/unistr/u16-to-u32.c: Likewise.
7598 * lib/unistr/u16-to-u8.c: Likewise.
7599 * lib/unistr/u16-uctomb-aux.c: Likewise.
7600 * lib/unistr/u16-uctomb.c: Likewise.
7601 * lib/unistr/u32-check.c: Likewise.
7602 * lib/unistr/u32-chr.c: Likewise.
7603 * lib/unistr/u32-cmp.c: Likewise.
7604 * lib/unistr/u32-cpy-alloc.c: Likewise.
7605 * lib/unistr/u32-cpy.c: Likewise.
7606 * lib/unistr/u32-endswith.c: Likewise.
7607 * lib/unistr/u32-mblen.c: Likewise.
7608 * lib/unistr/u32-mbsnlen.c: Likewise.
7609 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
7610 * lib/unistr/u32-mbtouc.c: Likewise.
7611 * lib/unistr/u32-mbtoucr.c: Likewise.
7612 * lib/unistr/u32-move.c: Likewise.
7613 * lib/unistr/u32-next.c: Likewise.
7614 * lib/unistr/u32-prev.c: Likewise.
7615 * lib/unistr/u32-set.c: Likewise.
7616 * lib/unistr/u32-startswith.c: Likewise.
7617 * lib/unistr/u32-stpcpy.c: Likewise.
7618 * lib/unistr/u32-stpncpy.c: Likewise.
7619 * lib/unistr/u32-strcat.c: Likewise.
7620 * lib/unistr/u32-strchr.c: Likewise.
7621 * lib/unistr/u32-strcmp.c: Likewise.
7622 * lib/unistr/u32-strcpy.c: Likewise.
7623 * lib/unistr/u32-strcspn.c: Likewise.
7624 * lib/unistr/u32-strdup.c: Likewise.
7625 * lib/unistr/u32-strlen.c: Likewise.
7626 * lib/unistr/u32-strmblen.c: Likewise.
7627 * lib/unistr/u32-strmbtouc.c: Likewise.
7628 * lib/unistr/u32-strncat.c: Likewise.
7629 * lib/unistr/u32-strncmp.c: Likewise.
7630 * lib/unistr/u32-strncpy.c: Likewise.
7631 * lib/unistr/u32-strnlen.c: Likewise.
7632 * lib/unistr/u32-strpbrk.c: Likewise.
7633 * lib/unistr/u32-strrchr.c: Likewise.
7634 * lib/unistr/u32-strspn.c: Likewise.
7635 * lib/unistr/u32-strstr.c: Likewise.
7636 * lib/unistr/u32-strtok.c: Likewise.
7637 * lib/unistr/u32-to-u16.c: Likewise.
7638 * lib/unistr/u32-to-u8.c: Likewise.
7639 * lib/unistr/u32-uctomb.c: Likewise.
7640 * lib/unistr/u8-check.c: Likewise.
7641 * lib/unistr/u8-chr.c: Likewise.
7642 * lib/unistr/u8-cmp.c: Likewise.
7643 * lib/unistr/u8-cpy-alloc.c: Likewise.
7644 * lib/unistr/u8-cpy.c: Likewise.
7645 * lib/unistr/u8-endswith.c: Likewise.
7646 * lib/unistr/u8-mblen.c: Likewise.
7647 * lib/unistr/u8-mbsnlen.c: Likewise.
7648 * lib/unistr/u8-mbtouc-aux.c: Likewise.
7649 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
7650 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
7651 * lib/unistr/u8-mbtouc.c: Likewise.
7652 * lib/unistr/u8-mbtoucr.c: Likewise.
7653 * lib/unistr/u8-move.c: Likewise.
7654 * lib/unistr/u8-next.c: Likewise.
7655 * lib/unistr/u8-prev.c: Likewise.
7656 * lib/unistr/u8-set.c: Likewise.
7657 * lib/unistr/u8-startswith.c: Likewise.
7658 * lib/unistr/u8-stpcpy.c: Likewise.
7659 * lib/unistr/u8-stpncpy.c: Likewise.
7660 * lib/unistr/u8-strcat.c: Likewise.
7661 * lib/unistr/u8-strchr.c: Likewise.
7662 * lib/unistr/u8-strcmp.c: Likewise.
7663 * lib/unistr/u8-strcpy.c: Likewise.
7664 * lib/unistr/u8-strcspn.c: Likewise.
7665 * lib/unistr/u8-strdup.c: Likewise.
7666 * lib/unistr/u8-strlen.c: Likewise.
7667 * lib/unistr/u8-strmblen.c: Likewise.
7668 * lib/unistr/u8-strmbtouc.c: Likewise.
7669 * lib/unistr/u8-strncat.c: Likewise.
7670 * lib/unistr/u8-strncmp.c: Likewise.
7671 * lib/unistr/u8-strncpy.c: Likewise.
7672 * lib/unistr/u8-strnlen.c: Likewise.
7673 * lib/unistr/u8-strpbrk.c: Likewise.
7674 * lib/unistr/u8-strrchr.c: Likewise.
7675 * lib/unistr/u8-strspn.c: Likewise.
7676 * lib/unistr/u8-strstr.c: Likewise.
7677 * lib/unistr/u8-strtok.c: Likewise.
7678 * lib/unistr/u8-to-u16.c: Likewise.
7679 * lib/unistr/u8-to-u32.c: Likewise.
7680 * lib/unistr/u8-uctomb-aux.c: Likewise.
7681 * lib/unistr/u8-uctomb.c: Likewise.
7682 * lib/unitypes.h: Likewise.
7683 * lib/uniwidth.h: Likewise.
7684 * lib/uniwidth/cjk.h: Likewise.
7685 * lib/uniwidth/u16-strwidth.c: Likewise.
7686 * lib/uniwidth/u16-width.c: Likewise.
7687 * lib/uniwidth/u32-strwidth.c: Likewise.
7688 * lib/uniwidth/u32-width.c: Likewise.
7689 * lib/uniwidth/u8-strwidth.c: Likewise.
7690 * lib/uniwidth/u8-width.c: Likewise.
7691 * lib/uniwidth/width.c: Likewise.
7693 2007-10-07 Bruno Haible <bruno@clisp.org>
7695 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
7696 The file is still under LGPL (see modules/inttypes).
7698 2007-10-06 Bruno Haible <bruno@clisp.org>
7700 * modules/trunc (Dependencies): Add 'extensions'.
7701 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
7702 Reported by Ben Pfaff <blp@gnu.org>.
7704 2007-10-06 Bruno Haible <bruno@clisp.org>
7706 * modules/freopen-tests: New file.
7707 * tests/test-freopen.c: New file.
7709 * modules/fopen-tests: New file.
7710 * tests/test-fopen.c: New file.
7712 * modules/fopen: New file.
7713 * lib/fopen.c: New file.
7714 * m4/fopen.m4: New file.
7715 * modules/freopen: New file.
7716 * lib/freopen.c: New file.
7717 * m4/freopen.m4: New file.
7718 * lib/stdio.in.h (fopen, freopen): New declarations.
7719 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
7720 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
7721 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
7722 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
7723 * doc/functions/fopen.texi: Mention the 'fopen' module.
7724 * doc/functions/freopen.texi: Mention the 'freopen' module.
7726 2007-10-06 Bruno Haible <bruno@clisp.org>
7728 * modules/open-tests: New file.
7729 * tests/test-open.c: New file.
7731 * modules/open: New file.
7732 * lib/open.c: New file.
7733 * m4/open.m4: New file.
7734 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
7736 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
7737 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
7739 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
7740 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
7742 * doc/functions/open.texi: Mention the 'open' module.
7744 2007-10-04 Bruno Haible <bruno@clisp.org>
7746 * modules/ceill-tests: New file.
7747 * tests/test-ceill.c: New file.
7749 * modules/ceill: New file.
7750 * lib/ceill.c: Replace entire file.
7751 * m4/ceill.m4: New file.
7752 * lib/math.in.h (ceill): Replace declaration.
7753 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
7754 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
7755 * doc/functions/ceill.texi: Mention the 'ceill' module.
7756 * modules/mathl (Files): Remove lib/ceill.c.
7757 (Depends-on): Add ceill.
7759 2007-10-04 Bruno Haible <bruno@clisp.org>
7761 * modules/ceilf-tests: New file.
7762 * tests/test-ceilf.c: New file.
7764 * modules/ceilf: New file.
7765 * lib/ceil.c: New file.
7766 * lib/ceilf.c: New file.
7767 * m4/ceilf.m4: New file.
7768 * lib/math.in.h (ceilf): New declaration.
7769 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
7771 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
7773 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
7775 2007-10-04 Bruno Haible <bruno@clisp.org>
7777 * modules/floorl-tests: New file.
7778 * tests/test-floorl.c: New file.
7780 * modules/floorl: New file.
7781 * lib/floorl.c: Replace entire file.
7782 * m4/floorl.m4: New file.
7783 * lib/math.in.h (floorl): Replace declaration.
7784 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
7785 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
7786 * doc/functions/floorl.texi: Mention the 'floorl' module.
7787 * modules/mathl (Files): Remove lib/floorl.c.
7788 (Depends-on): Add floorl.
7790 2007-10-04 Bruno Haible <bruno@clisp.org>
7792 * modules/floorf-tests: New file.
7793 * tests/test-floorf.c: New file.
7795 * modules/floorf: New file.
7796 * lib/floor.c: New file.
7797 * lib/floorf.c: New file.
7798 * m4/floorf.m4: New file.
7799 * lib/math.in.h (floorf): New declaration.
7800 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
7802 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
7804 * doc/functions/floorf.texi: Mention the 'floorf' module.
7806 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
7807 Bruno Haible <bruno@clisp.org>
7809 Advertise for the Git server instead of the CVS server.
7810 * doc/gnulib-intro.texi (Steady Development): Mention the Git
7811 repository instead of the CVS one.
7812 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
7813 about all VCS systems generically.
7814 * doc/gnulib.texi (Introduction): Capitalize `Git'.
7816 2007-10-04 Bruno Haible <bruno@clisp.org>
7818 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
7820 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
7822 2007-10-04 Bruno Haible <bruno@clisp.org>
7824 * modules/truncl-tests: New file.
7825 * tests/test-truncl.c: New file.
7827 * modules/truncl: New file.
7828 * lib/truncl.c: New file.
7829 * m4/truncl.m4: New file.
7830 * lib/math.in.h (truncl): New declaration.
7831 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
7833 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
7835 * doc/functions/truncl.texi: Mention the 'truncl' module.
7837 2007-10-04 Bruno Haible <bruno@clisp.org>
7839 * modules/truncf-tests: New file.
7840 * tests/test-truncf.c: New file.
7842 * modules/truncf: New file.
7843 * lib/trunc.c: Make paramerizable through USE_* macros.
7844 * lib/truncf.c: New file.
7845 * m4/truncf.m4: New file.
7846 * lib/math.in.h (truncf): New declaration.
7847 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
7849 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
7851 * doc/functions/truncf.texi: Mention the 'truncf' module.
7853 2007-10-03 Bruno Haible <bruno@clisp.org>
7855 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
7856 augmentation also for tests modules.
7857 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
7858 * modules/atexit-tests (Makefile.am): Likewise.
7859 * modules/binary-io-tests (Makefile.am): Likewise.
7860 * modules/c-strcase-tests (Makefile.am): Likewise.
7861 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
7862 * modules/canonicalize-tests (Makefile.am): Likewise.
7863 * modules/closein-tests (Makefile.am): Likewise.
7864 * modules/fprintf-posix-tests (Makefile.am): Likewise.
7865 * modules/freadahead-tests (Makefile.am): Likewise.
7866 * modules/fseek-tests (Makefile.am): Likewise.
7867 * modules/fseeko-tests (Makefile.am): Likewise.
7868 * modules/ftell-tests (Makefile.am): Likewise.
7869 * modules/ftello-tests (Makefile.am): Likewise.
7870 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
7871 * modules/isnanl-tests (Makefile.am): Likewise.
7872 * modules/lseek-tests (Makefile.am): Likewise.
7873 * modules/mbscasecmp-tests (Makefile.am): Likewise.
7874 * modules/mbscasestr-tests (Makefile.am): Likewise.
7875 * modules/mbschr-tests (Makefile.am): Likewise.
7876 * modules/mbscspn-tests (Makefile.am): Likewise.
7877 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
7878 * modules/mbspbrk-tests (Makefile.am): Likewise.
7879 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
7880 * modules/mbsrchr-tests (Makefile.am): Likewise.
7881 * modules/mbsspn-tests (Makefile.am): Likewise.
7882 * modules/mbsstr-tests (Makefile.am): Likewise.
7883 * modules/printf-posix-tests (Makefile.am): Likewise.
7884 * modules/snprintf-posix-tests (Makefile.am): Likewise.
7885 * modules/sprintf-posix-tests (Makefile.am): Likewise.
7886 * modules/tsearch-tests (Makefile.am): Likewise.
7887 * modules/uniname/uniname-tests (Makefile.am): Likewise.
7888 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
7889 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
7890 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
7891 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
7892 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
7893 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
7894 * modules/vprintf-posix-tests (Makefile.am): Likewise.
7895 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
7896 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
7897 * modules/xstrtoimax-tests (Makefile.am): Likewise.
7898 * modules/xstrtol-tests (Makefile.am): Likewise.
7899 * modules/xstrtoumax-tests (Makefile.am): Likewise.
7900 * modules/yesno-tests (Makefile.am): Likewise.
7902 2007-10-03 Bruno Haible <bruno@clisp.org>
7904 * modules/trunc-tests: New file.
7905 * tests/test-trunc.c: New file.
7907 * modules/trunc: New file.
7908 * lib/trunc.c: New file.
7909 * m4/trunc.m4: New file.
7910 * lib/math.in.h (trunc): New declaration.
7911 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
7913 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
7915 * doc/functions/trunc.texi: Mention the 'trunc' module.
7917 2007-10-03 Bruno Haible <bruno@clisp.org>
7919 * tests/test-fpending.c: New file, mostly copied
7920 from coreutils/lib/t-fpending.c.
7921 * modules/fpending-tests: New file.
7923 2007-10-03 Bruno Haible <bruno@clisp.org>
7925 Port the stdio extensions to QNX (untested).
7926 * lib/fseterr.c (fseterr): Add support for QNX.
7927 * lib/fbufmode.c (fbufmode): Likewise.
7928 * lib/freadable.c (freadable): Likewise.
7929 * lib/fwritable.c (fwritable): Likewise.
7930 * lib/freading.c (freading): Likewise.
7931 * lib/fwriting.c (fwriting): Likewise.
7932 * lib/freadahead.c (freadahed): Likewise.
7933 * lib/fpurge.c (fpurge): Likewise.
7934 * lib/fseeko.c (rpl_fseeko): Likewise.
7936 2007-10-03 Bruno Haible <bruno@clisp.org>
7937 Jim Meyering <jim@meyering.net>
7938 Eric Blake <ebb9@byu.net>
7940 * doc/relocatable.texi: Use @command instead of @program.
7942 2007-10-02 Jim Meyering <jim@meyering.net>
7944 Perform one more "_.h" -> ".in.h" substitution.
7945 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
7946 instead of unistd_.h here, too.
7948 2007-10-01 Bruno Haible <bruno@clisp.org>
7950 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
7951 Needed for the alloca-opt module.
7953 2007-09-30 Bruno Haible <bruno@clisp.org>
7955 * lib/alloca.in.h: Renamed from lib/alloca_.h.
7956 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
7958 * lib/argz.in.h: Renamed from lib/argz_.h.
7959 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
7960 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
7961 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
7963 * lib/dirent.in.h: Renamed from lib/dirent_.h.
7964 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
7966 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
7967 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
7969 * lib/float.in.h: Renamed from lib/float_.h.
7970 * modules/float (Files, Makefile.am): Use float.in.h instead of
7972 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
7973 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
7975 * lib/getopt.in.h: Renamed from lib/getopt_.h.
7976 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
7978 * lib/glob.in.h: Renamed from lib/glob_.h.
7979 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
7980 * lib/iconv.in.h: Renamed from lib/iconv_.h.
7981 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
7983 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
7984 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
7986 * lib/locale.in.h: Renamed from lib/locale_.h.
7987 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
7989 * lib/math.in.h: Renamed from lib/math_.h.
7990 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
7991 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
7992 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
7993 of netinet_in_.h. Add dependency.
7994 * lib/poll.in.h: Renamed from lib/poll_.h.
7995 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
7996 * lib/search.in.h: Renamed from lib/search_.h.
7997 * modules/search (Files, Makefile.am): Use search.in.h instead of
7999 * lib/signal.in.h: Renamed from lib/signal_.h.
8000 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
8002 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
8003 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
8005 * lib/stdint.in.h: Renamed from lib/stdint_.h.
8006 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
8008 * lib/stdio.in.h: Renamed from lib/stdio_.h.
8009 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
8011 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
8012 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
8014 * lib/string.in.h: Renamed from lib/string_.h.
8015 * modules/string (Files, Makefile.am): Use string.in.h instead of
8017 * doc/gnulib-tool.texi (Initial import): Update.
8018 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
8019 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
8020 of sys_select_.h. Add dependency.
8021 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
8022 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
8024 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
8025 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
8027 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
8028 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
8030 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
8031 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
8033 * lib/time.in.h: Renamed from lib/time_.h.
8034 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
8035 * lib/unistd.in.h: Renamed from lib/unistd_.h.
8036 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
8038 * lib/wchar.in.h: Renamed from lib/wchar_.h.
8039 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
8041 * lib/wctype.in.h: Renamed from lib/wctype_.h.
8042 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
8044 * build-aux/bootstrap (slurp): Update.
8045 * lib/.cppi-disable: Update.
8047 2007-09-30 Bruno Haible <bruno@clisp.org>
8049 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
8052 2007-09-30 Bruno Haible <bruno@clisp.org>
8054 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
8056 2007-09-29 Bruno Haible <bruno@clisp.org>
8058 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
8060 2007-09-29 Bruno Haible <bruno@clisp.org>
8062 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
8063 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
8064 * build-aux/install-reloc: Compile also areadlink.c.
8065 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
8067 2007-09-29 Bruno Haible <bruno@clisp.org>
8069 * gnulib-tool (func_emit_initmacro_done): Indentation.
8071 2007-09-29 Bruno Haible <bruno@clisp.org>
8073 * README: Add CVS checkout update instructions.
8074 Info from Bob Proulx <bob@proulx.com>.
8076 2007-09-28 Eric Blake <ebb9@byu.net>
8078 Provide move-if-change.
8079 * build-aux/move-if-change: New file, based on best practice
8080 rather than any canonical upstream location.
8082 2007-09-28 Jim Meyering <jim@meyering.net>
8084 Fix canonicalize loop-detection corner case.
8085 Do not attempt to stat the symlink values stored via seen_triple.
8086 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
8087 on linux-2.6.18, (but not 2.6.22).
8088 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
8089 triple_compare. The former compares dev,ino,filename, while the latter
8090 would actually stat dirname(filename) when dev and ino were equal.
8091 * lib/hash-triple.c: Install <string.h>.
8093 (triple_compare_ino_str): New function.
8094 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
8096 2007-09-28 Eric Blake <ebb9@byu.net>
8098 Enforce that AC_REPLACE_FUNCS files exist.
8099 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
8100 override check for typos.
8102 Fix test-closein on Solaris 10.
8103 * tests/test-closein.c (main): Don't assume stdin can be inherited
8104 closed on all systems.
8105 * tests/test-closein.sh: Likewise.
8106 Reported by Piotr Tarnowski.
8108 2007-09-28 Jim Meyering <jim@meyering.net>
8110 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
8112 2007-09-27 Jim Meyering <jim@meyering.net>
8114 canonicalize: Avoid a false-positive cycle failure.
8115 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
8116 Sort. Remove cycle-check.
8117 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
8119 (seen_triple): New function.
8120 (canonicalize_filename_mode): Use it instead of cycle-check.
8121 * tests/test-canonicalize.c: Add a test for this bug.
8122 * tests/test-canonicalize.sh: Set up and run the test.
8124 New module, file-set, from coreutils.
8125 * modules/file-set: Define it.
8126 * lib/file-set.c, lib/file-set.h: Implement.
8128 New module, hash-triple, from coreutils.
8129 * modules/hash-triple: Define it.
8130 * lib/hash-triple.c, lib/hash-triple.h: Implement.
8132 2007-09-25 Eric Blake <ebb9@byu.net>
8134 Fix strerror on Interix.
8135 * lib/string_.h (strerror): Declare replacement.
8136 * doc/functions/strerror.texi (strerror): Document the Interix
8138 * modules/string (Makefile.am): Support new hooks.
8139 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
8140 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
8141 gl_FUNC_STRERROR_SEPARATE.
8142 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
8143 * lib/strerror.c (rpl_strerror): Provide replacement.
8144 * modules/strerror (Depends-on): Add string.
8145 (configure.ac): Detect use of module.
8146 * tests/test-strerror.c: New file.
8147 * modules/strerror-tests: New test module.
8148 * modules/argp (Depends-on): Add strerror.
8149 * modules/error (Depends-on): Likewise.
8150 Reported by Martin Koeppe.
8152 2007-09-24 Bruno Haible <bruno@clisp.org>
8154 * README: Update git instructions.
8156 2007-09-24 Eric Blake <ebb9@byu.net>
8158 Revert fpending breakage from 2007-09-08.
8159 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
8162 2007-09-24 Jim Meyering <jim@meyering.net>
8164 filenamecat.c: Add a test.
8165 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
8166 showing how the function works when DIR is the empty string.
8168 2007-09-21 Simon Josefsson <simon@josefsson.org>
8170 * tests/test-canonicalize.sh: Turn on executable bit.
8172 2007-09-19 Eric Blake <ebb9@byu.net>
8174 * README: Update CVS instructions.
8176 2007-09-18 Bruno Haible <bruno@clisp.org>
8178 * modules/areadlink: New file.
8179 * lib/areadlink.h (areadlink): New declaration.
8180 * lib/areadlink.c: New file, based on lib/xreadlink.c.
8182 2007-09-17 Jim Meyering <jim@meyering.net>
8184 * lib/savewd.c (ESTALE) [!defined]: Define.
8185 Reported to be required on Interix by Martin Koeppe.
8187 2007-09-17 Bruno Haible <bruno@clisp.org>
8189 * gnulib-tool (func_version): Use $version.
8191 2007-09-16 Bruno Haible <bruno@clisp.org>
8193 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
8194 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
8195 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
8196 Reported by Greg Schafer <gschafer@zip.com.au>.
8198 2007-09-15 Bruno Haible <bruno@clisp.org>
8200 * gnulib-tool (sed): Try a little harder to make bash understand the
8202 Reported by Bruce Korb <bruce.korb@gmail.com>.
8204 2007-09-13 Eric Blake <ebb9@byu.net>
8206 * ChangeLog: Remove conflict markers.
8208 2007-09-13 Simon Josefsson <simon@josefsson.org>
8210 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
8211 Reported by Bruno Haible <bruno@clisp.org>.
8213 2007-09-12 Bruno Haible <bruno@clisp.org>
8215 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
8216 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
8219 2007-09-12 Eric Blake <ebb9@byu.net>
8221 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
8222 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
8223 Autoconf definition.
8224 * modules/euidaccess (Depends-on): Add extensions, for
8225 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
8226 * modules/fnmatch (Depends-on): Likewise.
8227 * modules/getaddrinfo (Depends-on): Likewise.
8228 * modules/getdelim (Depends-on): Likewise.
8229 * modules/getline (Depends-on): Likewise.
8230 * modules/getsubopt (Depends-on): Likewise.
8231 * modules/gettext (Depends-on): Likewise.
8232 * modules/group-member (Depends-on): Likewise.
8233 * modules/mbchar (Depends-on): Likewise.
8234 * modules/memmem (Depends-on): Likewise.
8235 * modules/mempcpy (Depends-on): Likewise.
8236 * modules/memrchr (Depends-on): Likewise.
8237 * modules/pagealign_alloc (Depends-on): Likewise.
8238 * modules/readutmp (Depends-on): Likewise.
8239 * modules/stpcpy (Depends-on): Likewise.
8240 * modules/stpncpy (Depends-on): Likewise.
8241 * modules/strchrnul (Depends-on): Likewise.
8242 * modules/strndup (Depends-on): Likewise.
8243 * modules/strsep (Depends-on): Likewise.
8244 * modules/strverscmp (Depends-on): Likewise.
8245 * modules/vasprintf (Depends-on): Likewise.
8246 * modules/wcwidth (Depends-on): Likewise.
8247 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
8248 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
8249 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
8250 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
8251 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8252 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8253 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
8254 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
8255 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
8256 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
8257 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
8258 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
8259 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
8260 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
8261 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
8262 * m4/readutmp.m4 (gl_READUTMP): Likewise.
8263 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8264 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
8265 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
8266 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
8267 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
8268 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
8269 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
8270 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
8271 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
8272 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8273 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
8274 so that lock.m4 can be used in gettext without extensions module.
8276 2007-09-11 Bruno Haible <bruno@clisp.org>
8278 * m4/isc-posix.m4: Remove file.
8279 Suggested by Eric Blake.
8281 2007-09-11 Eric Blake <ebb9@byu.net>
8283 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
8285 2007-09-10 Bruno Haible <bruno@clisp.org>
8287 * posix-modules: Fix typo in error message.
8288 Reported by Matt <mkraai@beckman.com>.
8290 2007-09-09 Bruno Haible <bruno@clisp.org>
8292 * doc/functions/getdelim.texi: Update list of platforms lacking the
8294 * doc/functions/getline.texi: Likewise.
8296 2007-09-09 Jim Meyering <jim@meyering.net>
8298 * lib/hash.c (hash_initialize): Detect calloc failure.
8299 Reported by Bruno Haible.
8301 2007-09-09 Bruno Haible <bruno@clisp.org>
8303 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
8304 malloc or realloc fails.
8306 2007-09-09 Bruno Haible <bruno@clisp.org>
8308 * modules/getcwd (Depends-on): Add malloc-posix.
8309 * modules/glob (Depends-on): Likewise.
8310 * modules/putenv (Depends-on): Likewise.
8311 * modules/strdup (Depends-on): Likewise.
8312 * modules/getdelim (Depends-on): Add realloc-posix.
8313 * modules/read-file (Depends-on): Likewise.
8315 2007-09-09 Bruno Haible <bruno@clisp.org>
8317 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
8318 (gl_FUNC_MALLOC_POSIX): Require it.
8319 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
8320 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
8321 * modules/realloc (Files): Add m4/malloc.m4.
8322 * modules/calloc (Files): Likewise.
8324 2007-09-09 Bruno Haible <bruno@clisp.org>
8326 * modules/malloc-posix: New file.
8327 * modules/malloc (Depends-on): Add malloc-posix.
8328 * lib/malloc.c: Include errno.h.
8329 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
8330 and a POSIX-compatible malloc into a single function. Set ENOMEM
8331 when returning NULL.
8332 * m4/malloc.m4: New file.
8333 * doc/functions/malloc.texi: Mention the malloc-posix module.
8334 * lib/stdlib_.h (malloc): New declaration.
8335 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
8336 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
8337 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
8338 and HAVE_MALLOC_POSIX.
8340 2007-09-09 Bruno Haible <bruno@clisp.org>
8342 * modules/realloc-posix: New file.
8343 * modules/realloc (Depends-on): Add realloc-posix.
8344 * lib/realloc.c: Include errno.h.
8345 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
8346 and a POSIX-compatible realloc into a single function. Set ENOMEM
8347 when returning NULL.
8348 * m4/realloc.m4: New file.
8349 * doc/functions/realloc.texi: Mention the realloc-posix module.
8350 * lib/stdlib_.h (realloc): New declaration.
8351 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
8352 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
8353 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
8354 and HAVE_REALLOC_POSIX.
8356 2007-09-09 Bruno Haible <bruno@clisp.org>
8358 * modules/calloc-posix: New file.
8359 * modules/calloc (Depends-on): Add calloc-posix.
8360 * lib/calloc.c: Include errno.h.
8361 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
8362 and a POSIX-compatible calloc into a single function. Set ENOMEM
8363 when returning NULL.
8364 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
8365 * doc/functions/calloc.texi: Mention the calloc-posix module.
8366 * lib/stdlib_.h (calloc): New declaration.
8367 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
8368 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
8369 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
8370 and HAVE_CALLOC_POSIX.
8372 2007-09-09 Bruno Haible <bruno@clisp.org>
8374 Allow for modules to show an arbitrary notice.
8375 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
8376 * gnulib-tool: New option --extract-notice.
8377 (func_usage): Document it.
8378 (sed_extract_prog): Update.
8379 (func_get_notice): New function.
8380 (func_modules_notice): New function.
8381 (func_import, func_create_testdir): Invoke it.
8382 Suggested by Jim Meyering.
8384 2007-09-09 Bruno Haible <bruno@clisp.org>
8386 * gnulib-tool: New options --verbose, --quiet.
8387 (func_usage): Document them.
8388 (verbose): New variable.
8389 (func_execute_command): New function.
8390 (func_import): Don't show the module list and the file list if
8392 (func_create_testdir): Likewise. Use func_execute_command.
8393 (func_create_megatestdir): Use func_execute_command.
8395 2007-09-08 Bruno Haible <bruno@clisp.org>
8397 * gnulib-tool (func_import): Prefer rsync over wget when available,
8398 for fetching the PO files.
8400 2007-09-08 Bruno Haible <bruno@clisp.org>
8402 * posix-modules: New file. Portions copied from gnulib-tool.
8403 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
8405 2007-09-08 Jim Meyering <jim@meyering.net>
8407 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
8408 * lib/fpending.h: Rename from __fpending.h.
8409 * lib/fpending.c: Rename from __fpending.c.
8410 Include "fpending.h", not "__fpending.h".
8411 * lib/__fpending.h, lib/__fpending.c: Remove files.
8412 * modules/fpending (Files): Reflect new file names.
8413 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
8415 2007-09-08 Bruno Haible <bruno@clisp.org>
8417 * m4/inttypes-h.m4: Remove stub file.
8419 2007-09-07 Simon Josefsson <simon@josefsson.org>
8421 * doc/headers/stdint.texi: Discuss #include_next issue.
8423 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
8425 * build-aux/bootstrap: Remove obsolete comment about wget --help.
8427 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
8429 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
8432 2007-09-03 Jim Meyering <jim@meyering.net>
8434 New module: git-version-gen.
8435 * modules/git-version-gen: New file.
8437 Import changes from coreutils for bootstrap script.
8439 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
8441 bootstrap: uses rsync to download the .po files
8442 * build-aux/bootstrap (po_download_command_format): New global.
8443 (download_po_files): Use rsync.
8444 (update_po_files): Don't remove .po files after download,
8445 so future rsync runs can take advantage of the copies.
8447 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
8449 Solve the unnecessary-.po-file-regeneration problem once and for all.
8450 * build-aux/bootstrap (download_po_files): New function, renamed from
8451 get_translations. Now, downloads, but doesn't update LINGUAS.
8452 (update_po_files): New function.
8454 bootstrap: Ignore more.
8455 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
8456 uniwidth to e.g., lib/.gitignore.
8457 (slurp): Handle the sys_stat_.h -> sys mapping, too.
8459 * build-aux/bootstrap: New setting: vc_ignore.
8460 (insert_sorted_if_absent): Create $file if absent.
8461 Adapt to new, possibly empty, list: $vc_ignore.
8463 bootstrap: generate more ignorable names
8464 * build-aux/bootstrap (slurp): When generating ignorable names,
8465 also map .sin to .sed, .gperf to .c, and .y to .c.
8467 2007-09-03 Jim Meyering <jim@meyering.net>
8469 * build-aux/git-version-gen: New file, from coreutils. For details, see
8470 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
8472 2007-09-02 Bruno Haible <bruno@clisp.org>
8474 Fix mis-recognition of 'mcs' on QNX 6.
8475 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
8476 output contains the string "Mono".
8477 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
8478 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
8480 2007-09-01 Bruno Haible <bruno@clisp.org>
8482 Fix collision between uniwidth/* and linebreak modules.
8483 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
8484 u32_width): Remove declarations.
8485 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
8486 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
8487 streq3, streq2, streq1, streq0): Remove functions.
8488 (STREQ): Remove macro.
8489 (is_cjk_encoding): Remove function.
8490 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
8491 (uc_width, u8_width, u16_width, u32_width): Remove functions.
8492 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
8493 * NEWS: Document the change.
8495 2007-09-01 Bruno Haible <bruno@clisp.org>
8497 * lib/streq.h: Add double-inclusion guard.
8499 2007-09-01 Karl Berry <karl@gnu.org>
8501 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
8503 2007-08-28 Jim Meyering <jim@meyering.net>
8505 Rename mreadlink_with_size to areadlink_with_size.
8506 * NEWS: Document the change.
8507 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
8508 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
8509 * lib/mreadlink.h: Rename this to...
8510 * lib/areadlink.h: ...this.
8511 * modules/mreadlink-with-size: Rename this to...
8512 * modules/areadlink-with-size: ...this.
8513 * lib/canonicalize.c: Reflect the renaming.
8514 * modules/canonicalize: Likewise.
8516 2007-08-26 Bruno Haible <bruno@clisp.org>
8518 * gnulib-tool (func_import): When deciding which files to remove,
8519 consider also dangling symbolic links.
8520 Reported by Eric Blake.
8522 2007-08-26 Bruno Haible <bruno@clisp.org>
8524 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
8526 2007-08-23 Simon Josefsson <simon@josefsson.org>
8528 * lib/readline.c: Don't include getline.h, the prototype is now
8531 2007-08-23 Jim Meyering <jim@meyering.net>
8534 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
8535 around the funlockfile call, since funlockfile never sets errno.
8536 Don't set errno upon failed realloc.
8538 2007-08-22 Eric Blake <ebb9@byu.net>
8541 * lib/getdelim.c (getdelim): Revert regression that required *n to
8542 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
8543 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
8544 getdelim, rather than whether implementation is missing.
8545 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
8546 * lib/stdio_.h (getline): Also declare if replacement is
8548 * doc/functions/getdelim.texi: New file.
8549 * doc/functions/getline.texi: Likewise.
8550 * doc/gnulib.texi (Function Substitutes): Add new files.
8551 Reported by Bruno Haible.
8553 2007-08-22 Ludovic Courtès <ludo@gnu.org>
8555 * users.txt: Add Guile.
8557 2007-08-22 Eric Blake <ebb9@byu.net>
8559 * tests/test-getdelim.c (main): Use remove, not unlink.
8560 * tests/test-getline.c (main): Likewise.
8562 Move getline and getdelim into stdio.h, per POSIX 200x.
8563 * modules/getline (Files): Remove getline.h.
8564 (Depends-on): Add stdio.
8565 (configure.ac): Add module indicator.
8566 * modules/getdelim (Files): Remove getdelim.h.
8567 (Depends-on): Add stdio.
8568 (configure.ac): Add module indicator.
8569 * modules/stdio (Makefile.am): Work with new indicators.
8570 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
8571 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
8572 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8573 * lib/getdelim.h: Delete.
8574 * lib/getline.h: Delete.
8575 * lib/stdio_.h (getdelim, getline): Declare.
8576 * modules/getdelim-tests: New module.
8577 * modules/getline-tests: Likewise.
8578 * tests/test-getdelim.c: New file.
8579 * tests/test-getline.c: Likewise.
8580 * NEWS: Document the change.
8581 * lib/getline.c: Update choice of header.
8582 * lib/csharpcomp.c: Likewise.
8583 * lib/getpass.c: Likewise.
8584 * lib/javacomp.c: Likewise.
8585 * lib/javaversion.c: Likewise.
8586 * lib/yesno.c: Likewise.
8587 * lib/getdelim.c: Likewise.
8588 (getdelim): Set errno on failure, and avoid memory leak.
8590 2007-08-19 Bruno Haible <bruno@clisp.org>
8592 * modules/closein (Depends-on): Add freadahead.
8593 * lib/closein.c: Include freadahead.h.
8594 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
8597 2007-08-19 Bruno Haible <bruno@clisp.org>
8599 * modules/freadahead-tests: New file.
8600 * tests/test-freadahead.sh: New file.
8601 * tests/test-freadahead.c: New file.
8603 * modules/freadahead: New file.
8604 * lib/freadahead.h: New file.
8605 * lib/freadahead.c: New file.
8606 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
8607 fbufmode, fpurge, freadable, fwritable.
8609 2007-08-19 Eric Blake <ebb9@byu.net>
8611 Test yesno in combination with closein.
8612 * lib/yesno.c (yesno): Document use of stdin.
8613 * modules/yesno-tests (Files): New module.
8614 * tests/test-yesno.c (main): New file.
8615 * tests/test-yesno.sh: Likewise.
8617 2007-08-19 Bruno Haible <bruno@clisp.org>
8619 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
8620 * lib/fseeko.c (rpl_fseeko): Likewise.
8621 * lib/fseterr.c (fseterr): Likewise.
8623 2007-08-19 Bruno Haible <bruno@clisp.org>
8625 * tests/test-lseek.c (main): Disable a test for BeOS.
8626 * doc/functions/lseek.texi: Document the BeOS bug.
8628 2007-08-19 Bruno Haible <bruno@clisp.org>
8629 Eric Blake <ebb9@byu.net>
8631 * lib/lseek.c: Include <sys/stat.h>.
8632 (rpl_lseek): Add workaround code also for Unix platforms.
8634 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
8635 * doc/functions/lseek.texi: Document BeOS definiency.
8637 2007-08-18 Bruno Haible <bruno@clisp.org>
8639 * modules/fstrcmp-tests: New file.
8640 * tests/test-fstrcmp.c: New file.
8642 2007-08-18 Bruno Haible <bruno@clisp.org>
8644 * modules/fstrcmp: New file, from GNU gettext with modifications.
8645 * lib/fstrcmp.h: New file, from GNU gettext.
8646 * lib/fstrcmp.c: New file, from GNU gettext.
8647 * MODULES.html.sh (String handling): Add fstrcmp.
8649 2007-08-18 Bruno Haible <bruno@clisp.org>
8651 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
8653 (diag, compareseq): Remove const from the ctxt argument.
8654 (USE_HEURISTIC): Undefine at the end.
8656 2007-08-18 Jim Meyering <jim@meyering.net>
8658 New file: lib/idcache.h
8659 * NEWS: Mention the addition.
8660 * modules/idcache (Files): Add lib/idcache.h
8661 * lib/idcache.c: Include "idcache.h".
8662 Don't include <sys/types.h>.
8663 Add a FIXME comment.
8664 Move file-scoped "static" declarations to the top.
8665 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
8667 2007-08-17 Bruno Haible <bruno@clisp.org>
8668 and Paul Eggert <eggert@cs.ucla.edu>
8670 * MODULES.html.sh: Add diffseq.
8671 * modules/diffseq: New file.
8672 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
8673 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
8675 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
8677 Import changes from coreutils for bootstrap script.
8679 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
8681 * build-aux/bootstrap (slurp): Work even in environments where
8682 "ls" defaults to "ls -A". Put in a FIXME, though, since the
8683 current code does not slurp files whose names start with ".", and
8684 this looks like it might be a troublesome area.
8686 2007-07-11 Jim Meyering <jim@meyering.net>
8688 If there's a GPL vN copyright comment, require that N == 3.
8690 2007-07-08 Jim Meyering <jim@meyering.net>
8692 Run the coreutils-specific code only if tests/Makefile.am.in exists.
8693 * build-aux/bootstrap (mam_template): Move definition out of loop.
8695 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
8697 * build-aux/bootstrap (symlink_to_dir): Rename function from
8698 symlink_to_gnulib. Add a directory parameter. Update all
8700 (cp_mark_as_generated): Also check for -- and link to -- files in
8703 2007-07-08 Jim Meyering <jim@meyering.net>
8705 Adapt to deeper hierarchy in gnulib.
8706 * build-aux/bootstrap (symlink_to_dir): If the destination
8707 directory doesn't exist, create it. This is required at least for
8708 "lib/uniwidth/cjk.h".
8710 2007-05-15 Jim Meyering <jim@meyering.net>
8712 * build-aux/bootstrap: Now that generated Makefile.am files
8713 are no longer under version control, they must be created at
8716 2007-08-14 Ben Pfaff <blp@gnu.org>
8718 * lib/count-one-bits.h: Add comments. From Bruno Haible.
8720 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
8722 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
8723 given the changes below.
8724 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
8725 even on hosts that have padding bits beyond the supported 64.
8727 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
8729 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
8730 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
8731 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
8733 (xstrtol_error): Remove.
8734 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
8735 but with a different signature.
8736 (ATTRIBUTE_NORETURN, __attribute__): New macros.
8737 * lib/xstrtol-error.c: Include exitfail.h.
8738 (xstrtol_fatal): New function, with a different signature from the
8739 old xstrtol_error, so that the caller need not worry about passing
8740 in an exit status, or about storage management of the option argument.
8741 (xstrtol_error): Now a static function. Redo signature to
8742 implement xstrtol_fatal. Output the correct number of hyphens in
8743 front of the option so that the caller need not worry about
8746 (_): Remove; not used now.
8747 * modules/xstrtol: Depend on getopt.
8748 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
8749 of old STRTOL_FATAL_ERROR macro.
8750 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
8752 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
8753 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
8755 2007-08-08 Eric Blake <ebb9@byu.net>
8757 * lib/xstrtol-error.c: Add missing include.
8759 Move xstrtol messages into gnulib domain, when --pobase is used.
8760 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
8761 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
8762 * modules/xstrtol (Files): Distribute new file.
8763 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
8764 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
8765 * tests/test-xstrtol.c: ...into new file.
8766 * tests/test-xstrtoul.c: Also test xstrtoul.
8767 * tests/test-xstrtoimax.c: Also test xstrtoimax.
8768 * tests/test-xstrtoumax.c: Also test xstrtoumax.
8769 * tests/test-xstrtol.sh: Drive the tests.
8770 * tests/test-xstrtoimax.sh: Likewise.
8771 * tests/test-xstrtoumax.sh: Likewise.
8772 * modules/xstrtol-tests: New module.
8773 * modules/xstrtoimax-tests: Likewise.
8774 * modules/xstrtoumax-tests: Likewise.
8776 2007-08-08 Jim Meyering <jim@meyering.net>
8778 New function: mfile_name_concat.
8779 * lib/filenamecat.c (mfile_name_concat): New function, just like
8780 file_name_concat, but return NULL upon failure rather than exiting
8782 * lib/filenamecat.h: Declare it.
8784 2007-08-07 Bruno Haible <bruno@clisp.org>
8786 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
8787 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
8789 Reported by Eric Blake.
8791 2007-08-07 Simon Josefsson <simon@josefsson.org>
8793 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
8794 * modules/crypto/arcfour (License): Likewise.
8795 * modules/crypto/des-tests (License): Likewise.
8796 * modules/crypto/gc-arctwo-tests (License): Likewise.
8797 * modules/crypto/gc-des-tests (License): Likewise.
8798 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
8799 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
8800 * modules/crypto/gc-md2-tests (License): Likewise.
8801 * modules/crypto/gc-md4-tests (License): Likewise.
8802 * modules/crypto/gc-md5-tests (License): Likewise.
8803 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
8804 * modules/crypto/gc-rijndael-tests (License): Likewise.
8805 * modules/crypto/gc-sha1-tests (License): Likewise.
8806 * modules/crypto/gc-tests (License): Likewise.
8807 * modules/crypto/hmac-md5 (License): Likewise.
8808 * modules/crypto/hmac-sha1 (License): Likewise.
8809 * modules/crypto/md2-tests (License): Likewise.
8810 * modules/crypto/md4-tests (License): Likewise.
8811 * modules/crypto/md5 (License): Likewise.
8812 * modules/crypto/rijndael (License): Likewise.
8813 * modules/crypto/sha1 (License): Likewise.
8814 * modules/memxor (License): Likewise.
8816 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
8817 and Bruno Haible <bruno@clisp.org>
8819 * NEWS: Describe interface changes to human, xstrtol.
8820 * lib/human.h: Include <xstrtol.h>.
8821 (human_options): Return enum strtol_error, not int. Remove
8822 bool arg; take int * instead.
8823 * lib/human.c: Don't include "gettext.h".
8824 (_): Remove; no longer used.
8825 Don't include <xstrtol.h>, since human.h does it.
8826 (human_options): Adjust to abovementioned interface changes.
8827 Do not report error to stderr; that's now the caller's
8829 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
8831 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
8832 Str, Argument_type_string. All uses changed. Put " argument"
8833 in diagnostics to make them clearer. Change wording of suffix
8834 message for clarity.
8835 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
8836 Argument_type_string.
8837 (STRTOL_FATAL_WARN): Remove; no longer used.
8838 * modules/human (Depends-on): Remove gettext-h.
8840 2007-08-06 Simon Josefsson <simon@josefsson.org>
8842 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
8844 2007-07-31 Bruno Haible <bruno@clisp.org>
8846 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
8847 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
8848 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
8850 2007-07-31 Bruno Haible <bruno@clisp.org>
8852 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
8853 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
8855 2007-07-30 Bruno Haible <bruno@clisp.org>
8857 * modules/base64 (License): Use the synonymous term "LGPLv2+".
8858 * modules/c-ctype (License): Likewise.
8859 * modules/c-strcase (License): Likewise.
8860 * modules/check-version (License): Likewise.
8861 * modules/iconv (License): Likewise.
8862 * modules/iconv_open (License): Likewise.
8863 * modules/read-file (License): Likewise.
8864 * modules/striconv (License): Likewise.
8865 * modules/strverscmp (License): Likewise.
8866 * modules/vasprintf (License): Likewise.
8867 * modules/crypto/des (License): Likewise.
8868 * modules/crypto/gc (License): Likewise.
8869 * modules/crypto/gc-arcfour (License): Likewise.
8870 * modules/crypto/gc-arctwo (License): Likewise.
8871 * modules/crypto/gc-des (License): Likewise.
8872 * modules/crypto/gc-hmac-md5 (License): Likewise.
8873 * modules/crypto/gc-hmac-sha1 (License): Likewise.
8874 * modules/crypto/gc-md2 (License): Likewise.
8875 * modules/crypto/gc-md4 (License): Likewise.
8876 * modules/crypto/gc-md5 (License): Likewise.
8877 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
8878 * modules/crypto/gc-random (License): Likewise.
8879 * modules/crypto/gc-rijndael (License): Likewise.
8880 * modules/crypto/gc-sha1 (License): Likewise.
8881 * modules/crypto/md2 (License): Likewise.
8882 * modules/crypto/md4 (License): Likewise.
8884 2007-07-30 Jim Meyering <jim@meyering.net>
8886 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
8887 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
8888 it has valid stat data. This bug would cause du not to count the
8889 sizes of inaccessible directories.
8890 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
8891 in <http://bugzilla.redhat.com/250077>.
8893 2007-07-25 Peter O'Gorman <peter@pogma.com>
8894 Bruno Haible <bruno@clisp.org>
8896 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
8897 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
8898 #include_next, gives a diagnostic about it, but reports no error in
8900 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
8902 2007-07-24 Ben Pfaff <blp@gnu.org>
8904 Improve name: "count-one-bits" is better than "popcount".
8905 * MODULES.html.sh: Update name.
8906 * lib/popcount.h: Renamed lib/count-one-bits.h.
8907 (popcount): Renamed count_one_bits.
8908 (popcountl): Renamed count_one_bits_l.
8909 (popcountll): Renamed count_one_bits_ll.
8910 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
8911 * modules/popcount: Renamed module/count-one-bits.
8912 * modules/popcount-tests: Renamed module/count-one-bits-tests.
8913 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
8915 2007-07-23 Ben Pfaff <blp@gnu.org>
8917 * lib/popcount.h (popcount32): Reduce size of constants, to allow
8918 better code generation, and add U to large constants to avoid
8919 warnings, in non-GCC case.
8920 Suggested by Bruno Haible.
8922 2007-07-23 Ben Pfaff <blp@gnu.org>
8924 * lib/popcount.h: Use verify_true instead of if...abort.
8925 * modules/popcount: Depend on verify module.
8926 Suggested by Jim Meyering.
8928 2007-07-23 Bruno Haible <bruno@clisp.org>
8930 * gnulib-tool (func_import): Create a .cvsignore file also when the
8931 directory is not yet in CVS but the toplevel directory is. When
8932 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
8933 Reported by Karl Berry.
8935 2007-07-22 Ben Pfaff <blp@gnu.org>
8937 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
8939 Suggested by Eric Blake.
8941 2007-07-22 Ben Pfaff <blp@gnu.org>
8943 New module: popcount.
8944 * MODULES.html.sh: Add popcount.
8945 * modules/popcount: New file.
8946 * modules/popcount-tests: New file.
8947 * tests/test-popcount.c: New file.
8948 * lib/popcount.h: New file.
8949 * m4/popcount.m4: New file.
8951 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
8953 * build-aux/announce-gen: Update to GPLv3.
8955 * build-aux/config.guess: Update from config.
8957 2007-07-21 Bruno Haible <bruno@clisp.org>
8959 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
8960 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
8962 2007-07-20 Jim Meyering <jim@meyering.net>
8964 * check-module: Diagnose a self-dependency.
8966 2007-07-19 Bruno Haible <bruno@clisp.org>
8968 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
8970 Reported by Eric Blake.
8972 2007-07-18 Bruno Haible <bruno@clisp.org>
8974 * gnulib-tool: New options --po-base, --po-domain.
8975 (func_usage): Document them.
8976 (pobase, po_domain): New variables.
8977 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
8978 DEFAULT_TEXT_DOMAIN.
8979 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
8980 (func_import): Consider pobase and po_domain. Create a po/ directory.
8981 (func_create_testdir): Set pobase and po_domain to empty.
8982 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
8983 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
8985 2007-07-18 Bruno Haible <bruno@clisp.org>
8987 * gnulib-tool (func_get_automake_snippet): Synthesize also an
8988 EXTRA_DIST augmentation for files in build-aux/.
8990 2007-07-16 Bruno Haible <bruno@clisp.org>
8992 * modules/lseek (License): Use the synonymous term "LGPLv2+".
8993 * modules/getdelim (License): Likewise.
8995 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
8997 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
8998 * modules/d-type (License): Likewise.
8999 * modules/extensions (License): Likewise.
9000 * modules/fnmatch (License): Likewise.
9001 * modules/fseeko (License): Likewise.
9002 * modules/getaddrinfo (License): Likewise.
9003 * modules/getline (License): Likewise.
9004 * modules/getlogin_r (License): Likewise.
9005 * modules/getpass (License): Likewise.
9006 * modules/gettimeofday (License): Likewise.
9007 * modules/glob (License): Likewise.
9008 * modules/inet_ntop (License): Likewise.
9009 * modules/malloc (License): Likewise.
9010 * modules/malloca (License): Likewise.
9011 * modules/memmem (License): Likewise.
9012 * modules/mempcpy (License): Likewise.
9013 * modules/memset (License): Likewise.
9014 * modules/minmax (License): Likewise.
9015 * modules/mktime (License): Likewise.
9016 * modules/netinet_in (License): Likewise.
9017 * modules/pathmax (License): Likewise.
9018 * modules/poll (License): Likewise.
9019 * modules/regex (License): Likewise.
9020 * modules/snprintf (License): Likewise.
9021 * modules/stdbool (License): Likewise.
9022 * modules/stdint (License): Likewise.
9023 * modules/stdio (License): Likewise.
9024 * modules/strcase (License): Likewise.
9025 * modules/strcasestr (License): Likewise.
9026 * modules/strdup (License): Likewise.
9027 * modules/string (License): Likewise.
9028 * modules/strndup (License): Likewise.
9029 * modules/strnlen (License): Likewise.
9030 * modules/strpbrk (License): Likewise.
9031 * modules/strptime (License): Likewise.
9032 * modules/strsep (License): Likewise.
9033 * modules/sys_select (License): Likewise.
9034 * modules/sys_socket (License): Likewise.
9035 * modules/sys_stat (License): Likewise.
9036 * modules/sys_time (License): Likewise.
9037 * modules/time (License): Likewise.
9038 * modules/time_r (License): Likewise.
9039 * modules/timegm (License): Likewise.
9040 * modules/unistd (License): Likewise.
9041 * modules/vsnprintf (License): Likewise.
9042 * modules/wctype (License): Likewise.
9044 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9046 * modules/argz (License): LGPLv2+.
9048 2007-07-15 Karl Berry <karl@gnu.org>
9050 * doc/gnulib.texi: revise node structure per new fdl.texi.
9052 2007-07-14 Bruno Haible <bruno@clisp.org>
9054 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
9056 * lib/uniname/uninames.h: Regenerated.
9058 2007-07-14 Karl Berry <karl@gnu.org>
9060 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
9061 omitting sectioning and index commands.
9063 2007-07-13 Bruno Haible <bruno@clisp.org>
9065 New gnulib-tool option --more-symlinks.
9066 * gnulib-tool (func_usage): Document --more-symlinks.
9067 (do_copyrights): New variable.
9068 Recognize option --more-symlinks.
9069 (func_import): Don't add a copyright notice transform to
9070 sed_transform_lib_file if do_copyrights is empty.
9072 2007-07-13 Bruno Haible <bruno@clisp.org>
9074 * lib/vasnprintf.c (decimal_point_char): Define also if
9075 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
9076 && !NEED_PRINTF_DIRECTIVE_A.
9077 Reported by Clemens Koller <clemens.koller@anagramm.de> via
9078 Gary V. Vaughan <gary@gnu.org>.
9080 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
9082 * lib/inttypes_.h: Undo previous change, since it was fixed
9083 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
9085 2007-07-13 Bruno Haible <bruno@clisp.org>
9087 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
9088 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
9090 2007-07-13 Jim Meyering <jim@meyering.net>
9092 df: Don't fail for Tru64's "file-on-file mount".
9093 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
9094 so we fall through and use statfs instead. Details here:
9095 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
9096 Reported by Albert Chin.
9098 2007-07-13 Bruno Haible <bruno@clisp.org>
9100 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
9101 * modules/configmake (License): Likewise.
9102 * modules/gettext (License): Likewise.
9103 * modules/gettext-h (License): Likewise.
9104 * modules/include_next (License): Likewise.
9105 * modules/link-warning (License): Likewise.
9106 * modules/localcharset (License): Likewise.
9107 * modules/localename (License): Likewise.
9108 * modules/lock (License): Likewise.
9109 * modules/relocatable-lib-lgpl (License): Likewise.
9110 * modules/size_max (License): Likewise.
9111 * modules/vasnprintf (License): Likewise.
9112 * modules/wchar (License): Likewise.
9113 * modules/xsize (License): Likewise.
9115 2007-07-13 Bruno Haible <bruno@clisp.org>
9117 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
9118 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
9120 2007-07-12 Bruno Haible <bruno@clisp.org>
9122 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
9123 in the modules files.
9125 2007-07-11 Karl Berry <karl@gnu.org>
9127 * MODULES.html.sh (func_module): use
9128 sed -e '\|^'"${includefile}"'$|d'
9129 instead of /.../d, to avoid errors on $includefile's containing /.
9131 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
9133 * gnulib-tool (func_import): Avoid duplication of --avoid
9135 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
9136 names to `_' in variable names.
9138 2007-07-10 Eric Blake <ebb9@byu.net>
9140 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
9141 * NEWS: Document this change.
9143 2007-07-08 Bruno Haible <bruno@clisp.org>
9145 Update to Unicode 5.0.
9146 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
9147 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
9148 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
9149 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
9150 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
9151 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
9152 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
9153 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
9154 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
9155 U+10A3F, U+1D242..U+1D244.
9156 (nonspacing_table_ind): Update.
9157 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
9158 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
9160 2007-07-08 Bruno Haible <bruno@clisp.org>
9162 Update to Unicode 5.0.
9163 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
9164 code transform. Extend the name index field of unicode_name_to_code and
9165 unicode_code_to_name from 16 to 24 bits.
9166 * lib/uniname/uniname.c (unicode_character_name,
9167 unicode_name_character): Add the range 0x12xxx to the code transform.
9168 * lib/uniname/uninames.h: Regenerated.
9169 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
9171 2007-07-07 Bruno Haible <bruno@clisp.org>
9173 * modules/wcwidth-tests: New file.
9174 * tests/test-wcwidth.c: New file.
9176 Work around MacOS X wcwidth() bug.
9177 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
9178 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
9179 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
9180 original wcwidth in non-UTF-8 locales.
9181 * modules/wcwidth (Depends-on): Add localcharset, streq,
9183 * doc/functions/wcwidth.texi: Update.
9185 2007-07-07 Bruno Haible <bruno@clisp.org>
9187 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
9188 (wcwidth): New declaration.
9189 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
9191 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
9192 here. Prepare for creating <wchar.h> unconditionally.
9193 * modules/wchar (Depends-on): Add link-warning.
9194 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
9195 REPLACE_WCWIDTH, and GL_LINK_WARNING.
9196 * lib/wcwidth.h: Remove file.
9197 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
9198 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
9199 * modules/wcwidth (Files): Remove lib/wcwidth.h.
9200 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
9201 (Include): Replace wcwidth.h with <wchar.h>.
9202 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
9203 * lib/mbchar.h: Don't include wcwidth.h.
9204 * lib/mbswidth.c: Likewise.
9205 * NEWS: Mention the change.
9207 2007-07-07 Bruno Haible <bruno@clisp.org>
9209 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
9210 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
9211 definition with an external declaration.
9212 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
9213 defined as a function. Remove AC_C_INLINE requirement.
9214 * modules/wcwidth (Files): Add lib/wcwidth.c.
9215 (Makefile.am): Remove redundant statement.
9217 2007-07-07 Bruno Haible <bruno@clisp.org>
9219 * MODULES.html.sh (Unicode string functions): Add the new modules.
9221 * tests/uniwidth/test-u32-strwidth.c: New file.
9222 * modules/uniwidth/u32-strwidth-tests: New file.
9224 * lib/uniwidth/u32-strwidth.c: New file.
9225 * modules/uniwidth/u32-strwidth: New file.
9227 * tests/uniwidth/test-u16-strwidth.c: New file.
9228 * modules/uniwidth/u16-strwidth-tests: New file.
9230 * lib/uniwidth/u16-strwidth.c: New file.
9231 * modules/uniwidth/u16-strwidth: New file.
9233 * tests/uniwidth/test-u8-strwidth.c: New file.
9234 * modules/uniwidth/u8-strwidth-tests: New file.
9236 * lib/uniwidth/u8-strwidth.c: New file.
9237 * modules/uniwidth/u8-strwidth: New file.
9239 * tests/uniwidth/test-u32-width.c: New file.
9240 * modules/uniwidth/u32-width-tests: New file.
9242 * lib/uniwidth/u32-width.c: New file.
9243 * modules/uniwidth/u32-width: New file.
9245 * tests/uniwidth/test-u16-width.c: New file.
9246 * modules/uniwidth/u16-width-tests: New file.
9248 * lib/uniwidth/u16-width.c: New file.
9249 * modules/uniwidth/u16-width: New file.
9251 * tests/uniwidth/test-u8-width.c: New file.
9252 * modules/uniwidth/u8-width-tests: New file.
9254 * lib/uniwidth/u8-width.c: New file.
9255 * modules/uniwidth/u8-width: New file.
9257 * tests/uniwidth/test-uc_width.c: New file.
9258 * modules/uniwidth/width-tests: New file.
9260 * lib/uniwidth/width.c: New file, from GNU libiconv.
9261 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
9262 * modules/uniwidth/width: New file.
9264 * lib/uniwidth.h: New file, from GNU libiconv.
9265 * modules/uniwidth/base: New file.
9267 2007-07-07 Bruno Haible <bruno@clisp.org>
9269 * lib/uniname.h: New file, from GNU gettext.
9270 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
9271 * lib/uniname/uninames.h: New file, from GNU gettext.
9272 * lib/uniname/uniname.c: New file, from GNU gettext.
9273 * tests/uniname/test-uninames.sh: New file.
9274 * tests/uniname/test-uninames.c: New file, from GNU gettext.
9275 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
9276 * modules/uniname/base: New file.
9277 * modules/uniname/uniname: New file.
9278 * modules/uniname/uniname-tests: New file.
9279 * MODULES.html.sh (Unicode string functions): Add the new modules.
9281 2007-07-06 Bruno Haible <bruno@clisp.org>
9283 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
9285 2007-07-06 Bruno Haible <bruno@clisp.org>
9287 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
9288 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
9289 includes <cygwin/sys_time.h> which includes <sys/select.h> which
9290 include <sys/time.h>.
9291 Reported by Eric Blake.
9293 2007-07-06 Eric Blake <ebb9@byu.net>
9295 Fix testing canonicalize on cygwin.
9296 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
9297 Revert patch from 2007-06-19.
9298 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
9299 canonicalize module is also in use.
9300 * tests/test-canonicalize.c: New file.
9301 * tests/test-canonicalize.sh: Likewise.
9302 * modules/canonicalize-tests: Likewise.
9304 2007-07-06 Jim Meyering <jim@meyering.net>
9306 * lib/getugroups.c (getugroups): Detect getgrent failure.
9307 Adjust comment to reflect reality: this function may return -1.
9309 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
9311 * build-aux/bootstrap (TP_URL,get_translations): Update to use
9314 (gnulib_mk): New variable.
9316 2007-07-05 Jim Meyering <jim@meyering.net>
9318 Don't let endgrent clobber errno, no matter how improbable.
9319 * lib/getugroups.c (getugroups): Save and restore errno around
9322 Close the group DB even when failing with 2^31 or more members.
9323 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
9325 2007-07-04 Jim Meyering <jim@meyering.net>
9327 * lib/getugroups.h: New file.
9328 * lib/getugroups.c: Include "getugroups.h".
9329 Remove uses of "register" keyword.
9330 Move local variable, "cp", down into scope where used.
9331 Give "username" parameter the "const" attribute.
9332 * modules/getugroups (Files): Add lib/getugroups.h
9334 2007-07-04 Karl Berry <karl@gnu.org>
9336 * MODULES.html.sh (func_all_modules): Complete rename of
9337 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
9339 2007-07-02 Bruno Haible <bruno@clisp.org>
9341 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
9342 mode, when inttypes.h comes from gnulib.
9343 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
9345 2007-07-02 Simon Josefsson <simon@josefsson.org>
9347 * NEWS: Mention lgpl module name change.
9349 * modules/lgpl-2.1: Renamed from lgpl.
9351 * NEWS: Mention gpl module name change.
9353 * modules/gpl-3.0: New file, based on gpl-2.0.
9355 * modules/gpl-2.0: Renamed from gpl.
9357 * modules/gpl: Fix filename, doc/gpl.texi is now found at
9360 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
9362 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
9363 #define __STDC_LIMIT_MACROS temporarily while including
9364 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
9365 Problem reported by Joel E. Denny in
9366 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
9368 2007-07-01 Bruno Haible <bruno@clisp.org>
9370 * lib/unistdio.h: New file.
9371 * lib/unistdio/u-asnprintf.h: New file.
9372 * lib/unistdio/u-asprintf.h: New file.
9373 * lib/unistdio/u-printf-args.c: New file.
9374 * lib/unistdio/u-printf-args.h: New file.
9375 * lib/unistdio/u-printf-parse.h: New file.
9376 * lib/unistdio/u-snprintf.h: New file.
9377 * lib/unistdio/u-sprintf.h: New file.
9378 * lib/unistdio/u-vasprintf.h: New file.
9379 * lib/unistdio/u-vsnprintf.h: New file.
9380 * lib/unistdio/u-vsprintf.h: New file.
9381 * lib/unistdio/ulc-asnprintf.c: New file.
9382 * lib/unistdio/ulc-asprintf.c: New file.
9383 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
9384 * lib/unistdio/ulc-printf-parse.c: New file.
9385 * lib/unistdio/ulc-snprintf.c: New file.
9386 * lib/unistdio/ulc-sprintf.c: New file.
9387 * lib/unistdio/ulc-vasnprintf.c: New file.
9388 * lib/unistdio/ulc-vasprintf.c: New file.
9389 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
9390 * lib/unistdio/ulc-vsnprintf.c: New file.
9391 * lib/unistdio/ulc-vsprintf.c: New file.
9392 * lib/unistdio/u8-asnprintf.c: New file.
9393 * lib/unistdio/u8-asprintf.c: New file.
9394 * lib/unistdio/u8-printf-parse.c: New file.
9395 * lib/unistdio/u8-snprintf.c: New file.
9396 * lib/unistdio/u8-sprintf.c: New file.
9397 * lib/unistdio/u8-vasnprintf.c: New file.
9398 * lib/unistdio/u8-vasprintf.c: New file.
9399 * lib/unistdio/u8-vsnprintf.c: New file.
9400 * lib/unistdio/u8-vsprintf.c: New file.
9401 * lib/unistdio/u8-u8-asnprintf.c: New file.
9402 * lib/unistdio/u8-u8-asprintf.c: New file.
9403 * lib/unistdio/u8-u8-snprintf.c: New file.
9404 * lib/unistdio/u8-u8-sprintf.c: New file.
9405 * lib/unistdio/u8-u8-vasnprintf.c: New file.
9406 * lib/unistdio/u8-u8-vasprintf.c: New file.
9407 * lib/unistdio/u8-u8-vsnprintf.c: New file.
9408 * lib/unistdio/u8-u8-vsprintf.c: New file.
9409 * lib/unistdio/u16-asnprintf.c: New file.
9410 * lib/unistdio/u16-asprintf.c: New file.
9411 * lib/unistdio/u16-printf-parse.c: New file.
9412 * lib/unistdio/u16-snprintf.c: New file.
9413 * lib/unistdio/u16-sprintf.c: New file.
9414 * lib/unistdio/u16-vasnprintf.c: New file.
9415 * lib/unistdio/u16-vasprintf.c: New file.
9416 * lib/unistdio/u16-vsnprintf.c: New file.
9417 * lib/unistdio/u16-vsprintf.c: New file.
9418 * lib/unistdio/u16-u16-asnprintf.c: New file.
9419 * lib/unistdio/u16-u16-asprintf.c: New file.
9420 * lib/unistdio/u16-u16-snprintf.c: New file.
9421 * lib/unistdio/u16-u16-sprintf.c: New file.
9422 * lib/unistdio/u16-u16-vasnprintf.c: New file.
9423 * lib/unistdio/u16-u16-vasprintf.c: New file.
9424 * lib/unistdio/u16-u16-vsnprintf.c: New file.
9425 * lib/unistdio/u16-u16-vsprintf.c: New file.
9426 * lib/unistdio/u32-asnprintf.c: New file.
9427 * lib/unistdio/u32-asprintf.c: New file.
9428 * lib/unistdio/u32-printf-parse.c: New file.
9429 * lib/unistdio/u32-snprintf.c: New file.
9430 * lib/unistdio/u32-sprintf.c: New file.
9431 * lib/unistdio/u32-vasnprintf.c: New file.
9432 * lib/unistdio/u32-vasprintf.c: New file.
9433 * lib/unistdio/u32-vsnprintf.c: New file.
9434 * lib/unistdio/u32-vsprintf.c: New file.
9435 * lib/unistdio/u32-u32-asnprintf.c: New file.
9436 * lib/unistdio/u32-u32-asprintf.c: New file.
9437 * lib/unistdio/u32-u32-snprintf.c: New file.
9438 * lib/unistdio/u32-u32-sprintf.c: New file.
9439 * lib/unistdio/u32-u32-vasnprintf.c: New file.
9440 * lib/unistdio/u32-u32-vasprintf.c: New file.
9441 * lib/unistdio/u32-u32-vsnprintf.c: New file.
9442 * lib/unistdio/u32-u32-vsprintf.c: New file.
9443 * tests/unistdio/test-ulc-asnprintf1.c: New file.
9444 * tests/unistdio/test-ulc-asnprintf1.h: New file.
9445 * tests/unistdio/test-ulc-printf1.h: New file.
9446 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
9447 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
9448 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
9449 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
9450 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
9451 * tests/unistdio/test-ulc-vasprintf1.c: New file.
9452 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
9453 * tests/unistdio/test-ulc-vsprintf1.c: New file.
9454 * tests/unistdio/test-u8-asnprintf1.c: New file.
9455 * tests/unistdio/test-u8-asnprintf1.h: New file.
9456 * tests/unistdio/test-u8-printf1.h: New file.
9457 * tests/unistdio/test-u8-vasnprintf1.c: New file.
9458 * tests/unistdio/test-u8-vasnprintf2.c: New file.
9459 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
9460 * tests/unistdio/test-u8-vasnprintf3.c: New file.
9461 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
9462 * tests/unistdio/test-u8-vasprintf1.c: New file.
9463 * tests/unistdio/test-u8-vsnprintf1.c: New file.
9464 * tests/unistdio/test-u8-vsprintf1.c: New file.
9465 * tests/unistdio/test-u16-asnprintf1.c: New file.
9466 * tests/unistdio/test-u16-asnprintf1.h: New file.
9467 * tests/unistdio/test-u16-printf1.h: New file.
9468 * tests/unistdio/test-u16-vasnprintf1.c: New file.
9469 * tests/unistdio/test-u16-vasnprintf2.c: New file.
9470 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
9471 * tests/unistdio/test-u16-vasnprintf3.c: New file.
9472 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
9473 * tests/unistdio/test-u16-vasprintf1.c: New file.
9474 * tests/unistdio/test-u16-vsnprintf1.c: New file.
9475 * tests/unistdio/test-u16-vsprintf1.c: New file.
9476 * tests/unistdio/test-u32-asnprintf1.c: New file.
9477 * tests/unistdio/test-u32-asnprintf1.h: New file.
9478 * tests/unistdio/test-u32-printf1.h: New file.
9479 * tests/unistdio/test-u32-vasnprintf1.c: New file.
9480 * tests/unistdio/test-u32-vasnprintf2.c: New file.
9481 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
9482 * tests/unistdio/test-u32-vasnprintf3.c: New file.
9483 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
9484 * tests/unistdio/test-u32-vasprintf1.c: New file.
9485 * tests/unistdio/test-u32-vsnprintf1.c: New file.
9486 * tests/unistdio/test-u32-vsprintf1.c: New file.
9487 * modules/unistdio/base: New file.
9488 * modules/unistdio/u-printf-args: New file.
9489 * modules/unistdio/ulc-asnprintf: New file.
9490 * modules/unistdio/ulc-asprintf: New file.
9491 * modules/unistdio/ulc-fprintf: New file.
9492 * modules/unistdio/ulc-printf-parse: New file.
9493 * modules/unistdio/ulc-snprintf: New file.
9494 * modules/unistdio/ulc-sprintf: New file.
9495 * modules/unistdio/ulc-vasnprintf: New file.
9496 * modules/unistdio/ulc-vasprintf: New file.
9497 * modules/unistdio/ulc-vfprintf: New file.
9498 * modules/unistdio/ulc-vsnprintf: New file.
9499 * modules/unistdio/ulc-vsprintf: New file.
9500 * modules/unistdio/u8-asnprintf: New file.
9501 * modules/unistdio/u8-asprintf: New file.
9502 * modules/unistdio/u8-printf-parse: New file.
9503 * modules/unistdio/u8-snprintf: New file.
9504 * modules/unistdio/u8-sprintf: New file.
9505 * modules/unistdio/u8-vasnprintf: New file.
9506 * modules/unistdio/u8-vasprintf: New file.
9507 * modules/unistdio/u8-vsnprintf: New file.
9508 * modules/unistdio/u8-vsprintf: New file.
9509 * modules/unistdio/u8-u8-asnprintf: New file.
9510 * modules/unistdio/u8-u8-asprintf: New file.
9511 * modules/unistdio/u8-u8-snprintf: New file.
9512 * modules/unistdio/u8-u8-sprintf: New file.
9513 * modules/unistdio/u8-u8-vasnprintf: New file.
9514 * modules/unistdio/u8-u8-vasprintf: New file.
9515 * modules/unistdio/u8-u8-vsnprintf: New file.
9516 * modules/unistdio/u8-u8-vsprintf: New file.
9517 * modules/unistdio/u16-asnprintf: New file.
9518 * modules/unistdio/u16-asprintf: New file.
9519 * modules/unistdio/u16-printf-parse: New file.
9520 * modules/unistdio/u16-snprintf: New file.
9521 * modules/unistdio/u16-sprintf: New file.
9522 * modules/unistdio/u16-vasnprintf: New file.
9523 * modules/unistdio/u16-vasprintf: New file.
9524 * modules/unistdio/u16-vsnprintf: New file.
9525 * modules/unistdio/u16-vsprintf: New file.
9526 * modules/unistdio/u16-u16-asnprintf: New file.
9527 * modules/unistdio/u16-u16-asprintf: New file.
9528 * modules/unistdio/u16-u16-snprintf: New file.
9529 * modules/unistdio/u16-u16-sprintf: New file.
9530 * modules/unistdio/u16-u16-vasnprintf: New file.
9531 * modules/unistdio/u16-u16-vasprintf: New file.
9532 * modules/unistdio/u16-u16-vsnprintf: New file.
9533 * modules/unistdio/u16-u16-vsprintf: New file.
9534 * modules/unistdio/u32-asnprintf: New file.
9535 * modules/unistdio/u32-asprintf: New file.
9536 * modules/unistdio/u32-printf-parse: New file.
9537 * modules/unistdio/u32-snprintf: New file.
9538 * modules/unistdio/u32-sprintf: New file.
9539 * modules/unistdio/u32-vasnprintf: New file.
9540 * modules/unistdio/u32-vasprintf: New file.
9541 * modules/unistdio/u32-vsnprintf: New file.
9542 * modules/unistdio/u32-vsprintf: New file.
9543 * modules/unistdio/u32-u32-asnprintf: New file.
9544 * modules/unistdio/u32-u32-asprintf: New file.
9545 * modules/unistdio/u32-u32-snprintf: New file.
9546 * modules/unistdio/u32-u32-sprintf: New file.
9547 * modules/unistdio/u32-u32-vasnprintf: New file.
9548 * modules/unistdio/u32-u32-vasprintf: New file.
9549 * modules/unistdio/u32-u32-vsnprintf: New file.
9550 * modules/unistdio/u32-u32-vsprintf: New file.
9551 * modules/unistdio/ulc-asnprintf-tests: New file.
9552 * modules/unistdio/ulc-vasnprintf-tests: New file.
9553 * modules/unistdio/ulc-vasprintf-tests: New file.
9554 * modules/unistdio/ulc-vsnprintf-tests: New file.
9555 * modules/unistdio/ulc-vsprintf-tests: New file.
9556 * modules/unistdio/u8-asnprintf-tests: New file.
9557 * modules/unistdio/u8-vasnprintf-tests: New file.
9558 * modules/unistdio/u8-vasprintf-tests: New file.
9559 * modules/unistdio/u8-vsnprintf-tests: New file.
9560 * modules/unistdio/u8-vsprintf-tests: New file.
9561 * modules/unistdio/u16-asnprintf-tests: New file.
9562 * modules/unistdio/u16-vasnprintf-tests: New file.
9563 * modules/unistdio/u16-vasprintf-tests: New file.
9564 * modules/unistdio/u16-vsnprintf-tests: New file.
9565 * modules/unistdio/u16-vsprintf-tests: New file.
9566 * modules/unistdio/u32-asnprintf-tests: New file.
9567 * modules/unistdio/u32-vasnprintf-tests: New file.
9568 * modules/unistdio/u32-vasprintf-tests: New file.
9569 * modules/unistdio/u32-vsnprintf-tests: New file.
9570 * modules/unistdio/u32-vsprintf-tests: New file.
9571 * MODULES.html.sh (Unicode string functions): Add the new modules.
9573 2007-07-01 Bruno Haible <bruno@clisp.org>
9575 * lib/sprintf.c (sprintf): Limit the available length estimation,
9576 to avoid address wraparound.
9577 * lib/vsprintf.c (vsprintf): Likewise.
9578 * modules/sprintf-posix (Dependencies): Add stdint.
9579 * modules/vsprintf-posix (Dependencies): Likewise.
9581 2007-07-01 Bruno Haible <bruno@clisp.org>
9583 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
9584 Windows PATH as well. Conservative double-quoting. Comments.
9586 2007-07-01 Bruno Haible <bruno@clisp.org>
9587 Eric Blake <ebb9@byu.net>
9588 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9590 * gnulib-tool (self_abspathname): Fix algorithm to cope with
9591 empty components in $PATH, denoting '.'.
9593 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9595 * gnulib-tool: Fix indentation.
9596 (func_create_megatestdir): Likewise.
9597 Report by Bruno Haible.
9599 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9602 * build-aux/gnupload: Fix shell portability issues with for loops.
9603 Report by Karl Berry.
9605 2007-06-29 Simon Josefsson <simon@josefsson.org>
9607 * build-aux/maint.mk (POURL): Use translationproject.org.
9609 2007-06-27 Simon Josefsson <simon@josefsson.org>
9610 Bruno Haible <bruno@clisp.org>
9612 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
9613 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
9614 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
9615 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
9616 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
9618 2007-06-27 Bruno Haible <bruno@clisp.org>
9620 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
9621 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
9623 2007-06-26 Karl Berry <karl@gnu.org>
9625 * MODULES.html.sh: remove xreadlink-with-size.
9627 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
9629 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
9630 method that I hope also handles the double-include problem noted
9632 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
9634 2007-06-23 Bruno Haible <bruno@clisp.org>
9636 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9637 Don't let the 'mostlyclean' target fail if the last subdirectory could
9639 Reported by Karl Berry.
9641 2007-06-23 Bruno Haible <bruno@clisp.org>
9643 * gnulib-tool (echo): Add a speedier workaround for ksh.
9644 * tests/test-echo.sh: Likewise.
9646 2007-06-23 Bruno Haible <bruno@clisp.org>
9648 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
9649 * tests/test-echo.sh: Likewise.
9651 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9653 * gnulib-tool (IFS): Initialize early, so we don't set it to
9655 (self_abspathname): Rewrite algorithm to set it, reindent.
9656 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
9657 (func_create_megatestdir): Merge some sed scripts.
9659 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
9661 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
9662 exposed by Sun Studio 11 cc on Solaris 8.
9664 2007-06-22 Bruno Haible <bruno@clisp.org>
9666 * gnulib-tool (echo): Ensure the echo primitive does not interpret
9668 * tests/test-echo.sh: New file.
9670 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9672 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
9673 simplify `sed_replace_build_aux' scripts, they are portable but
9674 echoing them with `echo' is not.
9675 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
9677 2007-06-21 Karl Berry <karl@gnu.org>
9679 * config/srclist.txt: guess we can't handle the licenses via
9680 srclist at the moment.
9682 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
9684 * MODULES.html.sh: Add include_next.
9685 * modules/include_next: New file.
9687 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
9689 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
9691 (gl_CHECK_NEXT_HEADERS): New macro.
9692 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
9693 the obsolescent gl_ABSOLUTE_HEADER.
9694 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
9695 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
9696 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
9697 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9698 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
9699 * m4/math_h.m4 (gl_MATH_H): Likewise.
9700 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
9701 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9702 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9703 * m4/stdint.m4 (gl_STDINT_H): Likewise.
9704 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
9705 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
9706 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
9707 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9708 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9709 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9710 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
9711 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
9712 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
9713 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9714 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
9715 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
9716 * m4/inttypes.m4 (gl_INTTYPES_H): Define
9717 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
9718 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
9719 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
9720 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
9721 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
9722 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
9723 * lib/float_.h: Likewise.
9724 * lib/inttypes_.h: Likewise.
9725 * lib/math_.h: Likewise.
9726 * lib/search_.h: Likewise.
9727 * lib/signal_.h: Likewise.
9728 * lib/stdint_.h: Likewise.
9729 * lib/stdio_.h: Likewise.
9730 * lib/stdlib_.h: Likewise.
9731 * lib/string_.h: Likewise.
9732 * lib/sys_stat_.h: Likewise.
9733 * lib/sys_time_.h: Likewise.
9734 * lib/time_.h: Likewise.
9735 * lib/unistd_.h: Likewise.
9736 * lib/wchar_.h: Likewise.
9737 * lib/wctype_.h: Likewise.
9738 * lib/dirent_.h: Likewise.
9739 * lib/iconv_.h: Likewise.
9740 * lib/locale_.h: Likewise.
9741 * lib/netinet_in_.h: Likewise.
9742 * lib/sys_select_.h: Likewise.
9743 * lib/sys_socket_.h: Likewise.
9744 * lib/sysexits_.h: Likewise.
9745 * modules/fcntl (Depends-on): Depend on include_next, not
9747 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
9748 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
9749 * modules/fchdir: Likewise.
9750 * modules/float: Likewise.
9751 * modules/iconv_open: Likewise.
9752 * modules/inttypes: Likewise.
9753 * modules/locale: Likewise.
9754 * modules/math: Likewise.
9755 * modules/netinet_in: Likewise.
9756 * modules/search: Likewise.
9757 * modules/signal: Likewise.
9758 * modules/stdint: Likewise.
9759 * modules/stdio: Likewise.
9760 * modules/stdlib: Likewise.
9761 * modules/string: Likewise.
9762 * modules/sys_select: Likewise.
9763 * modules/sys_socket: Likewise.
9764 * modules/sys_stat: Likewise.
9765 * modules/sys_time: Likewise.
9766 * modules/sysexits: Likewise.
9767 * modules/time: Likewise.
9768 * modules/unistd: Likewise.
9769 * modules/wchar: Likewise.
9770 * modules/wctype: Likewise.
9771 * modules/sys_stat: Change maintainer to "all".
9772 * modules/unistd: Likewise.
9774 2007-06-20 Karl Berry <karl@gnu.org>
9776 * config/srclist.txt: track www changes in license files.
9778 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
9780 * build-aux/bootstrap: Remove stray dot.
9781 Make sure build_aux settings are honored when linking
9784 2007-06-19 Eric Blake <ebb9@byu.net>
9786 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
9787 Allow compilation on cygwin.
9789 2007-06-19 Jim Meyering <jim@meyering.net>
9791 xreadlink-with-size: Remove module. No longer used.
9792 Ex-callers now use xreadlink or mreadlink-with-size.
9793 * modules/xreadlink-with-size: Remove module.
9794 * lib/xreadlink-with-size.c: Remove file.
9795 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
9796 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
9797 just before the function definition *is* accurate.
9799 Eliminate one way canonicalize_filename_mode could exit.
9800 * lib/canonicalize.c (canonicalize_filename_mode):
9801 Use mreadlink_with_size, not xreadlink_with_size.
9803 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
9805 Detect porting problems to FreeBSD/arm, which has time_t wider than
9806 long int. Original problem reported for GNU diff by Xin Li in
9807 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
9808 * modules/getdate (Depends-on): Add intprops, verify.
9809 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
9810 is an integer type no wider than long int.
9812 2007-06-18 Jim Meyering <jim@meyering.net>
9814 New module: mreadlink-with-size.
9815 * MODULES.html.sh: Add mreadlink-with-size.
9816 * modules/mreadlink-with-size: New module
9817 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
9818 not xreadlink-with-size.
9819 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
9821 2007-06-16 Bruno Haible <bruno@clisp.org>
9823 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
9824 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
9825 Reported by Gary V. Vaughan <gary@gnu.org>.
9827 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
9829 Revamp lchown so that it lives in unistd.h where it belongs.
9830 * lib/lchown.h: Remove.
9831 * lib/dirchownmod.c: Don't include lib/lchown.h.
9832 * lib/fchownat.c: Likewise.
9833 * lib/openat.c: Likewise.
9834 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
9835 does not follow symlinks.
9836 (EOPNOTSUPP): Define if not defined.
9837 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
9840 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
9841 Do not check for lchown decl.
9843 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
9845 * modules/chown: Make it clear it follows symlinks.
9846 * modules/lchown: Make it clear it doesn't follow symlinks.
9847 (Files): Remove lib/lchown.h
9848 (Depends-on): Add unistd.
9849 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
9850 (Include): Include <unistd.h>, not "lchown.h".
9851 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
9854 2007-06-15 Jim Meyering <jim@meyering.net>
9856 Change license (GPL to LGPL) of fsusage and dependents.
9857 * modules/fsusage (License): Change to LGPL.
9858 * modules/full-read (License): Likewise.
9859 * modules/full-write (License): Likewise.
9860 * modules/safe-read (License): Likewise.
9861 * modules/safe-write (License): Likewise.
9863 2007-06-14 Ben Pfaff <blp@gnu.org>
9865 Missing part of allocsa -> malloca transition.
9866 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
9869 2007-06-12 Bruno Haible <bruno@clisp.org>
9871 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
9872 to ia64, x86_64, i386.
9873 Reported by Eric Blake.
9875 2007-06-12 Bruno Haible <bruno@clisp.org>
9877 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
9878 cross-compiling to x86_64.
9880 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
9882 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
9883 glitch reported by Ralf Wildenhues in
9884 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
9886 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
9889 2007-06-11 Bruno Haible <bruno@clisp.org>
9891 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
9893 Reported by Eric Blake.
9895 2007-06-10 Bruno Haible <bruno@clisp.org>
9897 Prepare vasnprintf code for use with Unicode strings.
9898 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
9899 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
9901 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
9902 a_u32_string variants.
9903 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
9904 * lib/printf-args.c: Don't include config.h and the specification
9905 header if PRINTF_FETCHARGS is already defined.
9906 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
9907 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
9908 TYPE_U16_STRING, TYPE_U32_STRING.
9909 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
9910 u16_directive, u16_directives, u32_directive, u32_directives): New
9912 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
9914 * lib/printf-parse.c: Don't include config.h and the specification
9915 header if PRINTF_PARSE is already defined. Eliminate the set of
9916 parameters for WIDE_CHAR_VERSION; the user of this file must provide
9917 them now. Include c-ctype.h.
9918 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
9919 directive and CHAR_T_ONLY_ASCII.
9920 * lib/vasnprintf.c: Don't include config.h and the specification header
9921 if VASNPRINTF is already defined.
9922 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
9923 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
9924 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
9925 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
9926 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
9927 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
9929 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
9930 pad_ourselves also in this case, with the 'c' and 's' directives, and
9931 with a different notion of "width".
9932 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
9934 2007-06-10 Bruno Haible <bruno@clisp.org>
9936 * modules/unistr/u32-mbsnlen: New file.
9937 * lib/unistr/u32-mbsnlen.c: New file.
9939 * modules/unistr/u16-mbsnlen: New file.
9940 * lib/unistr/u16-mbsnlen.c: New file.
9942 * modules/unistr/u8-mbsnlen: New file.
9943 * lib/unistr/u8-mbsnlen.c: New file.
9945 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
9948 2007-06-10 Bruno Haible <bruno@clisp.org>
9950 * lib/string_.h (mbsnlen): New declaration.
9951 * lib/mbsnlen.c: New file.
9952 * m4/mbsnlen.m4: New file.
9953 * modules/mbsnlen: New file.
9954 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
9955 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
9956 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
9958 2007-06-10 Bruno Haible <bruno@clisp.org>
9960 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
9962 2007-06-10 Bruno Haible <bruno@clisp.org>
9964 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
9965 * lib/mbuiter.h: Likewise.
9967 2007-06-10 Bruno Haible <bruno@clisp.org>
9969 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
9972 2007-06-10 Karl Berry <karl@gnu.org>
9974 * config/srclist.txt: remove gettext entries, Bruno prefers
9975 to update individually.
9977 2007-06-10 Bruno Haible <bruno@clisp.org>
9979 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
9980 'maxlen'. Ensure only length + width bytes are allocated, not
9983 2007-06-09 Bruno Haible <bruno@clisp.org>
9985 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
9986 (CHAR_T): Remove macro.
9987 (VASNPRINTF): Update.
9989 2007-06-09 Bruno Haible <bruno@clisp.org>
9991 * MODULES.html.sh (Unicode string functions): Add the new modules.
9993 * modules/uniconv/u32-conv-to-enc: New file.
9994 * lib/uniconv/u32-conv-to-enc.c: New file.
9995 * modules/uniconv/u32-conv-to-enc-tests: New file.
9996 * tests/uniconv/test-u32-conv-to-enc.c: New file.
9998 * modules/uniconv/u16-conv-to-enc: New file.
9999 * lib/uniconv/u16-conv-to-enc.c: New file.
10000 * lib/uniconv/u-conv-to-enc.h: New file.
10001 * modules/uniconv/u16-conv-to-enc-tests: New file.
10002 * tests/uniconv/test-u16-conv-to-enc.c: New file.
10004 * modules/uniconv/u8-conv-to-enc: New file.
10005 * lib/uniconv/u8-conv-to-enc.c: New file.
10006 * modules/uniconv/u8-conv-to-enc-tests: New file.
10007 * tests/uniconv/test-u8-conv-to-enc.c: New file.
10009 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
10010 u32_conv_to_encoding): New declarations.
10012 2007-06-09 Bruno Haible <bruno@clisp.org>
10014 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
10016 2007-06-09 Bruno Haible <bruno@clisp.org>
10018 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
10019 * modules/malloca: Renamed from modules/allocsa, updated.
10020 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
10021 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
10022 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
10023 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
10024 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
10025 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
10026 * modules/xmalloca: Renamed from modules/xallocsa, updated.
10027 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
10028 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
10029 * modules/c-strcasestr (Depends-on): Update.
10030 * lib/c-strcasestr.c: Update.
10031 * modules/c-strstr (Depends-on): Update.
10032 * lib/c-strstr.c: Update.
10033 * modules/canonicalize-lgpl (Depends-on): Update.
10034 * lib/canonicalize-lgpl.c: Update.
10035 * modules/clean-temp (Depends-on): Update.
10036 * lib/clean-temp.c: Update.
10037 * modules/csharpcomp (Depends-on): Update.
10038 * lib/csharpcomp.c: Update.
10039 * modules/csharpexec (Depends-on): Update.
10040 * lib/csharpexec.c: Update.
10041 * modules/javacomp (Depends-on): Update.
10042 * lib/javacomp.c: Update.
10043 * modules/javaexec (Depends-on): Update.
10044 * lib/javaexec.c: Update.
10045 * modules/mbscasestr (Depends-on): Update.
10046 * lib/mbscasestr.c: Update.
10047 * modules/mbsstr (Depends-on): Update.
10048 * lib/mbsstr.c: Update.
10049 * modules/setenv (Depends-on): Update.
10050 * lib/setenv.c: Update.
10051 * modules/strcasestr (Depends-on): Update.
10052 * lib/strcasestr.c: Update.
10053 * modules/striconveha (Depends-on): Update.
10054 * lib/striconveha.c: Update.
10055 * modules/relocatable-prog-wrapper (Files): Update.
10056 * lib/relocwrapper.c: Update.
10057 * build-aux/install-reloc: Update.
10058 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
10060 2007-06-08 Bruno Haible <bruno@clisp.org>
10063 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
10064 * lib/fpurge.c (fpurge): Likewise.
10065 * lib/freading.c (freading): Likewise.
10066 * lib/fseeko.c (rpl_fseeko): Likewise.
10067 * lib/fseterr.c (fseterr): Likewise.
10068 * lib/fwriting.c (fwriting): Likewise.
10069 * tests/test-fflush.c (main): Avoid a failure on uClibc.
10071 2007-06-08 Bruno Haible <bruno@clisp.org>
10073 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
10074 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
10075 * modules/gettext (Files): Add m4/intlmacosx.m4.
10077 2007-06-07 Bruno Haible <bruno@clisp.org>
10079 * modules/localename-tests: New file.
10080 * tests/test-localename.c: New file.
10082 New module 'localename'.
10083 * lib/localename.h: New file.
10084 * lib/localename.c: New file, from GNU gettext.
10085 * m4/localename.m4: New file.
10086 * modules/localename: New file.
10088 2007-06-07 Bruno Haible <bruno@clisp.org>
10090 Work around the lack of <wchar.h> on some builds of uClibc.
10091 * doc/headers/wchar.texi: Update.
10092 * lib/wchar_.h: Include <wchar.h> only if it exists.
10093 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
10094 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
10095 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
10097 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
10098 * modules/mbfile (Depends-on): Add wchar.
10099 * modules/mbiter (Depends-on): Likewise.
10100 * modules/mbuiter (Depends-on): Likewise.
10101 Reported by Simon Josefsson.
10103 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
10105 Work around problem reported by Steven M. Schweda in
10106 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
10107 Tru64 5.1B with the Compaq compiler environment installed declares
10108 an 'isblank' function but does not define it in the C library.
10109 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
10110 * lib/regex_internal.h (isblank): Likewise.
10111 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
10112 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10114 2007-06-05 Bruno Haible <bruno@clisp.org>
10116 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
10118 * modules/printf-safe: New file.
10119 * modules/fprintf-posix (Depends-on): Add printf-safe.
10120 * modules/printf-posix (Depends-on): Likewise.
10121 * modules/snprintf-posix (Depends-on): Likewise.
10122 * modules/sprintf-posix (Depends-on): Likewise.
10123 * modules/vasnprintf-posix (Depends-on): Likewise.
10124 * modules/vasprintf-posix (Depends-on): Likewise.
10125 * modules/vfprintf-posix (Depends-on): Likewise.
10126 * modules/vprintf-posix (Depends-on): Likewise.
10127 * modules/vsnprintf-posix (Depends-on): Likewise.
10128 * modules/vsprintf-posix (Depends-on): Likewise.
10129 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
10130 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
10131 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
10132 "no" on i386, x86_64, ia64.
10133 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
10134 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
10135 on i386, x86_64, ia64.
10136 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
10137 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
10138 on i386, x86_64, ia64.
10139 * tests/test-vasnprintf-posix.c: Include float.h.
10140 (LDBL80_WORDS): New macro.
10141 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
10142 on i386, x86_64, ia64.
10143 * tests/test-vasprintf-posix.c: Include float.h.
10144 (LDBL80_WORDS): New macro.
10145 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
10146 on i386, x86_64, ia64.
10147 * tests/test-snprintf-posix.c: Include float.h.
10148 * tests/test-sprintf-posix.c: Likewise.
10149 * tests/test-vsnprintf-posix.c: Likewise.
10150 * tests/test-vsprintf-posix.c: Likewise.
10152 2007-06-05 Bruno Haible <bruno@clisp.org>
10154 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
10155 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
10156 non-IEEE numbers on i386, x86_64, ia64.
10157 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
10158 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
10159 * tests/test-isnanl.h: Include float.h.
10160 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
10162 2007-06-05 Bruno Haible <bruno@clisp.org>
10164 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
10165 also the %a / %A. Handle the %a / %A code before this extra handling.
10167 2007-06-05 Bruno Haible <bruno@clisp.org>
10169 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
10170 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
10172 2007-06-05 Bruno Haible <bruno@clisp.org>
10174 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
10175 typo in variable name.
10177 2007-06-05 Eric Blake <ebb9@byu.net>
10179 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
10180 Reported by Simon Josefsson.
10182 2007-06-04 Bruno Haible <bruno@clisp.org>
10184 Avoid test failures on some PowerPC platforms.
10185 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
10186 Define differently for PowerPC.
10187 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
10188 Reported by Gary V. Vaughan <gary@gnu.org>.
10190 2007-06-02 Bruno Haible <bruno@clisp.org>
10192 Fix test-stdint failure on FreeBSD/ia64.
10193 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
10194 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
10195 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
10196 * doc/headers/stdint.texi: Update.
10198 2007-06-01 Bruno Haible <bruno@clisp.org>
10200 * tests/test-binary-io.c (main): Pass a third argument to open().
10201 Reported by Gary V. Vaughan <gary@gnu.org>.
10203 2007-06-01 Bruno Haible <bruno@clisp.org>
10205 * doc/functions/frexpl.texi: Update for mingw.
10207 2007-06-01 Bruno Haible <bruno@clisp.org>
10209 * tests/test-lseek.c (main): Disable test of errno for invalid third
10211 * doc/functions/lseek.texi: Update.
10212 Reported by Gary V. Vaughan <gary@gnu.org>.
10214 2007-05-28 Bruno Haible <bruno@clisp.org>
10216 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
10218 2007-05-31 Eric Blake <ebb9@byu.net>
10220 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
10223 2007-05-30 Eric Blake <ebb9@byu.net>
10224 and Bruno Haible <bruno@clisp.org>
10226 Work around mingw test failures exposed by m4-1.4.9b.
10227 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
10228 * tests/test-unistd.c: Disable uid_t and git_t tests for the
10231 2007-05-30 Bruno Haible <bruno@clisp.org>
10233 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
10234 assuming that they are closed. Needed on HP-UX 11.
10236 2007-05-29 Bruno Haible <bruno@clisp.org>
10238 Fix a problem with #include_next.
10239 * lib/dirent_.h: Split the double-inclusion guard.
10240 * lib/fcntl_.h: Likewise.
10241 * lib/float_.h: Likewise.
10242 * lib/iconv_.h: Likewise.
10243 * lib/inttypes_.h: Likewise.
10244 * lib/locale_.h: Likewise.
10245 * lib/math_.h: Likewise.
10246 * lib/netinet_in_.h: Likewise.
10247 * lib/search_.h: Likewise.
10248 * lib/signal_.h: Likewise.
10249 * lib/stdint_.h: Likewise.
10250 * lib/stdio_.h: Likewise.
10251 * lib/stdlib_.h: Likewise.
10252 * lib/string_.h: Likewise.
10253 * lib/sys_select_.h: Likewise.
10254 * lib/sys_socket_.h: Likewise.
10255 * lib/sys_stat_.h: Likewise.
10256 * lib/sys_time_.h: Likewise.
10257 * lib/sysexits_.h: Likewise.
10258 * lib/time_.h: Likewise.
10259 * lib/unistd_.h: Likewise.
10260 * lib/wchar_.h: Likewise.
10261 * lib/wctype_.h: Likewise.
10263 2007-05-29 Bruno Haible <bruno@clisp.org>
10265 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
10268 2007-05-29 Bruno Haible <bruno@clisp.org>
10270 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
10272 Reported by Eric Blake.
10274 2007-05-29 Bruno Haible <bruno@clisp.org>
10276 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
10279 2007-05-29 Eric Blake <ebb9@byu.net>
10280 Bruno Haible <bruno@clisp.org>
10282 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
10285 2007-05-28 Eric Blake <ebb9@byu.net>
10287 * modules/closein-tests (test_closein_LDADD): Support test on
10288 cygwin with libtool.
10290 2007-05-28 Bruno Haible <bruno@clisp.org>
10292 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
10293 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
10294 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
10295 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
10296 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
10297 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
10298 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
10299 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
10300 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
10302 2007-05-28 Eric Blake <ebb9@byu.net>
10304 Unconditionally include <config.h> in unit tests.
10305 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
10306 * tests/test-allocsa.c, tests/test-arcfour.c,
10307 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
10308 tests/test-array_list.c, tests/test-array_oset.c,
10309 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
10310 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
10311 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
10312 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
10313 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
10314 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
10315 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
10316 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
10317 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
10318 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
10319 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
10320 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
10321 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
10322 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
10323 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
10324 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
10325 test-md5.c, test-memmem.c, test-printf-posix.c,
10326 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
10327 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
10328 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
10329 test-strcasestr.c, test-striconv.c, test-striconveh.c,
10330 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
10331 test-vasnprintf-posix2.c, test-vasnprintf.c,
10332 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
10333 test-vfprintf-posix.c, test-vprintf-posix.c,
10334 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
10335 test-xvasprintf.c: Likewise.
10337 2007-05-28 Bruno Haible <bruno@clisp.org>
10339 * gnulib-tool (func_import): Remember the --with-tests command-line
10340 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
10341 Reported by Eric Blake.
10343 2007-05-28 Bruno Haible <bruno@clisp.org>
10345 * modules/ftell-tests: New file.
10346 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
10347 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
10349 * lib/ftell.c: New file.
10350 * modules/ftell: New file.
10351 * m4/ftell.m4: New file.
10352 * doc/functions/ftell.texi: Update.
10353 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
10355 * lib/stdio_.h (rpl_ftell): New declaration.
10356 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
10359 2007-05-28 Eric Blake <ebb9@byu.net>
10361 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
10363 2007-05-28 Bruno Haible <bruno@clisp.org>
10365 * modules/fseek-tests: New file.
10366 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
10367 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
10369 * lib/fseek.c: New file.
10370 * modules/fseek: New file.
10371 * m4/fseek.m4: New file.
10372 * doc/functions/fseek.texi: Update.
10373 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
10375 * lib/stdio_.h (rpl_fseek): New declaration.
10376 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
10379 2007-05-28 Bruno Haible <bruno@clisp.org>
10381 * lib/stdio_.h (fflush): More comments.
10383 2007-05-28 Bruno Haible <bruno@clisp.org>
10385 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
10388 2007-05-28 Eric Blake <ebb9@byu.net>
10390 Improve lseek module.
10391 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
10392 * lib/unistd_.h (lseek): Scale back link warning message.
10393 * tests/test-lseek.c: Beef up test.
10394 * tests/test-lseek.sh: Exercise more facets of lseek.
10395 Reported by Bruno Haible.
10397 2007-05-28 Bruno Haible <bruno@clisp.org>
10399 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
10402 2007-05-27 Bruno Haible <bruno@clisp.org>
10404 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
10406 2007-05-27 Bruno Haible <bruno@clisp.org>
10408 * modules/openmp: New file.
10409 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
10412 2007-05-26 Bruno Haible <bruno@clisp.org>
10414 * modules/chdir-long (Depends-on): Add fchdir.
10415 * modules/chdir-safer (Depends-on): Likewise.
10416 * modules/fts (Depends-on): Likewise.
10417 * modules/fts-lgpl (Depends-on): Likewise.
10418 * modules/openat (Depends-on): Likewise.
10419 * modules/savewd (Depends-on): Likewise.
10421 2007-05-24 Eric Blake <ebb9@byu.net>
10423 Fix lseek on mingw.
10424 * modules/lseek: New module.
10425 * m4/lseek.m4: New file.
10426 * lib/lseek.c: New file.
10427 * modules/lseek-tests: New file.
10428 * tests/test-lseek.c: New file.
10429 * tests/test-lseek.sh: New file.
10430 * MODULES.html.sh: Document lseek module.
10431 * modules/fflush (Depends-on): Add lseek, fseeko.
10432 * modules/fseeko (Depends-on): Likewise.
10433 * modules/ftello (Depends-on): Likewise.
10434 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
10436 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
10438 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
10439 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
10440 * lib/ftello.c (rpl_ftello): Likewise.
10441 * tests/test-fseeko.c (main): Test this.
10442 * tests/test-fseeko.sh: Likewise.
10443 * tests/test-ftello.c (main): Likewise.
10444 * tests/test-ftello.sh: Likewise.
10445 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
10446 implies replacing fseek.
10447 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
10449 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
10450 * modules/unistd (Makefile.am): Likewise.
10451 * lib/unistd_.h (lseek): Declare a replacement.
10452 * doc/functions/lseek.texi (lseek): Document this fix.
10453 * doc/functions/fseek.texi (fseek): Likewise.
10454 * doc/functions/ftell.texi (ftell): Likewise.
10456 2007-05-24 Bruno Haible <bruno@clisp.org>
10458 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
10459 in the printed representation of a NaN.
10460 * tests/test-vasprintf-posix.c (test_function): Likewise.
10461 * tests/test-snprintf-posix.h (test_function): Likewise.
10462 * tests/test-sprintf-posix.h (test_function): Likewise.
10463 Reported by Eric Blake.
10465 2007-05-23 Eric Blake <ebb9@byu.net>
10467 Fix fseeko/ftello on cygwin 1.5.24.
10468 * doc/functions/fseeko.texi (fseeko): Document the fix.
10469 * doc/functions/ftello.texi (ftello): Document the fix.
10470 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
10471 * doc/functions/stdout.text (stdout): New file.
10472 * doc/functions/stderr.text (stderr): New file.
10473 * doc/gnulib.texi (Function Substitutes): Use new files.
10474 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
10476 * tests/test-ftello.c (main): Likewise for ftello.
10477 * tests/test-fseeko.sh: New file.
10478 * tests/test-ftello.sh: New file.
10479 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
10480 with seekable stdin.
10481 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
10482 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
10483 (gl_REPLACE_FSEEKO): New macro.
10484 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
10485 * modules/fseeko (Files): Distribute fseeko.c.
10486 * modules/ftello (Files): Distribute ftello.c.
10487 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
10489 * lib/ftello.c (rpl_ftello): New file.
10490 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
10492 (gl_STDIN_LARGE_OFFSET): New macro.
10493 * modules/stdio (Makefile.am): Perform the replacement.
10494 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
10496 2007-05-23 Bruno Haible <bruno@clisp.org>
10498 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
10499 GNULIB_POSIXCHECK is defined.
10501 2007-05-21 Bruno Haible <bruno@clisp.org>
10503 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
10504 Check also the output for NaN arguments. When cross-compiling, guess
10506 * lib/vasnprintf.c: Update comments.
10507 * tests/test-vasnprintf-posix.c (strisnan): New function.
10508 (test_function): Use it.
10509 * tests/test-vasprintf-posix.c (strisnan): New function.
10510 (test_function): Use it.
10511 * tests/test-snprintf-posix.h (strisnan): New function.
10512 (test_function): Use it.
10513 * tests/test-sprintf-posix.h (strisnan): New function.
10514 (test_function): Use it.
10515 Reported by Eric Blake.
10517 2007-05-20 Bruno Haible <bruno@clisp.org>
10519 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
10520 numbers that fails on BeOS.
10521 * doc/functions/frexpl.texi: Update.
10523 2007-05-20 Jim Meyering <jim@meyering.net>
10525 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
10526 forced upon us by glibc-2.6.
10528 2007-05-20 Bruno Haible <bruno@clisp.org>
10530 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
10531 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
10532 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
10533 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
10534 NEED_PRINTF_INFINITE.
10535 (is_infinitel): New function.
10536 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
10537 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
10538 gl_PREREQ_VASNPRINTF_INFINITE.
10539 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
10540 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10541 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
10542 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
10543 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
10544 gl_PREREQ_VASNPRINTF_INFINITE.
10545 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10546 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10547 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10548 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10549 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10550 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10551 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10552 * doc/functions/fprintf.texi: Update.
10553 * doc/functions/printf.texi: Update.
10554 * doc/functions/snprintf.texi: Update.
10555 * doc/functions/sprintf.texi: Update.
10556 * doc/functions/vfprintf.texi: Update.
10557 * doc/functions/vprintf.texi: Update.
10558 * doc/functions/vsnprintf.texi: Update.
10559 * doc/functions/vsprintf.texi: Update.
10561 2007-05-20 Bruno Haible <bruno@clisp.org>
10563 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
10564 was not found in libc.
10565 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10567 2007-05-20 Bruno Haible <bruno@clisp.org>
10569 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
10570 printed as "-nan" instead of "nan".
10571 * tests/test-vasprintf-posix.c (test_function): Likewise.
10572 * tests/test-snprintf-posix.h (test_function): Likewise.
10573 * tests/test-sprintf-posix.h (test_function): Likewise.
10574 Needed for HP-UX 11.
10576 2007-05-20 Jim Meyering <jim@meyering.net>
10578 Fix buggy test for the fchownat-deref bug.
10579 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
10580 symlink required for the run-test. Without it, this test would
10581 always declare that fchownat doesn't work, and client code would
10582 unnecessarily use the replacement function with fixed libc.
10583 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
10584 Reported by Greg Schafer.
10586 2007-05-19 Bruno Haible <bruno@clisp.org>
10588 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
10589 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
10590 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
10591 Needed for IRIX 6.5 and Solaris 2.5.1.
10593 2007-05-19 Bruno Haible <bruno@clisp.org>
10595 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
10596 (test_function): Skip tests involving -0.0 on platforms where
10598 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
10599 (test_function): Skip tests involving -0.0 on platforms where
10601 * tests/test-snprintf-posix.h (have_minus_zero): New function.
10602 (test_function): Skip tests involving -0.0 on platforms where
10604 * tests/test-sprintf-posix.h (have_minus_zero): New function.
10605 (test_function): Skip tests involving -0.0 on platforms where
10607 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
10609 * tests/test-printf-posix.h (test_function): Likewise.
10610 * tests/test-printf-posix.output: Remove all -0.0 related results.
10611 Needed for IRIX 6.5.
10613 2007-05-19 Bruno Haible <bruno@clisp.org>
10615 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
10616 printed as "nan0x7fffffff" instead of "nan".
10617 * tests/test-vasprintf-posix.c (test_function): Likewise.
10618 * tests/test-snprintf-posix.h (test_function): Likewise.
10619 * tests/test-sprintf-posix.h (test_function): Likewise.
10620 * tests/test-fprintf-posix.h (NaN): Remove macro.
10621 (test_function): Remove all NaN related tests.
10622 * tests/test-printf-posix.h (NaN): Remove macro.
10623 (test_function): Remove all NaN related tests.
10624 * tests/test-printf-posix.output: Remove all NaN related results.
10625 Needed for IRIX 6.5.
10627 2007-05-19 Bruno Haible <bruno@clisp.org>
10629 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
10630 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10632 2007-05-19 Bruno Haible <bruno@clisp.org>
10634 * lib/float_.h: New file.
10635 * m4/float_h.m4: New file.
10636 * modules/float: New file.
10637 * modules/isnanl (Dependencies): Add float.
10638 * modules/isnanl-nolibm (Dependencies): Likewise.
10639 * modules/mathl (Dependencies): Likewise.
10640 * modules/printf-frexpl (Dependencies): Likewise.
10641 * modules/signbit (Dependencies): Likewise.
10642 * modules/vasnprintf (Dependencies): Likewise.
10643 * doc/headers/float.texi: Update.
10645 2007-05-19 Jim Meyering <jim@meyering.net>
10647 * lib/utimens.c (gl_futimens): Rename from futimens,
10648 now that glibc-2.6 declares futimens.
10649 * lib/utimens.h: Likewise.
10651 2007-05-19 Bruno Haible <bruno@clisp.org>
10653 Avoid test failures on mingw.
10654 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
10655 * tests/test-printf-posix.sh: Likewise.
10656 * tests/test-vfprintf-posix.sh: Likewise.
10657 * tests/test-vprintf-posix.sh: Likewise.
10659 2007-05-19 Bruno Haible <bruno@clisp.org>
10661 Fix *printf result for NaN, Inf, -0.0 on mingw.
10662 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
10663 * lib/vasnprintf.c: Include math.h and isnan.h.
10664 (is_infinite_or_zero): New function.
10665 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
10666 values in the %f, %F, %e, %E, %g, %G directives.
10667 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
10668 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10669 gl_PRINTF_INFINITE and test its result. Invoke
10670 gl_PREREQ_VASNPRINTF_INFINITE.
10671 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10672 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10673 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10674 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10675 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10676 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10677 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10678 * doc/functions/fprintf.texi: Update.
10679 * doc/functions/printf.texi: Update.
10680 * doc/functions/snprintf.texi: Update.
10681 * doc/functions/sprintf.texi: Update.
10682 * doc/functions/vfprintf.texi: Update.
10683 * doc/functions/vprintf.texi: Update.
10684 * doc/functions/vsnprintf.texi: Update.
10685 * doc/functions/vsprintf.texi: Update.
10687 2007-05-19 Bruno Haible <bruno@clisp.org>
10689 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
10690 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
10691 Instead of multiplying with 10^k, set extra_zeroes to k.
10692 (scale10_round_long_double): Remove function.
10694 2007-05-18 Bruno Haible <bruno@clisp.org>
10696 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
10697 introduced on 2007-05-06.
10699 2007-05-18 Bruno Haible <bruno@clisp.org>
10701 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
10703 * tests/test-vasprintf-posix.c (test_function): Likewise.
10704 * tests/test-snprintf-posix.h (test_function): Likewise.
10705 * tests/test-sprintf-posix.h (test_function): Likewise.
10707 2007-05-18 Bruno Haible <bruno@clisp.org>
10709 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
10710 (strmatch): New function.
10711 (test_function): Test the %f directive on numbers of various exponents.
10712 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
10713 (strmatch): New function.
10714 (test_function): Test the %f directive on numbers of various exponents.
10715 * tests/test-snprintf-posix.h (strmatch): New function.
10716 (test_function): Test the %f directive on numbers of various exponents.
10717 * tests/test-sprintf-posix.h (strmatch): New function.
10718 (test_function): Test the %f directive on numbers of various exponents.
10719 * tests/test-snprintf-posix.c (SIZEOF): New macro.
10720 * tests/test-sprintf-posix.c (SIZEOF): New macro.
10721 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
10722 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
10724 2007-05-18 Bruno Haible <bruno@clisp.org>
10726 Add support for 'long double' number output.
10727 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
10728 * lib/vasnprintf.c: Include math.h and float+.h.
10729 (mp_limb_t): New type.
10730 (GMP_LIMB_BITS): New macro.
10731 (mp_twolimb_t): New type.
10732 (GMP_TWOLIMB_BITS): New macro.
10734 (multiply, divide, convert_to_decimal, decode_long_double,
10735 scale10_round_long_double, scale10_round_decimal_long_double,
10736 floorlog10l): New functions.
10737 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
10738 for the %f, %F, %e, %E, %g, %G directives.
10739 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
10740 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10741 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
10742 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
10743 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10744 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10745 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10746 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10747 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10748 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10749 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10750 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
10751 * modules/snprintf-posix (Depends-on): Likewise.
10752 * modules/sprintf-posix (Depends-on): Likewise.
10753 * modules/vasnprintf-posix (Depends-on): Likewise.
10754 * modules/vasprintf-posix (Depends-on): Likewise.
10755 * modules/vfprintf-posix (Depends-on): Likewise.
10756 * modules/vsnprintf-posix (Depends-on): Likewise.
10757 * modules/vsprintf-posix (Depends-on): Likewise.
10758 * modules/vasnprintf (Files): Add lib/float+.h.
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-18 Bruno Haible <bruno@clisp.org>
10770 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
10772 2007-05-18 Bruno Haible <bruno@clisp.org>
10774 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
10775 for printing 64-bit integers. Needed for mingw.
10777 2007-05-18 Bruno Haible <bruno@clisp.org>
10779 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
10780 gl_FUNC_FREXPL_WORKS.
10781 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
10783 2007-05-18 Bruno Haible <bruno@clisp.org>
10785 * modules/frexpl-nolibm-tests: New file.
10787 * modules/frexpl-nolibm: New file.
10788 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
10790 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
10792 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
10793 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
10794 GCC 4.2, which otherwise issues a lot of warnings.
10795 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
10796 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
10798 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
10799 * modules/iconv_open (iconv.h): Likewise.
10800 * modules/locale (locale.h): Likewise.
10801 * modules/netinet_in (netinet/in.h): Likewise.
10802 * modules/sys_select (sys_select.h): Likewise.
10803 * modules/sys_socket (sys/socket.h): Likewise.
10804 * modules/sys_stat (sys/stat.h): Likewise.
10805 * modules/sysexits (sysexits.h): Likewise.
10806 * modules/unistd (unistd.h): Likewise.
10808 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10810 * modules/closein-tests (Makefile.am): Distribute
10813 2007-05-17 Bruno Haible <bruno@clisp.org>
10815 * tests/test-printf-posix.output: Renamed from
10816 tests/test-fprintf-posix.out.
10817 * modules/fprintf-posix-tests: Update.
10818 * modules/printf-posix-tests: Update.
10819 * modules/vfprintf-posix-tests: Update.
10820 * modules/vprintf-posix-tests: Update.
10821 * tests/test-fprintf-posix.sh: Update.
10822 * tests/test-printf-posix.sh: Update.
10823 * tests/test-vfprintf-posix.sh: Update.
10824 * tests/test-vprintf-posix.sh: Update.
10825 Reported by Ralf Wildenhues.
10827 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
10829 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
10830 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
10831 GCC 4.2, which otherwise issues a lot of warnings.
10832 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
10833 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
10834 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
10835 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
10836 it should no longer be needed.
10837 * lib/string_.h: Likewise.
10838 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
10839 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
10840 * modules/inttypes (inttypes.h): Likewise.
10841 * modules/math (math.h): Likewise.
10842 * modules/search (search.h): Likewise.
10843 * modules/signal (signal.h): Likewise.
10844 * modules/stdint (stdint.h): Likewise.
10845 * modules/stdio (stdio.h): Likewise.
10846 * modules/stdlib (stdlib.h): Likewise.
10847 * modules/string (string.h): Likewise.
10848 * modules/sys_time (sys/time.h): Likewise.
10849 * modules/time (time.h): Likewise.
10850 * modules/wchar (wchar.h): Likewise.
10851 * modules/wctype (wtype.h): Likewise.
10853 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
10855 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
10857 2007-05-13 Bruno Haible <bruno@clisp.org>
10859 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
10860 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10861 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
10862 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
10863 (gl_PREREQ_STRTOK_R): Don't require it here.
10865 2007-05-13 Bruno Haible <bruno@clisp.org>
10867 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
10868 when used in C++ mode.
10870 2007-05-12 Bruno Haible <bruno@clisp.org>
10872 * lib/linebuffer.h: Tweak doc.
10873 * lib/linebuffer.c: Likewise.
10875 2007-05-12 James Youngman <jay@gnu.org>
10877 * lib/linebuffer.c (readlinebuffer_delim): New function,
10878 like readlinebuffer, but use a caller-specified delimiter.
10879 (readlinebuffer): Just call readlinebuffer_delim with '\n'
10881 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
10883 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
10885 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
10886 * modules/openat (Files): Remove openat-die.c.
10887 (Depends-on): Add openat-die.
10888 * modules/openat-die: New module.
10890 2007-05-06 Bruno Haible <bruno@clisp.org>
10892 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
10893 Update with info about Cygwin.
10894 * doc/functions/fprintf.texi: Update.
10895 * doc/functions/printf.texi: Update.
10896 * doc/functions/snprintf.texi: Update.
10897 * doc/functions/sprintf.texi: Update.
10898 * doc/functions/vfprintf.texi: Update.
10899 * doc/functions/vprintf.texi: Update.
10900 * doc/functions/vsnprintf.texi: Update.
10901 * doc/functions/vsprintf.texi: Update.
10902 Reported by Eric Blake.
10904 2007-05-06 Bruno Haible <bruno@clisp.org>
10906 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
10907 padding ourselves for the floating-point directives.
10908 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
10909 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
10910 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
10911 gl_PRINTF_FLAG_ZERO and test its result. Invoke
10912 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
10913 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10914 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
10915 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10916 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10917 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10918 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10919 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10920 * tests/test-snprintf-posix.h (test_function): Also check the width
10921 and some flags in the %f directive.
10922 * tests/test-sprintf-posix.h (test_function): Likewise.
10923 * tests/test-vasnprintf-posix.c (test_function): Likewise.
10924 * tests/test-vasprintf-posix.c (test_function): Likewise.
10925 * doc/functions/fprintf.texi: Update.
10926 * doc/functions/printf.texi: Update.
10927 * doc/functions/snprintf.texi: Update.
10928 * doc/functions/sprintf.texi: Update.
10929 * doc/functions/vfprintf.texi: Update.
10930 * doc/functions/vprintf.texi: Update.
10931 * doc/functions/vsnprintf.texi: Update.
10932 * doc/functions/vsprintf.texi: Update.
10934 2007-05-06 Bruno Haible <bruno@clisp.org>
10936 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
10937 pass the ' flag character to sprintf or snprintf.
10938 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
10939 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
10940 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
10941 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
10942 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
10943 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10944 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
10945 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10946 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10947 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10948 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10949 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10950 * tests/test-snprintf-posix.h (test_function): Also check the grouping
10952 * tests/test-sprintf-posix.h (test_function): Likewise.
10953 * tests/test-vasnprintf-posix.c (test_function): Likewise.
10954 * tests/test-vasprintf-posix.c (test_function): Likewise.
10955 * doc/functions/fprintf.texi: Update.
10956 * doc/functions/printf.texi: Update.
10957 * doc/functions/snprintf.texi: Update.
10958 * doc/functions/sprintf.texi: Update.
10959 * doc/functions/vfprintf.texi: Update.
10960 * doc/functions/vprintf.texi: Update.
10961 * doc/functions/vsnprintf.texi: Update.
10962 * doc/functions/vsprintf.texi: Update.
10964 2007-05-01 Bruno Haible <bruno@clisp.org>
10966 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
10968 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
10970 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
10971 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
10973 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
10975 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
10976 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
10977 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
10979 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
10981 * lib/argp-help.c (struct hol_entry): New member `ord'.
10982 (HOL_ENTRY_PTRCMP): Use ord for comparison
10983 (hol_sort): Initialize ord.
10985 2007-05-01 Bruno Haible <bruno@clisp.org>
10987 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
10988 Reported by Eric Blake.
10989 * doc/gnulib.texi (Function Substitutes): Update.
10991 2007-05-01 Bruno Haible <bruno@clisp.org>
10993 * doc/functions.texi: Remove file, now redundant through
10994 doc/functions/*.texi.
10996 2007-05-01 Bruno Haible <bruno@clisp.org>
10998 * modules/argp (Depends-on): Add sleep.
11000 2007-05-01 Bruno Haible <bruno@clisp.org>
11002 * modules/sleep-tests: New file.
11003 * tests/test-sleep.c: New file.
11005 * modules/sleep: New file.
11006 * lib/sleep.c: New file.
11007 * m4/sleep.m4: New file.
11008 * lib/unistd_.h (sleep): New declaration.
11009 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
11011 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
11012 * doc/functions/sleep.texi: Document the sleep module.
11014 2007-05-01 Bruno Haible <bruno@clisp.org>
11016 * lib/sigprocmask.h: Remove file.
11017 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
11018 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
11019 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
11020 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
11021 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
11022 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
11023 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
11024 HAVE_SIGSET_T as a shell variable.
11025 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
11026 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
11027 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
11028 (Depends-on): Add signal. Remove verify.
11029 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
11030 (Include): Mention <signal.h> instead of sigprocmask.h.
11031 * NEWS: Mention the change.
11032 * lib/fatal-signal.c: Don't include sigprocmask.h.
11034 2007-05-01 Bruno Haible <bruno@clisp.org>
11036 * modules/signal: New file.
11037 * lib/signal_.h: New file.
11038 * m4/signal_h.m4: New file.
11040 2007-05-01 Bruno Haible <bruno@clisp.org>
11042 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
11043 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
11044 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
11045 HAVE_WCTYPE_CTMP_BUG into wctype.h.
11047 2007-05-01 Bruno Haible <bruno@clisp.org>
11049 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
11051 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
11052 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
11053 * modules/sys_stat (Makefile.am): Substitute their values into
11056 2007-05-01 Bruno Haible <bruno@clisp.org>
11058 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
11059 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
11060 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
11062 2007-05-01 Bruno Haible <bruno@clisp.org>
11064 * doc/header/assert.texi: Undo last change: don't mention the gnulib
11065 'assert' module here.
11067 2007-05-01 Bruno Haible <bruno@clisp.org>
11069 * doc/functions/*.texi: New files.
11070 * doc/functions/google-ranking.txt: New file.
11071 * doc/gnulib.texi (Function Substitutes): New chapter.
11072 (ctime, inet_ntoa): Remove sections.
11073 * doc/ctime.texi: Remove file.
11074 * doc/inet_ntoa.texi: Remove file.
11075 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
11077 (%.info): New rule, specifying a --reference-limit.
11079 2007-05-01 Bruno Haible <bruno@clisp.org>
11081 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
11083 2007-05-01 Bruno Haible <bruno@clisp.org>
11085 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
11086 the portability of 'mkdir' to mingw systems.
11088 2007-05-01 Bruno Haible <bruno@clisp.org>
11090 * doc/headers/google-ranking.txt: New file.
11092 2007-04-30 Eric Blake <ebb9@byu.net>
11094 Prefer fseeko to fseek.
11095 * modules/getpass (Depends-on): Add fseeko.
11096 * lib/getpass.c (getpass): Use fseeko, not fseek.
11098 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
11100 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
11101 assumes the sorting is stable, while most qsort implementations
11102 are not. Use argument addresses to ensure they never compare as
11105 * tests/test-argp-2.sh (usage-indent test): Fix output
11106 (func_compare): Restore diff options
11107 * tests/test-argp.c: Restore #include "progname.h"
11109 2007-04-29 Bruno Haible <bruno@clisp.org>
11111 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
11112 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
11113 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
11114 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
11115 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
11116 (configure.ac): Define CHECK_SNPRINTF_POSIX.
11117 (TESTS, check_PROGRAMS): Add test-snprintf.
11118 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
11119 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
11120 (TESTS, check_PROGRAMS): Add test-vsnprintf.
11121 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
11122 assertions that fail on HP-UX, OSF/1, or IRIX.
11123 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
11125 2007-04-29 Bruno Haible <bruno@clisp.org>
11127 * MODULES.html.sh (posix_functions): Remove 'contents'.
11129 2007-04-29 Karl Berry <karl@gnu.org>
11131 * config/srclist.txt (gendocs_template_min): new entry.
11133 2007-04-29 Bruno Haible <bruno@clisp.org>
11135 Work around fpurge bug on BSD systems.
11136 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
11137 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
11138 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
11139 fpurge to rpl_fpurge if the system already has this function.
11140 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
11141 the case where the system already has this function. Correct invariants
11143 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
11146 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
11148 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
11149 proposed by Sven Verdoolaege.
11151 * tests/test-argp.c: Fix option ordering. Test deeply clustered
11153 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
11154 (usage and help tests): Update
11156 2007-04-29 Bruno Haible <bruno@clisp.org>
11158 * tests/test-fflush.c (main): Use a file of size 17, not 10.
11159 Print more information in case of failure. Disable a test on BeOS.
11161 2007-04-29 Bruno Haible <bruno@clisp.org>
11163 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
11164 This helps debugging on systems on which no gdb is available.
11166 2007-04-29 Bruno Haible <bruno@clisp.org>
11168 * lib/freading.h: Improve comments.
11169 * lib/fwriting.h: Likewise.
11170 * tests/test-freading.c (main): Don't check freading immediately after
11171 repositioning. Needed for glibc.
11173 2007-04-29 Bruno Haible <bruno@clisp.org>
11175 * lib/freading.c (freading): Trivial simplification.
11177 2007-04-28 Bruno Haible <bruno@clisp.org>
11179 * tests/test-fwriting.c (main): Also test the interaction between
11180 fflush and fwriting.
11181 * modules/fwriting-tests (Depends-on): Add fflush.
11183 * tests/test-freading.c (main): Also test the interaction between
11184 fflush and freading.
11185 * modules/freading-tests (Depends-on): Add fflush.
11187 2007-04-28 Bruno Haible <bruno@clisp.org>
11189 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
11191 Suggested by Eric Blake.
11193 2007-04-28 Jim Meyering <jim@meyering.net>
11195 Avoid false-negative in gl_STDINT_H's C99 conformance test.
11196 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
11197 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
11199 2007-04-27 Eric Blake <ebb9@byu.net>
11201 * doc/headers/assert.texi (assert.h): Document assert module use.
11203 2007-04-27 Bruno Haible <bruno@clisp.org>
11205 * doc/headers/*.texi: New files.
11206 * doc/gnulib.texi (Header File Substitutes): New chapter.
11207 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
11209 (standards.info ,standards.html, standards.dvi): Update dependencies.
11210 (mostlyclean, clean): New targets.
11212 2007-04-27 Bruno Haible <bruno@clisp.org>
11214 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
11215 * modules/sysexits (Files, Makefile.am): Update.
11217 * lib/sys_socket_.h: Renamed from lib/socket_.h.
11218 * modules/sys_socket (Files, Makefile.am): Update.
11220 * lib/sys_stat_.h: Renamed from lib/stat_.h.
11221 * modules/sys_stat (Files, Makefile.am): Update.
11223 2007-04-27 Eric Blake <ebb9@byu.net>
11225 * lib/freading.h: Improve comments.
11226 * lib/fwriting.h: Likewise.
11227 * lib/fflush.c: Likewise.
11229 Fix closein for mingw.
11230 * modules/closein-tests: Add tests for closein.
11231 * tests/test-closein.c: New file.
11232 * tests/test-closein.sh: Likewise.
11233 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
11234 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
11236 2007-04-27 Bruno Haible <bruno@clisp.org>
11238 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
11240 * lib/math_.h [__DECC]: Likewise.
11241 * lib/stdio_.h [__DECC]: Likewise.
11242 * lib/stdlib_.h [__DECC]: Likewise.
11243 * lib/string_.h [__DECC]: Likewise.
11244 * lib/time_.h [__DECC]: Likewise.
11245 * lib/wchar_.h [__DECC]: Likewise.
11246 * lib/wctype_.h [__DECC]: Likewise.
11248 2007-04-27 Bruno Haible <bruno@clisp.org>
11250 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
11252 2007-04-27 Bruno Haible <bruno@clisp.org>
11254 * lib/fflush.c: Add comments.
11255 * modules/fpurge-tests (Depends-on): Add fflush.
11256 * modules/freadable-tests (Depends-on): Likewise.
11257 * modules/fwritable-tests (Depends-on): Likewise.
11259 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
11261 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
11262 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
11263 Report by Bruno Haible <bruno@clisp.org>.
11265 2007-04-26 Eric Blake <ebb9@byu.net>
11267 Fix fflush on mingw.
11268 * modules/fflush (Depends-on): Add freading.
11269 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
11272 2007-04-26 Eric Blake <ebb9@byu.net>
11273 and Bruno Haible <bruno@clisp.org>
11275 Implement freading and fwriting.
11276 * lib/freading.c: New file.
11277 * lib/freading.h: Likewise.
11278 * m4/freading.m4: Likewise.
11279 * modules/freading: Likewise.
11280 * modules/freading-tests: Likewise.
11281 * tests/test-freading.c: Likewise.
11282 * lib/fwriting.c: New file.
11283 * lib/fwriting.h: Likewise.
11284 * m4/fwriting.m4: Likewise.
11285 * modules/fwriting: Likewise.
11286 * modules/fwriting-tests: Likewise.
11287 * tests/test-fwriting.c: Likewise.
11288 * MODULES.html.sh (File stream based Input/Output): Mention them.
11290 2007-04-26 Bruno Haible <bruno@clisp.org>
11292 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
11293 'long' when we assume it.
11294 Suggested by Eric Blake.
11296 2007-04-26 Bruno Haible <bruno@clisp.org>
11298 Ensure fseeko, ftello are declared on glibc systems.
11299 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
11300 * modules/fseeko (configure.ac-early): Likewise.
11301 * modules/ftello (configure.ac-early): Likewise.
11302 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
11303 AC_FUNC_FSEEKO for this.
11304 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
11305 (gl_CHECK_FSEEKO): Remove macro.
11307 2007-04-26 Bruno Haible <bruno@clisp.org>
11309 * tests/test-fflush.c (main): Also check the ftell result after
11310 fflush and fseek/fseeko.
11311 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
11312 file descriptor position cache in the stream.
11313 * lib/fseeko.c (rpl_fseeko): Likewise.
11315 2007-04-26 Bruno Haible <bruno@clisp.org>
11317 * modules/fflush-tests (Depends-on): Add fseeko.
11319 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
11320 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11322 * lib/argz_.h: ensure error_t definition is obtained in same
11323 mechanism system argz.h would have.
11324 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
11325 argz facilities are known bad. Err on the side of caution if
11328 2007-04-25 Eric Blake <ebb9@byu.net>
11330 * lib/fpurge.c (includes): Use stdlib.h for free.
11331 * tests/test-fflush.c (main): Also test fflush-fseeko.
11333 2007-04-25 Bruno Haible <bruno@clisp.org>
11335 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
11336 * lib/fseeko.c: New file.
11337 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
11338 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
11339 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
11341 (gl_FUNC_FSEEKO): Invoke it.
11342 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
11343 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
11344 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
11346 2007-04-25 Bruno Haible <bruno@clisp.org>
11348 * modules/fflush (Depends-on): Add ftello.
11350 2007-04-25 Bruno Haible <bruno@clisp.org>
11352 * modules/ftello-tests: New file.
11353 * tests/test-ftello.c: New file.
11355 * modules/ftello: New file.
11356 * m4/ftello.m4: New file.
11357 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
11359 * lib/stdio_.h (ftello): New declaration.
11360 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
11363 2007-04-25 Bruno Haible <bruno@clisp.org>
11365 * modules/fseeko-tests: New file.
11366 * tests/test-fseeko.c: New file.
11368 * modules/fseeko: New file.
11369 * m4/fseeko.m4: New file.
11370 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
11372 * lib/stdio_.h (fseeko): New declaration.
11373 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
11376 2007-04-25 Bruno Haible <bruno@clisp.org>
11378 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
11380 2007-04-25 Bruno Haible <bruno@clisp.org>
11382 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
11383 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
11384 * tests/test-unistd.c: Likewise.
11385 * tests/test-fcntl.c: Likewise.
11387 2007-04-23 Eric Blake <ebb9@byu.net>
11389 * lib/fflush.c: Fix missing include.
11390 Reported by Bruno Haible.
11392 2007-04-23 Bruno Haible <bruno@clisp.org>
11394 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
11395 Reported by Eric Blake.
11397 2007-04-23 Bruno Haible <bruno@clisp.org>
11399 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
11401 2007-04-23 Bruno Haible <bruno@clisp.org>
11403 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
11405 2007-04-23 Bruno Haible <bruno@clisp.org>
11407 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
11408 Needed on HP-UX 11.
11410 2007-04-16 Eric Blake <ebb9@byu.net>
11412 Make fflush rely on fpurge.
11413 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
11414 open coding all variants.
11415 * modules/fflush (Depends-on): Add fpurge and unistd.
11416 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
11417 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
11419 Fix --with-tests compilation on cygwin.
11420 * modules/argmatch-tests (Makefile.am): List gnulib library first
11422 * modules/argp-tests (Makefile.am): Likewise.
11423 * modules/array-list-tests (Makefile.am): Likewise.
11424 * modules/array-oset-tests (Makefile.am): Likewise.
11425 * modules/avltree-list-tests (Makefile.am): Likewise.
11426 * modules/avltree-oset-tests (Makefile.am): Likewise.
11427 * modules/avltreehash-list-tests (Makefile.am): Likewise.
11428 * modules/carray-list-tests (Makefile.am): Likewise.
11429 * modules/dirname-tests (Makefile.am): Likewise.
11430 * modules/frexp-tests (Makefile.am): Likewise.
11431 * modules/isnanl-tests (Makefile.am): Likewise.
11432 * modules/linked-list-tests (Makefile.am): Likewise.
11433 * modules/linkedhash-list-tests (Makefile.am): Likewise.
11434 * modules/lock-tests (Makefile.am): Likewise.
11435 * modules/rbtree-list-tests (Makefile.am): Likewise.
11436 * modules/rbtree-oset-tests (Makefile.am): Likewise.
11437 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
11438 * modules/tls-tests (Makefile.am): Likewise.
11439 * modules/tsearch-tests (Makefile.am): Likewise.
11440 * modules/xvasprintf-tests (Makefile.am): Likewise.
11442 Fix fpurge for cygwin.
11443 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
11445 * modules/fpurge-tests (Depends-on): Clean up trash.
11447 2007-04-16 Simon Josefsson <simon@josefsson.org>
11449 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
11451 * m4/autobuild.m4: Re-indent.
11453 2007-04-13 Bruno Haible <bruno@clisp.org>
11455 * modules/fpurge-tests: New file.
11456 * tests/test-fpurge.c: New file.
11458 * modules/fpurge: New file.
11459 * lib/fpurge.h: New file.
11460 * lib/fpurge.c: New file.
11461 * m4/fpurge.m4: New file.
11463 2007-04-13 Bruno Haible <bruno@clisp.org>
11465 * modules/fbufmode-tests: New file.
11466 * tests/test-fbufmode.c: New file.
11468 * modules/fbufmode: New file.
11469 * lib/fbufmode.h: New file.
11470 * lib/fbufmode.c: New file.
11471 * m4/fbufmode.m4: New file.
11473 2007-04-13 Bruno Haible <bruno@clisp.org>
11475 * modules/fwritable-tests: New file.
11476 * tests/test-fwritable.c: New file.
11478 * modules/fwritable: New file.
11479 * lib/fwritable.h: New file.
11480 * lib/fwritable.c: New file.
11481 * m4/fwritable.m4: New file.
11483 2007-04-13 Bruno Haible <bruno@clisp.org>
11485 * modules/freadable-tests: New file.
11486 * tests/test-freadable.c: New file.
11488 * modules/freadable: New file.
11489 * lib/freadable.h: New file.
11490 * lib/freadable.c: New file.
11491 * m4/freadable.m4: New file.
11493 2007-04-13 Bruno Haible <bruno@clisp.org>
11495 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
11498 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
11500 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
11501 gzip bootstrap.conf to avoid dragging in i18n machinery.
11502 (gnulib_tool_option): Use it.
11504 2007-04-13 Bruno Haible <bruno@clisp.org>
11506 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
11508 * tests/test-vasprintf-posix.c (test_function): Likewise.
11509 * tests/test-snprintf-posix.h (test_function): Likewise.
11510 * tests/test-sprintf-posix.h (test_function): Likewise.
11511 * tests/test-fprintf-posix.h (test_function): Likewise.
11512 * tests/test-printf-posix.h (test_function): Likewise.
11513 * tests/test-fprintf-posix.out: Likewise.
11515 2007-04-13 Bruno Haible <bruno@clisp.org>
11517 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
11518 * modules/tls-tests (configure.ac): Likewise.
11519 Reported by Arto C. Nirkko <anirkko@insel.ch>.
11521 2007-04-13 Bruno Haible <bruno@clisp.org>
11523 * lib/tls.c (glthread_tls_get): Fix return type.
11524 Patch by Arto C. Nirkko <anirkko@insel.ch>.
11526 2007-04-12 Eric Blake <ebb9@byu.net>
11528 * modules/gettime (Depends-on): Remove gettime.
11529 Reported by Dmitry V. Levin.
11531 2007-04-12 Bruno Haible <bruno@clisp.org>
11533 * modules/fflush (Include): Mention <stdio.h>.
11534 * modules/strtoimax (Include): Mention <inttypes.h>.
11535 * modules/strtoumax (Include): Likewise.
11537 2007-04-12 Eric Blake <ebb9@byu.net>
11539 * .cvsignore: New file.
11540 * .gitignore: Likewise.
11542 2007-04-12 Bruno Haible <bruno@clisp.org>
11544 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
11545 not before, since $(LDADD) often contains libgnu.a.
11546 * modules/striconv-tests (test_striconv_LDADD): Likewise.
11547 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
11548 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
11551 2007-04-12 Eric Blake <ebb9@byu.net>
11553 Work around glibc's failure to flush stdin on fclose.
11554 * lib/closein.c (close_stdin): Flush stdin before closing.
11556 Work around glibc's failure to reset seekable stdin on exit.
11557 * modules/closein: New module.
11558 * lib/closein.c: New file.
11559 * lib/closein.h: Likewise.
11560 * m4/closein.m4: Likewise.
11561 * MODULES.html.sh (File stream based Input/Output): Document it.
11563 2007-04-12 Simon Josefsson <simon@josefsson.org>
11565 * gnulib-tool: Rename generated 'autobuild' script to
11566 'do-autobuild' in --create-megatestdir output.
11568 * doc/gnulib.texi (Build robot for gnulib): Fix.
11570 2007-04-12 Simon Josefsson <simon@josefsson.org>
11572 * modules/sysexits (Depends-on): Add absolute-header.
11574 2007-04-12 Eric Blake <ebb9@byu.net>
11576 No need to preserve errno on success.
11577 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
11578 Reported by Bruno Haible.
11580 2007-04-12 Simon Josefsson <simon@josefsson.org>
11582 * MODULES.html.sh (Support for maintaining and releasing
11583 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
11585 2007-04-12 Simon Josefsson <simon@josefsson.org>
11587 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
11589 2007-04-12 Simon Josefsson <simon@josefsson.org>
11591 * modules/autobuild: New module.
11593 * m4/autobuild.m4: New file.
11595 2007-04-11 Bruno Haible <bruno@clisp.org>
11597 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
11598 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
11599 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
11600 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
11601 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
11602 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11603 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11604 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
11605 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11606 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11607 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
11608 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11609 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11610 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
11611 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11612 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11613 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
11614 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11615 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11616 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
11617 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11618 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11619 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
11620 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11621 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11622 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
11623 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
11624 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
11625 Reported by Eric Blake.
11627 2007-04-11 Bruno Haible <bruno@clisp.org>
11629 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
11631 2007-04-10 Bruno Haible <bruno@clisp.org>
11633 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
11634 for NaN and Infinity. Needed on FreeBSD 6.1.
11635 * tests/test-vasnprintf-posix.c (test_function): Undo last change
11636 regarding results for "%010a" of Infinity and NaN.
11637 * tests/test-vasprintf-posix.c (test_function): Likewise.
11638 * tests/test-snprintf-posix.h (test_function): Likewise.
11639 * tests/test-sprintf-posix.h (test_function): Likewise.
11640 * tests/test-fprintf-posix.h (test_function): Likewise.
11641 * tests/test-printf-posix.h (test_function): Likewise.
11642 * tests/test-fprintf-posix.out: Likewise.
11644 2007-04-10 Bruno Haible <bruno@clisp.org>
11646 * modules/locale-tests: New file.
11647 * tests/test-locale.c: New file.
11649 * modules/locale: New file.
11650 * lib/locale_.h: New file.
11651 * m4/locale_h.m4: New file.
11653 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
11654 Bruno Haible <bruno@clisp.org>
11656 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
11657 be determined, test for availability of the copysignf, copysign,
11658 copysignl functions.
11659 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
11660 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
11661 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
11663 2007-04-09 Eric Blake <ebb9@byu.net>
11665 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
11666 * modules/stdio (Makefile.am): Support fflush.
11667 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11668 * modules/fflush: New file.
11669 * lib/fflush.c: Likewise.
11670 * m4/fflush.m4: Likewise.
11671 * modules/fflush-tests: New test.
11672 * tests/test-fflush.c: Likewise.
11673 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
11675 2007-04-06 Bruno Haible <bruno@clisp.org>
11677 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
11678 (VASNPRINTF): Use signbit for faster determination whether to print a
11680 * modules/vasnprintf (Files): Remove lib/float+.h.
11681 * modules/fprintf-posix (Depends-on): Add signbit.
11682 * modules/snprintf-posix (Depends-on): Likewise.
11683 * modules/sprintf-posix (Depends-on): Likewise.
11684 * modules/vasnprintf-posix (Depends-on): Likewise.
11685 * modules/vasprintf-posix (Depends-on): Likewise.
11686 * modules/vfprintf-posix (Depends-on): Likewise.
11687 * modules/vsnprintf-posix (Depends-on): Likewise.
11688 * modules/vsprintf-posix (Depends-on): Likewise.
11690 2007-04-06 Bruno Haible <bruno@clisp.org>
11692 * tests/test-frexp.c (main): Test also the sign bit of zero results.
11693 * tests/test-frexpl.c (main): Likewise.
11694 * tests/test-ldexpl.c (main): Likewise.
11695 * modules/frexp-tests (Depends-on): Add signbit.
11696 * modules/frexpl-tests (Depdends-on): Likewise.
11697 * modules/ldexpl-tests (Depdends-on): Likewise.
11699 2007-04-06 Bruno Haible <bruno@clisp.org>
11701 * modules/signbit-tests: New file.
11702 * tests/test-signbit.c: New file.
11704 * modules/signbit: New file.
11705 * lib/signbitf.c: New file.
11706 * lib/signbitd.c: New file.
11707 * lib/signbitl.c: New file.
11708 * m4/signbit.m4: New file.
11709 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
11710 (signbit): New macro.
11711 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
11713 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
11714 REPLACE_FREXPL into math.h.
11716 2007-04-06 Bruno Haible <bruno@clisp.org>
11718 * modules/isnanf-nolibm-tests: New file.
11719 * tests/test-isnanf.c: New file.
11721 * modules/isnanf-nolibm: New file.
11722 * lib/isnanf.h: New file.
11723 * lib/isnanf.c: New file.
11724 * lib/isnan.c: Consider the USE_FLOAT macro.
11725 * m4/isnanf.m4: New file.
11727 2007-04-06 Bruno Haible <bruno@clisp.org>
11729 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
11730 (Link): New section.
11732 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
11734 2007-04-06 Bruno Haible <bruno@clisp.org>
11736 Assume the 'long double' type.
11737 * m4/longdouble.m4: Remove file.
11738 * config/srclist.txt: Don't mention longdouble.m4.
11739 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
11740 * lib/float+.h: Likewise.
11741 * lib/frexp.c: Likewise.
11742 * lib/printf-args.h: Likewise.
11743 * lib/printf-args.c: Likewise.
11744 * lib/printf-frexp.c: Likewise.
11745 * lib/printf-parse.c: Likewise.
11746 * lib/vasnprintf.c: Likewise.
11747 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
11748 * m4/intl.m4: Likewise.
11749 * m4/isnanl.m4: Likewise.
11750 * m4/printf.m4: Likewise.
11751 * m4/printf-frexpl.m4: Likewise.
11752 * m4/vasnprintf.m4: Likewise.
11753 * modules/allocsa (Files): Remove m4/longdouble.m4.
11754 * modules/gettext (Files): Likewise.
11755 * modules/relocatable-prog-wrapper (Files): Likewise.
11756 * modules/vasnprintf (Files): Likewise.
11757 * modules/isnanl (Files): Likewise.
11758 (Include): Simplify.
11759 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
11760 (Include): Simplify.
11761 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
11762 (Include): Simplify.
11763 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
11764 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11765 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
11766 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11767 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
11768 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11769 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
11770 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11771 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
11772 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11773 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
11774 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
11775 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
11776 * tests/test-isnanl.c: Likewise.
11777 * tests/test-snprintf-posix.h: Likewise.
11778 * tests/test-sprintf-posix.h: Likewise.
11779 * tests/test-vasnprintf-posix.c: Likewise.
11780 * tests/test-vasnprintf-posix2.c: Likewise.
11781 * tests/test-vasprintf-posix.c: Likewise.
11783 2007-04-06 Bruno Haible <bruno@clisp.org>
11785 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
11786 * lib/math_.h [__DECC]: Include the overridden include file through
11787 #include_next, outside the double-inclusion guard.
11788 * lib/stdio_.h [__DECC]: Likewise.
11789 * lib/stdlib_.h [__DECC]: Likewise.
11790 * lib/string_.h [__DECC]: Likewise.
11791 * lib/time_.h [__DECC]: Likewise.
11792 * lib/wchar_.h [__DECC]: Likewise.
11793 * lib/wctype_.h [__DECC]: Likewise.
11794 * lib/inttypes_.h [__DECC]: Likewise.
11795 Reported by Albert Chin <china@thewrittenword.com> in
11796 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
11798 2007-04-04 Eric Blake <ebb9@byu.net>
11800 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
11803 2007-04-04 Bruno Haible <bruno@clisp.org>
11805 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
11806 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
11808 2007-04-04 Bruno Haible <bruno@clisp.org>
11810 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
11811 results for "%010a" of Infinity and NaN.
11812 * tests/test-vasprintf-posix.c (test_function): Likewise.
11813 * tests/test-snprintf-posix.h (test_function): Likewise.
11814 * tests/test-sprintf-posix.h (test_function): Likewise.
11815 * tests/test-fprintf-posix.h (test_function): Remove these tests.
11816 * tests/test-printf-posix.h (test_function): Likewise.
11817 * tests/test-fprintf-posix.out: Update.
11818 Needed for FreeBSD 6.1.
11820 2007-04-04 Bruno Haible <bruno@clisp.org>
11822 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
11823 directly used by the gnulib modules nor by gnulib-tool.
11825 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
11827 * DEPENDENCIES: Give overall description of version dependency
11828 desirability. Use more-typical names for apps.
11829 Add shell, coreutils, diffutils, grep, tar, gzip.
11831 2007-04-04 Simon Josefsson <simon@josefsson.org>
11833 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
11835 2007-04-04 Karl Berry <karl@gnu.org>
11837 * MODULES.html.sh (func_module): missing '.
11839 2007-04-03 Bruno Haible <bruno@clisp.org>
11841 * modules/argmatch-tests (Makefile.am): New variable
11842 test_argmatch_LDADD.
11843 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
11844 * modules/array-list-tests (Makefile.am): New variable
11845 test_array_list_LDADD.
11846 * modules/array-oset-tests (Makefile.am): New variable
11847 test_array_oset_LDADD.
11848 * modules/avltree-list-tests (Makefile.am): New variable
11849 test_avltree_list_LDADD.
11850 * modules/avltree-oset-tests (Makefile.am): New variable
11851 test_avltree_oset_LDADD.
11852 * modules/avltreehash-list-tests (Makefile.am): New variable
11853 test_avltreehash_list_LDADD.
11854 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
11855 test_canonicalize_lgpl_LDADD.
11856 * modules/carray-list-tests (Makefile.am): New variable
11857 test_carray_list_LDADD.
11858 * modules/dirname-tests (Makefile.am): New variable
11859 test_dirname_LDADD.
11860 * modules/linked-list-tests (Makefile.am): New variable
11861 test_linked_list_LDADD.
11862 * modules/linkedhash-list-tests (Makefile.am): New variable
11863 test_linkedhash_list_LDADD.
11864 * modules/rbtree-list-tests (Makefile.am): New variable
11865 test_rbtree_list_LDADD.
11866 * modules/rbtree-oset-tests (Makefile.am): New variable
11867 test_rbtree_oset_LDADD.
11868 * modules/rbtreehash-list-tests (Makefile.am): New variable
11869 test_rbtreehash_list_LDADD.
11870 * modules/xvasprintf-tests (Makefile.am): New variable
11871 test_xvasprintf_LDADD.
11872 Reported by Eric Blake.
11874 2007-04-03 Eric Blake <ebb9@byu.net>
11876 * DEPENDENCIES: Weaken m4 requirements.
11878 2007-04-03 Bruno Haible <bruno@clisp.org>
11880 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
11881 * modules/isnanl-tests (configure.ac): Likewise.
11883 2007-04-03 Ben Pfaff <blp@gnu.org>
11885 * modules/iconv_open: Add $(srcdir)/ to source directory
11886 references in Makefile fragments that call gperf, to fix VPATH
11889 2007-04-03 Bruno Haible <bruno@clisp.org>
11891 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
11892 * lib/ldexpl.c: Undo last change.
11894 2007-04-03 Bruno Haible <bruno@clisp.org>
11896 * modules/printf-frexpl (Depends-on): Undo last change.
11897 (Files): Add m4/ldexpl.m4.
11899 2007-04-03 Bruno Haible <bruno@clisp.org>
11901 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
11902 * modules/isnanl (Link): New section.
11904 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
11905 * modules/frexp (Link): New section.
11907 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
11908 * modules/frexpl (Link): New section.
11910 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
11911 * modules/ldexpl (Link): New section.
11913 2007-04-03 Bruno Haible <bruno@clisp.org>
11915 * modules/TEMPLATE-EXTENDED: New file.
11916 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
11918 2007-04-03 Bruno Haible <bruno@clisp.org>
11920 * DEPENDENCIES: New file.
11921 Suggested by Simon Josefsson.
11923 2007-04-03 Bruno Haible <bruno@clisp.org>
11925 * doc/gnulib.texi: Escape @.
11927 2007-04-03 James Youngman <jay@gnu.org>
11928 and Paul Eggert <eggert@cs.ucla.edu>
11930 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
11931 birthtime on all systems that have birthtime, not just those which
11932 use st_birthtimensec rather than st_birthtim. Putting zero in
11933 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
11934 that the birth time is not available for files on an NFS mount.
11936 2007-04-03 Simon Josefsson <simon@josefsson.org>
11938 * modules/memxor: Move back from crypto/, suggested by Bruno.
11939 * modules/crypto/hmac-sha1: Fix memxor dependency.
11941 * modules/crypto/gc: Moved from ../.
11943 2007-04-02 Eric Blake <ebb9@byu.net>
11945 * lib/ldexpl.c (includes): Avoid libm.
11947 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
11949 2007-04-02 Bruno Haible <bruno@clisp.org>
11951 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
11954 2007-04-02 Bruno Haible <bruno@clisp.org>
11956 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
11957 x86 or x86_64 platforms running MacOS X.
11958 Reported by Ryan Schmidt <@ryandesign.com>.
11960 2007-04-02 Bruno Haible <bruno@clisp.org>
11962 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
11965 2007-04-01 Simon Josefsson <simon@josefsson.org>
11967 * modules/crypto/arcfour: Moved from ../.
11968 * modules/crypto/arcfour-tests: Moved from ../.
11969 * modules/crypto/arctwo: Moved from ../.
11970 * modules/crypto/arctwo-tests: Moved from ../.
11971 * modules/crypto/des: Moved from ../.
11972 * modules/crypto/des-tests: Moved from ../.
11973 * modules/crypto/gc-arcfour: Moved from ../.
11974 * modules/crypto/gc-arcfour-tests: Moved from ../.
11975 * modules/crypto/gc-arctwo: Moved from ../.
11976 * modules/crypto/gc-arctwo-tests: Moved from ../.
11977 * modules/crypto/gc-des: Moved from ../.
11978 * modules/crypto/gc-des-tests: Moved from ../.
11979 * modules/crypto/gc-hmac-md5: Moved from ../.
11980 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
11981 * modules/crypto/gc-hmac-sha1: Moved from ../.
11982 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
11983 * modules/crypto/gc-md2: Moved from ../.
11984 * modules/crypto/gc-md2-tests: Moved from ../.
11985 * modules/crypto/gc-md4: Moved from ../.
11986 * modules/crypto/gc-md4-tests: Moved from ../.
11987 * modules/crypto/gc-md5: Moved from ../.
11988 * modules/crypto/gc-md5-tests: Moved from ../.
11989 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
11990 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
11991 * modules/crypto/gc-random: Moved from ../.
11992 * modules/crypto/gc-rijndael: Moved from ../.
11993 * modules/crypto/gc-rijndael-tests: Moved from ../.
11994 * modules/crypto/gc-sha1: Moved from ../.
11995 * modules/crypto/gc-sha1-tests: Moved from ../.
11996 * modules/crypto/gc-tests: Moved from ../.
11997 * modules/crypto/hmac-md5: Moved from ../.
11998 * modules/crypto/hmac-md5-tests: Moved from ../.
11999 * modules/crypto/hmac-sha1: Moved from ../.
12000 * modules/crypto/hmac-sha1-tests: Moved from ../.
12001 * modules/crypto/md2: Moved from ../.
12002 * modules/crypto/md2-tests: Moved from ../.
12003 * modules/crypto/md4: Moved from ../.
12004 * modules/crypto/md4-tests: Moved from ../.
12005 * modules/crypto/md5: Moved from ../.
12006 * modules/crypto/md5-tests: Moved from ../.
12007 * modules/crypto/memxor: Moved from ../.
12008 * modules/crypto/rijndael: Moved from ../.
12009 * modules/crypto/rijndael-tests: Moved from ../.
12010 * modules/crypto/sha1: Moved from ../.
12012 2007-03-30 James Youngman <jay@gnu.org>
12014 * tests/test-stat-time.c (prepare_test): use chmod() rather than
12015 rename() to change the ctime of a file (because ctime is unaffected
12016 by rename on jfs2 on AIX 5.1).
12017 (main): Start by doing cleanup, in case a previous run failed leaving
12020 2007-03-31 Bruno Haible <bruno@clisp.org>
12022 Support old proprietary implementations of iconv.
12023 * modules/iconv_open: New file.
12024 * lib/iconv_.h: New file.
12025 * m4/iconv_h.m4: New file.
12026 * lib/iconv_open.c: New file.
12027 * lib/iconv_open-aix.gperf: New file.
12028 * lib/iconv_open-hpux.gperf: New file.
12029 * lib/iconv_open-irix.gperf: New file.
12030 * lib/iconv_open-osf.gperf: New file.
12031 * m4/iconv_open.m4: New file.
12032 * modules/linebreak (Depends-on): Add iconv_open.
12033 * modules/striconv (Depends-on): Likewise.
12034 * modules/striconveh (Depends-on): Likewise.
12035 * modules/unicodeio (Depends-on): Likewise.
12036 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
12038 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
12039 conversion if cd is (iconv_t)(-1).
12040 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
12043 2007-03-31 Bruno Haible <bruno@clisp.org>
12045 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
12046 work on Solaris either. Protect also second use of "autodetect_jp".
12048 2007-03-31 Bruno Haible <bruno@clisp.org>
12050 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
12051 the function is not present.
12053 2007-03-31 Bruno Haible <bruno@clisp.org>
12055 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
12056 the function is not present.
12058 2007-03-31 Bruno Haible <bruno@clisp.org>
12060 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
12061 a bug in HP-UX iconv_open().
12063 2007-03-31 Bruno Haible <bruno@clisp.org>
12065 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
12066 (Mathematics <math.h>): New section, add fpieee.
12067 (Input/output <stdio.h>): Add fseterr.
12068 (Mathematics <math.h>): New section, add printf-frexp.
12069 (Container data structures): Add sublist.
12070 (Core language properties): Add fpucw, inline.
12071 (Functions for greatest-width integer types <inttypes.h>): Add
12072 imaxabs, imaxdiv, inttypes.
12073 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
12074 isnanl-nolibm, ldexp.
12075 (Mathematics <math.h>): New section, add printf-frexpl.
12076 (Support for systems lacking POSIX:2001): Add fprintf-posix,
12077 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
12078 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
12079 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
12080 (Unicode string functions): Add unistr/u*-mbtoucr.
12081 (Java): Add javacomp-script, javaexec-script.
12082 (C#): Add csharpcomp-script, csharpexec-script.
12083 (Support for building libraries and executables): Add havelib,
12085 (Support for maintaining and releasing projects): Renamed from
12086 'Support for maintaining and release projects'. Add announce-gen.
12088 2007-03-31 Bruno Haible <bruno@clisp.org>
12090 * README: Talk primarily about git.
12091 (git and CVS): Renamed from CVS.
12092 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
12093 gnulib is available through git.
12094 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
12096 2007-03-30 Bruno Haible <bruno@clisp.org>
12098 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
12099 * lib/poll_.h: Likewise.
12100 * lib/stat_.h: Likewise.
12101 * lib/sys_time_.h: Likewise.
12102 * lib/sysexit_.h: Likewise.
12103 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
12104 * lib/stdbool_.h: Likewise.
12105 * lib/byteswap_.h: Add double-inclusion guard.
12107 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
12109 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
12111 2007-03-30 Karl Berry <karl@gnu.org>
12113 * config/srclist-update: double space after USA in the license
12114 substitution, since that's how it's usually (?) written.
12116 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
12118 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
12119 reported by Bruno Haible.
12121 2007-03-29 Bruno Haible <bruno@clisp.org>
12123 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
12124 a bug in AIX iconv().
12126 2007-03-29 Bruno Haible <bruno@clisp.org>
12128 * modules/ldexpl-tests: New file.
12129 * tests/test-ldexpl.c: New file.
12131 2007-03-29 Bruno Haible <bruno@clisp.org>
12133 * lib/ldexpl.c: Include fpucw.h.
12134 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
12136 * modules/ldexpl (Depends-on): Add fpucw.
12138 2007-03-29 Bruno Haible <bruno@clisp.org>
12140 * modules/ldexpl: New file.
12141 * m4/ldexpl.m4: New file.
12142 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
12144 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
12146 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
12148 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
12149 gl_FUNC_LDEXPL_WORKS.
12150 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
12151 * modules/mathl (Files): Remove lib/ldexpl.c.
12152 (Depends-on): Add ldexpl.
12154 2007-03-29 Bruno Haible <bruno@clisp.org>
12156 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
12158 2007-03-29 Bruno Haible <bruno@clisp.org>
12160 * tests/test-striconveh.c (main): Don't assume that a direct conversion
12161 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
12162 and possibly also HP-UX.
12163 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
12164 work on AIX, IRIX, HP-UX, OSF/1.
12165 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
12166 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
12167 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
12168 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
12169 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
12170 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
12172 2007-03-29 Bruno Haible <bruno@clisp.org>
12174 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
12176 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
12178 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
12179 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
12181 2007-03-29 Eric Blake <ebb9@byu.net>
12183 * lib/acl-internal.h: Remove redundant include.
12184 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
12185 Cygwin when a file is locked.
12187 2007-03-29 Bruno Haible <bruno@clisp.org>
12189 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
12191 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
12193 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
12195 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
12196 try to remove a parent directory if the child couldn't be removed
12197 (except for the first rmdir, which could fail because the child
12198 doesn't exist). Problem reported by Jeff Blaine in
12199 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
12201 2007-03-28 Bruno Haible <bruno@clisp.org>
12203 * lib/striconveh.c (utf8conv_carefully): New function.
12204 (mem_cd_iconveh_internal): Invoke it.
12206 2007-03-28 Bruno Haible <bruno@clisp.org>
12208 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
12209 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
12211 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
12212 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
12215 2007-03-28 Bruno Haible <bruno@clisp.org>
12217 * modules/unistr/u8-mbtoucr: New file.
12218 * lib/unistr/u8-mbtoucr.c: New file.
12219 * modules/unistr/u16-mbtoucr: New file.
12220 * lib/unistr/u16-mbtoucr.c: New file.
12221 * modules/unistr/u16-mbtoucr: New file.
12222 * lib/unistr/u16-mbtoucr.c: New file.
12223 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
12225 2007-03-27 Simon Josefsson <simon@josefsson.org>
12226 Bruno Haible <bruno@clisp.org>
12228 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
12229 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
12230 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
12232 * m4/stdio_h.m4: Add stubs for vasprintf too.
12234 * modules/stdio: Support vasprintf in sed command.
12236 * modules/vasprintf: Depend on stdio for prototypes. Remove
12237 vasprintf.h. Add stdio module indicator.
12239 * lib/stdio_.h: Declare asprintf and vasprintf, based on
12242 * lib/vasprintf.h: File removed.
12244 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
12245 * lib/vasprintf.c: Ditto.
12246 * lib/xvasprintf.c: Ditto.
12247 * tests/test-vasprintf-posix.c: Ditto.
12248 * tests/test-vasprintf.c: Ditto.
12250 2007-03-27 Bruno Haible <bruno@clisp.org>
12252 Make vasnprintf multithread-safe.
12253 * lib/vasnprintf.c (decimal_point_char): New function.
12254 (VASNPRINTF): Use it.
12255 Suggested by Simon Josefsson.
12257 2007-03-27 Eric Blake <ebb9@byu.net>
12259 Support sub-second birthtime on cygwin.
12260 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
12261 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
12262 (get_stat_birthtime): Also work with st_birthtim.
12264 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
12266 * lib/stat-time.h (USE_BIRTHTIME): Remove.
12267 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
12268 (get_stat_birthtime_ns): Do not try to use "spare" fields.
12269 (get_stat_birthtime_ns): Simplify compile-time tests.
12270 (get_stat_birthtime): Change the API to look like
12271 get_stat_mtime etc., except return a negative tv_nsec on error.
12272 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
12273 Don't check for "spare" fields.
12274 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
12275 or for struct stat.st_birthtime, as these tests aren't used.
12276 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
12278 2007-03-27 Bruno Haible <bruno@clisp.org>
12280 * lib/stat-time.h: Include <sys/stat.h>.
12282 2007-03-27 James Youngman <jay@gnu.org>
12284 * lib/stat-time.h (get_stat_birthtime): New function for
12285 retrieving st_birthtime as provided by UFS2 (hence *BSD).
12286 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
12288 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
12289 * modules/stat-time-test: New file.
12290 * tests/test-stat-time.c: New test, devised by Bruno Haible.
12292 2007-03-26 Bruno Haible <bruno@clisp.org>
12294 Better support of signalling NaNs.
12295 * lib/atanl.c: Include isnanl.h.
12296 (atanl): Perform test for NaN at the beginning of the function and
12297 through a call to isnanl.
12298 * lib/cosl.c: Include isnanl.h.
12299 (cosl): Perform test for NaN at the beginning of the function and
12300 through a call to isnanl.
12301 * lib/ldexpl.c: Include isnanl.h.
12302 (ldexpl): Perform test for NaN through a call to isnanl.
12303 * lib/logl.c: Include isnanl.h.
12304 (logl): Perform test for NaN at the beginning of the function and
12305 through a call to isnanl.
12306 * lib/sinl.c: Include isnanl.h.
12307 (sinl): Perform test for NaN at the beginning of the function and
12308 through a call to isnanl.
12309 * lib/sqrtl.c: Include isnanl.h.
12310 (sqrtl): Perform test for NaN at the beginning of the function and
12311 through a call to isnanl.
12312 * lib/tanl.c: Include isnanl.h.
12313 (tanl): Perform test for NaN at the beginning of the function and
12314 through a call to isnanl.
12315 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
12316 * modules/mathl (Depends-on): Add isnanl.
12318 2007-03-26 Eric Blake <ebb9@byu.net>
12320 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
12321 regression in logic sense of previous patch.
12323 2007-03-26 Bruno Haible <bruno@clisp.org>
12325 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
12326 unportable shell command "if ! ...".
12327 Reported by Ralf Wildenhues.
12329 2007-03-25 Bruno Haible <bruno@clisp.org>
12331 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
12332 <sysexits.h> file, and only add EX_CONFIG.
12333 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
12334 absolute file name and whether it is sufficient. Substitute also
12335 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
12336 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
12337 ABSOLUTE_SYSEXITS_H into sysexits.h.
12339 2007-03-25 Bruno Haible <bruno@clisp.org>
12341 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
12344 2007-03-25 Bruno Haible <bruno@clisp.org>
12346 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
12347 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
12349 2007-03-25 Bruno Haible <bruno@clisp.org>
12351 * lib/vasnprintf.c: Include langinfo.h.
12352 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
12354 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
12355 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
12356 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12357 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12358 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12359 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12360 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12361 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
12362 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12363 Reported by Simon Josefsson.
12365 2007-03-25 Bruno Haible <bruno@clisp.org>
12367 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
12368 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
12369 * modules/vasnprintf (Depends-on): Add stdint.
12371 2007-03-25 Bruno Haible <bruno@clisp.org>
12373 * modules/fpieee: New file.
12374 * m4/fpieee.m4: New file.
12375 * modules/isnan-nolibm (Depends-on): Add fpieee.
12376 * modules/isnanl-nolibm (Depends-on): Add fpieee.
12377 * modules/isnanl (Depends-on): Add fpieee.
12379 2007-03-25 Bruno Haible <bruno@clisp.org>
12381 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
12383 2007-03-25 Bruno Haible <bruno@clisp.org>
12385 Avoid test failures on IRIX 6.5.
12386 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
12388 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
12392 2007-03-25 Bruno Haible <bruno@clisp.org>
12394 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
12395 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
12396 exists but doesn't work.
12397 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
12398 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
12399 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
12400 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
12402 2007-03-25 Bruno Haible <bruno@clisp.org>
12404 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
12405 returns inf. Needed on IRIX 6.5.
12407 2007-03-25 Bruno Haible <bruno@clisp.org>
12409 * tests/test-frexpl.c: Include isnanl-nolibm.h.
12410 (main): Use isnanl instead of x != x idiom.
12411 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
12413 * tests/test-frexp.c: Include isnan.h.
12414 (main): Use isnan instead of x != x idiom.
12415 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
12417 2007-03-25 Bruno Haible <bruno@clisp.org>
12419 * tests/test-frexp.c (NaN): New function/macro.
12420 (main): Use it instead of 0.0 / 0.0.
12421 * tests/test-isnan.c (NaN): New function/macro.
12422 (main): Use it instead of 0.0 / 0.0.
12423 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
12424 (test_function): Use it instead of 0.0 / 0.0.
12425 * tests/test-vasprintf-posix.c (NaN): New function/macro.
12426 (test_function): Use it instead of 0.0 / 0.0.
12427 * tests/test-snprintf-posix.h (NaN): New function/macro.
12428 (test_function): Use it instead of 0.0 / 0.0.
12429 * tests/test-sprintf-posix.h (NaN): New function/macro.
12430 (test_function): Use it instead of 0.0 / 0.0.
12431 * tests/test-fprintf-posix.h (NaN): New function/macro.
12432 (test_function): Use it instead of 0.0 / 0.0.
12433 * tests/test-printf-posix.h (NaN): New function/macro.
12434 (test_function): Use it instead of 0.0 / 0.0.
12436 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
12438 2007-03-25 Bruno Haible <bruno@clisp.org>
12440 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
12442 2007-03-25 Bruno Haible <bruno@clisp.org>
12444 * lib/regexec.c (merge_state_with_log): Make static.
12446 2007-03-25 Bruno Haible <bruno@clisp.org>
12448 * lib/trigl.c (kernel_rem_pio2): Make static.
12450 2007-03-25 Bruno Haible <bruno@clisp.org>
12452 * lib/sincosl.c (sincosl_table): Make static.
12454 2007-03-25 Bruno Haible <bruno@clisp.org>
12456 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
12457 if the compiler does not support C99.
12459 2007-03-25 Bruno Haible <bruno@clisp.org>
12461 * modules/time (Makefile.am): Ensure all rule action lines start with a
12464 2007-03-24 Bruno Haible <bruno@clisp.org>
12466 * modules/tsearch-tests: New file.
12467 * tests/test-tsearch.sh: New file.
12468 * tests/test-tsearch.c: New file, mostly copied from glibc.
12470 * modules/search-tests: New file.
12471 * tests/test-search.c: New file.
12473 * modules/search: New file.
12474 * lib/search_.h: New file, incorporating lib/tsearch.h.
12475 * m4/search_h.m4: New file.
12476 * lib/tsearch.h: Remove file.
12477 * lib/tsearch.c: Include search.h instead of tsearch.h.
12478 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
12480 * modules/tsearch (Files): Remove lib/tsearch.h.
12481 (Depends-on): Add search.
12482 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
12483 (Include): Change tsearch.h into search.h.
12485 2007-03-24 Bruno Haible <bruno@clisp.org>
12487 * modules/fpucw: New file.
12488 * lib/fpucw.h: New file.
12489 * lib/frexp.c: Include fpucw.h.
12490 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
12492 * lib/printf-frexp.c: Include fpucw.h.
12493 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
12495 * lib/vasnprintf.c: Include fpucw.h.
12496 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
12497 'long double' calculations.
12498 * tests/test-frexpl.c: Include fpucw.h.
12499 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
12500 * tests/test-printf-frexpl.c: Include fpucw.h.
12501 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
12502 * modules/frexpl (Depends-on): Add fpucw.
12503 * modules/printf-frexpl (Depends-on): Likewise.
12504 * modules/fprintf-posix (Depends-on): Likewise.
12505 * modules/snprintf-posix (Depends-on): Likewise.
12506 * modules/sprintf-posix (Depends-on): Likewise.
12507 * modules/vasnprintf-posix (Depends-on): Likewise.
12508 * modules/vasprintf-posix (Depends-on): Likewise.
12509 * modules/vfprintf-posix (Depends-on): Likewise.
12510 * modules/vsnprintf-posix (Depends-on): Likewise.
12511 * modules/vsprintf-posix (Depends-on): Likewise.
12512 * modules/frexpl-tests (Depends-on): Likewise.
12513 * modules/printf-frexpl-tests (Depends-on): Likewise.
12515 2007-03-24 Bruno Haible <bruno@clisp.org>
12517 * lib/float+.h: New file.
12518 * lib/isnan.c: Include float+.h.
12520 (FUNC): Compare only SIZE bytes of the value.
12521 * lib/vasnprintf.c: Include float+.h.
12522 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
12523 SIZEOF_LDBL or SIZEOF_DBL bytes.
12524 * modules/isnan-nolibm (Files): Add lib/float+.h.
12525 * modules/isnanl-nolibm (Files): Add lib/float+.h.
12526 * modules/isnanl (Files): Add lib/float+.h.
12527 * modules/vasnprintf (Files): Add lib/float+.h.
12529 2007-03-24 Bruno Haible <bruno@clisp.org>
12531 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
12532 include isnanl-nolibm.h.
12534 2007-03-24 Bruno Haible <bruno@clisp.org>
12536 * tests/test-read-file.c (main): Don't produce spurious output for
12537 expected situations. Make the test fail if it encountered unexpected
12540 2007-03-24 Bruno Haible <bruno@clisp.org>
12542 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
12543 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
12545 2007-03-24 Bruno Haible <bruno@clisp.org>
12547 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
12549 2007-03-24 Bruno Haible <bruno@clisp.org>
12551 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
12552 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
12554 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
12555 * modules/utf8-ucs4: Turn into a symbolic link to module
12558 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
12560 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
12561 unistr/u8-mbtouc-unsafe.
12563 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
12564 * modules/utf16-ucs4: Turn into a symbolic link to module
12567 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
12569 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
12570 unistr/u16-mbtouc-unsafe.
12572 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
12573 * modules/ucs4-utf8: Turn into a symbolic link to module
12576 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
12577 * modules/ucs4-utf16: Turn into a symbolic link to module
12580 2007-03-24 Bruno Haible <bruno@clisp.org>
12582 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
12583 Enable the function only if HAVE_INLINE.
12584 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
12585 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
12586 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
12587 Enable the function only if HAVE_INLINE.
12588 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
12589 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
12590 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
12591 Enable the function only if HAVE_INLINE.
12592 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
12593 Enable the function only if HAVE_INLINE.
12594 * modules/utf8-ucs4: Update.
12595 * modules/utf8-ucs4-unsafe: Update.
12596 * modules/utf16-ucs4: Update.
12597 * modules/utf16-ucs4-unsafe: Update.
12598 * modules/ucs4-utf8: Update.
12599 * modules/ucs4-utf16: Update.
12601 2007-03-24 Bruno Haible <bruno@clisp.org>
12603 * lib/utf8-ucs4.h: Remove file.
12604 * lib/utf8-ucs4-unsafe.h: Remove file.
12605 * lib/utf16-ucs4.h: Remove file.
12606 * lib/utf16-ucs4-unsafe.h: Remove file.
12607 * lib/ucs4-utf8.h: Remove file.
12608 * lib/ucs4-utf16.h: Remove file.
12609 * lib/unistr.h: Include their previous contents.
12610 * m4/utf-ucs4.m4: Remove file.
12611 * m4/ucs4-utf.m4: Remove file.
12612 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
12613 (Depends-on): Add unistr/base.
12614 (configure.ac): Remove gl_UTF_UCS4.
12615 (Makefile.am): Update.
12616 (Include): Change to unistr.h.
12617 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
12618 (Depends-on): Add unistr/base.
12619 (configure.ac): Remove gl_UTF_UCS4.
12620 (Makefile.am): Update.
12621 (Include): Change to unistr.h.
12622 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
12623 (Depends-on): Add unistr/base.
12624 (configure.ac): Remove gl_UTF_UCS4.
12625 (Makefile.am): Update.
12626 (Include): Change to unistr.h.
12627 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
12628 (Depends-on): Add unistr/base.
12629 (configure.ac): Remove gl_UTF_UCS4.
12630 (Makefile.am): Update.
12631 (Include): Change to unistr.h.
12632 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
12633 (Depends-on): Add unistr/base.
12634 (configure.ac): Remove gl_UCS4_UTF.
12635 (Makefile.am): Update.
12636 (Include): Change to unistr.h.
12637 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
12638 (Depends-on): Add unistr/base.
12639 (configure.ac): Remove gl_UCS4_UTF.
12640 (Makefile.am): Update.
12641 (Include): Change to unistr.h.
12642 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
12643 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
12644 utf8-ucs4-unsafe.h.
12645 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
12646 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
12647 utf16-ucs4-unsafe.h.
12648 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
12649 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
12650 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
12651 * lib/unistr/u8-strchr.c: Likewise.
12652 * lib/unistr/u8-strrchr.c: Likewise.
12653 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
12654 * lib/unistr/u16-strchr.c: Likewise.
12655 * lib/unistr/u16-strrchr.c: Likewise.
12656 * lib/striconveh.c: Update.
12657 * lib/linebreak.c: Update.
12659 2007-03-24 Bruno Haible <bruno@clisp.org>
12661 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
12662 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
12664 2007-03-22 Bruno Haible <bruno@clisp.org>
12666 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
12668 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
12670 * MODULES.html.sh (File system functions): New module write-any-file.
12671 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
12672 * m4/write-any-file.m4: New files.
12674 2007-03-23 Eric Blake <ebb9@byu.net>
12676 * gnulib-tool: Rearrange space-tab sequences, since some editors
12679 2007-03-23 Eric Blake <ebb9@byu.net>
12681 * lib/version-etc.c (version_etc_va): Update license wording to
12682 be more concise. Recommended by Richard Stallman.
12684 2007-03-22 Bruno Haible <bruno@clisp.org>
12686 * lib/poll.c (MSG_PEEK): New fallback definition.
12688 2007-03-22 Bruno Haible <bruno@clisp.org>
12690 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
12691 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
12693 Fixes a compilation error on BeOS.
12695 2007-03-22 Bruno Haible <bruno@clisp.org>
12697 * modules/frexpl-tests: New file.
12698 * tests/test-frexpl.c: New file.
12700 * modules/frexpl: New file.
12701 * m4/frexpl.m4: New file.
12702 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
12703 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
12704 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
12705 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
12706 (Depends-on): Add frexpl. Remove isnanl-nolibm.
12707 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
12709 2007-03-22 Bruno Haible <bruno@clisp.org>
12711 * lib/frexpl.c: Share code with lib/frexp.c.
12712 * modules/mathl (Files): Add lib/frexp.c.
12713 (Depends-on): Add isnanl-nolibm.
12715 2007-03-22 Bruno Haible <bruno@clisp.org>
12717 * modules/printf-frexp (Files): Add m4/frexp.m4.
12718 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
12719 only if the found frexp function actually works.
12721 2007-03-22 Bruno Haible <bruno@clisp.org>
12723 * lib/frexp.c: Remove older implementation that uses divisions.
12725 2007-03-21 Bruno Haible <bruno@clisp.org>
12727 * modules/frexp-tests: New file.
12728 * tests/test-frexp.c: New file.
12730 * modules/frexp: New file.
12731 * lib/frexp.c: New file.
12732 * m4/frexp.m4: New file.
12733 * lib/math_.h (frexp): New declaration.
12734 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
12736 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
12738 2007-03-21 Bruno Haible <bruno@clisp.org>
12740 * modules/isnanl-tests: New file.
12741 * tests/test-isnanl.c: New file.
12743 * modules/isnanl: New file.
12744 * lib/isnanl.h: New file.
12745 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
12746 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
12747 gl_FUNC_ISNANL_WORKS.
12748 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
12751 2007-03-21 Bruno Haible <bruno@clisp.org>
12753 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
12756 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
12757 * lib/vasnprintf.c: Update.
12758 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
12759 tests/test-isnanl.h, remove tests/test-isnanl.c.
12760 (Makefile.am): Update.
12761 * tests/test-isnanl-nolibm.c: New file.
12762 * tests/test-isnanl.h: New file.
12763 * tests/test-isnanl.c: Remove file.
12765 2007-03-21 Jim Meyering <jim@meyering.net>
12767 When trying to open ".", treat ESTALE like EACCES.
12768 * lib/savewd.c (savewd_save): Resort to forking not just upon
12769 failure with EACCES, but also when errno is ESTALE.
12771 2007-03-20 Bruno Haible <bruno@clisp.org>
12773 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
12774 Needed on AIX 5.1. Reported by Matthew Woehlke.
12776 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
12778 Suggestions by Bruno Haible:
12779 * lib/acl-internal.h: Include "gettext.h" rather than rolling
12781 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
12782 * modules/acl (Depends-on): Add gettext.
12784 2007-03-19 Bruno Haible <bruno@clisp.org>
12786 * modules/iconvme: Remove file.
12787 * lib/iconvme.h: Remove file.
12788 * lib/iconvme.c: Remove file.
12789 * m4/iconvme.m4: Remove file.
12791 2007-03-19 Bruno Haible <bruno@clisp.org>
12793 * doc/relocatable-maint.texi: Break long shell script line.
12794 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
12796 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
12798 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
12799 handle file_has_acl.
12800 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
12801 * lib/acl.c: Move header inclusions and related macro defns into
12802 lib/acl-internal.h.
12803 (S_ISLNK): Remove defn, since that's now done for us.
12804 (file_has_acl): Move to lib/file-has-acl.c.
12805 Call acl_trivial if available. This is the crucial part of the fix.
12806 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
12807 shared within the library. Rewrite a bit, partly to make it compatible
12808 with the GNU coding style.
12809 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
12810 Remove unnecessary double-quotes.
12811 Don't test for acl_to_text; the build will catch that.
12812 Replace acl_entries if it doesn't exist and it is needed.
12813 Check for -lsec and acl_trivial (as used on Solaris 10).
12814 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
12815 lib/file-has-acl.c.
12816 (Depends-on): Add sys_stat, for S_ISLNK.
12818 2007-03-19 Ben Pfaff <blp@gnu.org>
12820 * doc/gnulib.texi: Fix typos.
12821 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
12823 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
12825 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
12826 If size is zero here, buf must be zero.
12828 2007-03-19 Simon Josefsson <simon@josefsson.org>
12830 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
12833 2007-03-18 Bruno Haible <bruno@clisp.org>
12835 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
12836 Suggested by Eric Blake.
12838 2007-03-18 Ben Pfaff <blp@gnu.org>
12840 * doc/relocatable.texi: Recommend using as prefix a directory
12841 that does not exist and will never be created. Based on
12842 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
12845 2007-03-17 Bruno Haible <bruno@clisp.org>
12847 * lib/fchownat.c: Include lchown.h.
12849 2007-03-17 Bruno Haible <bruno@clisp.org>
12851 Fix endless loop when the given allocated size was > INT_MAX.
12852 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
12853 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
12854 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
12855 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
12856 * lib/sprintf.c (sprintf): Likewise.
12858 2007-03-17 Bruno Haible <bruno@clisp.org>
12860 * tests/test-argp-2.sh (func_compare): Output a context diff.
12862 2007-03-17 Bruno Haible <bruno@clisp.org>
12864 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
12865 locale's decimal-point character.
12867 2007-03-17 Bruno Haible <bruno@clisp.org>
12869 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
12870 before comparing it. Needed because on some platforms (e.g. x86) a
12871 'long double' occupies less bytes than sizeof (long double).
12873 2007-03-17 Bruno Haible <bruno@clisp.org>
12875 * tests/test-crc.c (main): Make printf statements 64-bit clean.
12876 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
12877 * tests/test-getaddrinfo.c (simple): Likewise.
12878 * tests/test-read-file.c (main): Likewise.
12880 2007-03-17 Bruno Haible <bruno@clisp.org>
12882 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
12884 2007-03-17 Bruno Haible <bruno@clisp.org>
12886 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
12889 2007-03-17 Bruno Haible <bruno@clisp.org>
12891 * tests/test-c-strcasecmp.c: Include c-strcase.h.
12892 * tests/test-c-strncasecmp.c: Likewise.
12894 2007-03-17 Bruno Haible <bruno@clisp.org>
12896 * modules/stdlib (Depends-on): Add unistd.
12897 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
12898 Needed for MacOS X 10.3.
12900 2007-03-17 Bruno Haible <bruno@clisp.org>
12902 * lib/unistr/u-strdup.h: Include <stdlib.h>.
12904 2007-03-17 Bruno Haible <bruno@clisp.org>
12906 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
12908 2007-03-17 Bruno Haible <bruno@clisp.org>
12910 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
12911 to reflect files copied from gnulib (with or without modifications).
12912 Suggested by Jim Meyering.
12914 2007-03-17 Eric Blake <ebb9@byu.net>
12916 * NEWS: Document stdlib change from 2007-02-18.
12918 2007-03-17 Jim Meyering <jim@meyering.net>
12920 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
12921 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
12922 someone uses a name containing shell meta-characters.
12923 Reported by Alfred M. Szmidt.
12925 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
12927 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
12929 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
12930 and copy gettext configuration files only if configure.ac contains
12931 a use of AM_GNU_GETTEXT_VERSION.
12933 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
12935 * build-aux/bootstrap (gnulib_name): New variable.
12936 (gnulib_tool_options): Use it.
12938 2007-03-13 Simon Josefsson <simon@josefsson.org>
12940 * tests/test-des.c: Use new namespace.
12942 2007-03-15 Bruno Haible <bruno@clisp.org>
12944 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
12945 Reported by James Youngman <jay@gnu.org>.
12947 2007-03-15 Bruno Haible <bruno@clisp.org>
12949 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
12950 declared prototype. Needed with cc on OSF/1 5.1.
12952 2007-03-15 Bruno Haible <bruno@clisp.org>
12954 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
12955 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
12956 (struct gl_list_implementation): Add dispose_fn argument to the
12957 'create_empty', 'create' methods.
12958 (struct gl_list_impl_base): Add field 'dispose_fn'.
12959 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
12961 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
12962 dispose_fn argument.
12963 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
12964 dispose_fn on the dropped values.
12965 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
12966 dispose_fn argument.
12967 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
12969 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
12970 (gl_tree_remove_node): Call dispose_fn on the dropped value.
12971 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
12972 (gl_tree_remove_node): Call dispose_fn on the dropped value.
12973 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
12975 (gl_tree_list_free): Call dispose_fn on the dropped values.
12976 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
12977 the dropped values.
12978 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
12979 Add dispose_fn argument.
12980 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
12981 Call dispose_fn on the dropped values.
12982 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
12983 Add dispose_fn argument.
12984 (gl_sublist_create): Initialize the 'dispose_fn' field.
12985 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
12986 * tests/test-array_list.c (main): Update.
12987 * tests/test-carray_list.c (main): Update.
12988 * tests/test-avltree_list.c (main): Update.
12989 * tests/test-rbtree_list.c (main): Update.
12990 * tests/test-avltreehash_list.c (main): Update.
12991 * tests/test-rbtreehash_list.c (main): Update.
12992 * tests/test-linked_list.c (main): Update.
12993 * tests/test-linkedhash_list.c (main): Update.
12994 * tests/test-array_oset.c (main): Update.
12996 2007-03-15 Bruno Haible <bruno@clisp.org>
12998 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
12999 (gl_oset_create_empty): Add dispose_fn argument.
13000 (struct gl_oset_implementation): Add dispose_fn argument to
13001 'create_empty' method.
13002 (struct gl_oset_impl_base): Add dispose_fn field.
13003 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
13004 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
13005 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
13007 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
13008 (gl_tree_oset_free): Call dispose_fn on the dropped values.
13009 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
13011 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
13013 * tests/test-array_oset.c (main): Update.
13014 * tests/test-avltree_oset.c (main): Update.
13015 * tests/test-rbtree_oset.c (main): Update.
13016 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
13018 2007-03-13 Bruno Haible <bruno@clisp.org>
13020 * tests/test-stdbool.c (i): Update after last patch.
13022 2007-03-12 Bruno Haible <bruno@clisp.org>
13024 * lib/quotearg.c: Include <wctype.h> early, before the definition of
13025 the iswprint macro. Needed on Solaris 2.5.1.
13027 2007-03-12 Bruno Haible <bruno@clisp.org>
13029 * tests/test-printf-frexp.c (main): Declare x as volatile.
13031 2007-03-12 Simon Josefsson <simon@josefsson.org>
13033 * doc/gnulib.texi (Build robot for gnulib): New section.
13035 2007-03-12 Jim Meyering <jim@meyering.net>
13037 * build-aux/bootstrap: New file.
13038 * build-aux/bootstrap.conf: New file, from coreutils.
13040 2007-03-11 Bruno Haible <bruno@clisp.org>
13042 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
13044 2007-03-12 Simon Josefsson <simon@josefsson.org>
13046 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
13047 avoid collisions with 'des_setkey'. Reported by Bruno Haible
13048 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
13050 2007-03-11 Bruno Haible <bruno@clisp.org>
13052 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
13053 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
13055 2007-03-11 Bruno Haible <bruno@clisp.org>
13057 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
13058 formula. Needed for SunPRO C 5.0.
13060 2007-03-11 Bruno Haible <bruno@clisp.org>
13062 * modules/long-options (Depends-on): Add getopt.
13064 2007-03-11 Bruno Haible <bruno@clisp.org>
13066 * modules/modechange (Depends-on): Add stdbool.
13068 2007-03-11 Bruno Haible <bruno@clisp.org>
13070 * modules/i-ring (Depends-on): Add stdbool.
13072 2007-03-11 Bruno Haible <bruno@clisp.org>
13074 * modules/gc-des (Depends-on): Add stdbool.
13076 2007-03-11 Bruno Haible <bruno@clisp.org>
13078 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
13080 2007-03-11 Bruno Haible <bruno@clisp.org>
13082 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
13084 2007-03-11 Bruno Haible <bruno@clisp.org>
13086 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
13088 2007-03-11 Bruno Haible <bruno@clisp.org>
13090 * lib/vasnprintf.c (sprintf): Undefine.
13092 2007-03-11 Bruno Haible <bruno@clisp.org>
13094 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
13095 initializers in SunPRO C and Compaq C compilers.
13097 2007-03-11 Bruno Haible <bruno@clisp.org>
13099 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
13100 decrementing code ANSI C compliant.
13102 2007-03-11 Bruno Haible <bruno@clisp.org>
13104 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
13105 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
13107 2007-03-11 Bruno Haible <bruno@clisp.org>
13109 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
13110 <stdbool.h> substitute doesn't pass.
13112 2007-03-11 Bruno Haible <bruno@clisp.org>
13114 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
13116 2007-03-11 Bruno Haible <bruno@clisp.org>
13118 * gnulib-tool (func_create_megatestdir): Create also an autobuild
13119 script, for submission to autobuild.josefsson.org.
13121 2007-03-10 Bruno Haible <bruno@clisp.org>
13123 * modules/canonicalize-lgpl-tests: New file.
13124 * tests/test-canonicalize-lgpl.sh: New file.
13125 * tests/test-canonicalize-lgpl.c: New file.
13127 * modules/c-strcase-tests: New file.
13128 * tests/test-c-strcase.sh: New file.
13129 * tests/test-c-strcasecmp.c: New file.
13130 * tests/test-c-strncasecmp.c: New file.
13132 * modules/atexit-tests: New file.
13133 * tests/test-atexit.sh: New file.
13134 * tests/test-atexit.c: New file.
13136 2007-03-10 Bruno Haible <bruno@clisp.org>
13138 * tests/test-binary-io.sh: Use temporary filenames that are not so
13139 likely to clash with those of other tests (in a parallel make).
13140 * tests/test-binary-io.c: Likewise.
13142 2007-03-10 Bruno Haible <bruno@clisp.org>
13144 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
13145 fallback; use #error instead.
13146 Suggested by Simon Josefsson.
13148 2007-03-10 Bruno Haible <bruno@clisp.org>
13150 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
13151 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
13152 first and the last.
13154 2007-03-10 Bruno Haible <bruno@clisp.org>
13156 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
13158 2007-03-10 Bruno Haible <bruno@clisp.org>
13160 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
13162 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
13163 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
13164 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
13166 2007-03-10 Bruno Haible <bruno@clisp.org>
13168 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
13170 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
13173 2007-03-09 Eric Blake <ebb9@byu.net>
13174 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
13176 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
13177 types are not being provided by gnulib.
13178 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
13179 types are supported.
13181 2007-03-10 Bruno Haible <bruno@clisp.org>
13183 * lib/stdio_.h (__attribute__): New macro.
13184 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
13185 vsprintf): Specify __attribute__ __format__ for GCC.
13186 Suggested by Eric Blake.
13188 2007-03-09 Bruno Haible <bruno@clisp.org>
13190 * modules/printf-posix-tests: New file.
13191 * tests/test-printf-posix.sh: New file.
13192 * tests/test-printf-posix.c: New file.
13194 * modules/printf-posix: New file.
13195 * lib/printf.c: New file.
13196 * m4/printf-posix-rpl.m4: New file.
13197 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
13199 * lib/stdio_.h (printf): New declaration.
13200 (format, __format__, ____printf____, ____scanf____, ____strftime____,
13201 ____strfmon____): New macros.
13202 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
13205 2007-03-09 Bruno Haible <bruno@clisp.org>
13207 * tests/test-vasnprintf-posix2.sh: New file.
13208 * tests/test-vasnprintf-posix2.c: New file.
13209 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
13210 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
13211 (Makefile.am): Activate test-vasnprintf-posix2.sh.
13213 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
13214 a locale dependent decimal point, rather than always '.'.
13216 2007-03-09 Eric Blake <ebb9@byu.net>
13218 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
13219 spite of platforms like Tandem/NSK that define it to -1.
13221 2007-03-08 Bruno Haible <bruno@clisp.org>
13223 * modules/vprintf-posix-tests: New file.
13224 * tests/test-vprintf-posix.sh: New file.
13225 * tests/test-vprintf-posix.c: New file.
13226 * tests/test-printf-posix.h: New file.
13228 * modules/vprintf-posix: New file.
13229 * lib/vprintf.c: New file.
13230 * m4/vprintf-posix.m4: New file.
13231 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
13233 * lib/stdio_.h (vprintf): New declaration.
13234 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
13237 2007-03-08 Bruno Haible <bruno@clisp.org>
13239 * modules/fprintf-posix-tests: New file.
13240 * tests/test-fprintf-posix.sh: New file.
13241 * tests/test-fprintf-posix.c: New file.
13243 * modules/fprintf-posix: New file.
13244 * lib/fprintf.c: New file.
13245 * m4/fprintf-posix.m4: New file.
13246 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
13248 * lib/stdio_.h (fprintf): New declaration.
13249 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
13252 2007-03-08 Bruno Haible <bruno@clisp.org>
13254 * modules/vfprintf-posix-tests: New file.
13255 * tests/test-vfprintf-posix.sh: New file.
13256 * tests/test-vfprintf-posix.c: New file.
13257 * tests/test-fprintf-posix.h: New file.
13258 * tests/test-fprintf-posix.out: New file.
13260 * modules/vfprintf-posix: New file.
13261 * lib/vfprintf.c: New file.
13262 * m4/vfprintf-posix.m4: New file.
13263 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
13265 * lib/stdio_.h (vfprintf): New declaration.
13266 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
13269 2007-03-08 Bruno Haible <bruno@clisp.org>
13271 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
13273 2007-03-08 Bruno Haible <bruno@clisp.org>
13275 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
13276 instead of 'expr' invocations.
13277 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
13278 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
13279 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
13280 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
13281 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
13282 Suggested by Paul Eggert.
13284 2007-03-08 Bruno Haible <bruno@clisp.org>
13286 * modules/fseterr-tests: New file.
13287 * tests/test-fseterr.c: New file.
13289 * modules/fseterr: New file.
13290 * lib/fseterr.h: New file.
13291 * lib/fseterr.c: New file.
13293 2007-03-08 Bruno Haible <bruno@clisp.org>
13295 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
13296 * lib/getopt_.h: Likewise.
13297 * lib/mbswidth.h: Likewise.
13298 * lib/setenv.h: Likewise.
13299 * lib/vasnprintf.h: Likewise.
13300 * lib/vasprintf.h: Likewise.
13301 * lib/verror.h: Likewise.
13302 * lib/xsetenv.h: Likewise.
13303 * lib/xvasprintf.h: Likewise.
13305 2007-03-08 Jim Meyering <jim@meyering.net>
13307 * users.txt: Add parted.
13309 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
13311 2007-03-07 Bruno Haible <bruno@clisp.org>
13313 * m4/printf.m4: Make the shell script snippets copy&pastable.
13315 2007-03-02 Bruno Haible <bruno@clisp.org>
13317 * lib/netinet_in_.h: New file.
13318 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
13319 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
13320 * modules/netinet_in (Files): Add lib/netinet_in_.h.
13321 (Depends-on): Add absolute-header.
13322 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
13325 2007-03-03 Bruno Haible <bruno@clisp.org>
13327 * lib/sys_select_.h: New file.
13328 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
13329 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
13330 * modules/sys_select (Files): Add lib/sys_select_.h.
13331 (Depends-on): Add absolute-header.
13332 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
13335 2007-03-02 Bruno Haible <bruno@clisp.org>
13337 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
13338 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
13340 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
13341 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
13342 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
13343 * modules/sys_socket (Depends-on): Add absolute-header.
13344 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
13345 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
13346 (Include): Remove requirement of inclusion of <sys/types.h>.
13348 2007-03-02 Bruno Haible <bruno@clisp.org>
13350 * lib/byteswap_.h (bswap_32): Fix formula.
13352 2007-03-06 Bruno Haible <bruno@clisp.org>
13354 * modules/sprintf-posix-tests: New file.
13355 * tests/test-sprintf-posix.c: New file.
13357 * modules/sprintf-posix: New file.
13358 * lib/sprintf.c: New file.
13359 * m4/sprintf-posix.m4: New file.
13360 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
13362 * lib/stdio_.h (sprintf): New declaration.
13363 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
13366 2007-03-06 Bruno Haible <bruno@clisp.org>
13368 * modules/vsprintf-posix-tests: New file.
13369 * tests/test-vsprintf-posix.c: New file.
13370 * tests/test-sprintf-posix.h: New file.
13372 * modules/vsprintf-posix: New file.
13373 * lib/vsprintf.c: New file.
13374 * m4/vsprintf-posix.m4: New file.
13375 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
13377 * lib/stdio_.h (vsprintf): New declaration.
13378 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
13381 2007-03-06 Bruno Haible <bruno@clisp.org>
13383 * modules/vsnprintf (Depend-on): Remove minmax.
13385 2007-03-06 Bruno Haible <bruno@clisp.org>
13387 * modules/snprintf-posix-tests: New file.
13388 * tests/test-snprintf-posix.c: New file.
13390 * modules/snprintf-posix: New file.
13391 * m4/snprintf-posix.m4: New file.
13392 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
13394 (gl_FUNC_SNPRINTF): Invoke it.
13395 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
13396 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
13398 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
13400 2007-03-06 Bruno Haible <bruno@clisp.org>
13402 * modules/vsnprintf-posix-tests: New file.
13403 * tests/test-vsnprintf-posix.c: New file.
13404 * tests/test-snprintf-posix.h: New file.
13406 * modules/vsnprintf-posix: New file.
13407 * m4/vsnprintf-posix.m4: New file.
13408 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
13410 (gl_FUNC_VSNPRINTF): Invoke it.
13411 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
13412 * lib/stdio_.h (vsnprintf): Define as a replacement if
13413 REPLACE_VSNPRINTF is set.
13414 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
13416 2007-03-06 Bruno Haible <bruno@clisp.org>
13418 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
13419 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
13421 2007-03-06 Bruno Haible <bruno@clisp.org>
13423 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
13424 (asinl): Declare also if HAVE_DECL_ASINL is set.
13425 (atanl): Declare also if HAVE_DECL_ATANL is set.
13426 (ceill): Declare also if HAVE_DECL_CEILL is set.
13427 (cosl): Declare also if HAVE_DECL_COSL is set.
13428 (expl): Declare also if HAVE_DECL_EXPL is set.
13429 (floorl): Declare also if HAVE_DECL_FLOORL is set.
13430 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
13431 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
13432 (logl): Declare also if HAVE_DECL_LOGL is set.
13433 (sinl): Declare also if HAVE_DECL_SINL is set.
13434 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
13435 (tanl): Declare also if HAVE_DECL_TANL is set.
13436 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
13437 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
13438 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
13439 declaration of frexpl, ldexpl.
13440 * modules/printf-frexpl (Depends-on): Add math.
13441 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
13443 2007-03-05 Bruno Haible <bruno@clisp.org>
13445 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
13446 frexpl and ldexpl are declared.
13447 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
13449 2007-03-05 Bruno Haible <bruno@clisp.org>
13451 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
13452 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
13454 2007-03-05 Bruno Haible <bruno@clisp.org>
13456 * lib/stdio_.h: Include <stddef.h>.
13458 2007-03-05 Bruno Haible <bruno@clisp.org>
13460 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
13462 2007-03-05 Bruno Haible <bruno@clisp.org>
13464 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
13465 NetBSD 4, from Ralf Wildenhues.
13467 2007-03-04 Bruno Haible <bruno@clisp.org>
13469 * lib/vasprintf.h: Update #if logic for the case when the functions
13470 exist but are overridden.
13472 2007-03-04 Bruno Haible <bruno@clisp.org>
13474 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
13475 implementations: glibc-2.4 and MacOS X 10.3.
13476 * tests/test-vasnprintf-posix.c (test_function): Test also the case
13477 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
13478 * tests/test-vasprintf-posix.c (test_function): Likewise.
13480 2007-03-04 Bruno Haible <bruno@clisp.org>
13482 * modules/vasprintf-posix-tests: New file.
13483 * tests/test-vasprintf-posix.c: New file.
13485 * modules/vasprintf-posix: New file.
13486 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
13488 * m4/vasprintf-posix.m4: New file.
13489 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
13491 (gl_FUNC_VASPRINTF): Invoke it.
13492 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
13494 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
13496 2007-03-04 Bruno Haible <bruno@clisp.org>
13498 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
13499 REPLACE_GETTIMEOFDAY.
13500 * modules/sys_time (Makefile.am): Likewise.
13501 * m4/sys_time_h.m4: Likewise.
13502 * m4/gettimeofday.m4: Likewise.
13504 2007-03-04 Bruno Haible <bruno@clisp.org>
13506 * modules/vasnprintf-posix-tests: New file.
13507 * tests/test-vasnprintf-posix.c: New file.
13509 * modules/vasnprintf-posix: New file.
13510 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
13512 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
13513 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
13514 REPLACE_VASNPRINTF is defined.
13515 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
13516 gl_FUNC_VASNPRINTF.
13517 (gl_FUNC_VASNPRINTF): Invoke it.
13518 * m4/vasnprintf-posix.m4: New file.
13519 * m4/printf.m4: New file.
13521 2007-03-04 Bruno Haible <bruno@clisp.org>
13523 Compile progreloc.c only if --enable-relocatable is specified.
13524 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
13525 if --enable-relocatable was specified.
13526 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
13529 2007-03-04 Jim Meyering <jim@meyering.net>
13531 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
13532 Use it consistently, rather than enumerating errno constants.
13534 2007-03-04 Bruno Haible <bruno@clisp.org>
13536 * modules/xvasprintf-tests: New file.
13537 * tests/test-xvasprintf.c: New file.
13539 * modules/vasprintf-tests: New file.
13540 * tests/test-vasprintf.c: New file.
13542 * modules/vasnprintf-tests: New file.
13543 * tests/test-vasnprintf.c: New file.
13545 * modules/vsnprintf-tests: New file.
13546 * tests/test-vsnprintf.c: New file.
13548 * modules/snprintf-tests: New file.
13549 * tests/test-snprintf.c: New file.
13551 2007-03-04 Bruno Haible <bruno@clisp.org>
13553 Compile relocatable.c only if --enable-relocatable is specified.
13554 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
13555 gl_RELOCATABLE_LIBRARY.
13556 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
13557 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
13558 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
13559 gl_RELOCATABLE_LIBRARY.
13560 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
13561 (Makefile.am): Remove lib_SOURCES.
13562 * modules/relocatable-lib-lgpl (configure.ac): Invoke
13563 gl_RELOCATABLE_LIBRARY.
13564 (Makefile.am): Remove lib_SOURCES.
13565 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
13567 * modules/relocatable-prog-wrapper (configure.ac): Invoke
13568 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
13570 2007-03-04 Bruno Haible <bruno@clisp.org>
13572 * modules/argmatch-tests: New file.
13573 * tests/test-argmatch.c: New file.
13575 * tests/test-allocsa.c (main): Halve the number of loop runs.
13577 * modules/alloca-opt-tests: New file.
13578 * tests/test-alloca-opt.c: New file.
13580 2007-03-04 Jim Meyering <jim@meyering.net>
13582 Work around difference between Linux ACLs and Solaris 10 ZFS.
13583 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
13586 2007-03-03 Bruno Haible <bruno@clisp.org>
13588 * modules/relocatable-prog (Depends-on): Add back progreloc's
13589 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
13591 2007-03-03 Bruno Haible <bruno@clisp.org>
13593 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
13594 * modules/relocatable-lib: New file.
13596 2007-03-03 Bruno Haible <bruno@clisp.org>
13598 * modules/relocatable-prog: Renamed from modules/relocatable.
13599 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
13601 2007-03-03 Bruno Haible <bruno@clisp.org>
13603 * modules/relocatable-script (Files): Add doc/relocatable.texi,
13604 m4/relocatable-lib.m4.
13605 (Depends-on): Remove 'relocatable'.
13606 (configure.ac): Add gl_RELOCATABLE_NOP.
13608 2007-03-03 Bruno Haible <bruno@clisp.org>
13610 * modules/relocatable-prog-wrapper: New file.
13611 * modules/relocatable (Depends-on): Add it. Remove all other
13612 dependencies except progname.
13613 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
13615 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
13616 (gl_FUNC_STRERROR): Nop.
13617 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
13619 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
13620 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
13622 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
13623 (gl_FUNC_READLINK): Update.
13625 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
13627 2007-03-03 Bruno Haible <bruno@clisp.org>
13629 * lib/xreadlink.c: Include <unistd.h> unconditionally.
13630 * modules/xreadlink (Depends-on): Add unistd.
13631 * modules/xreadlink-with-size (Depends-on): Likewise.
13633 2007-03-03 Bruno Haible <bruno@clisp.org>
13635 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
13636 extracted from gt_FUNC_SETENV.
13637 (gt_FUNC_SETENV): Remove macro.
13638 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
13639 remove gt_FUNC_SETENV.
13641 2007-03-03 Bruno Haible <bruno@clisp.org>
13643 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
13644 ENABLE_RELOCATABLE here.
13645 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
13647 2007-03-03 Bruno Haible <bruno@clisp.org>
13649 * modules/rbtreehash-list-tests (Depends-on): Add progname.
13650 * tests/test-rbtreehash_list.c: Include progname.h.
13651 (main): Call set_program_name.
13653 * modules/rbtree-oset-tests (Depends-on): Add progname.
13654 * tests/test-rbtree_oset.c: Include progname.h.
13655 (main): Call set_program_name.
13657 * modules/rbtree-list-tests (Depends-on): Add progname.
13658 * tests/test-rbtree_list.c: Include progname.h.
13659 (main): Call set_program_name.
13661 * modules/linked-list-tests (Depends-on): Add progname.
13662 * tests/test-linked_list.c: Include progname.h.
13663 (main): Call set_program_name.
13665 2007-03-03 Bruno Haible <bruno@clisp.org>
13667 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
13668 All uses of __restrict changed to _Restrict_.
13669 * lib/glob_.h (__restrict): Remove macro.
13671 2007-03-02 Bruno Haible <bruno@clisp.org>
13673 * modules/gettext (configure.ac): Require gettext infrastructure
13674 from version 0.16.1.
13676 2007-03-02 Bruno Haible <bruno@clisp.org>
13678 * modules/linkedhash-list-tests (Depends-on): Add progname.
13679 * tests/test-linkedhash_list.c: Include progname.h.
13680 (main): Call set_program_name.
13682 * modules/carray-list-tests (Depends-on): Add progname.
13683 * tests/test-carray_list.c: Include progname.h.
13684 (main): Call set_program_name.
13686 * modules/avltreehash-list-tests (Depends-on): Add progname.
13687 * tests/test-avltreehash_list.c: Include progname.h.
13688 (main): Call set_program_name.
13690 * modules/avltree-oset-tests (Depends-on): Add progname.
13691 * tests/test-avltree_oset.c: Include progname.h.
13692 (main): Call set_program_name.
13694 * modules/avltree-list-tests (Depends-on): Add progname.
13695 * tests/test-avltree_list.c: Include progname.h.
13696 (main): Call set_program_name.
13698 * modules/array-oset-tests (Depends-on): Add progname.
13699 * tests/test-array_oset.c: Include progname.h.
13700 (main): Call set_program_name.
13702 * modules/array-list-tests (Depends-on): Add progname.
13703 * tests/test-array_list.c: Include progname.h.
13704 (main): Call set_program_name.
13706 * modules/argp-tests (Depends-on): Add progname.
13707 * tests/test-argp.c: Include argp.h first. Include progname.h.
13708 (main): Call set_program_name.
13710 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
13712 * doc/gnulib-tool.texi (Initial import): Reword description of
13713 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
13714 limited effect even if defined after the first system include.
13716 2007-03-01 Bruno Haible <bruno@clisp.org>
13718 * build-aux/config.libpath: Update to libtool-1.5.22.
13719 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13721 2007-03-01 Bruno Haible <bruno@clisp.org>
13723 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
13725 Reported by Ralf Wildenhues.
13727 2007-03-01 Bruno Haible <bruno@clisp.org>
13729 * build-aux/install-reloc: Remove object files left over by some
13731 Reported by Ralf Wildenhues.
13733 2007-03-01 Bruno Haible <bruno@clisp.org>
13735 * build-aux/install-reloc: Break long lines.
13737 2007-03-01 Bruno Haible <bruno@clisp.org>
13739 * doc/relocatable.texi: Document that it may not work on OpenBSD.
13740 Reported by Ralf Wildenhues.
13742 2007-03-01 Bruno Haible <bruno@clisp.org>
13744 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
13745 include ordering constraints.
13747 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
13749 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
13750 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
13751 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
13752 as another example.
13753 * lib/time_.h: Fix misspelling.
13754 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
13755 Require gl_HEADER_TIME_H_DEFAULTS.
13756 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
13757 * m4/time_r.m4 (gl_TIME_R): Likewise.
13758 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
13760 2007-03-01 Bruno Haible <bruno@clisp.org>
13762 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
13763 * m4/utimens.m4 (gl_UTIMENS): Likewise.
13765 2007-03-01 Jim Meyering <jim@meyering.net>
13767 * modules/xreadlink (Maintainer): Add my name.
13768 * modules/xreadlink-with-size (Depends-on): Alphabetize.
13770 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
13771 Bruno Haible <bruno@clisp.org>
13773 * build-aux/install-reloc: Compile also c-ctype.c.
13774 * build-aux/relocatable.sh.in: New file.
13775 * doc/relocatable.texi: New file.
13776 * doc/relocatable-maint.texi: New file.
13777 * doc/gnulib.texi: Include relocatable-maint.texi.
13778 * lib/progreloc.c: Include unistd.h unconditionally.
13779 * lib/relocwrapper.c: Include unistd.h unconditionally.
13781 (add_dotbin): Use c_tolower.
13782 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
13783 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
13784 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
13785 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
13786 to m4/relocatable-lib.m4.
13787 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
13788 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
13789 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
13790 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
13791 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
13792 * modules/relocatable: New file.
13793 * modules/relocatable-lib: New file.
13794 * modules/relocatable-script: New file.
13796 2007-02-28 Bruno Haible <bruno@clisp.org>
13798 Import --enable-relocatable infrastructure.
13799 * build-aux/config.libpath: New file, from GNU gettext.
13800 * build-aux/install-reloc: New file, from GNU gettext.
13801 * build-aux/reloc-ldflags: New file, from GNU gettext.
13802 * lib/relocatable.h: New file, from GNU gettext.
13803 * lib/relocatable.c: New file, from GNU gettext.
13804 * lib/relocwrapper.c: New file, from GNU gettext.
13805 * m4/relocatable.m4: New file, from GNU gettext.
13807 2007-02-28 Bruno Haible <bruno@clisp.org>
13809 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
13811 * modules/xreadlink: New file, from GNU gettext with modifications.
13812 * lib/xreadlink.c: New file, from GNU gettext.
13813 * lib/xreadlink.h: Add comments.
13814 (xreadlink): New declaration.
13816 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
13817 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
13818 lib/xreadlink-with-size.c.
13819 (configure.ac): Remove gl_XREADLINK invocation.
13820 (Makefile.am): Augment lib_SOURCES.
13821 * m4/xreadlink.m4: Remove file.
13822 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
13823 (xreadlink_with_size): Renamed from xreadink.
13824 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
13825 * modules/canonicalize (Depends-on): Replace xreadlink with
13826 xreadlink-with-size.
13827 * lib/canonicalize.c (canonicalize_filename_mode): Update.
13829 2007-02-25 Jim Meyering <jim@meyering.net>
13831 * build-aux/announce-gen: When complaining about excess arguments,
13834 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
13836 * README: Document signed integer overflow situation more
13839 2007-02-25 Bruno Haible <bruno@clisp.org>
13841 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
13842 'a' or 'A' conversion.
13844 2007-02-25 Bruno Haible <bruno@clisp.org>
13846 * modules/filename: Renamed from modules/pathname.
13847 (Files): Replace lib/pathname.h with lib/filename.h. Replace
13848 lib/concatpath.c with lib/concat-filename.c.
13849 (Makefile.am): Update.
13850 (Include): Replace pathname.h with filename.h.
13851 * lib/filename.h: Renamed from lib/pathname.h.
13852 (concatenated_filename): Renamed from concatenated_pathname.
13853 * lib/concat-filename.c: Renamed from lib/concatpath.c.
13854 (concatenated_filename): Renamed from concatenated_pathname.
13855 * lib/findprog.c: Include filename.h instead of pathname.h.
13856 (find_in_path): Update.
13857 * lib/javacomp.c: Include filename.h instead of pathname.h.
13858 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
13859 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
13860 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
13861 is_oldgcj_14_13_usable, is_javac_usable): Update.
13862 * lib/javaexec.c: Include filename.h instead of pathname.h.
13863 (execute_java_class): Update.
13864 * modules/findprog: Update.
13865 * modules/javacomp: Update.
13866 * modules/javaexec: Update.
13867 * MODULES.html.sh (File system functions): Add 'filename', remove
13870 2007-02-25 Bruno Haible <bruno@clisp.org>
13872 * modules/printf-frexpl-tests: New file.
13873 * tests/test-printf-frexpl.c: New file.
13875 * modules/printf-frexpl: New file.
13876 * lib/printf-frexpl.h: New file.
13877 * lib/printf-frexpl.c: New file.
13878 * m4/printf-frexpl.m4: New file.
13880 2007-02-25 Bruno Haible <bruno@clisp.org>
13882 * modules/printf-frexp-tests: New file.
13883 * tests/test-printf-frexp.c: New file.
13885 * modules/printf-frexp: New file.
13886 * lib/printf-frexp.h: New file.
13887 * lib/printf-frexp.c: New file.
13888 * m4/printf-frexp.m4: New file.
13890 2007-02-25 Bruno Haible <bruno@clisp.org>
13892 Assume automake >= 1.10 for the tests.
13893 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
13894 * modules/arctwo-tests: Likewise.
13895 * modules/argp-tests: Likewise.
13896 * modules/avltree-list-tests: Likewise.
13897 * modules/avltree-oset-tests: Likewise.
13898 * modules/avltreehash-list-tests: Likewise.
13899 * modules/carray-list-tests: Likewise.
13900 * modules/crc-tests: Likewise.
13901 * modules/des-tests: Likewise.
13902 * modules/gc-arcfour-tests: Likewise.
13903 * modules/gc-arctwo-tests: Likewise.
13904 * modules/gc-des-tests: Likewise.
13905 * modules/gc-hmac-md5-tests: Likewise.
13906 * modules/gc-hmac-sha1-tests: Likewise.
13907 * modules/gc-md2-tests: Likewise.
13908 * modules/gc-md4-tests: Likewise.
13909 * modules/gc-md5-tests: Likewise.
13910 * modules/gc-pbkdf2-sha1-tests: Likewise.
13911 * modules/gc-rijndael-tests: Likewise.
13912 * modules/gc-sha1-tests: Likewise.
13913 * modules/gc-tests: Likewise.
13914 * modules/getaddrinfo-tests: Likewise.
13915 * modules/hmac-md5-tests: Likewise.
13916 * modules/hmac-sha1-tests: Likewise.
13917 * modules/linked-list-tests: Likewise.
13918 * modules/linkedhash-list-tests: Likewise.
13919 * modules/lock-tests: Likewise.
13920 * modules/md2-tests: Likewise.
13921 * modules/md4-tests: Likewise.
13922 * modules/md5-tests: Likewise.
13923 * modules/rbtree-list-tests: Likewise.
13924 * modules/rbtree-oset-tests: Likewise.
13925 * modules/rbtreehash-list-tests: Likewise.
13926 * modules/read-file-tests: Likewise.
13927 * modules/rijndael-tests: Likewise.
13928 * modules/stdint-tests: Likewise.
13929 * modules/tls-tests: Likewise.
13931 2007-02-24 Bruno Haible <bruno@clisp.org>
13933 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
13934 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
13935 function; instead check whether isnan with a double argument links.
13936 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
13937 function; instead check whether isnan with a 'long double' argument
13939 Reported by Eric Blake <ebb9@byu.net>.
13941 2007-02-24 Bruno Haible <bruno@clisp.org>
13943 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
13945 * lib/isnanl.c: Remove all code. Just include isnan.c.
13946 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
13948 2007-02-25 Jim Meyering <jim@meyering.net>
13950 Avoid conflicting types for 'unsetenv' on FreeBSD.
13951 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
13952 conflicting with FreeBSD's (5.0 and 6.1) function declaration
13955 2007-02-24 Bruno Haible <bruno@clisp.org>
13957 * modules/isnanl-nolibm-tests: New file.
13958 * tests/test-isnanl.c: New file.
13960 * modules/isnanl-nolibm: New file.
13961 * lib/isnanl.h: New file.
13962 * lib/isnanl.c: New file.
13963 * m4/isnanl.m4: New file.
13965 2007-02-24 Bruno Haible <bruno@clisp.org>
13967 * modules/isnan-nolibm-tests: New file.
13968 * tests/test-isnan.c: New file.
13970 * modules/isnan-nolibm: New file.
13971 * lib/isnan.h: New file.
13972 * lib/isnan.c: New file.
13973 * m4/isnan.m4: New file.
13975 2007-02-24 Bruno Haible <bruno@clisp.org>
13977 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
13978 assume that an exponent fits in 20 bits.
13980 2007-02-24 Jim Meyering <jim@meyering.net>
13982 * m4/regex.m4: Update the description of the configure-time option,
13983 --without-included-regex, to state accurately what the defaults are,
13984 and perhaps to give people an idea why using this option is risky.
13986 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
13988 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
13989 loops on small arguments. This attempts to avoid the problem
13990 Bruno Haible reported for AIX 4.3.2 in
13991 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
13993 2007-02-23 Bruno Haible <bruno@clisp.org>
13995 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
13996 Needed for help2man.
13998 2007-02-23 Karl Berry <karl@gnu.org>
14000 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
14001 exists, foo.h should be cvs-ignored, not committed.
14003 2007-02-23 Eric Blake <ebb9@byu.net>
14005 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
14006 * lib/stat-time.h (includes): Likewise.
14007 * lib/utimecmp.c (includes): Likewise.
14008 * lib/utimens.h (includes): Likewise.
14009 * lib/getdate.y (includes): Also include "timespec.h" for use
14010 internal to the module.
14011 * modules/utimens (Depends-on): Revert yesterday's patch.
14012 * modules/nanosleep (Depends-on): Add missing dependency.
14014 2007-02-22 Bruno Haible <bruno@clisp.org>
14016 * lib/glob.c: Don't include getlogin_r.h.
14018 2007-02-22 Jim Meyering <jim@meyering.net>
14020 * modules/utimens (Depends-on): Add timespec, required for
14021 utimens.h's inclusion of timespec.h.
14023 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
14025 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
14026 long unreadable paths in GNU/Linux. Problem reported by Andreas
14028 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
14029 I'll try to think of a better way to fix the Solaris problem.
14031 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
14032 like glibc; on Solaris 10, it fails with errno == EINVAL.
14033 POSIX says the behavior is unspecified if the first argument is NULL,
14034 so play it safe and never pass NULL to the system getcwd.
14036 2007-02-21 Jim Meyering <jim@meyering.net>
14038 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
14039 of gettimeofday. It would conflict with the one now always
14040 provided via sys_time_.h. Reported by Matthew Woehlke, as
14041 an IRIX 6.5 build failure.
14043 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
14045 Minor fixups to port to Solaris 10 with Sun C 5.8.
14046 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
14047 * modules/getcwd (Depends-on): Add dirfd.
14048 * lib/putenv.c (putenv): #undef it.
14049 (rpl_putenv): New decl.
14050 (malloc, free): Include <stdlib.h> rather than prototyping separately.
14052 2007-02-20 Bruno Haible <bruno@clisp.org>
14054 * modules/stdio-tests: New file.
14055 * tests/test-stdio.c: New file.
14057 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
14058 (Depends-on): Add stdio.
14059 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
14060 (Include): Use <stdio.h> instead of vsnprintf.h.
14061 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
14062 HAVE_DECL_VSNPRINTF.
14063 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
14065 * modules/snprintf (Files): Remove lib/snprintf.h.
14066 (Depends-on): Add stdio.
14067 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
14068 (Include): Use <stdio.h> instead of snprintf.h.
14069 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
14070 HAVE_DECL_SNPRINTF.
14071 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
14072 * lib/getaddrinfo.c: Likewise.
14074 * modules/stdio: New file.
14075 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
14076 * lib/snprintf.h: Remove file.
14077 * lib/vsnprintf.h: Remove file.
14078 * lib/.cppi-disable: Remove snprintf.h.
14079 * m4/stdio_h.m4: New file.
14080 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
14082 2007-02-20 Jim Meyering <jim@meyering.net>
14084 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
14085 used by e.g., mingw. From Bruno Haible.
14087 2007-02-19 Bruno Haible <bruno@clisp.org>
14089 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
14091 Reported by Ben Pfaff <blp@cs.stanford.edu>.
14093 2007-02-19 Bruno Haible <bruno@clisp.org>
14095 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
14098 2007-02-19 Bruno Haible <bruno@clisp.org>
14100 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
14102 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
14104 2007-02-19 Jim Meyering <jim@meyering.net>
14106 Don't use FD after a successful "fdopendir (fd)".
14107 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
14108 Reset it by calling dirfd on the just-obtained DIR*.
14110 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
14111 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
14113 2007-02-18 Bruno Haible <bruno@clisp.org>
14115 * lib/readlink.c: Include <unistd.h>.
14116 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
14118 * modules/readlink (Depends-on): Add unistd.
14119 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14120 (Include): Add <unistd.h>.
14122 * lib/getlogin_r.h: Remove file.
14123 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
14124 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
14125 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
14126 HAVE_DECL_GETLOGIN_R.
14127 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
14128 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14129 (Include): Use <unistd.h> instead of getlogin_r.h.
14131 * lib/getcwd.h: Remove file.
14132 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
14133 * lib/xgetcwd.c: Likewise.
14134 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
14135 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
14136 * modules/getcwd (Files): Remove lib/getcwd.h.
14137 (Depends-on): Add unistd.
14138 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14139 (Include): Use <unistd.h> instad of getcwd.h.
14141 * lib/ftruncate.c: Include <unistd.h> first.
14142 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
14143 Set HAVE_FTRUNCATE.
14144 * modules/ftruncate (Depends-on): Add unistd.
14145 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14147 * lib/fchdir.c: Include <unistd.h> first.
14148 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
14149 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
14150 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
14151 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14152 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
14154 * lib/dup2.c: Include <unistd.h> first.
14155 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
14157 * modules/dup2 (Depends-on): Add unistd.
14158 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14160 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
14161 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
14162 REPLACE_CHOWN. Don't define chown as a macro here.
14163 * modules/chown (Depends-on): Add unistd.
14164 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14166 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
14167 Add definition for GL_LINK_WARNING.
14168 (chown, dup2): New declarations.
14169 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
14171 (ftruncate): New declaration.
14172 (getcwd): New declaration, taken from old getcwd.h.
14173 (getlogin_r): New declaration, taken from old getlogin_r.h.
14174 (readlink): New declaration.
14175 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
14176 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
14177 (gl_PREREQ_UNISTD): Remove macro.
14178 (gl_UNISTD_MODULE_INDICATOR): New macro.
14179 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
14180 many new variables. Don't set UNISTD_H.
14181 * modules/unistd (Description): Change.
14182 (Depends-on): Add link-warning.
14183 (configure.ac): Update.
14184 (Makefile.am): Create unistd.h always. Substitute many new variables
14187 2007-02-18 Bruno Haible <bruno@clisp.org>
14189 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
14190 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
14192 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
14193 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
14194 * lib/getsubopt.h: Remove file.
14195 * modules/getsubopt (Files): Remove lib/getsubopt.h.
14196 (Depends-on): Add stdlib.
14197 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
14198 (Includes): Use <stdlib.h> instead of getsubopt.h.
14199 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
14200 Set HAVE_GETSUBOPT.
14201 * lib/getsubopt.c: Don't include getsubopt.h.
14203 2007-02-18 Bruno Haible <bruno@clisp.org>
14205 * modules/fchdir (Depends-on): Add dup2.
14207 2007-02-18 Bruno Haible <bruno@clisp.org>
14209 * lib/stdlib_.h: Handle glibc's special invocation convention
14212 2007-02-18 Bruno Haible <bruno@clisp.org>
14214 * modules/stdlib-tests: New file.
14215 * tests/test-stdlib.c: New file.
14217 * modules/mkstemp (Files): Remove lib/mkstemp.h.
14218 (Depends-on): Add stdlib.
14219 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
14220 (Includes): Use <stdlib.h> instead of mkstemp.h.
14221 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
14222 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
14223 * lib/mkstemp.c: Don't include mkstemp.h.
14224 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
14225 * lib/stdlib--.h: Don't include mkstemp.h.
14227 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
14228 (Depends-on): Add stdlib.
14229 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
14230 (Includes): Use <stdlib.h> instead of mkdtemp.h.
14231 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
14233 * lib/mkdtemp.c: Don't include mkdtemp.h.
14234 * lib/clean-temp.c: Don't include mkdtemp.h.
14236 * modules/exit (Files): Remove lib/exit.h.
14237 (Depends-on): Add stdlib.
14238 (Makefile.am): Remove lib_SOURCES.
14239 (Include): Use <stdlib.h> instead of exit.h.
14240 * lib/argmatch.c: Don't include exit.h.
14241 * lib/execute.c: Likewise.
14242 * lib/pagealign_alloc.c: Likewise.
14243 * lib/pipe.c: Likewise.
14244 * lib/wait-process.c: Likewise.
14245 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
14246 * lib/exitfail.c: Likewise.
14247 * lib/savewd.c: Likewise.
14248 * lib/xsetenv.c: Likewise.
14250 * modules/stdlib: New file.
14251 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
14252 and extra comments about mkstemp().
14253 * lib/exit.h: Remove file.
14254 * lib/mkdtemp.h: Remove file.
14255 * lib/mkstemp.h: Remove file.
14256 * m4/stdlib_h.m4: New file.
14257 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
14259 2007-02-18 Bruno Haible <bruno@clisp.org>
14261 * modules/math-tests: New file.
14262 * tests/test-math.c: New file.
14264 * modules/math: New file.
14265 * modules/mathl (Files): Remove lib/mathl.h.
14266 (Depends-on): Add math.
14267 (Makefile.am): Don't mention mathl.h.
14268 (Include): Use <math.h> instead of mathl.h.
14269 * lib/math_.h: New file.
14270 * lib/mathl.h: Remove file.
14271 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
14273 * lib/asinl.c: Likewise.
14274 * lib/atanl.c: Likewise.
14275 * lib/ceill.c: Likewise.
14276 * lib/cosl.c: Likewise.
14277 * lib/expl.c: Likewise.
14278 * lib/floorl.c: Likewise.
14279 * lib/frexpl.c: Likewise.
14280 * lib/ldexpl.c: Likewise.
14281 * lib/logl.c: Likewise.
14282 * lib/sincosl.c: Likewise.
14283 * lib/sinl.c: Likewise.
14284 * lib/sqrtl.c: Likewise.
14285 * lib/tanl.c: Likewise.
14286 * lib/trigl.c: Likewise.
14287 * m4/math_h.m4: New file.
14288 * MODULES.html.sh (Mathematics): Add math.
14290 2007-02-17 Bruno Haible <bruno@clisp.org>
14292 * modules/wctype-tests: New file.
14293 * tests/test-wctype.c: New file.
14295 * modules/wchar-tests: New file.
14296 * tests/test-wchar.c: New file.
14298 * modules/unistd-tests: New file.
14299 * tests/test-unistd.c: New file.
14301 * modules/time-tests: New file.
14302 * tests/test-time.c: New file.
14304 * modules/sysexits-tests: New file.
14305 * tests/test-sysexits.c: New file.
14307 * modules/sys_time-tests: New file.
14308 * tests/test-sys_time.c: New file.
14310 * modules/sys_stat-tests: New file.
14311 * tests/test-sys_stat.c: New file.
14313 * modules/sys_socket-tests: New file.
14314 * tests/test-sys_socket.c: New file.
14316 * modules/sys_select-tests: New file.
14317 * tests/test-sys_select.c: New file.
14319 * modules/string-tests: New file.
14320 * tests/test-string.c: New file.
14322 * modules/stdbool-tests: New file.
14323 * tests/test-stdbool.c: New file.
14325 * modules/netinet_in-tests: New file.
14326 * tests/test-netinet_in.c: New file.
14328 * modules/inttypes-tests: New file.
14329 * tests/test-inttypes.c: New file.
14331 * modules/fcntl-tests: New file.
14332 * tests/test-fcntl.c: New file.
14334 * modules/byteswap-tests: New file.
14335 * tests/test-byteswap.c: New file.
14337 * modules/arpa_inet-tests: New file.
14338 * tests/test-arpa_inet.c: New file.
14340 2007-02-17 Bruno Haible <bruno@clisp.org>
14342 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
14343 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
14344 if the corresponding module is not enabled. Emit link warnings if
14345 the function is used nevertheless.
14346 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
14347 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
14348 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
14349 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
14350 * modules/inttypes (Depends-on): Add link-warning.
14351 (Makefile.am): Copy the contents of build-aux/link-warning.h into
14352 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
14353 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
14354 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
14355 * modules/imaxdiv (configure.ac): Likewise.
14356 * modules/strtoimax (configure.ac): Likewise.
14357 * modules/strtoumax (configure.ac): Likewise.
14359 2007-02-17 Bruno Haible <bruno@clisp.org>
14361 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
14362 gl_STRING_MODULE_INDICATOR_DEFAULTS.
14363 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
14364 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
14366 2007-02-17 Bruno Haible <bruno@clisp.org>
14368 * modules/link-warning: New file.
14369 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
14370 * lib/string_.h (GL_LINK_WARNING): Remove definition.
14371 * modules/string (Depends-on): Add link-warning.
14372 (Makefile.am): Copy the contents of build-aux/link-warning.h into
14374 * MODULES.html.sh (Support for building libraries and executables): Add
14377 2007-02-17 Bruno Haible <bruno@clisp.org>
14379 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
14380 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
14381 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
14384 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
14385 Bruno Haible <bruno@clisp.org>
14387 * modules/tmpfile: New file.
14388 * lib/tmpfile.c: New file.
14389 * m4/tmpfile.m4: New file.
14390 * MODULES.html.sh (func_all_modules): New section "Input/output".
14392 2007-02-15 Bruno Haible <bruno@clisp.org>
14394 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
14395 (supports_delete_on_close): New function.
14396 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
14398 2007-02-14 Bruno Haible <bruno@clisp.org>
14400 * modules/mbspcasecmp-tests: New file.
14401 * tests/test-mbspcasecmp.sh: New file.
14402 * tests/test-mbspcasecmp.c: New file.
14404 New module mbspcasecmp.
14405 * modules/mbspcasecmp: New file.
14406 * lib/mbspcasecmp.c: New file.
14407 * lib/string_.h (strncasecmp): Change warning message.
14408 (mbspcasecmp): New declaration.
14409 * m4/mbspcasecmp.m4: New file.
14410 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14411 GNULIB_MBSPCASECMP.
14412 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
14413 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
14415 2007-02-14 Bruno Haible <bruno@clisp.org>
14417 * modules/mbsncasecmp-tests: New file.
14418 * tests/test-mbsncasecmp.sh: New file.
14419 * tests/test-mbsncasecmp.c: New file.
14421 New module mbsncasecmp.
14422 * modules/mbsncasecmp: New file.
14423 * lib/mbsncasecmp.c: New file.
14424 * lib/string_.h (mbsncasecmp): New declaration.
14425 * m4/mbsncasecmp.m4: New file.
14426 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14427 GNULIB_MBSNCASECMP.
14428 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
14429 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
14431 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
14433 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
14434 Verify that it doesn't overlap with our flags.
14435 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
14436 do not have the desired effect in multibyte locales; instead, use
14438 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
14439 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
14440 we don't require GNU fnmatch ourselves (if our users require it, they
14441 should do so explicitly).
14443 Fix regex code so it doesn't rely on strcasecmp.
14444 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
14445 Otherwise, include gnulib's langinfo.h.
14446 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
14447 undesirable behavior in non-C locales. Instead, rely on localecharset.
14448 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
14449 * modules/regex (FILES): Remove m4/codeset.m4.
14450 (Depends-on): Add localcharset. Remove strcase.
14452 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14454 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
14455 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14457 2007-02-13 Bruno Haible <bruno@clisp.org>
14459 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
14460 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14462 2007-02-12 Bruno Haible <bruno@clisp.org>
14464 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
14465 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
14466 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
14467 time warning rather than a link error.
14469 2007-02-12 Bruno Haible <bruno@clisp.org>
14471 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
14472 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14473 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14475 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
14477 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
14480 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
14482 New module 'time', so that apps can include <time.h> as per
14483 POSIX and GNU instead of separate include files like time_r.h
14484 and timegm.h. This implementation tries out a simpler approach
14485 for replacing decls in standard include files (as compared to
14486 the string module), somewhat as an experiment.
14488 * config/srclist.txt: Comment out mktime.c for now.
14489 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
14490 since it doesn't apply any more. Use generic wording instead.
14491 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
14493 * lib/time_.h, m4/time_h.m4, modules/time: New files.
14494 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
14495 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
14496 Don't include <sys/types.h>; no longer needed since we assume C89.
14497 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
14498 * lib/strftime.c: Likewise.
14499 * lib/time_r.c: Likewise.
14500 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
14501 * lib/nanosleep.c: Include <time.h> first, to check interface.
14502 * lib/strptime.c: Likewise.
14503 * lib/time_r.c: Likewise.
14504 * lib/timegm.c: Likewise.
14505 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
14507 * lib/timegm.c: Don't include timegm.h; no longer needed.
14508 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
14509 time.h now handles any problems in that area.
14510 (struct timespec, nanosleep): Remove; time.h now arranges for these.
14511 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
14512 that time.h defines struct timespec.
14513 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
14514 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
14516 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
14517 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
14518 needed. Set REPLACE_LOCALTIME.
14519 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
14520 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
14521 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
14522 nanosleep; time_h.m4 now does that. Don't require
14523 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
14524 module handles this now.
14525 * modules/getdate (Depends-on): Remove timespec. Add time.
14526 * modules/nanosleep (Depends-on): Likewise.
14527 * modules/stat-time (Depends-on): Likewise.
14528 * modules/nanosleep (Include): Include time.h, not timespec.h.
14529 * modules/strptime (Files): Remove lib/strptime.h.
14530 (Depends-on): Add extensions, time.
14531 (Include): Include time.h, not strptime.h.
14532 * modules/time_r (Files): Remove lib/time_r.h.
14533 (Depends-on): Add time.
14534 (Include): Include time.h, not time_r.h.
14535 * modules/timegm: Likewise.
14536 * modules/timespec (Description): Now does timespec-related decls
14537 of our own, instead of struct timespec itself.
14538 (Depends-on): Add time; remove extensions.
14539 (Maintainer): Add self.
14540 * modules/utimecmp (Depends-on): Add time; remove timespec.
14541 * modules/utimens (Depends-on): Likewise.
14542 * modules/xnanosleep (Depends-on): Likewise.
14544 2007-02-11 Bruno Haible <bruno@clisp.org>
14546 * lib/c-strstr.c: Include allocsa.h.
14547 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
14548 * lib/c-strcasestr.c: Include allocsa.h.
14549 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
14550 * lib/strcasestr.c: Include allocsa.h.
14551 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
14552 * lib/mbsstr.c: Include allocsa.h.
14553 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
14554 allocsa/freesa instead of malloc/free.
14555 * lib/mbscasestr.c: Include allocsa.h.
14556 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
14557 allocsa/freesa instead of malloc/free.
14558 * modules/c-strstr (Depends-on): Add allocsa.
14559 * modules/c-strcasestr (Depends-on): Likewise.
14560 * modules/strcasestr (Depends-on): Likewise.
14561 * modules/mbsstr (Depends-on): Likewise.
14562 * modules/mbscasestr (Depends-on): Likewise.
14564 2007-02-11 Bruno Haible <bruno@clisp.org>
14566 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
14568 * modules/mbsspn-tests: New file.
14569 * tests/test-mbsspn.sh: New file.
14570 * tests/test-mbsspn.c: New file.
14572 2007-02-11 Bruno Haible <bruno@clisp.org>
14574 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
14576 * modules/mbspbrk-tests: New file.
14577 * tests/test-mbspbrk.sh: New file.
14578 * tests/test-mbspbrk.c: New file.
14580 2007-02-11 Bruno Haible <bruno@clisp.org>
14582 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
14585 * modules/mbscspn-tests: New file.
14586 * tests/test-mbscspn.sh: New file.
14587 * tests/test-mbscspn.c: New file.
14589 2007-02-11 Bruno Haible <bruno@clisp.org>
14591 * modules/mbscasecmp-tests: New file.
14592 * tests/test-mbscasecmp.sh: New file.
14593 * tests/test-mbscasecmp.c: New file.
14595 2007-02-11 Bruno Haible <bruno@clisp.org>
14597 Ensure O(n) worst-case complexity of mbscasestr.
14598 * lib/mbscasestr.c: Include stdbool.h.
14599 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
14601 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
14602 the bookkeeping indicates that it's worth it.
14603 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
14605 * modules/mbscasestr-tests: New file.
14606 * tests/test-mbscasestr1.c: New file.
14607 * tests/test-mbscasestr2.sh: New file.
14608 * tests/test-mbscasestr2.c: New file.
14609 * tests/test-mbscasestr3.sh: New file.
14610 * tests/test-mbscasestr3.c: New file.
14611 * tests/test-mbscasestr4.sh: New file.
14612 * tests/test-mbscasestr4.c: New file.
14613 * m4/locale-tr.m4: New file.
14615 2007-02-11 Bruno Haible <bruno@clisp.org>
14617 Ensure O(n) worst-case complexity of mbsstr.
14618 * lib/mbsstr.c: Include stdbool.h.
14619 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
14621 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
14622 bookkeeping indicates that it's worth it.
14623 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
14625 * modules/mbsstr-tests: New file.
14626 * tests/test-mbsstr1.c: New file.
14627 * tests/test-mbsstr2.sh: New file.
14628 * tests/test-mbsstr2.c: New file.
14629 * tests/test-mbsstr3.sh: New file.
14630 * tests/test-mbsstr3.c: New file.
14631 * m4/locale-fr.m4: New file.
14633 2007-02-11 Bruno Haible <bruno@clisp.org>
14635 * lib/mbsrchr.c (mbsrchr): Fix bug.
14637 * modules/mbsrchr-tests: New file.
14638 * tests/test-mbsrchr.sh: New file.
14639 * tests/test-mbsrchr.c: New file.
14641 2007-02-11 Bruno Haible <bruno@clisp.org>
14643 * lib/mbschr.c (mbschr): Fix bug.
14645 * modules/mbschr-tests: New file.
14646 * tests/test-mbschr.sh: New file.
14647 * tests/test-mbschr.c: New file.
14648 * m4/locale-zh.m4: New file.
14650 2007-02-11 Bruno Haible <bruno@clisp.org>
14652 Support for copying multibyte string iterators.
14653 * lib/mbiter.h: Include <string.h>.
14654 (mbiter_multi_copy): New function.
14655 (mbi_copy): New macro.
14656 * lib/mbuiter.h: Include <string.h>.
14657 (mbuiter_multi_copy): New function.
14658 (mbui_copy): New macro.
14660 2007-02-11 Bruno Haible <bruno@clisp.org>
14663 * modules/mbslen: New file.
14664 * lib/mbslen.c: New file.
14665 * lib/string_.h (mbslen): New declaration.
14666 * m4/mbslen.m4: New file.
14667 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14669 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
14670 * MODULES.html.sh (Internationalization functions): Add mbslen.
14672 2007-02-11 Bruno Haible <bruno@clisp.org>
14674 Ensure O(n) worst-case complexity of strcasestr substitute.
14675 * lib/strcasestr.c: Include stdbool.h.
14676 (knuth_morris_pratt): New function.
14677 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
14678 bookkeeping indicates that it's worth it.
14679 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
14681 * modules/strcasestr-tests: New file.
14682 * tests/test-strcasestr.c: New file.
14684 2007-02-11 Bruno Haible <bruno@clisp.org>
14686 Ensure O(n) worst-case complexity of c_strcasestr.
14687 * lib/c-strcasestr.c: Include stdbool.h, string.h.
14688 (knuth_morris_pratt): New function.
14689 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
14690 the bookkeeping indicates that it's worth it.
14691 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
14693 * modules/c-strcasestr-tests: New file.
14694 * tests/test-c-strcasestr.c: New file.
14696 2007-02-11 Bruno Haible <bruno@clisp.org>
14698 Ensure O(n) worst-case complexity of c_strstr.
14699 * lib/c-strstr.c: Include stdbool.h, string.h.
14700 (knuth_morris_pratt): New function.
14701 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
14702 bookkeeping indicates that it's worth it.
14703 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
14705 * lib/c-strstr.c: Complete rewrite for maintainability.
14707 * modules/c-strstr-tests: New file.
14708 * tests/test-c-strstr.c: New file.
14710 2007-02-11 Bruno Haible <bruno@clisp.org>
14712 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
14713 5.2.1 and earlier, whereby \055 was treated just like the range
14715 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
14717 2007-02-08 Bruno Haible <bruno@clisp.org>
14719 * modules/regex (Depends-on): Add stdbool.
14720 Reported by Dalibor Topic <robilad@kaffe.org>.
14722 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
14724 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
14725 Prefer returning from main to exiting from it.
14726 Remove unnecessary parens after sizeof.
14728 2007-02-05 Bruno Haible <bruno@clisp.org>
14731 * modules/mbssep: New file.
14732 * lib/mbssep.c: New file.
14733 * lib/string_.h (strsep): Add a conditional link warning.
14734 (mbssep): New declaration.
14735 * m4/mbssep.m4: New file.
14736 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14738 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
14739 * MODULES.html.sh (Internationalization functions): Add mbssep.
14741 2007-02-05 Bruno Haible <bruno@clisp.org>
14743 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
14744 Optimize search in case of 1 delimiter.
14746 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
14748 * lib/acl.h: Include sys/types.h before sys/acl.h.
14750 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
14752 Merge upstream fix for glibc bugzilla #3957:
14754 2007-02-05 Jakub Jelinek <jakub@redhat.com>
14756 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
14757 bit for RE_HAT_LISTS_NOT_NEWLINE.
14758 (build_charclass_op): Remove bogus comment.
14760 2007-02-05 Simon Josefsson <simon@josefsson.org>
14762 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
14764 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
14766 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
14767 * lib/memmem.c [!defined _LIBC]: Include config.h.
14769 2007-02-04 Bruno Haible <bruno@clisp.org>
14771 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
14774 2007-02-04 Bruno Haible <bruno@clisp.org>
14776 New module mbstok_r.
14777 * modules/mbstok_r: New file.
14778 * lib/mbstok_r.c: New file.
14779 * lib/string_.h (strtok_r): Change argument names to match the
14780 comments. Add a conditional link warning.
14781 (mbstok_r): New declaration.
14782 * m4/mbstok_r.m4: New file.
14783 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14785 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
14786 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
14788 2007-02-04 Bruno Haible <bruno@clisp.org>
14791 * modules/mbsspn: New file.
14792 * lib/mbsspn.c: New file.
14793 * lib/string_.h (strspn): Add a conditional link warning.
14794 (mbsspn): New declaration.
14795 * m4/mbsspn.m4: New file.
14796 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14798 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
14799 * MODULES.html.sh (Internationalization functions): Add mbsspn.
14801 2007-02-04 Bruno Haible <bruno@clisp.org>
14803 New module mbspbrk.
14804 * modules/mbspbrk: New file.
14805 * lib/mbspbrk.c: New file.
14806 * lib/string_.h (strpbrk): Add a conditional link warning.
14807 (mbspbrk): New declaration.
14808 * m4/mbspbrk.m4: New file.
14809 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14811 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
14812 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
14814 2007-02-04 Bruno Haible <bruno@clisp.org>
14816 New module mbscspn.
14817 * modules/mbscspn: New file.
14818 * lib/mbscspn.c: New file.
14819 * lib/string_.h (strcspn): Add a conditional link warning.
14820 (mbscspn): New declaration.
14821 * m4/mbscspn.m4: New file.
14822 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14824 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
14825 * MODULES.html.sh (Internationalization functions): Add mbscspn.
14827 2007-02-04 Bruno Haible <bruno@clisp.org>
14829 New module mbscasestr, reduced goal of strcasestr.
14830 * modules/mbscasestr: New file.
14831 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
14832 (mbscasestr): Renamed from strcasestr.
14833 * lib/strcasestr.c: Don't include mbuiter.h.
14834 (strcasestr): Remove support for multibyte locales.
14835 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
14836 Change the conditional link warning.
14837 (mbscasestr): New declaration.
14838 * m4/mbscasestr.m4: New file.
14839 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
14840 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
14841 REPLACE_STRCASESTR.
14842 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
14843 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14844 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
14845 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
14846 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
14847 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
14848 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
14849 (Depends-on): Remove mbuiter.
14850 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
14852 2007-02-04 Bruno Haible <bruno@clisp.org>
14854 Simplify handling of strncasecmp.
14855 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
14856 the conditional link warning.
14857 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14858 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
14859 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
14860 * modules/strcase (configure.ac): Don't invoke
14861 gl_STRING_MODULE_INDICATOR.
14862 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
14864 2007-02-04 Bruno Haible <bruno@clisp.org>
14866 New module mbscasecmp, reduced goal of strcasecmp.
14867 * modules/mbscasecmp: New file.
14868 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
14869 (mbscasecmp): Renamed from strcasecmp.
14870 * lib/strcasecmp.c: Don't include mbuiter.h.
14871 (strcasecmp): Remove support for multibyte locales.
14872 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
14873 Change the conditional link warning.
14874 (mbscasecmp): New declaration.
14875 * m4/mbscasecmp.m4: New file.
14876 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
14877 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
14878 REPLACE_STRCASECMP.
14879 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
14880 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14882 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
14883 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
14884 * modules/strcase (Files): Remove m4/mbrtowc.m4.
14885 (Depends-on): Remove mbuiter.
14886 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
14888 2007-02-04 Bruno Haible <bruno@clisp.org>
14890 New module mbsstr. Remove module strstr.
14891 * modules/mbsstr: New file.
14892 * modules/strstr: Remove file.
14893 * lib/mbsstr.c: Renamed from lib/strstr.c.
14894 (mbsstr): Renamed from strstr.
14895 * lib/string_.h (strstr): Remove declaration. Change the conditional
14897 (mbsstr): New declaration.
14898 * m4/mbsstr.m4: New file.
14899 * m4/strstr.m4: Remove file.
14900 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
14902 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
14903 Don't initialize GNULIB_STRSTR.
14904 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
14905 substitute GNULIB_STRSTR and REPLACE_STRSTR.
14906 * MODULES.html.sh (Internationalization functions): Add mbsstr.
14907 (Support for systems lacking ANSI C 89): Remove strstr.
14909 2007-02-04 Bruno Haible <bruno@clisp.org>
14911 New module mbsrchr.
14912 * modules/mbsrchr: New file.
14913 * lib/mbsrchr.c: New file.
14914 * lib/string_.h (strrchr): Add a conditional link warning.
14915 (mbsrchr): New declaration.
14916 * m4/mbsrchr.m4: New file.
14917 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14919 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
14920 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
14922 2007-02-04 Bruno Haible <bruno@clisp.org>
14925 * modules/mbschr: New file.
14926 * lib/mbschr.c: New file.
14927 * lib/string_.h (strchr): Add a conditional link warning.
14928 (mbschr): New declaration.
14929 * m4/mbschr.m4: New file.
14930 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
14932 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
14933 * MODULES.html.sh (Internationalization functions): Add mbschr.
14935 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
14937 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
14939 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
14941 2007-02-04 Bruno Haible <bruno@clisp.org>
14943 New module description section 'configure.ac-early'.
14944 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
14945 (func_get_autoconf_early_snippet): New function.
14946 (func_import, func_create_testdir): Use it. Remove special cases for
14947 modules 'extensions' and 'lock'.
14948 * modules/extensions (configure.ac-early): Require
14949 gl_USE_SYSTEM_EXTENSIONS.
14950 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
14952 2007-02-04 Bruno Haible <bruno@clisp.org>
14954 Make use of gcj-4.3's -fsource and -ftarget option.
14955 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
14956 and if so try the options -fsource and -ftarget.
14957 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
14958 source_version, ftarget_option, target_version arguments.
14959 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
14960 (is_envjavac_oldgcj_14_14_usable): Renamed from
14961 is_envjavac_gcj_14_14_usable.
14962 (is_envjavac_oldgcj_14_13_usable): Renamed from
14963 is_envjavac_gcj_14_13_usable.
14964 (is_gcj_present): Update.
14965 (is_gcj_43, is_gcj43_usable): New functions.
14966 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
14967 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
14968 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
14969 try the options -fsource and -ftarget.
14971 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
14973 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
14974 checking code. Set N = ceil (1.5 * N) rather than to a slightly
14977 2007-02-03 Jim Meyering <jim@meyering.net>
14979 Give tools a better chance to allocate space for very large buffers.
14980 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
14982 Make pwd and readlink work also when run with an unreadable parent dir
14983 on systems with openat support.
14984 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
14985 provided getcwd function, even when we have openat support.
14986 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
14988 2007-02-02 Bruno Haible <bruno@clisp.org>
14990 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
14991 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
14992 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
14993 portability problems if one of these functions is only used on specific
14995 Reported by Paul Eggert.
14997 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
14999 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
15000 is causing more trouble than it's curing.
15001 * lib/regex_internal.h (__mempcpy): Remove.
15002 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
15003 (and make the code a tad smaller to boot).
15004 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
15006 2007-02-02 Jim Meyering <jim@meyering.net>
15008 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
15009 section, not in the Makefile.am: one.
15011 2007-02-02 Eric Blake <ebb9@byu.net>
15013 * lib/strchrnul.c: Always include config.h first.
15015 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
15016 gnulib strstr is not necessary here.
15018 2007-02-02 Simon Josefsson <simon@josefsson.org>
15020 * m4/socklen.m4: Fix typo.
15022 2007-02-02 Eric Blake <ebb9@byu.net>
15024 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
15025 * modules/netinet_in (Makefile.am): Likewise.
15027 2007-02-01 Bruno Haible <bruno@clisp.org>
15029 * lib/string_.h (GL_LINK_WARNING): New macro.
15030 (strcasecmp, strstr, strcasestr): If provided by the system,
15031 conditionally define as a macro that leads to a warning instead of to
15033 (strncasecmp): Conditionally define as a macro that leads to a warning.
15035 2007-02-01 Karl Berry <karl@gnu.org>
15037 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
15039 2007-02-01 Bruno Haible <bruno@clisp.org>
15041 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
15044 2007-02-01 Eric Blake <ebb9@byu.net>
15046 * modules/regex (Depends-on): Revert dependence on mempcpy.
15047 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
15048 module's definition of mempcpy.
15049 Reported by Paul Eggert.
15051 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
15053 * lib/string_.h: If the gnulib module XYZ is not present, undefine
15054 the symbol XYZ before redefining it. This fixes a problem with
15055 programs that don't use XYZ, when compiled on systems that define
15056 XYZ to something else.
15058 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
15060 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
15061 occurs when "mkdir -m foo" creates a setgid directory that is (1)
15062 writeable to group or other and (2) is intended to have a special
15063 mode bit that is set or cleared. In such a case, the directory
15064 should be neither group- nor other-writeable until the special
15065 mode bits are right.
15067 2007-01-31 Eric Blake <ebb9@byu.net>
15069 * modules/mountlist (Depends-on): Add strstr.
15071 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
15073 * modules/string (Makefile.am): Remove redundant replacement.
15074 * modules/regex (Depends-on): Add mempcpy.
15076 2007-01-31 Bruno Haible <bruno@clisp.org>
15078 New module description field 'Link'.
15079 * gnulib-tool (func_usage): Document --extract-link-directive.
15080 (sed_extract_prog): Recognize 'Link' directive.
15081 (func_get_link_directive): New function.
15082 (func_import): Show summary of link directives.
15083 Handle --extract-link-directive option.
15084 * modules/acl (Link): New section.
15085 * modules/clock-time (Link): New section.
15086 * modules/euidaccess (Link): New section.
15087 * modules/gettext (Link): New section.
15088 * modules/iconv (Link): New section.
15089 * modules/lock (Link): New section.
15090 * modules/nanosleep (Link): New section.
15091 * modules/readline (Link): New section.
15093 2007-01-27 Bruno Haible <bruno@clisp.org>
15095 Enforce the use of gnulib modules for unportable <string.h> functions.
15096 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
15097 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
15098 (gl_HEADER_STRING_H_BODY): Require it.
15099 * lib/string_.h: If the gnulib module XYZ is not present, redefine
15100 the symbol XYZ to one that gives a link error.
15101 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
15102 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
15103 * modules/mempcpy (configure.ac): Likewise.
15104 * modules/memrchr (configure.ac): Likewise.
15105 * modules/stpcpy (configure.ac): Likewise.
15106 * modules/stpncpy (configure.ac): Likewise.
15107 * modules/strcase (configure.ac): Likewise.
15108 * modules/strcasestr (configure.ac): Likewise.
15109 * modules/strchrnul (configure.ac): Likewise.
15110 * modules/strdup (configure.ac): Likewise.
15111 * modules/strndup (configure.ac): Likewise.
15112 * modules/strnlen (configure.ac): Likewise.
15113 * modules/strpbrk (configure.ac): Likewise.
15114 * modules/strsep (configure.ac): Likewise.
15115 * modules/strstr (configure.ac): Likewise.
15116 * modules/strtok_r (configure.ac): Likewise.
15118 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
15120 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
15122 2007-01-30 Jim Meyering <jim@meyering.net>
15124 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
15126 2007-01-29 Bruno Haible <bruno@clisp.org>
15128 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
15129 * lib/execute.c: Likewise.
15130 * lib/pipe.c: Likewise.
15131 * lib/printf-args.h: Likewise.
15132 * lib/printf-args.c: Likewise.
15133 * lib/printf-parse.c: Likewise.
15134 * lib/vasnprintf.c: Likewise.
15136 2007-01-29 Eric Blake <ebb9@byu.net>
15138 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
15141 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
15143 * lib/strptime.h (strptime): Use 'restrict' for args where
15144 POSIX requires this.
15145 * lib/strptime.c (strptime): Likewise.
15146 Change license notice from LGPL to GPL, since gnulib-tool will
15147 change this as needed.
15148 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
15150 Include "strptime.h" first, to check interface.
15151 Do not #undef _LIBC and _NL_CURRENT.
15152 Do not include <stdlib.h>; no longer needed.
15153 Include "time_r.h" and declare ptime_locale_status
15154 only if _LIBC is not defined.
15155 (__P): Remove unused macro.
15156 (match_string): Bring back glibc version, but use it only if _LIBC
15158 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
15159 Remove unnecessary assertion and abort() call.
15160 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
15161 * m4/strptime.m4: Fix serial number comment.
15162 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
15163 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
15164 (Depends-on): Add time_r.
15166 2007-01-29 Bruno Haible <bruno@clisp.org>
15168 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15170 * modules/strptime (Depends-on): Add stdbool.
15171 * lib/strptime.h: Include <time.h> always. Add comments.
15173 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
15175 * modules/strptime: New file.
15176 * lib/strptime.h: New file.
15177 * lib/strptime.c: New file.
15178 * m4/strptime.m4: New file.
15180 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
15182 * MODULES.html.sh: New module mpsort.
15183 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
15185 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
15186 a circularity problem with HP-UX ia64 reported by Bob Proulx in
15187 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
15189 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
15191 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
15193 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
15194 the parameter matches the prototype.
15196 2007-01-28 Jim Meyering <jim@meyering.net>
15198 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
15199 sys/time.h here, reverting that part of the previous patch:
15200 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
15202 2007-01-28 Bruno Haible <bruno@clisp.org>
15204 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
15205 value of $(SYS_TIME_H).
15206 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
15207 remove it conditionally, too. [added by Jim Meyering]
15208 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
15209 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
15210 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
15211 GETTIMEOFDAY_REPLACEMENT to 1.
15213 2007-01-28 Bruno Haible <bruno@clisp.org>
15215 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
15216 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
15217 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
15218 Set UNISTD_H instead of UNISTD_H2.
15219 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
15221 2007-01-28 Bruno Haible <bruno@clisp.org>
15223 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
15224 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
15226 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15228 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
15229 (func_create_testdir): Ensure C locale for `grep' and `tr'
15231 (func_create_megatestdir): Avoid one `grep'. Fix bug in
15232 ACLOCAL_AMFLAGS parsing state machine.
15234 2007-01-27 Bruno Haible <bruno@clisp.org>
15236 * modules/unistr/base: Update.
15238 2007-01-27 Bruno Haible <bruno@clisp.org>
15240 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
15241 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
15242 * modules/unistr/u32-mbtouc-unsafe: Renamed from
15243 modules/unistr/u32-mbtouc.
15244 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
15245 * lib/unistr.h: Update.
15246 * lib/linebreak.c: Update.
15247 * modules/unistr/u32-mbtouc: Renamed from
15248 modules/unistr/u32-mbtouc-safe.
15249 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
15250 * lib/unistr.h: Update.
15251 * lib/unistr/u32-to-u8.c: Update.
15252 * lib/unistr/u32-to-u16.c: Update.
15254 2007-01-27 Bruno Haible <bruno@clisp.org>
15256 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
15257 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
15258 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
15259 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
15260 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
15261 * modules/unistr/u16-mbtouc-unsafe: Renamed from
15262 modules/unistr/u16-mbtouc.
15263 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
15264 * lib/unistr.h: Update.
15265 * lib/linebreak.c: Update.
15266 * modules/linebreak: Update.
15267 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
15268 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
15269 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
15270 * modules/unistr/u16-mbtouc: Renamed from
15271 modules/unistr/u16-mbtouc-safe.
15272 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
15273 * lib/unistr.h: Update.
15274 * lib/unistr/u16-to-u8.c: Update.
15275 * modules/unistr/u16-to-u8: Update.
15276 * lib/unistr/u16-to-u32.c: Update.
15277 * modules/unistr/u16-to-u32: Update.
15279 2007-01-27 Bruno Haible <bruno@clisp.org>
15281 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
15282 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
15283 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
15284 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
15285 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
15286 * modules/unistr/u8-mbtouc-unsafe: Renamed from
15287 modules/unistr/u8-mbtouc.
15288 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
15289 * lib/unistr.h: Update.
15290 * lib/striconveh.c: Update.
15291 * modules/striconveh: Update.
15292 * lib/linebreak.c: Update.
15293 * modules/linebreak: Update.
15294 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
15295 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
15296 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
15297 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
15298 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
15299 * lib/unistr.h: Update.
15300 * lib/striconveh.c: Update.
15301 * modules/striconveh: Update.
15302 * lib/unistr/u8-to-u16.c: Update.
15303 * modules/unistr/u8-to-u16: Update.
15304 * lib/unistr/u8-to-u32.c: Update.
15305 * modules/unistr/u8-to-u32: Update.
15307 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15310 * lib/argz.c: Do not include strings.h nor memory.h, include
15311 string.h unconditionally. Patch by Simon Josefsson.
15313 2007-01-27 Bruno Haible <bruno@clisp.org>
15315 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
15316 from gl_HEADER_STRING_H_BODY.
15317 (gl_HEADER_STRING_H_BODY): Require it.
15318 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
15319 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
15320 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
15321 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
15322 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15323 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
15324 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15325 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
15326 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
15327 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
15328 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
15329 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
15330 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
15331 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
15332 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
15334 2007-01-27 Bruno Haible <bruno@clisp.org>
15336 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
15337 check_PROGRAMS into noinst_PROGRAMS.
15338 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
15339 check_PROGRAMS in this case.
15340 (func_import): Set for_test to false.
15341 (func_create_testdir): Set for_test to true.
15343 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15344 Bruno Haible <bruno@clisp.org>
15346 * modules/strcasestr (Files): Remove lib/strcasestr.h.
15347 (Depends-on): Add string.
15348 (Includes): Use <string.h> instead of strcasestr.h.
15349 * modules/string (Makefile.am): Also substitute the value of
15350 REPLACE_STRCASESTR.
15351 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
15352 assume strcasestr is declared in <string.h> not <strings.h>. Also
15353 set REPLACE_STRCASESTR.
15354 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
15355 REPLACE_STRCASESTR.
15356 * lib/strcasestr.h: Remove file.
15357 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
15358 * lib/string_.h (strcasestr): New declaration.
15360 2007-01-27 Bruno Haible <bruno@clisp.org>
15362 * lib/string_.h: Use 'extern'.
15364 2007-01-27 Jim Meyering <jim@meyering.net>
15366 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
15367 of set-but-not-used local, "q".
15369 * lib/mempcpy.c: Include <config.h> before <string.h>.
15370 This fixes a compilation error on HP-UX, due to the system's
15371 "restrict"-using mempcpy prototype.
15373 2007-01-26 Bruno Haible <bruno@clisp.org>
15375 Small optimization.
15376 * lib/javacomp.c: Include c-strstr.h.
15377 (is_envjavac_gcj): Use c_strstr instead of strstr.
15378 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
15380 2007-01-26 Bruno Haible <bruno@clisp.org>
15382 * MODULES.html.sh (Unicode string functions): Add the new modules.
15384 * modules/uniconv/u32-strconv-to-locale: New file.
15385 * lib/uniconv/u32-strconv-to-locale.c: New file.
15387 * modules/uniconv/u16-strconv-to-locale: New file.
15388 * lib/uniconv/u16-strconv-to-locale.c: New file.
15390 * modules/uniconv/u8-strconv-to-locale: New file.
15391 * lib/uniconv/u8-strconv-to-locale.c: New file.
15393 * modules/uniconv/u32-strconv-from-locale: New file.
15394 * lib/uniconv/u32-strconv-from-locale.c: New file.
15396 * modules/uniconv/u16-strconv-from-locale: New file.
15397 * lib/uniconv/u16-strconv-from-locale.c: New file.
15399 * modules/uniconv/u8-strconv-from-locale: New file.
15400 * lib/uniconv/u8-strconv-from-locale.c: New file.
15402 * modules/uniconv/u32-strconv-to-enc: New file.
15403 * lib/uniconv/u32-strconv-to-enc.c: New file.
15404 * modules/uniconv/u32-strconv-to-enc-tests: New file.
15405 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
15407 * modules/uniconv/u16-strconv-to-enc: New file.
15408 * lib/uniconv/u16-strconv-to-enc.c: New file.
15409 * lib/uniconv/u-strconv-to-enc.h: New file.
15410 * modules/uniconv/u16-strconv-to-enc-tests: New file.
15411 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
15413 * modules/uniconv/u8-strconv-to-enc: New file.
15414 * lib/uniconv/u8-strconv-to-enc.c: New file.
15415 * modules/uniconv/u8-strconv-to-enc-tests: New file.
15416 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
15418 * modules/uniconv/u32-strconv-from-enc: New file.
15419 * lib/uniconv/u32-strconv-from-enc.c: New file.
15420 * modules/uniconv/u32-strconv-from-enc-tests: New file.
15421 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
15423 * modules/uniconv/u16-strconv-from-enc: New file.
15424 * lib/uniconv/u16-strconv-from-enc.c: New file.
15425 * modules/uniconv/u16-strconv-from-enc-tests: New file.
15426 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
15428 * modules/uniconv/u8-strconv-from-enc: New file.
15429 * lib/uniconv/u8-strconv-from-enc.c: New file.
15430 * lib/uniconv/u-strconv-from-enc.h: New file.
15431 * modules/uniconv/u8-strconv-from-enc-tests: New file.
15432 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
15434 * modules/uniconv/u32-conv-from-enc: New file.
15435 * lib/uniconv/u32-conv-from-enc.c: New file.
15436 * modules/uniconv/u32-conv-from-enc-tests: New file.
15437 * tests/uniconv/test-u32-conv-from-enc.c: New file.
15439 * modules/uniconv/u16-conv-from-enc: New file.
15440 * lib/uniconv/u16-conv-from-enc.c: New file.
15441 * lib/uniconv/u-conv-from-enc.h: New file.
15442 * modules/uniconv/u16-conv-from-enc-tests: New file.
15443 * tests/uniconv/test-u16-conv-from-enc.c: New file.
15445 * modules/uniconv/u8-conv-from-enc: New file.
15446 * lib/uniconv/u8-conv-from-enc.c: New file.
15447 * modules/uniconv/u8-conv-from-enc-tests: New file.
15448 * tests/uniconv/test-u8-conv-from-enc.c: New file.
15450 * modules/uniconv/base: New file.
15451 * lib/uniconv.h: New file.
15453 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
15455 * doc/gnulib-tool.texi (Initial import): Update to match current
15456 behavior with strdup module.
15457 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
15458 * lib/memmem.h: Remove; all uses removed. This is now done
15460 * lib/mempcpy.h: Likewise.
15461 * lib/memrchr.h: Likewise.
15462 * lib/stpcpy.h: Likewise.
15463 * lib/stpncpy.h: Likewise.
15464 * lib/strcase.h: Likewise.
15465 * lib/strchrnul.h: Likewise.
15466 * lib/strdup.h: Likewise.
15467 * lib/strndup.h: Likewise.
15468 * lib/strnlen.h: Likewise.
15469 * lib/strpbrk.h: Likewise.
15470 * lib/strsep.h: Likewise.
15471 * lib/strstr.h: Likewise.
15472 * lib/strtok_r.h: Likewise.
15473 * lib/string_.h: New file.
15474 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
15475 Rely on <string.h> instead.
15476 * lib/canon-host.c: Likewise.
15477 * lib/chdir-long.c: Likewise.
15478 * lib/concatpath.c: Likewise.
15479 * lib/exclude.c: Likewise.
15480 * lib/fchdir.c: Likewise.
15481 * lib/getaddrinfo.c: Likewise.
15482 * lib/getcwd.c: Likewise.
15483 * lib/getsubopt.c: Likewise.
15484 * lib/glob.c: Likewise.
15485 * lib/hard-locale.c: Likewise.
15486 * lib/iconvme.c: Likewise.
15487 * lib/javacomp.c: Likewise.
15488 * lib/mempcpy.c: Likewise.
15489 * lib/memrchr.c: Likewise.
15490 * lib/regex_internal.h: Likewise.
15491 * lib/stpncpy.c: Likewise.
15492 * lib/strcasecmp.c: Likewise.
15493 * lib/strchrnul.c: Likewise.
15494 * lib/strdup.c: Likewise.
15495 * lib/striconv.c: Likewise.
15496 * lib/striconveh.c: Likewise.
15497 * lib/striconveha.c: Likewise.
15498 * lib/strncasecmp.c: Likewise.
15499 * lib/strndup.c: Likewise.
15500 * lib/strnlen.c: Likewise.
15501 * lib/strsep.c: Likewise.
15502 * lib/strstr.c: Likewise.
15503 * lib/strtok_r.c: Likewise.
15504 * lib/userspec.c: Likewise.
15505 * lib/w32spawn.h: Likewise.
15506 * lib/xstrndup.c: Likewise.
15507 * lib/mountlist.c (strstr): Remove decl.
15508 * m4/string_h.m4: New file.
15509 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
15510 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
15511 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
15512 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
15513 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
15514 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
15515 Set REPLACE_STRCASECMP if necessary.
15516 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
15517 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
15518 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
15519 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
15520 HAVE_DECL_STRDUP if necessary.
15521 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
15522 since gl_FUNC_STRNDUP does that now.
15523 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
15524 Check for decl here...
15525 (gl_PREREQ_STRNLEN): ... not here.
15526 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
15527 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
15528 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
15529 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
15531 * modules/string: New file.
15532 * modules/memmem (Files): Remove special-purpose include file.
15533 (Depends-on): Add string.
15534 (Include): Include <string.h>, not the removed file.
15535 * modules/mempcpy: Likewise.
15536 * modules/memrchr: Likewise.
15537 * modules/stpcpy: Likewise.
15538 * modules/stpncpy: Likewise.
15539 * modules/strcase: Likewise.
15540 * modules/strchrnul: Likewise.
15541 * modules/strdup: Likewise.
15542 * modules/strndup: Likewise.
15543 * modules/strnlen: Likewise.
15544 * modules/strpbrk: Likewise.
15545 * modules/strsep: Likewise.
15546 * modules/strstr: Likewise.
15547 * modules/strtok_r: Likewise.
15548 * tests/test-dirname.c: Don't include "strdup.h", since
15549 <string.h> now suffices.
15550 * tests/test-memmem.c: Don't include "memmem.h", since
15551 <string.h> now suffices.
15553 2007-01-25 Bruno Haible <bruno@clisp.org>
15555 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
15558 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
15559 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
15560 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
15561 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
15563 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
15564 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
15565 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
15566 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
15567 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
15568 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
15570 2007-01-24 Bruno Haible <bruno@clisp.org>
15572 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
15573 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
15574 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
15575 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
15577 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
15578 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
15579 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
15580 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
15581 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
15582 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
15584 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
15586 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
15587 Reported by Ralf Wildenhues.
15589 2007-01-24 Bruno Haible <bruno@clisp.org>
15591 Drop AC_REQUIRE calls that are redundant with the module dependencies.
15592 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
15594 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
15595 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
15596 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
15598 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
15600 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
15601 Don't use 'exit'; just return from 'main'.
15602 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
15604 * lib/fnmatch_.h: Readjust white space and comments to match
15605 glibc, to avoid spurious diffs.
15607 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
15609 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
15610 2004-12-01 change by Jakub Jelinek, since this code won't compile
15611 if !LIBC. Problem reported by Bob Proulx.
15613 2007-01-23 Bruno Haible <bruno@clisp.org>
15615 * lib/striconveh.c: Include c-strcaseeq.h.
15616 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
15617 * modules/striconveh (Depends-on): Add c-strcaseeq.
15619 2007-01-23 Bruno Haible <bruno@clisp.org>
15621 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
15623 * modules/c-strcaseeq: New file.
15624 * lib/c-strcaseeq.h: New file.
15626 * modules/streq: New file.
15627 * lib/streq.h: New file.
15629 2007-01-23 Bruno Haible <bruno@clisp.org>
15631 * modules/striconveha-tests: New file.
15632 * tests/test-striconveha.c: New file.
15634 * lib/striconveha.h: Include <stdbool.h>.
15635 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
15636 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
15637 (mem_iconveha_notranslit): Renamed from mem_iconveha.
15638 (mem_iconveha): New function.
15639 (str_iconveha_notranslit): Renamed from str_iconveha.
15640 (str_iconveha): New function.
15641 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
15644 2007-01-23 Bruno Haible <bruno@clisp.org>
15646 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
15647 encodings without forgiving before trying any encoding with handler.
15648 (str_iconveha): Try all encodings without forgiving before trying any
15649 encoding with handler.
15651 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
15653 Import the following changes from libc.
15655 2005-10-14 Ulrich Drepper <drepper@redhat.com>
15657 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
15659 2004-12-01 Jakub Jelinek <jakub@redhat.com>
15661 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
15662 normal_bracket label.
15664 2004-09-01 Jakub Jelinek <jakub@redhat.com>
15667 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
15668 to normal_bracket after fetching the next character.
15670 2007-01-22 Bruno Haible <bruno@clisp.org>
15672 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
15674 * lib/striconveh.c (iconv_carefully_1): New function.
15675 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
15677 (str_cd_iconveh): Update.
15678 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
15679 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
15680 * tests/test-striconveh.c (MAGIC): New macro.
15681 (new_offsets): New function.
15682 (main): Test call with and without offsets.
15684 2007-01-22 Bruno Haible <bruno@clisp.org>
15686 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
15687 * modules/sys_select (Makefile.am): Likewise.
15688 * modules/sys_socket (Makefile.am): Likewise.
15689 * modules/sys_time (Makefile.am): Likewise.
15691 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
15693 * modules/gettimeofday (License): Change from GPL to LGPL, since
15694 gettimeofday is a library function.
15696 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15698 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
15700 2007-01-21 Bruno Haible <bruno@clisp.org>
15702 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
15704 2007-01-21 Bruno Haible <bruno@clisp.org>
15706 * modules/striconveha: New file.
15707 * lib/striconveha.h: New file.
15708 * lib/striconveha.c: New file.
15709 * MODULES.html.sh (Internationalization functions): Add striconveha.
15710 * lib/striconv.c (str_iconv): Optimize the case of an empty input
15712 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
15714 2007-01-21 Bruno Haible <bruno@clisp.org>
15716 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
15717 * lib/striconveh.c (str_iconveh): Likewise.
15719 2007-01-21 Bruno Haible <bruno@clisp.org>
15721 * lib/striconveh.h (mem_iconveh): New declaration.
15722 * lib/striconveh.c (mem_iconveh): New function.
15723 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
15725 2007-01-21 Bruno Haible <bruno@clisp.org>
15727 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
15729 * lib/striconveh.h (mem_cd_iconveh): Change specification.
15730 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
15731 original result buffer.
15732 (str_cd_iconveh): Update.
15733 * tests/test-striconveh.c (main): Update.
15735 * lib/striconv.h (mem_cd_iconv): Change specification.
15736 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
15738 (str_cd_iconv): Update.
15739 * tests/test-striconv.c (main): Update.
15741 2007-01-21 Bruno Haible <bruno@clisp.org>
15743 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
15745 2007-01-20 Jim Meyering <jim@meyering.net>
15747 * lib/userspec.c (parse_with_separator): If a user or group string
15748 starts with "+", skip the corresponding name-to-ID look-up, since
15749 such a look-up must fail: user and group names may not include "+".
15751 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
15753 * lib/poll.c: Include sys/time.h and time.h unconditionally,
15754 since we now assume the sys_time module.
15755 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
15756 check for sys/time.h; no longer needed.
15757 * modules/poll (Depends-on): Depend on sys_time.
15759 2007-01-18 Bruno Haible <bruno@clisp.org>
15761 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
15762 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
15764 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
15767 * tests/test-gettimeofday.c: Include <time.h>.
15768 (dummy): Remove variable.
15770 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
15771 gl_HEADER_SYS_TIME_H.
15772 (gl_HEADER_SYS_TIME_H): New macro.
15774 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
15775 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15776 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
15777 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
15778 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15779 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
15780 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
15781 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15782 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
15783 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
15784 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15786 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
15787 last change; it caused a compilation error when cross-compiling to
15790 2007-01-18 Jim Meyering <jim@meyering.net>
15792 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
15793 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
15794 than the race-prone "test -d sys || mkdir sys".
15795 (configure.ac): Use AC_PROG_MKDIR_P.
15796 * modules/sys_select: Likewise.
15797 * modules/sys_socket: Likewise.
15798 * modules/sys_time: Likewise.
15800 2007-01-18 Eric Blake <ebb9@byu.net>
15802 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
15803 replace gettimeofday.
15804 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
15805 name, to avoid infinite recursion.
15807 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
15809 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
15811 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
15812 assume timespec.h defines struct timeval.
15813 * lib/settime.c: Likewise.
15814 * lib/utimens.c: Likewise.
15815 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
15816 since we now assume the gettimeofday module.
15817 * lib/tempname.c (__gen_tempname): Likewise.
15818 * lib/gettimeofday.h: Remove.
15819 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
15820 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
15821 Include <time.h>, for 'time()'.
15822 (localtime_buffer_addr): Also use this workaround if
15823 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
15824 to simplify the uses. All uses changed.
15825 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
15826 that #undef is inside {}, and 'const' follows type name consistently.
15827 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
15828 (gettimeofday): Do not use the maximum possible value for
15829 tv->tv_usec, since that might break usages other than ls.c.
15830 Instead, we'll leave ls.c alone. This undoes today's patch
15831 by Bruno. Add a compile-time warning for 1s-clock resolution;
15832 we've never observed the problem but might as well keep the
15834 * lib/nanosleep.c: Include timespec.h first, for interface check.
15835 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
15836 now assume the sys_time module.
15837 * lib/tempname.c: Likewise.
15838 * lib/timespec.h: Likewise.
15839 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
15841 * lib/strftime.c: Likewise.
15842 * lib/timespec.h: Likewise.
15843 * lib/posixtm.c: Include posixtm.h first, for interface check.
15844 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
15845 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
15846 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
15847 * lib/sys_time_.h: New file.
15848 * lib/timespec.h (struct timespec): Use long int, not long.
15849 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
15850 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
15851 Remove obsolescent call to AC_HEADER_TIME.
15852 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15853 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15854 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
15855 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
15857 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
15858 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
15859 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
15860 into the sys_time module. Check for gettimeofday just once.
15861 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
15862 for gettimeofday signature to just check the signature. Merely
15863 compile it, since linking doesn't test signature. Improve test for
15864 whether gettimeofday.o is actually needed.
15865 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
15866 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
15867 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
15868 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15869 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
15870 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
15871 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
15872 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
15873 than worrying about sys/time.h.
15874 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
15875 Don't bother worrying about TIME_WITH_SYS_TIME.
15876 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
15877 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
15878 * m4/sys_time_h.m4: New file.
15879 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
15880 Don't include sys/time.h. Return from main rather than exiting.
15881 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
15883 * modules/gethrxtime (Depends-on): Add sys_time.
15884 * modules/gettime (Depends-on): Likewise.
15885 * modules/gettimeofday (Depends-on): Likewise.
15886 * modules/nanosleep (Depends-on): Likewise.
15887 * modules/settime (Depends-on): Likewise.
15888 * modules/tempname (Depends-on): Likewise.
15889 * modules/utimens (Depends-on): Likewise.
15890 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
15891 (Include:) Change back to <sys/time.h>.
15892 (Maintainer:) Add self.
15893 * modules/sys_time: New file.
15894 * modules/tempname (Depends-on): Add gettimeofday.
15895 * tests/test-gettimeofday.c: Include <sys/time.h>
15896 rather than gettimeofday.h.
15898 2007-01-17 Bruno Haible <bruno@clisp.org>
15900 * gnulib-tool (func_get_license): Revert last patch. Instead, let
15901 the license default to GPL.
15902 (func_create_testdir): Don't complain if a module is LGPL and its
15903 tests module depends on GPLed modules.
15905 2007-01-17 Bruno Haible <bruno@clisp.org>
15907 * lib/gettimeofday.c (gettimeofday): Add code for the case
15908 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
15909 maximum possible value for tv->tv_usec, rather than the minimum one.
15911 2005-10-08 Martin Lambers <marlam@marlam.de>
15912 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
15913 2007-01-16 Bruno Haible <bruno@clisp.org>
15915 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
15916 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
15917 gl_FUNC_GETTIMEOFDAY.
15918 (Include): Add gettimeofday.h.
15919 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
15920 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
15921 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
15922 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
15923 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
15924 * lib/gettimeofday.h: New file.
15925 * lib/gettimeofday.c: Include <sys/timeb.h>.
15926 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
15927 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
15928 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
15929 fall back on time().
15931 * tests/test-gettimeofday.c: New file.
15932 * modules/gettimeofday-tests: New file.
15934 2007-01-16 Eric Blake <ebb9@byu.net>
15936 * modules/fnmatch (Depends-on): Depend on wchar.
15937 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
15938 * m4/fnmatch.m4: Likewise.
15939 * modules/mbchar (Makefile.am): Assume <wchar.h>.
15940 * m4/mbchar.m4: Likewise.
15941 * modules/mbswidth (Depends-on): Depend on wchar.
15942 * lib/mbswidth.c: Assume <wchar.h>.
15943 * m4/mbswidth.m4: Likewise.
15944 * modules/quotearg (Depends-on): Depend on wchar.
15945 * lib/quotearg.c: Assume <wchar.h>.
15946 * m4/quotearg.m4: Likewise.
15947 * modules/regex (Depends-on): Depend on wchar.
15948 * lib/regex_internal.h: Assume <wchar.h>.
15949 * m4/regex.m4: Likewise.
15950 * modules/stdint (Depends-on): Depend on wchar.
15951 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
15952 * m4/stdint.m4: Likewise.
15953 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
15954 * modules/strftime (Depends-on): Depend on wchar.
15955 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
15956 * modules/strtol (Depends-on): Depend on wchar.
15957 * lib/strtol.c: Assume <wchar.h>.
15958 * modules/wcwidth (Depends-on): Depend on wchar.
15959 * lib/wcwidth.h: Assume <wchar.h>.
15960 * m4/wcwidth.m4: Likewise.
15962 2007-01-16 Bruno Haible <bruno@clisp.org>
15964 * modules/csharpexec-script: New, created from...
15965 * modules/csharpexec: ... this.
15967 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
15969 * modules/javaexec-script: New, created from...
15970 * modules/javaexec: ... this.
15972 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15974 * modules/poll (Dependencies): Add sys_select.
15976 2007-01-15 Jim Meyering <jim@meyering.net>
15978 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
15979 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
15980 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
15981 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
15983 2007-01-15 Bruno Haible <bruno@clisp.org>
15985 * modules/striconveh: New file.
15986 * lib/striconveh.h: New file.
15987 * lib/striconveh.c: New file.
15988 * MODULES.html.sh (Internationalization functions): Add striconveh.
15990 * modules/striconveh-tests: New file.
15991 * tests/test-striconveh.c: New file.
15993 2007-01-15 Bruno Haible <bruno@clisp.org>
15995 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
15996 not from GNU libiconv or GNU libc.
15998 2007-01-15 Bruno Haible <bruno@clisp.org>
16000 * doc/gnulib-intro.texi (Copyright): Explain the different license
16001 terms for module descriptions, autoconf macros, tests, documentation.
16003 2007-01-14 Bruno Haible <bruno@clisp.org>
16005 * modules/striconv-tests: New file.
16006 * tests/test-striconv.c: New file.
16008 2007-01-14 Bruno Haible <bruno@clisp.org>
16010 * modules/iconv-tests: New file.
16011 * tests/test-iconv.c: New file.
16013 2007-01-14 Bruno Haible <bruno@clisp.org>
16015 * gnulib-tool (func_get_license): For test modules, use the license of
16018 2007-01-14 Bruno Haible <bruno@clisp.org>
16020 * modules/iconv (Include): Clarify that <iconv.h> can only be included
16021 if iconv is found to exist.
16023 2007-01-14 Bruno Haible <bruno@clisp.org>
16025 * modules/c-ctype-tests: New file.
16026 * tests/test-c-ctype.c: New file.
16028 2007-01-14 Bruno Haible <bruno@clisp.org>
16030 * modules/binary-io-tests: New file.
16031 * tests/test-binary-io.sh: New file.
16032 * tests/test-binary-io.c: New file.
16034 2007-01-14 Bruno Haible <bruno@clisp.org>
16036 * modules/array-oset-tests: New file.
16037 * tests/test-array_oset.c: New file.
16039 2007-01-14 Bruno Haible <bruno@clisp.org>
16041 * modules/array-list-tests: New file.
16042 * tests/test-array_list.c: New file.
16044 2007-01-14 Bruno Haible <bruno@clisp.org>
16046 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
16048 Reported by Simon Josefsson in
16049 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
16051 2007-01-14 Bruno Haible <bruno@clisp.org>
16053 * modules/allocsa-tests: New file.
16054 * tests/test-allocsa.c: New file.
16056 2007-01-14 Bruno Haible <bruno@clisp.org>
16058 * modules/fchdir (Depends-on): Add absolute-header.
16059 * modules/unistd (Depends-on): Likewise.
16061 2006-12-30 Bruno Haible <bruno@clisp.org>
16063 * modules/fchdir: New file.
16064 * modules/unistd (Files): Add lib/unistd_.h.
16065 (Makefile.am): Generate unistd.h from unistd_.h.
16066 * lib/fchdir.c: New file.
16067 * lib/dirent_.h: New file.
16068 * lib/unistd_.h: New file.
16069 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
16070 * m4/fchdir.m4: New file.
16071 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
16072 (gl_HEADER_UNISTD): Invoke it.
16073 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
16075 * lib/backupfile.c (opendir, closedir): Undefine.
16076 * lib/chown.c (open, close): Undefine.
16077 * lib/clean-temp.c (open, close): Undefine.
16078 * lib/copy-file.c (open, close): Undefine.
16079 * lib/execute.c (open, close): Undefine.
16080 * lib/fsusage.c (open, close): Undefine.
16081 * lib/gc-gnulib.c (open, close): Undefine.
16082 * lib/getcwd.c (opendir, closedir): Undefine.
16083 * lib/glob.c (opendir, closedir): Undefine.
16084 * lib/javacomp.c (open, close): Undefine.
16085 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
16086 * lib/openat-proc.c (open, close): Undefine.
16087 * lib/pagealign_alloc.c (open, close): Undefine.
16088 * lib/pipe.c (open, close): Undefine.
16089 * lib/progreloc.c (open, close): Undefine.
16090 * lib/savedir.c (opendir, closedir): Undefine.
16091 * lib/utime.c (open, close): Undefine.
16092 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
16094 2007-01-10 Bruno Haible <bruno@clisp.org>
16096 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
16098 2007-01-12 Eric Blake <ebb9@byu.net>
16100 Provide a robust <wchar.h>. Further simplifications are now
16101 possible in other modules, but not included here.
16102 * modules/wchar: New module.
16103 * m4/wchar.m4: New file.
16104 * lib/wchar_.h: Likewise.
16105 * modules/mbchar (Depends-on): Depend on wchar, as the first use
16107 * MODULES.html.sh (Extended multibyte and wide character utilities):
16110 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
16112 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
16113 to a reasonable default for memory allocation.
16114 (xreadlink): Don't allocate a huge buffer, to work around a buggy
16115 file system that reports garbage st_size values for symlinks.
16116 Problem reported by Liyang Hu.
16118 2007-01-11 Simon Josefsson <simon@josefsson.org>
16120 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
16121 Emacs .#* auto-save files).
16123 2007-01-11 Bruno Haible <bruno@clisp.org>
16125 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
16128 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
16130 Use @...@ consistently in lib/wctype_.h.
16131 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
16132 on it being set to 1 or 0.
16133 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
16134 go back to AC_SUBSTing it.
16135 * modules/wctype (Makefile.am): Undo previous change.
16137 2007-01-10 Eric Blake <ebb9@byu.net>
16139 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
16140 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
16141 * modules/wctype (Makefile.am): Likewise.
16142 Reported by Chris McGuire.
16144 2007-01-10 Jim Meyering <jim@meyering.net>
16146 fts.c: a small readability/maintainability improvement
16147 * lib/fts.c (fts_read): Make this code slightly more readable and
16148 maintainable by hoisting the "sp->fts_cur = p" assignments to
16149 immediately follow the statements that set P. Derived from
16150 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
16152 2007-01-10 Eric Blake <ebb9@byu.net>
16154 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
16155 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
16156 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16157 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
16158 Reported by Chris McGuire.
16160 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16162 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
16165 2007-01-09 Bruno Haible <bruno@clisp.org>
16167 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
16168 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
16170 (func_module): Use them.
16172 2007-01-09 Bruno Haible <bruno@clisp.org>
16174 * modules/unistr/base: New file.
16175 * lib/unistr.h: New file.
16177 * modules/unistr/u8-to-u16: New file.
16178 * lib/unistr/u8-to-u16.c: New file.
16180 * modules/unistr/u8-to-u32: New file.
16181 * lib/unistr/u8-to-u32.c: New file.
16183 * modules/unistr/u16-to-u8: New file.
16184 * lib/unistr/u16-to-u8.c: New file.
16186 * modules/unistr/u16-to-u32: New file.
16187 * lib/unistr/u16-to-u32.c: New file.
16189 * modules/unistr/u32-to-u8: New file.
16190 * lib/unistr/u32-to-u8.c: New file.
16192 * modules/unistr/u32-to-u16: New file.
16193 * lib/unistr/u32-to-u16.c: New file.
16195 * modules/unistr/u8-check: New file.
16196 * modules/unistr/u16-check: New file.
16197 * modules/unistr/u32-check: New file.
16198 * lib/unistr/u8-check.c: New file.
16199 * lib/unistr/u16-check.c: New file.
16200 * lib/unistr/u32-check.c: New file.
16202 * modules/unistr/u8-chr: New file.
16203 * modules/unistr/u16-chr: New file.
16204 * modules/unistr/u32-chr: New file.
16205 * lib/unistr/u8-chr.c: New file.
16206 * lib/unistr/u16-chr.c: New file.
16207 * lib/unistr/u32-chr.c: New file.
16209 * modules/unistr/u8-cmp: New file.
16210 * modules/unistr/u16-cmp: New file.
16211 * modules/unistr/u32-cmp: New file.
16212 * lib/unistr/u8-cmp.c: New file.
16213 * lib/unistr/u16-cmp.c: New file.
16214 * lib/unistr/u32-cmp.c: New file.
16216 * modules/unistr/u8-cpy: New file.
16217 * modules/unistr/u16-cpy: New file.
16218 * modules/unistr/u32-cpy: New file.
16219 * lib/unistr/u8-cpy.c: New file.
16220 * lib/unistr/u16-cpy.c: New file.
16221 * lib/unistr/u32-cpy.c: New file.
16222 * lib/unistr/u-cpy.h: New file.
16224 * modules/unistr/u8-cpy-alloc: New file.
16225 * modules/unistr/u16-cpy-alloc: New file.
16226 * modules/unistr/u32-cpy-alloc: New file.
16227 * lib/unistr/u8-cpy-alloc.c: New file.
16228 * lib/unistr/u16-cpy-alloc.c: New file.
16229 * lib/unistr/u32-cpy-alloc.c: New file.
16230 * lib/unistr/u-cpy-alloc.h: New file.
16232 * modules/unistr/u8-endswith: New file.
16233 * modules/unistr/u16-endswith: New file.
16234 * modules/unistr/u32-endswith: New file.
16235 * lib/unistr/u8-endswith.c: New file.
16236 * lib/unistr/u16-endswith.c: New file.
16237 * lib/unistr/u32-endswith.c: New file.
16238 * lib/unistr/u-endswith.h: New file.
16240 * modules/unistr/u8-mblen: New file.
16241 * modules/unistr/u16-mblen: New file.
16242 * modules/unistr/u32-mblen: New file.
16243 * lib/unistr/u8-mblen.c: New file.
16244 * lib/unistr/u16-mblen.c: New file.
16245 * lib/unistr/u32-mblen.c: New file.
16247 * modules/unistr/u8-mbtouc: New file.
16248 * modules/unistr/u16-mbtouc: New file.
16249 * modules/unistr/u32-mbtouc: New file.
16250 * lib/unistr/u8-mbtouc.c: New file.
16251 * lib/unistr/u16-mbtouc.c: New file.
16252 * lib/unistr/u32-mbtouc.c: New file.
16254 * modules/unistr/u8-mbtouc-safe: New file.
16255 * modules/unistr/u16-mbtouc-safe: New file.
16256 * modules/unistr/u32-mbtouc-safe: New file.
16257 * lib/unistr/u8-mbtouc-safe.c: New file.
16258 * lib/unistr/u16-mbtouc-safe.c: New file.
16259 * lib/unistr/u32-mbtouc-safe.c: New file.
16261 * modules/unistr/u8-move: New file.
16262 * modules/unistr/u16-move: New file.
16263 * modules/unistr/u32-move: New file.
16264 * lib/unistr/u8-move.c: New file.
16265 * lib/unistr/u16-move.c: New file.
16266 * lib/unistr/u32-move.c: New file.
16267 * lib/unistr/u-move.h: New file.
16269 * modules/unistr/u8-next: New file.
16270 * modules/unistr/u16-next: New file.
16271 * modules/unistr/u32-next: New file.
16272 * lib/unistr/u8-next.c: New file.
16273 * lib/unistr/u16-next.c: New file.
16274 * lib/unistr/u32-next.c: New file.
16276 * modules/unistr/u8-prev: New file.
16277 * modules/unistr/u16-prev: New file.
16278 * modules/unistr/u32-prev: New file.
16279 * lib/unistr/u8-prev.c: New file.
16280 * lib/unistr/u16-prev.c: New file.
16281 * lib/unistr/u32-prev.c: New file.
16283 * modules/unistr/u8-set: New file.
16284 * modules/unistr/u16-set: New file.
16285 * modules/unistr/u32-set: New file.
16286 * lib/unistr/u8-set.c: New file.
16287 * lib/unistr/u16-set.c: New file.
16288 * lib/unistr/u32-set.c: New file.
16289 * lib/unistr/u-set.h: New file.
16291 * modules/unistr/u8-startswith: New file.
16292 * modules/unistr/u16-startswith: New file.
16293 * modules/unistr/u32-startswith: New file.
16294 * lib/unistr/u8-startswith.c: New file.
16295 * lib/unistr/u16-startswith.c: New file.
16296 * lib/unistr/u32-startswith.c: New file.
16297 * lib/unistr/u-startswith.h: New file.
16299 * modules/unistr/u8-stpcpy: New file.
16300 * modules/unistr/u16-stpcpy: New file.
16301 * modules/unistr/u32-stpcpy: New file.
16302 * lib/unistr/u8-stpcpy.c: New file.
16303 * lib/unistr/u16-stpcpy.c: New file.
16304 * lib/unistr/u32-stpcpy.c: New file.
16305 * lib/unistr/u-stpcpy.h: New file.
16307 * modules/unistr/u8-stpncpy: New file.
16308 * modules/unistr/u16-stpncpy: New file.
16309 * modules/unistr/u32-stpncpy: New file.
16310 * lib/unistr/u8-stpncpy.c: New file.
16311 * lib/unistr/u16-stpncpy.c: New file.
16312 * lib/unistr/u32-stpncpy.c: New file.
16313 * lib/unistr/u-stpncpy.h: New file.
16315 * modules/unistr/u8-strcat: New file.
16316 * modules/unistr/u16-strcat: New file.
16317 * modules/unistr/u32-strcat: New file.
16318 * lib/unistr/u8-strcat.c: New file.
16319 * lib/unistr/u16-strcat.c: New file.
16320 * lib/unistr/u32-strcat.c: New file.
16321 * lib/unistr/u-strcat.h: New file.
16323 * modules/unistr/u8-strchr: New file.
16324 * modules/unistr/u16-strchr: New file.
16325 * modules/unistr/u32-strchr: New file.
16326 * lib/unistr/u8-strchr.c: New file.
16327 * lib/unistr/u16-strchr.c: New file.
16328 * lib/unistr/u32-strchr.c: New file.
16330 * modules/unistr/u8-strcmp: New file.
16331 * modules/unistr/u16-strcmp: New file.
16332 * modules/unistr/u32-strcmp: New file.
16333 * lib/unistr/u8-strcmp.c: New file.
16334 * lib/unistr/u16-strcmp.c: New file.
16335 * lib/unistr/u32-strcmp.c: New file.
16337 * modules/unistr/u8-strcpy: New file.
16338 * modules/unistr/u16-strcpy: New file.
16339 * modules/unistr/u32-strcpy: New file.
16340 * lib/unistr/u8-strcpy.c: New file.
16341 * lib/unistr/u16-strcpy.c: New file.
16342 * lib/unistr/u32-strcpy.c: New file.
16343 * lib/unistr/u-strcpy.h: New file.
16345 * modules/unistr/u8-strcspn: New file.
16346 * modules/unistr/u16-strcspn: New file.
16347 * modules/unistr/u32-strcspn: New file.
16348 * lib/unistr/u8-strcspn.c: New file.
16349 * lib/unistr/u16-strcspn.c: New file.
16350 * lib/unistr/u32-strcspn.c: New file.
16351 * lib/unistr/u-strcspn.h: New file.
16353 * modules/unistr/u8-strdup: New file.
16354 * modules/unistr/u16-strdup: New file.
16355 * modules/unistr/u32-strdup: New file.
16356 * lib/unistr/u8-strdup.c: New file.
16357 * lib/unistr/u16-strdup.c: New file.
16358 * lib/unistr/u32-strdup.c: New file.
16359 * lib/unistr/u-strdup.h: New file.
16361 * modules/unistr/u8-strlen: New file.
16362 * modules/unistr/u16-strlen: New file.
16363 * modules/unistr/u32-strlen: New file.
16364 * lib/unistr/u8-strlen.c: New file.
16365 * lib/unistr/u16-strlen.c: New file.
16366 * lib/unistr/u32-strlen.c: New file.
16367 * lib/unistr/u-strlen.h: New file.
16369 * modules/unistr/u8-strmblen: New file.
16370 * modules/unistr/u16-strmblen: New file.
16371 * modules/unistr/u32-strmblen: New file.
16372 * lib/unistr/u8-strmblen.c: New file.
16373 * lib/unistr/u16-strmblen.c: New file.
16374 * lib/unistr/u32-strmblen.c: New file.
16376 * modules/unistr/u8-strmbtouc: New file.
16377 * modules/unistr/u16-strmbtouc: New file.
16378 * modules/unistr/u32-strmbtouc: New file.
16379 * lib/unistr/u8-strmbtouc.c: New file.
16380 * lib/unistr/u16-strmbtouc.c: New file.
16381 * lib/unistr/u32-strmbtouc.c: New file.
16383 * modules/unistr/u8-strncat: New file.
16384 * modules/unistr/u16-strncat: New file.
16385 * modules/unistr/u32-strncat: New file.
16386 * lib/unistr/u8-strncat.c: New file.
16387 * lib/unistr/u16-strncat.c: New file.
16388 * lib/unistr/u32-strncat.c: New file.
16389 * lib/unistr/u-strncat.h: New file.
16391 * modules/unistr/u8-strncmp: New file.
16392 * modules/unistr/u16-strncmp: New file.
16393 * modules/unistr/u32-strncmp: New file.
16394 * lib/unistr/u8-strncmp.c: New file.
16395 * lib/unistr/u16-strncmp.c: New file.
16396 * lib/unistr/u32-strncmp.c: New file.
16398 * modules/unistr/u8-strncpy: New file.
16399 * modules/unistr/u16-strncpy: New file.
16400 * modules/unistr/u32-strncpy: New file.
16401 * lib/unistr/u8-strncpy.c: New file.
16402 * lib/unistr/u16-strncpy.c: New file.
16403 * lib/unistr/u32-strncpy.c: New file.
16404 * lib/unistr/u-strncpy.h: New file.
16406 * modules/unistr/u8-strnlen: New file.
16407 * modules/unistr/u16-strnlen: New file.
16408 * modules/unistr/u32-strnlen: New file.
16409 * lib/unistr/u8-strnlen.c: New file.
16410 * lib/unistr/u16-strnlen.c: New file.
16411 * lib/unistr/u32-strnlen.c: New file.
16412 * lib/unistr/u-strnlen.h: New file.
16414 * modules/unistr/u8-strpbrk: New file.
16415 * modules/unistr/u16-strpbrk: New file.
16416 * modules/unistr/u32-strpbrk: New file.
16417 * lib/unistr/u8-strpbrk.c: New file.
16418 * lib/unistr/u16-strpbrk.c: New file.
16419 * lib/unistr/u32-strpbrk.c: New file.
16420 * lib/unistr/u-strpbrk.h: New file.
16422 * modules/unistr/u8-strrchr: New file.
16423 * modules/unistr/u16-strrchr: New file.
16424 * modules/unistr/u32-strrchr: New file.
16425 * lib/unistr/u8-strrchr.c: New file.
16426 * lib/unistr/u16-strrchr.c: New file.
16427 * lib/unistr/u32-strrchr.c: New file.
16429 * modules/unistr/u8-strspn: New file.
16430 * modules/unistr/u16-strspn: New file.
16431 * modules/unistr/u32-strspn: New file.
16432 * lib/unistr/u8-strspn.c: New file.
16433 * lib/unistr/u16-strspn.c: New file.
16434 * lib/unistr/u32-strspn.c: New file.
16435 * lib/unistr/u-strspn.h: New file.
16437 * modules/unistr/u8-strstr: New file.
16438 * modules/unistr/u16-strstr: New file.
16439 * modules/unistr/u32-strstr: New file.
16440 * lib/unistr/u8-strstr.c: New file.
16441 * lib/unistr/u16-strstr.c: New file.
16442 * lib/unistr/u32-strstr.c: New file.
16443 * lib/unistr/u-strstr.h: New file.
16445 * modules/unistr/u8-strtok: New file.
16446 * modules/unistr/u16-strtok: New file.
16447 * modules/unistr/u32-strtok: New file.
16448 * lib/unistr/u8-strtok.c: New file.
16449 * lib/unistr/u16-strtok.c: New file.
16450 * lib/unistr/u32-strtok.c: New file.
16451 * lib/unistr/u-strtok.h: New file.
16453 * modules/unistr/u8-uctomb: New file.
16454 * modules/unistr/u16-uctomb: New file.
16455 * modules/unistr/u32-uctomb: New file.
16456 * lib/unistr/u8-uctomb.c: New file.
16457 * lib/unistr/u16-uctomb.c: New file.
16458 * lib/unistr/u32-uctomb.c: New file.
16460 * MODULES.html.sh (Unicode string functions): Add the new modules.
16462 2007-01-08 Bruno Haible <bruno@clisp.org>
16464 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
16465 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
16468 2007-01-08 Karl Berry <karl@gnu.org>
16470 * doc/error.texi: mention that main() fns must set program_name
16471 when progname is used.
16473 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
16475 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
16476 WCTYPE_H is empty, for the benefit of builds from non-distclean
16477 directories. Problem reported by Eric Blake in
16478 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
16480 2007-01-08 Bruno Haible <bruno@clisp.org>
16482 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
16483 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
16484 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
16485 PROVIDE_CANONICALIZE_FILENAME_MODE.
16486 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
16488 2007-01-08 Bruno Haible <bruno@clisp.org>
16490 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
16491 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
16492 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
16493 * lib/fts.c: Likewise.
16494 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
16496 2006-12-25 Bruno Haible <bruno@clisp.org>
16498 * modules/utf8-ucs4-safe: New file.
16499 * lib/utf8-ucs4-safe.h: New file.
16500 * lib/unistr/utf8-ucs4-safe.c: New file.
16502 * modules/utf16-ucs4-safe: New file.
16503 * lib/utf16-ucs4-safe.h: New file.
16504 * lib/unistr/utf16-ucs4-safe.c: New file.
16506 * MODULES.html.sh (Unicode string functions): Add the new modules.
16508 2007-01-08 Bruno Haible <bruno@clisp.org>
16510 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
16511 (Depends-on): Add unitypes.
16512 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
16513 (u8_mbtouc_aux): Move out to separate file.
16514 (u8_mbtouc): Use ucs4_t, uint8_t types.
16515 * lib/unistr/utf8-ucs4.c: New file.
16517 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
16518 (Depends-on): Add unitypes.
16519 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
16520 (u16_mbtouc_aux): Move out to separate file.
16521 (u16_mbtouc): Use ucs4_t, uint16_t types.
16522 * lib/unistr/utf16-ucs4.c: New file.
16524 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
16525 (Depends-on): Add unitypes.
16526 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
16527 (u8_uctomb_aux): Move out to separate file.
16528 (u8_uctomb): Use ucs4_t, uint8_t types.
16529 * lib/unistr/ucs4-utf8.c: New file.
16531 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
16532 (Depends-on): Add unitypes.
16533 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
16534 (u16_uctomb_aux): Move out to separate file.
16535 (u16_uctomb): Use ucs4_t, uint16_t types.
16536 * lib/unistr/ucs4-utf16.c: New file.
16538 2006-12-25 Bruno Haible <bruno@clisp.org>
16540 * modules/unitypes: New file.
16541 * lib/unitypes.h: New file.
16542 * MODULES.html.sh (func_all_modules): New section "Unicode string
16543 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
16544 this section. Add unitypes.
16546 2007-01-08 Bruno Haible <bruno@clisp.org>
16548 Avoid variable names that conflict with those from libtool.
16549 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
16550 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
16551 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
16552 library_names_spec to acl_library_names_spec, hardcode_* to
16554 Reported by Ralf Wildenhues.
16556 2007-01-08 Bruno Haible <bruno@clisp.org>
16558 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
16560 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
16562 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
16563 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
16565 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
16567 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
16568 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
16569 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
16570 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
16572 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
16574 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
16575 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
16576 GC_USE_<algorithm>.
16577 * lib/gc-libgcrypt.c: Likewise.
16578 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
16579 * modules/gc-arctwo (configure.ac): Likewise.
16580 * modules/gc-des (configure.ac): Likewise.
16581 * modules/gc-hmac-md5 (configure.ac): Likewise.
16582 * modules/gc-hmac-sha1 (configure.ac): Likewise.
16583 * modules/gc-md2 (configure.ac): Likewise.
16584 * modules/gc-md4 (configure.ac): Likewise.
16585 * modules/gc-md5 (configure.ac): Likewise.
16586 * modules/gc-random (configure.ac): Likewise.
16587 * modules/gc-rijndael (configure.ac): Likewise.
16588 * modules/gc-sha1 (configure.ac): Likewise.
16590 2007-01-08 Bruno Haible <bruno@clisp.org>
16592 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
16594 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
16596 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
16598 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
16599 * modules/fcntl-safer (configure.ac): Likewise.
16600 * modules/fopen-safer (configure.ac): Likewise.
16601 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
16602 GNULIB_FWRITEERROR macro definition.
16604 2007-01-08 Bruno Haible <bruno@clisp.org>
16606 * m4/gnulib-common.m4: New file.
16607 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
16608 (func_get_filelist): Add m4/gnulib-common.m4.
16610 2007-01-08 Bruno Haible <bruno@clisp.org>
16612 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
16615 2007-01-08 Jim Meyering <jim@meyering.net>
16617 Use a more robust test for a "can't happen" condition.
16618 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
16619 narrowed the st_size value. Presuming the "can't happen" condition
16620 is true, that narrowing could conceivably convert an invalid st_size
16621 value into a valid one. Instead, use a change based on Matthew
16622 Woehlke's original patch.
16624 Slight readability improvement: use an assert-like macro
16625 in place of literal "abort ()" uses.
16626 * lib/fts.c (fts_assert): Define.
16627 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
16628 Use this macro instead of a bare 'abort'.
16630 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
16632 Don't worry about using IRIX 5.3's wctype.h broken definitions;
16633 simply work around them.
16634 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
16635 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
16636 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
16638 Don't bother to define as macros, since the standard doesn't require it.
16639 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
16640 longer worry about IRIX 5.3.
16641 (HAVE_WCTYPE_CTMP_BUG): Remove.
16643 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
16645 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
16646 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
16647 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
16648 Problems reported by Georg Schwarz for IRIX 5.3.
16650 * gnulib-tool (autoconf_minversion): Take the maximum version number
16651 found, not the minimum. Problem reported by James Youngman.
16653 2007-01-03 Karl Berry <karl@gnu.org>
16655 * doc/error.texi: new file, explaining interaction with progname.
16656 * doc/gnulib.texi: include it. Update copyright.
16658 2007-01-03 Simon Josefsson <simon@josefsson.org>
16660 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
16661 AC_CANONICAL_HOST, to improve autobuild outputs.
16663 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
16664 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16666 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
16667 sockets, server sockets, and other file descriptors. Count errors
16668 to compute the return value. Reorder the code a bit to be easier
16669 to follow. Don't set event bits that were not requested (except
16670 POLLERR and POLLHUP).
16672 2007-01-01 Bruno Haible <bruno@clisp.org>
16674 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
16676 2007-01-03 Jim Meyering <jim@meyering.net>
16678 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
16680 2007-01-02 Bruno Haible <bruno@clisp.org>
16682 * modules/settime (Include): Require timespec.h.
16683 * modules/nanosleep (Include): Likewise.
16685 2007-01-01 Bruno Haible <bruno@clisp.org>
16687 * gnulib-tool (func_emit_copyright_notice): Bump year.
16688 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
16690 2007-01-01 Bruno Haible <bruno@clisp.org>
16692 Improve support for OpenBSD.
16693 * build-aux/config.rpath (libname_spec): Export.
16694 (library_names_spec): New variable. Export.
16695 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
16696 library_names_spec from the config.rpath output. Locate shared library
16697 through the name pattern in library_names_spec.
16699 2007-01-01 Eric Blake <ebb9@byu.net>
16701 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
16703 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
16705 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
16706 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
16707 assume the C locale, and avoid an "eval" that could cause trouble.
16708 Problem with SORT reported by Bob Proulx.
16710 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
16711 Define. Trivial patch from Henning Nielsen Lund, originally
16712 sent to bug-grep@gnu.org today.
16714 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
16716 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
16717 struct stat. Problem reported by Henning Nielsen Lund.
16718 * lib/acl.c: Include acl.h first, to check interface. Don't
16719 bother to include sys/types.h and sys/stat.h again.
16721 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
16723 Import the following change from libc; problem reported by
16726 2005-10-13 Ulrich Drepper <drepper@redhat.com>
16729 * lib/argp.h: Remove __NTH for __argp_usage inline function.
16731 2006-12-28 Jim Meyering <jim@meyering.net>
16733 * build-aux/announce-gen: Do not assume that the package
16734 builds any of tar.gz, tar.bz2, and .xdelta files.
16735 Suggestion from Simon Josefsson.
16737 2006-12-28 Simon Josefsson <simon@josefsson.org>
16739 * modules/announce-gen: New file.
16741 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
16743 * lib/mbchar.h: Just include <wctype.h>; the wctype module
16744 handles its gotchas now.
16745 * lib/mbswidth.c: Likewise.
16746 * lib/wcwidth.h: Likewise.
16747 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
16748 and iswcntrl; the wctype module does this stuff now.
16749 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
16750 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16751 * modules/mbchar (Depends-on): Add wctype.
16752 * modules/mbswidth (Depends-on): Likewise.
16753 * modules/wcwidth (Depends-on): Likewise.
16755 2006-12-27 Eric Blake <ebb9@byu.net>
16757 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
16758 module uses more than what <wctype.h> is required to provide.
16760 2006-12-26 Eric Blake <ebb9@byu.net>
16762 * gnulib-tool (sed_extract_prog): Avoid space-tab.
16764 2006-12-26 Eric Blake <ebb9@byu.net>
16766 * modules/absolute-header: New module.
16767 * modules/fcntl (Depends-on): Depend on it.
16768 * modules/inttypes (Depends-on): Likewise.
16769 * modules/stdint (Depends-on): Likewise.
16770 * modules/sys_stat (Depends-on): Likewise.
16771 * modules/wctype (Depends-on): Likewise.
16772 * MODULES.html.sh (Support for building libraries and
16773 executables): Document it.
16775 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
16777 * gnulib-tool (SED): Remove, undoing previous change.
16778 The problem was that it broke coreutils on Solaris, because
16779 "sed --posix" leaked into a makefile.
16780 (sed): New alias, if 'alias' and GNU sed.
16782 2006-12-24 Jim Meyering <jim@meyering.net>
16784 Work around an fchownat bug in glibc-2.4:
16785 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
16786 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
16787 in spite of the -P option.
16788 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
16790 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
16791 * modules/openat (Files): Add lib/fchownat.c.
16792 * lib/openat.c (fchownat): Don't define here. Move to...
16793 * lib/fchownat.c: ...this new file.
16795 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
16797 Fix bug reported by Bruno Haible in
16798 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
16799 where quotearg.c didn't compile on Mac OS X 10.2 because it
16800 lacks <wchar.h> and wint_t.
16801 * lib/wctype_.h (__wctype_wint_t): New type.
16802 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
16803 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
16804 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
16805 Arg is now of type __wctype_wint_t, not wint_t.
16806 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
16807 substitute HAVE_WINT_T.
16808 * modules/wctype (Files): Add m4/wint_t.m4.
16809 (wctype.h): Substitute HAVE_WINT_T.
16811 2006-12-23 Bruno Haible <bruno@clisp.org>
16813 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
16815 2006-12-23 Bruno Haible <bruno@clisp.org>
16817 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
16819 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
16822 2006-12-22 Bruno Haible <bruno@clisp.org>
16824 * lib/copy-file.c: Include acl.h.
16825 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
16826 Close the file descriptors only after being done with copy_acl.
16827 * modules/copy-file (Depends-on): Add acl.
16829 2006-12-22 Bruno Haible <bruno@clisp.org>
16831 * gnulib-tool (SED): New variable.
16832 Use $SED instead of sed everywhere.
16834 2006-12-22 Bruno Haible <bruno@clisp.org>
16836 * modules/no-c++: New file.
16837 * m4/no-c++.m4: New file.
16838 * MODULES.html.sh (Support for building libraries and executables):
16841 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
16843 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
16844 Include <limits.h>, and use its INT_MAX to rewrite the
16845 j loop so that it does not overflow 'int'. Problem reported by
16847 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
16848 Play it safe by shifting left by 1 rather than multiplying by 2,
16849 as GCC is less likely to optimize this away when the value
16850 is signed (when it assumes overflow leads to undefined behavior).
16851 Also, don't assume time_t uses two's complement.
16853 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
16855 * MODULES.html.sh: New module wctype.
16856 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
16857 * lib/fnmatch.c: Don't bother to include <wchar.h> before
16858 <wctype.h>, since the new wctype module should fix this.
16859 * lib/quotearg.c: Include <wctype.h> unconditionally, since
16860 the wctype module should arrange for it.
16861 * lib/regex_internal.h: Likewise.
16862 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
16863 since the wctype module should handle this now.
16864 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
16865 * modules/fnmatch (Depends-on): Add wctype.
16866 * modules/quotearg (Depends-on): Likewise.
16867 * modules/regex (Depends-on): Likewise.
16869 2006-12-19 Bruno Haible <bruno@clisp.org>
16871 * lib/strdup.h [C++]: Wrap definitions in extern "C".
16872 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
16874 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16876 * modules/savewd (Depends-on): Fix dependency on fcntl.
16878 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
16880 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
16881 conforms to C99, rather than relying on the user's environment
16882 setting of STDINT_H.
16884 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
16885 and Eric Blake <ebb9@byu.net>
16887 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
16888 This is more consistent with the other defines here.
16889 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
16890 Port to z/OS. Problem reported by Paul Gilmartin.
16891 Change local vars to use gl_ prefix rather than ac_.
16892 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
16893 with other defines.
16894 * modules/double-slash-root: New module.
16895 * modules/dirname (Files): Remove m4/double-slash-root.m4.
16896 (Depends-on): Add double-slash-root.
16897 * MODULES.html.sh (File system functions): Mention new module.
16899 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
16901 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
16902 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
16903 This is for the benefit of gzip, which doesn't do i18n.
16905 2006-12-12 Jim Meyering <jim@meyering.net>
16907 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
16908 Reported by Andreas Schwab <schwab@suse.de>.
16910 2006-12-12 Bruno Haible <bruno@clisp.org>
16912 Merge these changes.
16913 2006-09-05 Bruno Haible <bruno@clisp.org>
16914 * lib/iconvme.c (iconv_string): No need to save and restore errno when
16915 iconv_alloc succeeded.
16916 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
16917 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
16918 test for " && dest " at the end - dest is always != NULL there. Call
16919 iconv with 4xNULL arguments initially, to reset the state. Call iconv
16920 with 2xNULL arguments, also to flush the state storage. Handle the
16921 IRIX iconv behaviour. Realloc the final result, to throw away unused
16924 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
16926 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
16927 and fchmodat unconditionally, since glibc 2.4 has them.
16928 Problem reported by Arkadiusz Miskiewicz.
16930 2006-12-10 Bruno Haible <bruno@clisp.org>
16932 * gnulib-tool (func_import): Show the include files only for those
16933 modules that are copied and specified.
16934 Reported by Karl Berry.
16936 2006-12-08 Jim Meyering <jim@meyering.net>
16938 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
16939 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
16941 * build-aux/announce-gen: Add two new options, both optional:
16942 --bootstrap-tools=TOOL_LIST
16943 a comma-separated list of tools, e.g.,
16944 autoconf,automake,bison,gnulib
16945 --gnulib-snapshot-date=DATE
16946 if gnulib is in the bootstrap tool list,
16947 then report this as the snapshot date.
16948 If not specified, use the current date/time.
16949 If you specify a date here, be sure it's UTC.
16951 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16953 * tests/test-argp-2.sh: Fix test to match actual output.
16954 (func_compare): Fix sed script to be portable.
16956 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
16958 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
16959 workaround for this case. It is not autoconfigured now; offhand
16960 it's hard to see how to autoconfigure it.
16962 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
16964 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
16965 a directory that is about to be chowned. Such a directory's
16966 initial file permissions should permit the owner only and this
16967 should not be changed until after the chown, since the group and
16968 other bits would be incorrect if they granted permission before
16971 Fix porting problem for iswctype reported by Georg Schwarz in:
16972 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
16973 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
16974 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
16975 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
16976 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
16978 2006-12-03 Jim Meyering <jim@meyering.net>
16980 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
16981 p->fts_statp may not yet be defined.
16982 (fts_read): Instead, set it in the caller, once p->fts_statp is
16983 sure to be defined, and corresponds to a top-level directory.
16984 This bug made du -x fail. Here's the coreutils test case:
16985 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
16986 Reported by Mike Frysinger.
16988 2006-12-01 Jim Meyering <jim@meyering.net>
16990 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
16991 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
16992 Reported by Simon Josefsson.
16994 2006-11-30 Jim Meyering <jim@meyering.net>
16996 * m4/warning.m4: Use the all-permissive copyright notice
16997 recommended by RMS (rather than LGPL).
16998 * m4/vararrays.m4: Likewise.
16999 * m4/flexmember.m4: Likewise.
17001 2006-11-29 Bruno Haible <bruno@clisp.org>
17003 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
17004 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
17006 Reported by Simon Josefsson <simon@josefsson.org>.
17008 2006-11-28 James Youngman <jay@gnu.org>
17010 * README: Advise users that they might find the bug-gnulib@gnu.org
17011 and autotools-announce@gnu.org mailing lists useful.
17013 2006-11-28 Bruno Haible <bruno@clisp.org>
17015 * m4/ptrdiff_max.m4: Remove file.
17017 2006-11-21 Bruno Haible <bruno@clisp.org>
17019 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
17021 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
17022 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
17024 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
17025 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
17027 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
17029 2006-11-28 Jim Meyering <jim@meyering.net>
17031 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
17032 warning from "gcc -Wshadow" about shadowing the builtin.
17034 2006-11-27 Bruno Haible <bruno@clisp.org>
17036 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
17038 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
17040 2006-11-27 Bruno Haible <bruno@clisp.org>
17041 Paul Eggert <eggert@cs.ucla.edu>
17043 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
17045 2006-11-26 Bruno Haible <bruno@clisp.org>
17047 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
17048 noinst_LTLIBRARIES.
17050 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
17051 Bruno Haible <bruno@clisp.org>
17053 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
17054 if compiling with "gcc -ansi".
17056 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
17058 Fix some incompatibilities with gcc -ansi -pedantic.
17059 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
17060 if compiling pedantically with GCC, unless it's C99 or later.
17061 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
17062 it mishandles gcc -ansi -pedantic as well.
17063 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
17065 * lib/regexec.c (check_node_accept_bytes): Don't use auto
17066 initializers for struct if -pedantic, unless it's C99 or later.
17068 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
17070 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
17071 Don't close an fd more than once. Identical atimes indicate
17072 success, not failure.
17074 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
17076 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
17078 2006-11-23 Jim Meyering <jim@meyering.net>
17080 * build-aux/announce-gen: New file. From coreutils.
17082 2006-11-22 Jim Meyering <jim@meyering.net>
17084 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
17085 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
17086 (fts_read): Use a temporary to narrow the overused st_size member
17087 before using it in a switch statement. Reported by Matthew Woehlke.
17089 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
17090 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
17092 2006-11-20 Bruno Haible <bruno@clisp.org>
17094 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
17095 changequote instead of pairs of brackets.
17096 Reported by Andreas Schwab <schwab@suse.de>.
17098 2006-11-21 Jim Meyering <jim@meyering.net>
17100 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
17101 so as to remain compatible with older compilers.
17102 Patch from Michael Deutschmann.
17104 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
17106 * MODULES.html.sh (File system functions): Add openat.
17108 * lib/openat.h (rpl_fstatat): New macro, if
17109 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
17110 (fstatat): Define to rpl_fstatat under the same conditions,
17111 unless COMPILING_FSTATAT.
17112 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
17113 seems to have the bug.
17114 * lib/fstatat.c: New file.
17115 * modules/openat (Files): Add it.
17117 2006-11-20 Bruno Haible <bruno@clisp.org>
17119 * Makefile: New file.
17121 2006-11-20 Jim Meyering <jim@meyering.net>
17123 The beginnings of syntax-related checks for gnulib.
17124 * lib/Makefile: New file.
17125 * lib/t-idcache: New script. Ensure that the two halves of
17126 idcache.c stay in sync.
17128 * lib/idcache.c: Adjust comments in user- and group- portions to
17129 be more accurate, and to be consistent with one another.
17131 2006-11-20 Jim Meyering <jim@meyering.net>
17133 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
17134 continue using the flexible array member (thus, this module performs
17135 half as many malloc calls), with the addition that...
17136 (getgroup, getuser): Consistently record a non-match via an empty
17137 "name" string, and map an empty string match to a NULL return value.
17138 * modules/idcache (Depends-on): Re-add flexmember.
17140 * lib/idcache.c (getuser): Remove all uses of the register keyword.
17141 (getuidbyname, getgroup, getgidbyname): Likewise.
17143 Use cleaner syntax: NULL rather than 0.
17144 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
17146 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
17148 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
17149 It mishandled the case where the group was missing.
17150 Problem reported by Greg Schafer.
17151 * modules/idcache: Likewise.
17153 2006-11-18 Jim Meyering <jim@meyering.net>
17155 * check-module (%exempt_header): Add exception for some
17156 conditionally-included headers.
17158 * modules/i-ring (Depends-on): Add verify.
17159 (License): Change to LGPL.
17161 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
17163 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
17164 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
17165 and inttostr.h. Use snprintf rather than uinttostr, so that
17166 LGPLed code doesn't depend on GPLed.
17168 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
17170 * modules/inline (License): Change from GPL to LGPL.
17172 2006-11-17 Jim Meyering <jim@meyering.net>
17174 * modules/d-type (License): Switch to LGPL.
17176 2006-11-15 Bruno Haible <bruno@clisp.org>
17178 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
17180 2006-11-15 Eric Blake <ebb9@byu.net>
17182 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
17183 the module dependency.
17185 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17186 Bruno Haible <bruno@clisp.org>
17188 * gnulib-tool (func_create_testdir): Add license consistency check.
17190 2006-11-15 Eric Blake <ebb9@byu.net>
17192 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
17193 random "(cached)" in configure output.
17195 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17197 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
17198 test for conforming inttypes.h is both announced and cached.
17200 * MODULES.html.sh (seen_modules, seen_files): New variables.
17201 (func_module): Rewrite to use a few less gnulib-tool and sed
17202 invocations. Avoid a couple of quadratic algorithms for ...
17203 (missed_modules, missed_files): ... these, with ...
17204 (func_append, func_tmpdir): ... these new functions, from
17205 gnulib-tool. Analogously, install traps for cleanup.
17207 * tests/test-gc.c (main): Remove unused variables.
17208 * tests/test-read-file.c: Include stdlib.h, for 'free'.
17210 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
17212 * modules/inttostr (License): Change to LGPL.
17214 2006-11-14 Eric Blake <ebb9@byu.net>
17216 * modules/tempname (License): Change to LGPL.
17218 2006-11-14 Eric Blake <ebb9@byu.net>
17220 * doc/functions.texi (Function Portability): *printf functions on
17221 Cygwin now understand all POSIX size specifiers.
17223 2006-11-14 Bruno Haible <bruno@clisp.org>
17225 * modules/c-ctype (License): Change to LGPL.
17227 2006-11-12 Bruno Haible <bruno@clisp.org>
17229 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
17230 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
17231 for GNOME libraries, for which the include files are installed in
17232 subdirectories of $prefix/include.
17234 2006-11-12 Bruno Haible <bruno@clisp.org>
17236 * m4/lib-link.m4: Require at least autoconf-2.54.
17237 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
17238 name to underscores for the --with option.
17240 2006-11-13 Bruno Haible <bruno@clisp.org>
17242 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
17243 the tests directory.
17244 Reported by Ralf Wildenhues.
17246 2006-11-13 Bruno Haible <bruno@clisp.org>
17248 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
17249 (func_emit_initmacro_end): Undo the override here.
17250 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
17251 Works around the famous automake error in coreutils.
17253 2006-11-13 Eric Blake <ebb9@byu.net>
17255 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
17256 element, not its node.
17258 2006-11-12 Bruno Haible <bruno@clisp.org>
17260 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
17261 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
17263 2006-11-12 Bruno Haible <bruno@clisp.org>
17265 * gnulib-tool: New option --local-symlink.
17266 (func_usage): Document it.
17267 (lsymbolic): New variable.
17268 (func_import, func_create_testdir): If --symlink was not specified,
17269 test whether --local-symlink was specified and the file comes from
17270 the local_gnulib_dir.
17272 2006-11-12 Bruno Haible <bruno@clisp.org>
17274 * gnulib-tool (func_ln): New function.
17275 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
17277 2006-11-12 Bruno Haible <bruno@clisp.org>
17279 Finish support for source files in subdirectories.
17280 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
17281 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
17283 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
17285 2006-11-12 Bruno Haible <bruno@clisp.org>
17287 * gnulib-tool (func_get_automake_snippet): Synthesize also an
17288 EXTRA_lib_SOURCES augmentation.
17289 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
17291 2006-11-12 Jim Meyering <jim@meyering.net>
17293 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
17294 file descriptors. This also averts a failure on systems with
17295 native openat support when a traversed directory lacks "x" access.
17296 * lib/fts_.h: Include "i-ring.h"
17297 (struct FTS) [fts_fd_ring]: New member.
17298 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
17299 (FCHDIR): Add parentheses.
17300 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
17301 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
17302 When descending, rather than simply closing the previous
17303 fts_cwd_fd value, push that file descriptor onto the ring.
17304 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
17305 (fts_open): Initialize the new fd_ring member.
17306 (fts_close): Clear the ring.
17307 (fts_safe_changedir): When possible, use our new fd_ring to skip
17308 the diropen and fstat and dev/ino comparison that would normally
17309 accompany a virtual `chdir ("..")'.
17311 * modules/fts (Depends-on): Add i-ring.
17312 * modules/i-ring: New module.
17313 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
17314 * m4/i-ring.m4: New file.
17316 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17318 * gnulib-tool (func_create_testdir): Fix replacement of
17319 `build-aux' in configure.ac. Run autotools in gltests
17321 (func_create_testdir, func_create_megatestdir, test): There is
17322 no need for '--force' in most autotool invocations in a new
17323 tree. Actually fail the whole test if any of the tools, or the
17324 configure or make stages fail.
17326 Sync from Automake.
17327 * build-aux/gnupload: Revert last change. Add pointer to upload
17328 instructions of the GNU Maintenance Instructions.
17329 Suggestion by Karl Berry.
17331 2006-11-10 Jim Meyering <jim@meyering.net>
17333 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
17335 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
17337 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
17338 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
17339 (bind_textdomain_codeset) [! ENABLE_NLS]:
17340 Evaluate all the arguments. That way, callers get compatible behavior
17341 if the arguments have side effects. Also, it avoids some GCC
17342 diagnostics in some cases; Joel E. Denny reported problems when Bison
17343 was configured with --enable-gcc-warnigs.
17345 2006-11-10 Jim Meyering <jim@meyering.net>
17347 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
17348 relevant options in CFLAGS (like -O, -fno-inline) are taken into
17351 2006-11-10 Jim Meyering <jim@meyering.net>
17353 * modules/inline: New file/module.
17354 * modules/xalloc (Files): Remove m4/inline.m4.
17355 (Depends-on): Add inline, instead.
17356 * modules/oset: Likewise.
17357 * modules/list: Likewise.
17359 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
17361 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
17362 Problem reported by Matthew Woehlke.
17364 2006-11-09 Bruno Haible <bruno@clisp.org>
17366 * lib/tempname.c (gen_tempname): Remove variant that invokes
17368 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
17371 2006-11-08 Bruno Haible <bruno@clisp.org>
17373 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
17374 to 'yes' instead of 'cross-compiling'.
17376 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
17378 * lib/quotearg.h (quotearg_free): New decl.
17379 * lib/quotearg.c (quotearg_free): New function.
17380 (slot0, nslots, slotvec0, slotvec):
17381 Now file-scope so that quotearg_free can get at them.
17383 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17385 Sync from Automake.
17386 * build-aux/gnupload: Add missing 'gnu' to example URL.
17387 Report by Karl Berry.
17389 2006-11-08 Bruno Haible <bruno@clisp.org>
17391 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
17392 Suggested by Paul Eggert.
17394 2006-11-08 Jim Meyering <jim@meyering.net>
17396 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
17397 It's already included if !_LIBC.
17398 (fts_safe_changedir): Add a comment.
17400 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
17402 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
17403 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
17406 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
17407 definitions up, to avoid colliding with change below.
17408 (static_inline) [HAVE_INLINE]: New macro.
17409 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
17410 Provide extern decls when !HAVE_INLINE. Do not define unless
17411 static_inline is defined, either by us or by xmalloc.c. Use
17412 static_inline rather than static inline.
17413 (XCALLOC): Optimize sizeof(T) = 1 case.
17414 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
17416 2006-11-07 Bruno Haible <bruno@clisp.org>
17418 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
17419 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
17421 * modules/xalloc (Files): Add m4/inline.m4.
17423 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17425 * README: Fix typo.
17426 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
17427 (Miscellanous Notes): ...from this.
17429 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
17431 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
17432 Mention that offsetof should be used instead of sizeof.
17435 2006-11-07 Bruno Haible <bruno@clisp.org>
17437 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
17439 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
17441 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
17442 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
17443 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
17444 (gl_tree_add_before, gl_tree_add_after):
17445 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
17446 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
17447 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
17448 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
17449 (gl_linked_add_after, gl_linked_add_at): Likewise.
17450 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
17451 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
17452 (gl_tree_add_before, gl_tree_add_after): Likewise.
17453 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
17454 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
17455 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
17457 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17459 * lib/gl_oset.h: Use C comment style, not C++ comment style.
17461 2006-11-06 Bruno Haible <bruno@clisp.org>
17463 * m4/inline.m4: New file.
17464 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
17465 * modules/list (Files): Add m4/inline.m4.
17466 * modules/oset (Files): Likewise.
17468 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
17470 * lib/idcache.c: Include <stddef.h>, for offsetof.
17471 (struct userid.name): Change from char * to a flexible array member.
17473 * modules/idcache (Depends-on): Add flexmember.
17475 * MODULES.html.sh (Core language properties): New module flexmember.
17476 * modules/flexmember, m4/flexmember.m4: New files.
17478 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
17479 inline functions that are identical with the old xnmalloc_inline,
17480 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
17481 that we can avoid some unnecessary integer multiplications and
17482 divisions in the common case where the element size is known at
17484 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
17486 (xnboundedmalloc): Remove.
17487 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
17488 arguments, for consistency with rest of this header.
17489 (xcharalloc): Rewrite using XNMALLOC.
17490 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
17491 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
17492 versions have been moved to lib/xalloc.h and renamed to be the
17493 non-*_inline versions.
17494 (xmalloc, xrealloc): Implement without reference to the xnmalloc
17495 and xnrealloc functions, since those functions are now inline and
17497 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
17498 renaming described above.
17499 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
17500 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
17501 captures the dependency in AC_C_INLINE.
17503 New module canonicalize-lgpl, proposed by Charles Wilson in
17504 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
17505 with a few small changes afterwards.
17506 * MODULES.html.sh (File system functions): New module
17508 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
17509 and canonicalize_file_name.
17510 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
17511 * modules/canonicalize-lgpl: New files.
17513 2006-11-05 Bruno Haible <bruno@clisp.org>
17515 * gnulib-tool (func_import, func_create_testdir): Create directories
17516 also for files in subdirectories of lib/.
17518 2006-11-05 Bruno Haible <bruno@clisp.org>
17520 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
17523 2006-11-03 Bruno Haible <bruno@clisp.org>
17525 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
17526 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
17527 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
17528 (xnboundedmalloc): New inline function.
17529 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
17530 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
17532 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
17534 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
17535 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
17536 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
17538 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
17539 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
17541 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
17542 gl_tree_add_after): Use XMALLOC instead of xmalloc.
17543 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
17545 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
17546 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
17547 gl_tree_add_after): Use XMALLOC instead of xmalloc.
17548 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
17549 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
17550 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
17551 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
17553 2006-11-03 Bruno Haible <bruno@clisp.org>
17555 * lib/c-ctype.h [C++]: Define functions without name mangling.
17556 * lib/fwriteerror.h [C++]: Likewise.
17557 * lib/gcd.h [C++]: Likewise.
17558 * lib/linebreak.h [C++]: Likewise.
17560 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
17562 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
17563 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
17564 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
17565 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
17566 Check for functions and headers just once.
17567 Check for declaration of canonicalize_file_name.
17568 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
17570 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
17572 * gnulib-tool (func_import): Fix typo in actioncmd.
17574 2006-11-02 Bruno Haible <bruno@clisp.org>
17576 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
17577 newline sequence in the Makefile.am snippet as a space, like "make"
17579 Reported by Roger Persson <perrog@gmail.com>.
17581 2006-11-01 Bruno Haible <bruno@clisp.org>
17583 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
17584 already declared in <string.h>.
17585 * lib/strcase.h (strncasecmp): Don't declare it if yes.
17587 2006-11-01 Bruno Haible <bruno@clisp.org>
17589 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
17590 * lib/strcase.h: Include <string.h>.
17591 (strcasecmp): Define to rpl_strcasecmp here.
17593 2006-11-01 Bruno Haible <bruno@clisp.org>
17595 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
17597 2006-11-01 Eric Blake <ebb9@byu.net>
17599 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
17601 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
17603 2006-10-29 Bruno Haible <bruno@clisp.org>
17605 Make it compile in C++ mode.
17606 * lib/full-write.c (full_rw): Add a cast.
17608 2006-11-01 Bruno Haible <bruno@clisp.org>
17610 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
17611 be POSIX compliant.
17612 Reported by Roger Persson <perrog@gmail.com>.
17614 2006-11-01 Eric Blake <ebb9@byu.net>
17616 * lib/getopt_.h: Fix comments.
17618 2006-10-31 Eric Blake <ebb9@byu.net>
17620 * modules/tmpdir (Depends-on): Add sys_stat.
17621 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
17622 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
17623 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
17624 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
17627 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
17629 Avoid some C++ diagnostics reported by Bruno Haible.
17630 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
17632 (quotearg_alloc): Use xcharalloc rather than xmalloc.
17633 (struct slotvec): Move to top level.
17634 (quotearg_n_options): Rewrite to avoid xmalloc.
17635 * lib/xalloc.h (xcharalloc): New function.
17636 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
17637 [defined __cplusplus]: Add function template that provides result
17638 type propagation. This part of the change is from Bruno Haible.
17640 2006-10-29 Bruno Haible <bruno@clisp.org>
17642 Make it compile in C++ mode.
17643 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
17644 * lib/strnlen1.c (strnlen1): Cast memchr result.
17645 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
17646 * lib/clean-temp.c (string_equals, string_hash): Add casts.
17647 (create_temp_dir): Rename local variable 'template'.
17648 (compile_csharp_using_sscli): Add cast.
17649 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
17650 * lib/findprog.c (find_in_path): Likewise.
17651 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
17652 * lib/wait-process.c (register_slave_subprocess): Likewise.
17654 2006-10-22 Bruno Haible <bruno@clisp.org>
17656 * modules/tsearch: New file.
17657 * lib/tsearch.h: New file.
17658 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
17659 * m4/tsearch.m4: New file.
17660 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
17662 2006-10-29 Eric Blake <ebb9@byu.net>
17664 * lib/arcfour.c: Assume config.h.
17665 * lib/arctwo.c: Likewise.
17666 * lib/base64.c: Likewise.
17667 * lib/check-version.c: Likewise.
17668 * lib/crc.c: Likewise.
17669 * lib/des.c: Likewise.
17670 * lib/gc-gnulib.c: Likewise.
17671 * lib/gc-libgcrypt.c: Likewise.
17672 * lib/gc-pbkdf2-sha1.c: Likewise.
17673 * lib/getaddrinfo.c: Likewise.
17674 * lib/getdelim.c: Likewise.
17675 * lib/getline.c: Likewise.
17676 * lib/hmac-md5.c: Likewise.
17677 * lib/hmac-sha1.c: Likewise.
17678 * lib/iconvme.c: Likewise.
17679 * lib/md2.c: Likewise.
17680 * lib/md4.c: Likewise.
17681 * lib/memxor.c: Likewise.
17682 * lib/read-file.c: Likewise.
17683 * lib/readline.c: Likewise.
17684 * lib/rijndael-alg-fst.c: Likewise.
17685 * lib/rijndael-api-fst.c: Likewise.
17686 * lib/xgetdomainname.c: Likewise.
17688 2006-10-28 Eric Blake <ebb9@byu.net>
17690 * lib/xstrndup.c: Assume config.h.
17692 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
17694 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
17695 stat-macros.h is now for our own macros, whereas stat_h is for
17696 macros in the <sys/stat.h> name space.
17697 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
17698 (STAT_MACROS_H): Remove.
17699 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
17700 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
17701 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
17702 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
17703 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
17704 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
17705 Move these macros to ...
17706 * lib/stat_.h: here. Don't include stat-macros.h.
17707 * lib/canonicalize.c: Don't include stat-macros.h.
17708 * lib/chown.c: Likewise.
17709 * lib/euidaccess.c: Likewise.
17710 * lib/file-type.c: Likewise.
17711 * lib/filemode.c: Likewise.
17712 * lib/glob.c: Likewise.
17713 * lib/isapipe.c: Likewise.
17714 * lib/lchown.c: Likewise.
17715 * lib/lstat.c: Likewise.
17716 * lib/mkdir-p.c: Likewise.
17717 * lib/rmdir.c: Likewise.
17718 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
17719 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
17720 unless mkdir isn't declared, to speed up 'configure'.
17721 Always create sys/stat.h, since it's unlikely any real sys/stat.h
17722 would define all the S_* symbols.
17723 * modules/canonicalize (Depends-on):
17724 Depend on sys_stat, not stat-macros.
17725 * modules/chown: Likewise.
17726 * modules/euidaccess: Likewise.
17727 * modules/filemode: Likewise.
17728 * modules/file-type: Likewise.
17729 * modules/glob: Likewise.
17730 * modules/isapipe: Likewise.
17731 * modules/lchown: Likewise.
17732 * modules/lstat: Likewise.
17733 * modules/mkancesdirs: Likewise.
17734 * modules/rmdir: Likewise.
17735 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
17736 * modules/modechange: Likewise.
17737 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
17738 (configure.ac): Remove gl_STAT_MACROS.
17739 * modules/sys_stat (Depends-on): Remove stat-macros.
17741 2006-10-27 Bruno Haible <bruno@clisp.org>
17743 * m4/signed.m4: Remove file.
17744 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
17746 * modules/vasnprintf (Files): Remove m4/signed.m4.
17748 2006-10-27 Bruno Haible <bruno@clisp.org>
17750 Update to GNU gettext 0.16.
17751 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
17752 m4/inttypes-h.m4, m4/signed.m4.
17753 * m4/gettext.m4: Update to GNU gettext 0.16.
17754 * m4/intl.m4: New file, from GNU gettext.
17755 * m4/intldir.m4: New file, from GNU gettext.
17756 * config/srclist.txt: Update
17758 2006-10-27 Eric Blake <ebb9@byu.net>
17760 * MODULES.html.sh: Document tempname.
17761 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
17763 (Files): Move lib/tempname.c...
17764 * modules/tempname: ...to this new module.
17765 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
17766 (gl_PREREQ_TEMPNAME): Move...
17767 * m4/tempname.m4: ...to this new file.
17768 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
17769 * modules/sys_stat (Depends-on): Add stat-macros.
17770 * lib/stat_.h (includes): Pick up stat macros.
17771 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
17772 if stat macros are broken.
17773 * lib/tempname.c (includes): No need to include "stat-macros.h".
17774 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
17775 (direxists, __path_search) [!_LIBC]: Don't compile these in
17776 gnulib; the tmpdir module covers that.
17777 * lib/tempname.h: New file.
17779 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
17781 * COPYING: Explain how gnulib-tool converts licence headers.
17782 Almost all wording by Eric Blake.
17784 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
17786 * lib/mbchar.h (is_basic_table): Make read-only.
17787 * lib/mbchar.c (is_basic_table): Likewise.
17788 Reported by John Darrington.
17790 2006-10-25 Bruno Haible <bruno@clisp.org>
17792 * lib/progname.h (set_program_name): Undefine before defining.
17794 2006-10-25 Bruno Haible <bruno@clisp.org>
17796 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
17797 false for non-gcc C++ compilers.
17798 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
17800 2006-10-24 Bruno Haible <bruno@clisp.org>
17802 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
17803 iconv implementations like Irix iconv.
17805 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
17807 * modules/vararrays: New file.
17808 * m4/vararrays.m4: New file, taken from diffutils.
17809 * MODULES.html.sh: New module vararrays.
17811 2006-10-24 Karl Berry <karl@gnu.org>
17813 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
17814 Don't call GNU Unix.
17816 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17818 * users.txt: Add Libtool.
17822 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
17824 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
17825 to gnulib's policy of including config.h unconditionally.
17827 2006-10-24 Bruno Haible <bruno@clisp.org>
17829 * modules/wcwidth (Files): Add m4/wint_t.m4.
17830 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
17831 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
17833 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
17835 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
17836 to pacify GCC with some -W flags enabled. Problem reported by
17839 2006-10-24 Jim Meyering <jim@meyering.net>
17841 * MODULES.html.sh: Remove uinttostr. It's not a module.
17842 Reported by Karl Berry.
17844 2006-10-23 Bruno Haible <bruno@clisp.org>
17846 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
17848 2006-10-24 Bruno Haible <bruno@clisp.org>
17850 * lib/gl_list.h: Use C comment style, not C++ comment style.
17852 2006-10-23 Eric Blake <ebb9@byu.net>
17854 * lib/getaddrinfo.c (includes): Add missing include.
17856 2006-10-23 Bruno Haible <bruno@clisp.org>
17857 Paul Eggert <eggert@cs.ucla.edu>
17859 Ability to rename obstack_free.
17860 * lib/obstack.h (__obstack_free): New macro. Declare instead of
17862 (obstack_free): Invoke the __obstack_free macro.
17863 * lib/obstack.c (obstack_free): Use __obstack_free macro.
17865 2006-10-23 Bruno Haible <bruno@clisp.org>
17866 Paul Eggert <eggert@cs.ucla.edu>
17868 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
17869 __argc, __argv from the declaration. (They are defined as macros on
17872 2006-10-22 Bruno Haible <bruno@clisp.org>
17874 * doc/gnulib-intro.texi: New file.
17875 * doc/gnulib.texi: Include it.
17877 2006-10-21 Bruno Haible <bruno@clisp.org>
17879 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
17880 "Introduction", "Miscellanous Notes", "Particular Modules".
17882 2006-10-21 Bruno Haible <bruno@clisp.org>
17884 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17885 Change mostlyclean-local rule to avoid sh syntax error from bash
17886 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
17888 2006-10-23 Jim Meyering <jim@meyering.net>
17890 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
17891 in place of snprintf.
17893 * modules/inttostr (Files): Add lib/uinttostr.c.
17894 * lib/uinttostr.c (inttostr): New file/function.
17895 * lib/inttostr.h (uinttostr): Declare.
17896 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
17897 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
17899 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
17901 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
17903 * lib/canonicalize.c (ELOOP): Define if not already defined.
17904 Problem reported by Bruno Haible in
17905 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
17907 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
17909 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
17910 Problem reported by Perry Smith and Ville Laurikari.
17912 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
17915 2006-10-19 Bruno Haible <bruno@clisp.org>
17917 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
17920 2006-10-19 Bruno Haible <bruno@clisp.org>
17922 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
17925 2006-10-19 Bruno Haible <bruno@clisp.org>
17927 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
17929 2006-10-19 Bruno Haible <bruno@clisp.org>
17931 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
17934 2006-10-19 Bruno Haible <bruno@clisp.org>
17936 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
17939 2006-10-19 Bruno Haible <bruno@clisp.org>
17941 * gnulib-tool (func_create_testdir): Don't include ftruncate and
17942 mountlist by default.
17944 2006-10-16 Bruno Haible <bruno@clisp.org>
17946 * lib/c-strstr.c: Include c-strstr.h.
17948 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
17950 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
17953 2006-10-18 Bruno Haible <bruno@clisp.org>
17955 * lib/lock.h [C++]: Wrap definitions in extern "C".
17957 2006-10-18 Bruno Haible <bruno@clisp.org>
17959 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
17962 2006-10-18 Bruno Haible <bruno@clisp.org>
17964 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
17966 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
17968 * lib/xstrtol.h: Include gettext.h.
17969 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
17970 Problem reported by Eric Blake.
17971 * modules/xstrtol (Depends-on): Add gettext-h.
17973 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
17975 * lib/strftime.c (advance): New macro.
17976 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
17977 incomplete type, so you can't add 0 to it. Problem and patch
17978 reported by Eelco Dolstra for dietlibc.
17980 2006-10-18 Jim Meyering <jim@meyering.net>
17982 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
17983 type for a local, and rename it: s/up/user_proc/.
17985 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
17987 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
17988 READ_UTMP_USER_PROCESS.
17989 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
17991 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
17993 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
17994 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
17996 2006-10-17 Eric Blake <ebb9@byu.net>
17998 * lib/sigprocmask.c (sigprocmask): Fix typo.
18000 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
18002 * modules/clean-temp (Makefile.am): Don't add to make output...
18003 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
18006 2006-10-17 Bruno Haible <bruno@clisp.org>
18008 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
18009 differently if DEFAULT_TEXT_DOMAIN is set.
18011 2006-10-16 Bruno Haible <bruno@clisp.org>
18013 * lib/clean-temp.c: Include fwriteerror.h.
18015 2006-10-16 Bruno Haible <bruno@clisp.org>
18017 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
18019 2006-10-16 Bruno Haible <bruno@clisp.org>
18021 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
18022 * lib/sigprocmask.h: Include <sys/types.h>.
18023 (sigset_t): Use the system's definition if present.
18025 2006-10-17 Eric Blake <ebb9@byu.net>
18027 * lib/xvasprintf.c (includes): Assume config.h.
18028 * lib/xasprintf.c (includes): Likewise.
18030 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
18032 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
18033 at least as wide as intmax_t.
18035 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
18037 (Imported from Automake.)
18038 * build-aux/gnupload: Update to version 1.1 of directive file.
18040 2006-10-16 Eric Blake <ebb9@byu.net>
18042 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
18043 match Automake 1.10a.
18045 2006-10-14 Bruno Haible <bruno@clisp.org>
18047 * modules/sigprocmask: New file.
18048 * lib/sigprocmask.h: New file.
18049 * lib/sigprocmask.c: New file.
18050 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
18051 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
18052 request sigprocmask.o.
18053 (gl_PREREQ_SIGPROCMASK): New macro.
18054 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
18055 (Depends-on): Add sigprocmask.
18056 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
18057 gt_SIGNALBLOCKING. Test for 'raise' only once.
18058 * lib/fatal-signal.c: Include sigprocmask.h.
18059 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
18060 unblock_fatal_signals): Define always.
18061 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18064 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
18066 Sync from Automake.
18067 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
18068 which incorrectly sets the mode of an existing destination
18069 directory. In some cases the unpatched install-sh could do the
18070 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
18071 system. We hope this is rare in practice, but it's clearly worth
18072 fixing. Problem reported by Alex Unleashed in
18073 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
18074 Also, don't bother to check for -m bugs unless we're using -m;
18075 suggested by Stepan Kasal.
18077 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18079 Sync from Automake.
18080 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
18081 `-c' flag, so they appear at the same position as in %FASTDEP%
18082 mode in depend2.am. Fixes build failure for FreeBSD's c89,
18083 which ignores unknown options only after the first non-option.
18084 Bug report against M4 by Nelson H. F. Beebe.
18086 2006-10-13 Jim Meyering <jim@meyering.net>
18088 Fix a bug in yesterday's change.
18089 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
18090 p->fts_statp->st_dev would be used uninitialized.
18091 Ensures that we always call fts_stat on the very first entry.
18092 Miklos Szeredi reported that find -xdev stopped working.
18094 2006-10-12 Bruno Haible <bruno@clisp.org>
18096 * gnulib-tool (func_get_automake_snippet): Append an automatically
18097 computed EXTRA_DIST augmentation.
18098 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
18099 * modules/alloca-opt (Makefile.am): Likewise.
18100 * modules/allocsa (Makefile.am): Likewise.
18101 * modules/arcfour (Makefile.am): Likewise.
18102 * modules/arctwo (Makefile.am): Likewise.
18103 * modules/argmatch (Makefile.am): Likewise.
18104 * modules/argz (Makefile.am): Likewise.
18105 * modules/atexit (Makefile.am): Likewise.
18106 * modules/backupfile (Makefile.am): Likewise.
18107 * modules/byteswap (Makefile.am): Likewise.
18108 * modules/c-strtod (Makefile.am): Likewise.
18109 * modules/c-strtold (Makefile.am): Likewise.
18110 * modules/calloc (Makefile.am): Likewise.
18111 * modules/canon-host (Makefile.am): Likewise.
18112 * modules/canonicalize (Makefile.am): Likewise.
18113 * modules/chdir-long (Makefile.am): Likewise.
18114 * modules/chdir-safer (Makefile.am): Likewise.
18115 * modules/check-version (Makefile.am): Likewise.
18116 * modules/chown (Makefile.am): Likewise.
18117 * modules/cloexec (Makefile.am): Likewise.
18118 * modules/close-stream (Makefile.am): Likewise.
18119 * modules/closeout (Makefile.am): Likewise.
18120 * modules/crc (Makefile.am): Likewise.
18121 * modules/csharpexec (Makefile.am): Likewise.
18122 * modules/cycle-check (Makefile.am): Likewise.
18123 * modules/des (Makefile.am): Likewise.
18124 * modules/dev-ino (Makefile.am): Likewise.
18125 * modules/dirfd (Makefile.am): Likewise.
18126 * modules/dirname (Makefile.am): Likewise.
18127 * modules/dup2 (Makefile.am): Likewise.
18128 * modules/eealloc (Makefile.am): Likewise.
18129 * modules/error (Makefile.am): Likewise.
18130 * modules/euidaccess (Makefile.am): Likewise.
18131 * modules/exclude (Makefile.am): Likewise.
18132 * modules/exitfail (Makefile.am): Likewise.
18133 * modules/fcntl-safer (Makefile.am): Likewise.
18134 * modules/fcntl (Makefile.am): Likewise.
18135 * modules/file-type (Makefile.am): Likewise.
18136 * modules/fileblocks (Makefile.am): Likewise.
18137 * modules/filemode (Makefile.am): Likewise.
18138 * modules/filenamecat (Makefile.am): Likewise.
18139 * modules/fnmatch (Makefile.am): Likewise.
18140 * modules/fopen-safer (Makefile.am): Likewise.
18141 * modules/fpending (Makefile.am): Likewise.
18142 * modules/fprintftime (Makefile.am): Likewise.
18143 * modules/free (Makefile.am): Likewise.
18144 * modules/fsusage (Makefile.am): Likewise.
18145 * modules/ftruncate (Makefile.am): Likewise.
18146 * modules/fts (Makefile.am): Likewise.
18147 * modules/gc-arcfour (Makefile.am): Likewise.
18148 * modules/gc-des (Makefile.am): Likewise.
18149 * modules/gc-hmac-md5 (Makefile.am): Likewise.
18150 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
18151 * modules/gc-md4 (Makefile.am): Likewise.
18152 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
18153 * modules/gc-sha1 (Makefile.am): Likewise.
18154 * modules/gc (Makefile.am): Likewise.
18155 * modules/getaddrinfo (Makefile.am): Likewise.
18156 * modules/getcwd (Makefile.am): Likewise.
18157 * modules/getdelim (Makefile.am): Likewise.
18158 * modules/getdomainname (Makefile.am): Likewise.
18159 * modules/getgroups (Makefile.am): Likewise.
18160 * modules/gethostname (Makefile.am): Likewise.
18161 * modules/gethrxtime (Makefile.am): Likewise.
18162 * modules/getline (Makefile.am): Likewise.
18163 * modules/getloadavg (Makefile.am): Likewise.
18164 * modules/getlogin_r (Makefile.am): Likewise.
18165 * modules/getndelim2 (Makefile.am): Likewise.
18166 * modules/getopt (Makefile.am): Likewise.
18167 * modules/getpagesize (Makefile.am): Likewise.
18168 * modules/getpass-gnu (Makefile.am): Likewise.
18169 * modules/getpass (Makefile.am): Likewise.
18170 * modules/getsubopt (Makefile.am): Likewise.
18171 * modules/gettime (Makefile.am): Likewise.
18172 * modules/gettimeofday (Makefile.am): Likewise.
18173 * modules/getugroups (Makefile.am): Likewise.
18174 * modules/getusershell (Makefile.am): Likewise.
18175 * modules/glob (Makefile.am): Likewise.
18176 * modules/group-member (Makefile.am): Likewise.
18177 * modules/hard-locale (Makefile.am): Likewise.
18178 * modules/hash (Makefile.am): Likewise.
18179 * modules/hmac-md5 (Makefile.am): Likewise.
18180 * modules/hmac-sha1 (Makefile.am): Likewise.
18181 * modules/human (Makefile.am): Likewise.
18182 * modules/idcache (Makefile.am): Likewise.
18183 * modules/imaxabs (Makefile.am): Likewise.
18184 * modules/imaxdiv (Makefile.am): Likewise.
18185 * modules/inet_ntop (Makefile.am): Likewise.
18186 * modules/inet_pton (Makefile.am): Likewise.
18187 * modules/intprops (Makefile.am): Likewise.
18188 * modules/inttostr (Makefile.am): Likewise.
18189 * modules/inttypes (Makefile.am): Likewise.
18190 * modules/isapipe (Makefile.am): Likewise.
18191 * modules/javaversion (Makefile.am): Likewise.
18192 * modules/lchmod (Makefile.am): Likewise.
18193 * modules/lchown (Makefile.am): Likewise.
18194 * modules/localcharset (Makefile.am): Likewise.
18195 * modules/long-options (Makefile.am): Likewise.
18196 * modules/lstat (Makefile.am): Likewise.
18197 * modules/malloc (Makefile.am): Likewise.
18198 * modules/mathl (Makefile.am): Likewise.
18199 * modules/mbchar (Makefile.am): Likewise.
18200 * modules/md2 (Makefile.am): Likewise.
18201 * modules/md4 (Makefile.am): Likewise.
18202 * modules/md5 (Makefile.am): Likewise.
18203 * modules/memcasecmp (Makefile.am): Likewise.
18204 * modules/memchr (Makefile.am): Likewise.
18205 * modules/memcmp (Makefile.am): Likewise.
18206 * modules/memcoll (Makefile.am): Likewise.
18207 * modules/memcpy (Makefile.am): Likewise.
18208 * modules/memmem (Makefile.am): Likewise.
18209 * modules/memmove (Makefile.am): Likewise.
18210 * modules/mempcpy (Makefile.am): Likewise.
18211 * modules/memrchr (Makefile.am): Likewise.
18212 * modules/memset (Makefile.am): Likewise.
18213 * modules/memxor (Makefile.am): Likewise.
18214 * modules/mkancesdirs (Makefile.am): Likewise.
18215 * modules/mkdir-p (Makefile.am): Likewise.
18216 * modules/mkdir (Makefile.am): Likewise.
18217 * modules/mkdtemp (Makefile.am): Likewise.
18218 * modules/mkstemp (Makefile.am): Likewise.
18219 * modules/mktime (Makefile.am): Likewise.
18220 * modules/modechange (Makefile.am): Likewise.
18221 * modules/mountlist (Makefile.am): Likewise.
18222 * modules/nanosleep (Makefile.am): Likewise.
18223 * modules/obstack (Makefile.am): Likewise.
18224 * modules/openat (Makefile.am): Likewise.
18225 * modules/pagealign_alloc (Makefile.am): Likewise.
18226 * modules/pathmax (Makefile.am): Likewise.
18227 * modules/physmem (Makefile.am): Likewise.
18228 * modules/poll (Makefile.am): Likewise.
18229 * modules/posixtm (Makefile.am): Likewise.
18230 * modules/posixver (Makefile.am): Likewise.
18231 * modules/putenv (Makefile.am): Likewise.
18232 * modules/quote (Makefile.am): Likewise.
18233 * modules/quotearg (Makefile.am): Likewise.
18234 * modules/raise (Makefile.am): Likewise.
18235 * modules/read-file (Makefile.am): Likewise.
18236 * modules/readline (Makefile.am): Likewise.
18237 * modules/readlink (Makefile.am): Likewise.
18238 * modules/readtokens (Makefile.am): Likewise.
18239 * modules/readutmp (Makefile.am): Likewise.
18240 * modules/realloc (Makefile.am): Likewise.
18241 * modules/regex (Makefile.am): Likewise.
18242 * modules/rename-dest-slash (Makefile.am): Likewise.
18243 * modules/rename (Makefile.am): Likewise.
18244 * modules/rijndael (Makefile.am): Likewise.
18245 * modules/rmdir (Makefile.am): Likewise.
18246 * modules/rpmatch (Makefile.am): Likewise.
18247 * modules/safe-read (Makefile.am): Likewise.
18248 * modules/safe-write (Makefile.am): Likewise.
18249 * modules/same-inode (Makefile.am): Likewise.
18250 * modules/same (Makefile.am): Likewise.
18251 * modules/save-cwd (Makefile.am): Likewise.
18252 * modules/savedir (Makefile.am): Likewise.
18253 * modules/setenv (Makefile.am): Likewise.
18254 * modules/settime (Makefile.am): Likewise.
18255 * modules/sha1 (Makefile.am): Likewise.
18256 * modules/sig2str (Makefile.am): Likewise.
18257 * modules/snprintf (Makefile.am): Likewise.
18258 * modules/stat-macros (Makefile.am): Likewise.
18259 * modules/stat-time (Makefile.am): Likewise.
18260 * modules/stdbool (Makefile.am): Likewise.
18261 * modules/stdint (Makefile.am): Likewise.
18262 * modules/stdlib-safer (Makefile.am): Likewise.
18263 * modules/stpcpy (Makefile.am): Likewise.
18264 * modules/stpncpy (Makefile.am): Likewise.
18265 * modules/strcase (Makefile.am): Likewise.
18266 * modules/strcasestr (Makefile.am): Likewise.
18267 * modules/strchrnul (Makefile.am): Likewise.
18268 * modules/strcspn (Makefile.am): Likewise.
18269 * modules/strdup (Makefile.am): Likewise.
18270 * modules/strerror (Makefile.am): Likewise.
18271 * modules/strftime (Makefile.am): Likewise.
18272 * modules/strndup (Makefile.am): Likewise.
18273 * modules/strnlen (Makefile.am): Likewise.
18274 * modules/strpbrk (Makefile.am): Likewise.
18275 * modules/strsep (Makefile.am): Likewise.
18276 * modules/strstr (Makefile.am): Likewise.
18277 * modules/strtod (Makefile.am): Likewise.
18278 * modules/strtoimax (Makefile.am): Likewise.
18279 * modules/strtok_r (Makefile.am): Likewise.
18280 * modules/strtol (Makefile.am): Likewise.
18281 * modules/strtoll (Makefile.am): Likewise.
18282 * modules/strtoul (Makefile.am): Likewise.
18283 * modules/strtoull (Makefile.am): Likewise.
18284 * modules/strtoumax (Makefile.am): Likewise.
18285 * modules/strverscmp (Makefile.am): Likewise.
18286 * modules/sys_socket (Makefile.am): Likewise.
18287 * modules/sys_stat (Makefile.am): Likewise.
18288 * modules/sysexits (Makefile.am): Likewise.
18289 * modules/time_r (Makefile.am): Likewise.
18290 * modules/timegm (Makefile.am): Likewise.
18291 * modules/timespec (Makefile.am): Likewise.
18292 * modules/tmpfile-safer (Makefile.am): Likewise.
18293 * modules/trim (Makefile.am): Likewise.
18294 * modules/unistd-safer (Makefile.am): Likewise.
18295 * modules/unlinkdir (Makefile.am): Likewise.
18296 * modules/unlocked-io (Makefile.am): Likewise.
18297 * modules/userspec (Makefile.am): Likewise.
18298 * modules/utime (Makefile.am): Likewise.
18299 * modules/utimecmp (Makefile.am): Likewise.
18300 * modules/utimens (Makefile.am): Likewise.
18301 * modules/vasnprintf (Makefile.am): Likewise.
18302 * modules/vasprintf (Makefile.am): Likewise.
18303 * modules/vsnprintf (Makefile.am): Likewise.
18304 * modules/xalloc (Makefile.am): Likewise.
18305 * modules/xgetcwd (Makefile.am): Likewise.
18306 * modules/xnanosleep (Makefile.am): Likewise.
18307 * modules/xreadlink (Makefile.am): Likewise.
18308 * modules/xstrtod (Makefile.am): Likewise.
18309 * modules/xstrtol (Makefile.am): Likewise.
18310 * modules/xstrtold (Makefile.am): Likewise.
18311 * modules/yesno (Makefile.am): Likewise.
18312 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
18314 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
18316 * modules/error (Makefile.am): Distribute files through
18317 EXTRA_DIST, not lib_SOURCES.
18319 2006-10-12 Eric Blake <ebb9@byu.net>
18321 * modules/error (Makefile.am): Distribute files in /lib.
18322 * modules/obstack (Makefile.am): Likewise.
18324 2006-10-12 Bruno Haible <bruno@clisp.org>
18326 * modules/acl (Makefile.am): Distribute all files in lib/ through
18328 * modules/arcfour (Makefile.am): Likewise.
18329 * modules/arctwo (Makefile.am): Likewise.
18330 * modules/argmatch (Makefile.am): Likewise.
18331 * modules/argz (Makefile.am): Likewise.
18332 * modules/atexit (Makefile.am): Likewise.
18333 * modules/backupfile (Makefile.am): Likewise.
18334 * modules/c-strtod (Makefile.am): Likewise.
18335 * modules/c-strtold (Makefile.am): Likewise.
18336 * modules/calloc (Makefile.am): Likewise.
18337 * modules/canon-host (Makefile.am): Likewise.
18338 * modules/canonicalize (Makefile.am): Likewise.
18339 * modules/chdir-long (Makefile.am): Likewise.
18340 * modules/chdir-safer (Makefile.am): Likewise.
18341 * modules/check-version (Makefile.am): Likewise.
18342 * modules/chown (Makefile.am): Likewise.
18343 * modules/cloexec (Makefile.am): Likewise.
18344 * modules/close-stream (Makefile.am): Likewise.
18345 * modules/closeout (Makefile.am): Likewise.
18346 * modules/crc (Makefile.am): Likewise.
18347 * modules/cycle-check (Makefile.am): Likewise.
18348 * modules/des (Makefile.am): Likewise.
18349 * modules/dirfd (Makefile.am): Likewise.
18350 * modules/dirname (Makefile.am): Likewise.
18351 * modules/dup2 (Makefile.am): Likewise.
18352 * modules/euidaccess (Makefile.am): Likewise.
18353 * modules/exclude (Makefile.am): Likewise.
18354 * modules/exitfail (Makefile.am): Likewise.
18355 * modules/fcntl-safer (Makefile.am): Likewise.
18356 * modules/file-type (Makefile.am): Likewise.
18357 * modules/fileblocks (Makefile.am): Likewise.
18358 * modules/filemode (Makefile.am): Likewise.
18359 * modules/filenamecat (Makefile.am): Likewise.
18360 * modules/fnmatch (Makefile.am): Likewise.
18361 * modules/fopen-safer (Makefile.am): Likewise.
18362 * modules/fpending (Makefile.am): Likewise.
18363 * modules/fprintftime (Makefile.am): Likewise.
18364 * modules/free (Makefile.am): Likewise.
18365 * modules/fsusage (Makefile.am): Likewise.
18366 * modules/ftruncate (Makefile.am): Likewise.
18367 * modules/fts (Makefile.am): Likewise.
18368 * modules/gc (Makefile.am): Likewise.
18369 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
18370 * modules/getaddrinfo (Makefile.am): Likewise.
18371 * modules/getcwd (Makefile.am): Likewise.
18372 * modules/getdelim (Makefile.am): Likewise.
18373 * modules/getdomainname (Makefile.am): Likewise.
18374 * modules/getgroups (Makefile.am): Likewise.
18375 * modules/gethostname (Makefile.am): Likewise.
18376 * modules/gethrxtime (Makefile.am): Likewise.
18377 * modules/getline (Makefile.am): Likewise.
18378 * modules/getloadavg (Makefile.am): Likewise.
18379 * modules/getlogin_r (Makefile.am): Likewise.
18380 * modules/getopt (Makefile.am): Likewise.
18381 * modules/getpass (Makefile.am): Likewise.
18382 * modules/getpass-gnu (Makefile.am): Likewise.
18383 * modules/getsubopt (Makefile.am): Likewise.
18384 * modules/gettime (Makefile.am): Likewise.
18385 * modules/gettimeofday (Makefile.am): Likewise.
18386 * modules/getugroups (Makefile.am): Likewise.
18387 * modules/getusershell (Makefile.am): Likewise.
18388 * modules/glob (Makefile.am): Likewise.
18389 * modules/group-member (Makefile.am): Likewise.
18390 * modules/hard-locale (Makefile.am): Likewise.
18391 * modules/hash (Makefile.am): Likewise.
18392 * modules/hmac-md5 (Makefile.am): Likewise.
18393 * modules/hmac-sha1 (Makefile.am): Likewise.
18394 * modules/human (Makefile.am): Likewise.
18395 * modules/idcache (Makefile.am): Likewise.
18396 * modules/imaxabs (Makefile.am): Likewise.
18397 * modules/imaxdiv (Makefile.am): Likewise.
18398 * modules/inet_ntop (Makefile.am): Likewise.
18399 * modules/inet_pton (Makefile.am): Likewise.
18400 * modules/inttostr (Makefile.am): Likewise.
18401 * modules/isapipe (Makefile.am): Likewise.
18402 * modules/lchown (Makefile.am): Likewise.
18403 * modules/long-options (Makefile.am): Likewise.
18404 * modules/lstat (Makefile.am): Likewise.
18405 * modules/malloc (Makefile.am): Likewise.
18406 * modules/mathl (Makefile.am): Likewise.
18407 * modules/mbchar (Makefile.am): Likewise.
18408 * modules/md2 (Makefile.am): Likewise.
18409 * modules/md4 (Makefile.am): Likewise.
18410 * modules/md5 (Makefile.am): Likewise.
18411 * modules/memcasecmp (Makefile.am): Likewise.
18412 * modules/memchr (Makefile.am): Likewise.
18413 * modules/memcmp (Makefile.am): Likewise.
18414 * modules/memcoll (Makefile.am): Likewise.
18415 * modules/memcpy (Makefile.am): Likewise.
18416 * modules/memmem (Makefile.am): Likewise.
18417 * modules/memmove (Makefile.am): Likewise.
18418 * modules/mempcpy (Makefile.am): Likewise.
18419 * modules/memrchr (Makefile.am): Likewise.
18420 * modules/memset (Makefile.am): Likewise.
18421 * modules/memxor (Makefile.am): Likewise.
18422 * modules/mkancesdirs (Makefile.am): Likewise.
18423 * modules/mkdir (Makefile.am): Likewise.
18424 * modules/mkdir-p (Makefile.am): Likewise.
18425 * modules/mkdtemp (Makefile.am): Likewise.
18426 * modules/mkstemp (Makefile.am): Likewise.
18427 * modules/mktime (Makefile.am): Likewise.
18428 * modules/modechange (Makefile.am): Likewise.
18429 * modules/mountlist (Makefile.am): Likewise.
18430 * modules/nanosleep (Makefile.am): Likewise.
18431 * modules/openat (Makefile.am): Likewise.
18432 * modules/pagealign_alloc (Makefile.am): Likewise.
18433 * modules/physmem (Makefile.am): Likewise.
18434 * modules/poll (Makefile.am): Likewise.
18435 * modules/posixtm (Makefile.am): Likewise.
18436 * modules/posixver (Makefile.am): Likewise.
18437 * modules/putenv (Makefile.am): Likewise.
18438 * modules/quote (Makefile.am): Likewise.
18439 * modules/quotearg (Makefile.am): Likewise.
18440 * modules/raise (Makefile.am): Likewise.
18441 * modules/read-file (Makefile.am): Likewise.
18442 * modules/readline (Makefile.am): Likewise.
18443 * modules/readlink (Makefile.am): Likewise.
18444 * modules/readtokens (Makefile.am): Likewise.
18445 * modules/readutmp (Makefile.am): Likewise.
18446 * modules/realloc (Makefile.am): Likewise.
18447 * modules/regex (Makefile.am): Likewise.
18448 * modules/rename (Makefile.am): Likewise.
18449 * modules/rename-dest-slash (Makefile.am): Likewise.
18450 * modules/rijndael (Makefile.am): Likewise.
18451 * modules/rmdir (Makefile.am): Likewise.
18452 * modules/rpmatch (Makefile.am): Likewise.
18453 * modules/safe-read (Makefile.am): Likewise.
18454 * modules/safe-write (Makefile.am): Likewise.
18455 * modules/same (Makefile.am): Likewise.
18456 * modules/save-cwd (Makefile.am): Likewise.
18457 * modules/savedir (Makefile.am): Likewise.
18458 * modules/setenv (Makefile.am): Likewise.
18459 * modules/settime (Makefile.am): Likewise.
18460 * modules/sha1 (Makefile.am): Likewise.
18461 * modules/sig2str (Makefile.am): Likewise.
18462 * modules/snprintf (Makefile.am): Likewise.
18463 * modules/stdlib-safer (Makefile.am): Likewise.
18464 * modules/stpcpy (Makefile.am): Likewise.
18465 * modules/stpncpy (Makefile.am): Likewise.
18466 * modules/strcase (Makefile.am): Likewise.
18467 * modules/strcasestr (Makefile.am): Likewise.
18468 * modules/strchrnul (Makefile.am): Likewise.
18469 * modules/strcspn (Makefile.am): Likewise.
18470 * modules/strdup (Makefile.am): Likewise.
18471 * modules/strerror (Makefile.am): Likewise.
18472 * modules/strftime (Makefile.am): Likewise.
18473 * modules/strndup (Makefile.am): Likewise.
18474 * modules/strnlen (Makefile.am): Likewise.
18475 * modules/strpbrk (Makefile.am): Likewise.
18476 * modules/strsep (Makefile.am): Likewise.
18477 * modules/strstr (Makefile.am): Likewise.
18478 * modules/strtod (Makefile.am): Likewise.
18479 * modules/strtoimax (Makefile.am): Likewise.
18480 * modules/strtok_r (Makefile.am): Likewise.
18481 * modules/strtol (Makefile.am): Likewise.
18482 * modules/strtoll (Makefile.am): Likewise.
18483 * modules/strtoul (Makefile.am): Likewise.
18484 * modules/strtoull (Makefile.am): Likewise.
18485 * modules/strtoumax (Makefile.am): Likewise.
18486 * modules/strverscmp (Makefile.am): Likewise.
18487 * modules/time_r (Makefile.am): Likewise.
18488 * modules/timegm (Makefile.am): Likewise.
18489 * modules/tmpfile-safer (Makefile.am): Likewise.
18490 * modules/unistd-safer (Makefile.am): Likewise.
18491 * modules/unlinkdir (Makefile.am): Likewise.
18492 * modules/userspec (Makefile.am): Likewise.
18493 * modules/utime (Makefile.am): Likewise.
18494 * modules/utimecmp (Makefile.am): Likewise.
18495 * modules/utimens (Makefile.am): Likewise.
18496 * modules/vasnprintf (Makefile.am): Likewise.
18497 * modules/vasprintf (Makefile.am): Likewise.
18498 * modules/vsnprintf (Makefile.am): Likewise.
18499 * modules/xalloc (Makefile.am): Likewise.
18500 * modules/xgetcwd (Makefile.am): Likewise.
18501 * modules/xnanosleep (Makefile.am): Likewise.
18502 * modules/xreadlink (Makefile.am): Likewise.
18503 * modules/xstrtod (Makefile.am): Likewise.
18504 * modules/xstrtol (Makefile.am): Likewise.
18505 * modules/xstrtold (Makefile.am): Likewise.
18506 * modules/yesno (Makefile.am): Likewise.
18508 2006-10-12 Jim Meyering <jim@meyering.net>
18510 * m4/getloadavg.m4: Revert the change below.
18512 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
18513 lib/getloadavg.c using "ls -L", not "test -f". The latter would
18514 fail with a symlink, which is what coreutils' ./bootstrap now
18515 creates by default.
18517 2006-10-12 Bruno Haible <bruno@clisp.org>
18519 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
18521 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
18522 MSVC and mingw explicitly.
18524 2006-10-11 Simon Josefsson <jas@extundo.com>
18525 Bruno Haible <bruno@clisp.org>
18527 Add support for multiple gnulib-tool invocations in the scope of a
18528 single configure.ac file.
18529 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
18530 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
18531 with the same contents as the _LIBADD variable.
18532 (func_emit_initmacro_start, func_emit_initmacro_end,
18533 func_emit_initmacro_done): New functions.
18534 (func_import, func_create_testdir): Invoke them. Allow the identifiers
18535 gl_LIBOBJS and gl_LTLIBOBJS.
18537 2006-10-11 Bruno Haible <bruno@clisp.org>
18539 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
18540 (func_create_testdir): Don't create po/Makefile.am, don't invoke
18541 autoreconf. Instead, invoke autopoint explicitly but move back the
18542 *.m4 files from gnulib.
18544 2006-10-11 Bruno Haible <bruno@clisp.org>
18546 * gnulib-tool (func_usage): Make module names after --create-testdir
18548 (func_create_testdir): If no module was specified, use nearly all
18551 2006-10-12 Jim Meyering <jim@meyering.net>
18553 Big performance improvement for fts-based tools that use FTS_NOSTAT.
18554 Avoid spurious inode-mismatch problems on non-POSIX file systems.
18555 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
18556 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
18557 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
18558 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
18559 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
18560 (fts_set_stat_required): New function.
18561 (fts_open): Defer the calls to fts_stat, if possible or requested.
18562 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
18563 into fts_stat itself.
18564 (fts_read): Perform any required (deferred) fts_stat call.
18565 (fts_build): Likewise, for the directory we're about to open and read.
18566 In the readdir loop, carefully decide whether each entry will require
18567 an eventual call to fts_stat, using dirent.d_type info if available.
18568 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
18569 a command line argument into this function. Update all callers.
18570 Map a return value of FTS_DOT to FTS_D for a command line argument.
18571 * modules/fts (Depends-on): Add d-type. Alphabetize.
18572 Thanks to Miklos Szeredi for his tenacity and for the initial
18573 bug report about "find" failing on a FUSE-based file system.
18575 * lib/fts.c (fts_open): Use consistent indentation.
18577 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
18579 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
18580 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
18581 reported by Jim Meyering. All uses of cache variables renamed
18582 to match Autoconf's.
18583 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
18586 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
18587 Fix misspelling in diagnostic.
18589 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
18591 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
18592 defined. Problem reported by Matthew Woehlke.
18594 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
18595 Add support for Tandem NonStop R series.
18596 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
18599 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
18600 (has_trailing_slash): Omit size arg; all callers changed.
18601 Omit 'inline', since it doesn't help performance and we'd
18602 need to configure it.
18603 Don't count //, ///, etc. as having a trailing slash.
18604 As a side effect, this removes a C99ism reported by Matthew Woehlke.
18605 (rpl_rename_dest_slash): On failure, use rename's errno rather
18606 than (in some cases) an incorrect or junk errno.
18607 Simplify code by removing need to compute length; this does
18608 cause it to make two passes instead of one over the file name,
18611 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
18612 change, since Autoconf's version may no longer be appropriate now
18613 that we are using CVS Autoconf's version. Add support for Tandem.
18615 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
18616 Bruno Haible <bruno@clisp.org>
18618 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
18619 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
18620 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
18621 gl_AC_TYPE_LONG_LONG.
18623 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
18624 instead of HAVE_LONG_LONG.
18625 * lib/printf-args.c (printf_fetchargs): Likewise.
18626 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18627 * lib/vasnprintf.c (VASNPRINTF): Likewise.
18628 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
18629 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
18630 gl_AC_TYPE_LONG_LONG.
18632 2006-10-11 Bruno Haible <bruno@clisp.org>
18634 * m4/longlong.m4: Add comments.
18635 * m4/ulonglong.m4: Likewise.
18637 2006-10-10 Bruno Haible <bruno@clisp.org>
18639 Make it possible to #define stpcpy, strdup to aliases.
18640 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
18641 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
18643 2006-10-10 Bruno Haible <bruno@clisp.org>
18645 Make it possible to #define gcd to an alias.
18646 * lib/gcd.c: Include config.h.
18648 2006-10-10 Bruno Haible <bruno@clisp.org>
18650 Make it possible to #define c_isascii to an alias.
18651 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
18652 defined. Undefine the macros before defining them, to avoid gcc
18654 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
18655 define NO_C_CTYPE_MACROS early.
18657 2006-10-10 Bruno Haible <bruno@clisp.org>
18659 Make it possible to #define set_program_name to an alias.
18660 * lib/progname.c: Don't undefine set_program_name; instead, undefine
18661 ENABLE_RELOCATABLE early.
18663 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
18665 Port to Tandem NSK OSS, which has 64-bit signed int but at most
18666 32-bit unsigned int. Problem reported by Matthew Woehlke in:
18667 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
18668 More generally, don't assume that 64-bit signed int is available
18669 if unsigned int is, and vice versa.
18670 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
18671 unsigned symbols, not on their signed counterparts.
18672 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
18673 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
18674 (UINT64_C, UINTMAX_C):
18676 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
18677 unsigned counterparts.
18678 (Have_long_long, Unsigned): New macros.
18679 (Int): Renamed from INT.
18680 (strtoimax): Use the new macros.
18681 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
18682 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
18683 * modules/inttypes (inttypes.h): Substitute
18684 HAVE_UNSIGNED_LONG_LONG_INT.
18685 * modules/stdint (stdint.h): Likewise.
18686 (Files): Add m4/ulonglong.m4.
18688 2006-10-10 Bruno Haible <bruno@clisp.org>
18690 Fix a gcc -Wshadow warning.
18691 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
18693 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
18694 gl_linked_indexof_from_to): Likewise.
18695 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
18697 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
18699 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
18700 Reported by Eric Blake.
18702 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
18704 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
18705 for NetBSD. Problem reported by Bruno Haible.
18707 2006-10-09 Jim Meyering <jim@meyering.net>
18709 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
18710 Patch from Bruno Haible.
18712 2006-10-09 Jim Meyering <jim@meyering.net>
18714 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
18715 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
18716 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
18718 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
18720 Don't include <config.h> twice; this doesn't work in some cases,
18721 e.g., when config.h has "#define intmax_t long long int" and
18722 we include <config.h>, <inttypes.h>, <config.h> in that order.
18723 Problem reported by Matthew Woehlke in:
18724 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
18725 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
18726 * lib/fts-cycle.c: Don't include config.h.
18727 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
18728 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
18729 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
18730 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
18732 * lib/xstrtoumax.c: Likewise.
18733 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
18734 __strtol and the like, so that this module is more like its siblings.
18735 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
18736 Remove; no longer needed now that we assume gnulib inttypes.h.
18738 2006-10-08 Bruno Haible <bruno@clisp.org>
18740 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
18743 2006-10-07 Jim Meyering <jim@meyering.net>
18745 * modules/inttypes (inttypes.h): Revert what seems to have been
18746 an inadvertent part of today's change: use "|", not "/" in the
18747 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
18749 2006-10-07 Bruno Haible <bruno@clisp.org>
18751 * modules/sublist: New file.
18753 2006-10-07 Bruno Haible <bruno@clisp.org>
18755 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
18756 * modules/argz (argz.h): Likewise.
18757 * modules/arpa_inet (arpa/inet.h): Likewise.
18758 * modules/byteswap (byteswap.h): Likewise.
18759 * modules/configmake (configmake.h): Likewise.
18760 * modules/fcntl (fcntl.h): Likewise.
18761 * modules/fnmatch (fnmatch.h): Likewise.
18762 * modules/getopt (getopt.h): Likewise.
18763 * modules/glob (glob.h): Likewise.
18764 * modules/inttypes (inttypes.h): Likewise.
18765 * modules/netinet_in (netinet/in.h): Likewise.
18766 * modules/poll (poll.h): Likewise.
18767 * modules/stdbool (stdbool.h): Likewise.
18768 * modules/stdint (stdint.h): Likewise.
18769 * modules/sys_select (sys/select.h): Likewise.
18770 * modules/sys_socket (sys/socket.h): Likewise.
18771 * modules/sys_stat (sys/stat.h): Likewise.
18772 * modules/sysexits (sysexits.h): Likewise.
18773 * modules/unistd (unistd.h): Likewise.
18774 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
18775 Add a "DO NOT EDIT" comment to the generated file.
18776 (func_import): Likewise for gnulib-comp.m4.
18778 2006-10-07 Bruno Haible <bruno@clisp.org>
18780 * lib/gl_sublist.h: New file.
18781 * lib/gl_sublist.c: New file.
18783 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
18785 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
18786 name (relative to the original working directory) and the file
18787 name component (relative to the temporary working directory). All
18789 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
18790 * lib/mkdir-p.c (make_dir_parents): Likewise.
18791 * lib/mkdir-p.h (make_dir_parents): Likewise.
18793 2006-10-06 Eric Blake <ebb9@byu.net>
18795 Define several macros for use by the clean-temp module.
18796 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
18797 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
18798 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
18800 * lib/clean-temp.h (close_stream_temp): New declaration.
18801 * lib/clean-temp.c (includes): Pull in headers according to what
18802 other modules are in use.
18803 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
18805 2006-10-06 Bruno Haible <bruno@clisp.org>
18807 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
18808 instead of fopen, fwriteerror.
18810 2006-10-06 Bruno Haible <bruno@clisp.org>
18812 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
18813 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
18815 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
18816 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
18817 Return an error indicator.
18818 Suggested by Eric Blake.
18820 2006-10-06 Bruno Haible <bruno@clisp.org>
18822 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
18823 Reported by Eric Blake.
18825 2006-10-06 Bruno Haible <bruno@clisp.org>
18827 * modules/closeout (Description): Mention stderr too.
18829 2006-10-06 Bruno Haible <bruno@clisp.org>
18830 and Paul Eggert <eggert@cs.ucla.edu>
18832 * lib/closeout.c (close_stdout): Also close stderr.
18833 * lib/closeout.h: Update comment.
18835 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
18837 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
18838 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
18839 * lib/dirchownmod.c: Include lchown.h.
18840 * lib/lchown.c: Don't include files that lchown.h now includes.
18841 Don't declare chown, since lchown.h now does that.
18842 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
18843 (lchown): Define to rpl_chown if lchown is declared but
18844 does not exist. Declare using a prototype if lchown is not
18845 declared. Add a copyright notice.
18846 * lib/mkstemp.h: Include <unistd.h>.
18847 * lib/openat.c: Include lchown.h.
18849 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
18850 we now test for that separately.
18851 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
18852 rather than O_NOFOLLOW, when testing whether it's possible to
18853 avoid a race condition reliably.
18854 * lib/savewd.c (savewd_chdir): Likewise.
18856 Remove macros that are no longer needed now that stdint.h is
18858 * lib/fsusage.c (UINTMAX_MAX): Remove.
18859 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
18860 * lib/utimecmp.c (SIZE_MAX): Remove.
18862 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
18864 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
18865 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
18868 2006-10-05 Bruno Haible <bruno@clisp.org>
18870 * lib/gl_list.h (gl_sortedlist_search_from_to,
18871 gl_sortedlist_indexof_from_to): New declarations.
18872 (gl_list_implementation): New fields sortedlist_search_from_to,
18873 sortedlist_indexof_from_to.
18874 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
18876 * lib/gl_list.c (gl_sortedlist_search_from_to,
18877 gl_sortedlist_indexof_from_to): New functions.
18878 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
18880 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
18881 (gl_array_sortedlist_search_from_to): New function.
18882 (gl_array_list_implementation): Update.
18883 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
18885 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
18886 (gl_carray_sortedlist_search_from_to): New function.
18887 (gl_carray_list_implementation): Update.
18888 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
18889 gl_linked_sortedlist_indexof_from_to): New functions.
18890 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
18891 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
18892 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
18893 gl_tree_sortedlist_indexof_from_to): New functions.
18894 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
18895 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
18897 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
18898 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
18901 2006-10-05 Bruno Haible <bruno@clisp.org>
18903 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
18904 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
18905 (struct gl_list_implementation): Add fields search_from_to,
18906 indexof_from_to. Remove fields search, indexof.
18907 (gl_list_search): Use the search_from_to method.
18908 (gl_list_search_from, gl_list_search_from_to): New functions.
18909 (gl_list_indexof): Use the indexof_from_to method.
18910 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
18911 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
18912 (gl_list_search_from, gl_list_search_from_to): New functions.
18913 (gl_list_indexof): Use the indexof_from_to method.
18914 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
18915 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
18916 gl_array_indexof. Add start_index, end_index arguments.
18917 (gl_array_search_from_to): Renamed from gl_array_search. Add
18918 start_index, end_index arguments.
18919 (gl_array_remove, gl_array_list_implementation): Update.
18920 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
18921 gl_carray_indexof. Add start_index, end_index arguments.
18922 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
18923 start_index, end_index arguments.
18924 (gl_carray_remove, gl_carray_list_implementation): Update.
18925 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
18926 gl_linked_search. Add start_index, end_index arguments.
18927 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
18928 start_index, end_index arguments.
18929 (gl_linked_remove): Update.
18930 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
18931 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
18932 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
18934 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
18935 gl_tree_search. Add start_index, end_index arguments.
18936 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
18937 start_index, end_index arguments.
18938 (gl_tree_remove): Update.
18939 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
18940 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
18941 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
18943 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
18944 gl_tree_search. Add start_index, end_index arguments.
18945 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
18946 start_index, end_index arguments.
18947 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
18949 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
18951 2006-10-05 Bruno Haible <bruno@clisp.org>
18953 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
18955 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
18956 fwriteerror_temp): New declarations.
18957 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
18958 (descriptors): New variable.
18959 (cleanup): First, close the descriptors.
18960 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
18961 fclose_temp, fwriteerror_temp): New functions.
18963 2006-10-04 Jim Meyering <jim@meyering.net>
18965 * lib/fts.c (fts_open): Tiny comment change.
18967 2006-10-04 Bruno Haible <bruno@clisp.org>
18969 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
18970 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
18972 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
18973 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
18974 gl_LOCK_EARLY_BODY.
18975 (gl_LOCK): Require gl_LOCK_BODY.
18977 2006-10-04 Bruno Haible <bruno@clisp.org>
18979 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
18980 (gl_oset_search_atleast): New declaration.
18981 (struct gl_oset_implementation): Add field 'search_atleast'.
18982 (gl_oset_search_atleast): New inline function.
18983 * lib/gl_oset.c (gl_oset_search_atleast): New function.
18984 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
18985 (gl_array_oset_implementation): Update.
18986 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
18987 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
18988 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
18990 2006-10-04 Bruno Haible <bruno@clisp.org>
18992 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
18994 2006-10-03 Bruno Haible <bruno@clisp.org>
18996 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
18997 from gl_avltreehash_list_implementation.
18999 2006-10-03 Bruno Haible <bruno@clisp.org>
19001 * lib/gl_oset.c (gl_oset_add): Fix return type.
19003 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
19005 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
19007 2006-10-02 Eric Blake <ebb9@byu.net>
19009 * modules/strnlen (Depends-on): Add extensions.
19011 2006-10-02 Eric Blake <ebb9@byu.net>
19013 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
19014 definition in 2.60+.
19016 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
19018 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
19021 2006-10-02 Bruno Haible <bruno@clisp.org>
19023 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
19024 to the AUTOMAKE_OPTIONS.
19025 Reported by Jim Meyering.
19027 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
19029 Work around bug in Solaris 10 /proc file system:
19030 /proc/self/fd/NNN/.. isn't the parent directory of
19031 the directory whose file descriptor is NNN. This needs to
19032 be worked around at run time, not compile time, since a
19033 program might be built on Solaris 8, where things work, and
19035 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
19036 to use the following interface instead:
19037 (OPENAT_BUFFER_SIZE): New macro.
19038 (openat_proc_name): New function.
19039 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
19040 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
19042 * lib/openat-proc.c: New file.
19043 * modules/openat (Files): Add lib/openat-proc.c.
19044 (Depends-on): Add same-inode, stdbool.
19045 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
19047 2006-09-29 Bruno Haible <bruno@clisp.org>
19049 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
19050 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
19051 argument. Set stdout_closed before testing for ferror, not after.
19052 (fwriteerror, fwriteerror_no_ebadf): New functions.
19054 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19056 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
19058 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
19060 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
19061 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
19063 2006-09-28 Jim Meyering <jim@meyering.net>
19065 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
19066 Include <unistd.h>.
19068 2006-09-28 Bruno Haible <bruno@clisp.org>
19070 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
19071 * modules/linkedhash-list (Depends-on): Likewise.
19072 * modules/rbtreehash-list (Depends-on): Likewise.
19074 2006-09-28 Bruno Haible <bruno@clisp.org>
19076 * lib/strndup.h: Simplify the redefinition of strndup.
19077 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
19078 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
19080 2006-09-28 Bruno Haible <bruno@clisp.org>
19082 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
19083 * lib/gl_linkedhash_list.c: Likewise.
19084 * lib/gl_rbtreehash_list.c: Likewise.
19086 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
19088 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
19091 * lib/__fpending.h: Don't include <stdio_ext.h> unless
19092 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
19093 it causes <stdio_ext.h> to cause a compile-time error.
19094 Problem reported by Nelson H. F. Beebe.
19095 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
19096 of HAVE_DECL___PENDING.
19098 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
19099 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
19102 2006-09-27 Jim Meyering <jim@meyering.net>
19104 This file could end up with a definition for a function
19105 named __strndup, rather than rpl_strndup on a system with
19106 incomplete weak_alias support.
19107 * lib/strndup.c (strndup): Rename from __strndup.
19108 Remove #defines that used to map __strndup to strndup.
19109 Don't use K&R prototypes.
19110 Remove LIBC-related code, since this file is not sync'd with glibc.
19111 * lib/strndup.h: Revamp, accordingly.
19112 * m4/strndup.m4: Modernize.
19114 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
19116 * modules/savewd (Depends-on): Add 'raise'.
19117 * lib/savewd.c: Include <signal.h>, for 'raise'.
19119 2006-09-26 Jim Meyering <jim@meyering.net>
19121 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
19122 when we detect Darwin 8.7.0's acl_get_file bug.
19123 Rearrange to perform the new (below) run-test while $LIBS
19124 contains any acl-related library. Set USE_ACL at the end.
19125 (gl_ACL_GET_FILE): New function.
19127 2006-09-26 Eric Blake <ebb9@byu.net>
19129 * lib/verror.c: Include <config.h> unconditionally.
19131 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
19133 * modules/clock-time (Maintainer): Add self.
19134 * modules/getlogin_r (Depends-on): Add extensions.
19136 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19138 * modules/clock-time: New module.
19139 * modules/nanosleep (Depends-on): Add clock-time.
19140 * modules/gethrxtime (Depends-on): Likewise.
19141 * modules/gettime (Depends-on): Likewise.
19142 * modules/settime (Depends-on): Likewise.
19144 * modules/fts-lgpl: Depend on openat.
19145 * modules/mkancesdirs: Depend on savewd.
19146 * modules/mkdir-p: Likewise.
19148 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19150 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
19152 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
19153 `gl_have_arbitrary_file_name_length_limit' to
19154 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
19155 actually works between configure runs.
19157 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19158 Bruno Haible <bruno@clisp.org>
19160 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
19162 2006-09-25 Jim Meyering <jim@meyering.net>
19164 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
19165 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
19167 2006-09-25 Eric Blake <ebb9@byu.net>
19169 * gnulib-tool (func_import, func_create_testdir): Fix typos in
19170 exec's in 2006-09-18 patch when shuffling fds.
19172 2006-09-25 Bruno Haible <bruno@clisp.org>
19174 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
19175 Reported by Jim Meyering.
19177 2006-09-24 Jim Meyering <jim@meyering.net>
19179 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
19180 compare a pointer against a literal "0". That caused failures with
19181 at least HP-UX's hpcc.
19183 2006-09-22 Simon Josefsson <jas@extundo.com>
19187 * modules/gc-hmac-sha1:
19188 * modules/gc-hmac-md5:
19190 * modules/gc-arcfour: Distribute more files.
19192 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19194 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
19195 (gl_linked_iterator_from_to): Initialize struct completely.
19196 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
19197 (gl_tree_iterator_from_to): Likewise
19198 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
19199 * lib/gl_array_list.c [lint] (gl_array_iterator)
19200 (gl_array_iterator_from_to): Likewise.
19201 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
19202 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
19203 (gl_carray_iterator_from_to): Likewise.
19205 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
19206 * lib/md4.c (md4_process_block): Remove unused variable.
19207 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
19208 parentheses for clarity.
19210 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19212 * modules/bison-i18n (Depends-on): Add gettext.
19214 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19216 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
19217 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
19218 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
19219 also add missing comma that caused broken test.
19220 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
19221 stdlib.h, for `abort'.
19222 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
19224 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
19225 include unistd.h if present, for `rmdir'.
19226 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
19228 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
19229 in the process include standard headers for prototypes.
19230 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
19231 gets declared on GNU/Linux.
19232 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
19233 unistd.h, for `rmdir'.
19234 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
19236 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
19238 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
19240 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
19242 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19244 * gnulib-tool (func_version): Create output all at once. This
19245 may help avoid triggering unnecessary SIGPIPEs, and at any
19246 rate it doesn't hurt.
19248 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19249 Bruno Haible <bruno@clisp.org>
19251 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
19252 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19253 * m4/signed.m4 (bh_C_SIGNED): Likewise.
19255 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
19256 (gl_FUNC_VASPRINTF): Invoke it.
19258 2006-09-22 Bruno Haible <bruno@clisp.org>
19260 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
19261 getloadavg.c as first argument.
19263 2006-09-22 Bruno Haible <bruno@clisp.org>
19265 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
19266 at the beginning of the gl_INIT macro.
19267 * modules/getloadavg (configure.ac): Pass $gl_source_base to
19270 2006-09-22 Bruno Haible <bruno@clisp.org>
19272 * gnulib-tool (func_create_megatestdir): Don't include the config-h
19274 Suggested by Ralf Wildenhues.
19276 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
19278 Import this patch from libc:
19280 2006-09-06 Jakub Jelinek <jakub@redhat.com>
19282 * lib/regex_internal.c (re_string_reconstruct): Handle
19283 offset < pstr->valid_raw_len && pstr->offsets_needed case.
19284 Ensure no bytes read before raw_mbs array. Pass a saved copy of
19285 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
19286 re_string_context_at.
19288 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
19290 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
19291 gl_REGEX now does it for us.
19292 (gl_REGEX): Add test taken from
19293 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
19295 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
19296 Check that large offsets work. Modernize Autoconf usages.
19297 Prefer "yes" to mean a good thing rather than a bad.
19298 Don't put "#define mkstemp" in config.h, as this might interfere
19299 with standard system headers that "#define mkstemp mkstemp64".
19301 * modules/mkstemp (Depends-on): Add extensions, so that
19302 mkstemp is visible on some platforms.
19303 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
19304 (Include): Change to "mkstemp.h" from <stdlib.h>.
19305 (Files): Add mkstemp.h.
19307 * lib/mkstemp.h: New file, since some standard headers
19309 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
19310 Include "mkstemp.h".
19311 Make the _LIBC code resemble glibc original more,
19312 e.g., use K&R style.
19313 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
19314 (mkstemp): Remove, since mkstemp.h does this for us.
19315 * lib/stdlib--.h: Include mkstemp.h.
19317 Import this patch from libc:
19319 2006-04-07 Ulrich Drepper <drepper@redhat.com>
19321 * lib/tempname.c (__gen_tempname): Change attempts_min
19322 into a macro. Use preprocessor to decide how to initialize
19323 attempts [Coverity CID 67].
19325 2006-09-20 Bruno Haible <bruno@clisp.org>
19327 * lib/mkdtemp.c: Import from libc.
19328 2006-04-07 Ulrich Drepper <drepper@redhat.com>
19329 * sysdeps/posix/tempname.c (__gen_tempname): Change
19330 attempts_min into a macro. Use preprocessor to decide how to
19331 initialize attempts [Coverity CID 67].
19332 2001-11-27 Paul Eggert <eggert@twinsun.com>
19333 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
19334 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
19336 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19338 * gnulib-tool (func_exit): New function, to allow to pass the
19339 exit status portably through the trap. Use everywhere.
19340 (--help, --version): Signal a write error.
19341 (trap): catch SIGPIPE, for write errors.
19342 Exit at the end of the trap, with the correct exit status.
19344 2006-09-19 Karl Berry <karl@gnu.org>
19346 * doc/gnulib.texi: note about the license texinfo files.
19348 2006-09-19 Eric Blake <ebb9@byu.net>
19350 * gnulib-tool: Avoid space-tab.
19352 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
19354 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
19355 that prevented coreutils 6.1 from building. Problem reported
19356 by Petter Reinholdtsen.
19358 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
19360 * gnulib-tool (avoidlist): Fix typo that broke options like
19361 --avoid=lock that are used by coreutils bootstrap.
19363 2006-09-18 Mark D. Baushke <mdb@gnu.org>
19365 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
19366 more systematically.
19368 2006-09-18 Jim Meyering <jim@meyering.net>
19370 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
19372 2006-09-18 Bruno Haible <bruno@clisp.org>
19374 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
19376 2006-09-18 Bruno Haible <bruno@clisp.org>
19378 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
19379 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
19380 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
19381 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
19382 * m4/gettext.m4: Require autoconf >= 2.52.
19383 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
19384 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
19385 of gl_cv_header_inttypes_h.
19387 2006-09-18 Bruno Haible <bruno@clisp.org>
19389 * lib/javaversion.c: Include configmake.h.
19391 2006-09-18 Bruno Haible <bruno@clisp.org>
19393 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
19394 avoid that the while loops be executed in a subshell.
19396 2006-09-18 Bruno Haible <bruno@clisp.org>
19398 * MODULES.html.sh (func_module): Break long lines.
19399 Suggested by Bruce Korb <bkorb@gnu.org>.
19401 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19403 Speed up by a factor of 1.12.
19404 * gnulib-tool (nl): New variable.
19405 (func_import): Rewrite include directive extraction to only read each
19408 2006-09-17 Bruno Haible <bruno@clisp.org>
19410 * modules/javaversion (Makefile.am): Remove DEFS setting.
19411 (Depends-on): Add configmake, for PKGDATADIR definition.
19413 2006-09-17 Bruno Haible <bruno@clisp.org>
19415 * gnulib-tool (func_create_testdir): Rewrite all files at once.
19417 2006-09-17 Bruno Haible <bruno@clisp.org>
19419 * gnulib-tool (func_append): New function, stolen from libtool.m4.
19420 (func_modules_transitive_closure, func_modules_add_dummy,
19421 func_modules_to_filelist, func_import, func_create_testdir,
19422 func_create_megatestdir, ...): Use it wherever possible.
19423 Suggested by Ralf Wildenhues.
19425 2006-09-16 Karl Berry <karl@gnu.org>
19427 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
19428 to avoid sectioning errors.
19429 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
19430 [ifinfo]: blank line after @center-ed titles.
19431 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
19432 Spell FSF address consistently with others.
19433 (These changes approved by rms.)
19435 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19437 Speed up by a factor of 1.61.
19438 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
19439 already checked module names again.
19441 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19443 Speed up by a factor of 1.13.
19444 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
19445 for new_files, and the input to func_add_or_update.
19447 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19449 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
19450 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
19452 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
19454 * modules/mkancesdirs (Depends-on): Add fcntl.
19455 * modules/savewd: New file.
19456 * MODULES.html.sh (File system functions): Add savewd.
19458 * modules/configmake (Makefile.am): Add support for the
19459 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
19461 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
19463 * m4/savewd.m4: New file.
19465 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
19467 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
19468 (dirchownmod): New arg FD. All callers changed.
19469 Use FD rather than opening the directory ourself, as opening is
19470 now the caller's responsibility.
19471 * lib/dirchownmod.h: Likewise.
19472 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
19473 hosts that require <sys/types.h> before <sys/stat.h>. Include
19474 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
19475 (test_dir): Remove.
19476 (mkancesdirs): Return length of prefix of FILE that has already
19477 been made, or -2 if there is a child doing the work. Redo
19478 algorithm so that it is O(N) rather than O(N**2). Optimize away
19479 ".", and treat ".." specially since it might stray back into
19480 already-created areas. Use a subprocess if necessary. New arg
19481 WD; all users changed. MAKE_DIR function should now return 1
19482 if it creates a directory that is not readable. Return -2 if
19483 a child process is spun off.
19484 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
19485 Adjust signature to match code.
19486 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
19487 (make_dir_parents): Use a subprocess if necessary. New arg WD;
19489 * lib/savewd.c, lib/savewd.h: New files.
19491 2006-09-15 Jim Meyering <jim@meyering.net>
19493 * modules/rename-dest-slash: New module.
19494 * MODULES.html.sh (posix_compat): Add it here.
19496 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
19498 2006-09-15 Jim Meyering <jim@meyering.net>
19500 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
19503 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
19505 2006-09-15 Jim Meyering <jim@meyering.net>
19507 * lib/rename-dest-slash.c (has_trailing_slash): Use
19508 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
19509 (rpl_rename_dest_slash): Perform the cheaper trailing slash
19510 test before testing whether SRC is a directory.
19511 Suggestions from Bruno Haible.
19513 Avoid a warning about an unused variable.
19514 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
19515 into the #ifdef block where it's used.
19517 * lib/rename-dest-slash.c: New file.
19519 2006-09-14 Bruno Haible <bruno@clisp.org>
19521 * lib/allocsa.c: Include <config.h> unconditionally.
19522 * lib/asnprintf.c: Likewise.
19523 * lib/asprintf.c: Likewise.
19524 * lib/c-strcasecmp.c: Likewise.
19525 * lib/c-strcasestr.c: Likewise.
19526 * lib/c-strncasecmp.c: Likewise.
19527 * lib/c-strstr.c: Likewise.
19528 * lib/classpath.c: Likewise.
19529 * lib/clean-temp.c: Likewise.
19530 * lib/concatpath.c: Likewise.
19531 * lib/copy-file.c: Likewise.
19532 * lib/csharpcomp.c: Likewise.
19533 * lib/csharpexec.c: Likewise.
19534 * lib/execute.c: Likewise.
19535 * lib/fatal-signal.c: Likewise.
19536 * lib/findprog.c: Likewise.
19537 * lib/fwriteerror.c: Likewise.
19538 * lib/gl_array_list.c: Likewise.
19539 * lib/gl_array_oset.c: Likewise.
19540 * lib/gl_avltree_list.c: Likewise.
19541 * lib/gl_avltree_oset.c: Likewise.
19542 * lib/gl_avltreehash_list.c: Likewise.
19543 * lib/gl_carray_list.c: Likewise.
19544 * lib/gl_linked_list.c: Likewise.
19545 * lib/gl_linkedhash_list.c: Likewise.
19546 * lib/gl_list.c: Likewise.
19547 * lib/gl_oset.c: Likewise.
19548 * lib/gl_rbtree_list.c: Likewise.
19549 * lib/gl_rbtree_oset.c: Likewise.
19550 * lib/gl_rbtreehash_list.c: Likewise.
19551 * lib/imaxabs.c: Likewise.
19552 * lib/imaxdiv.c: Likewise.
19553 * lib/javacomp.c: Likewise.
19554 * lib/javaexec.c: Likewise.
19555 * lib/javaversion.c: Likewise.
19556 * lib/linebreak.c: Likewise.
19557 * lib/localcharset.c: Likewise.
19558 * lib/lock.c: Likewise.
19559 * lib/mbchar.c: Likewise.
19560 * lib/mbswidth.c: Likewise.
19561 * lib/mkdtemp.c: Likewise.
19562 * lib/pipe.c: Likewise.
19563 * lib/printf-args.c: Likewise.
19564 * lib/printf-parse.c: Likewise.
19565 * lib/progname.c: Likewise.
19566 * lib/progreloc.c: Likewise.
19567 * lib/readlink.c: Likewise.
19568 * lib/sh-quote.c: Likewise.
19569 * lib/stpcpy.c: Likewise.
19570 * lib/stpncpy.c: Likewise.
19571 * lib/strcasecmp.c: Likewise.
19572 * lib/strcasestr.c: Likewise.
19573 * lib/strcspn.c: Likewise.
19574 * lib/striconv.c: Likewise.
19575 * lib/strncasecmp.c: Likewise.
19576 * lib/strnlen1.c: Likewise.
19577 * lib/strstr.c: Likewise.
19578 * lib/strtok_r.c: Likewise.
19579 * lib/tls.c: Likewise.
19580 * lib/tmpdir.c: Likewise.
19581 * lib/unicodeio.c: Likewise.
19582 * lib/unsetenv.c: Likewise.
19583 * lib/vasnprintf.c: Likewise.
19584 * lib/vasprintf.c: Likewise.
19585 * lib/wait-process.c: Likewise.
19586 * lib/xallocsa.c: Likewise.
19587 * lib/xsetenv.c: Likewise.
19588 * lib/xstriconv.c: Likewise.
19590 2006-09-13 Simon Josefsson <jas@extundo.com>
19592 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
19593 that internally, suggested by Ralf Wildenhues
19594 <Ralf.Wildenhues@gmx.de>.
19596 2006-09-13 Simon Josefsson <jas@extundo.com>
19598 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
19600 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19602 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
19604 * lib/_fpending.c: Include <config.h> unconditionally, since we no
19605 longer worry about uses that don't define HAVE_CONFIG_H.
19606 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
19607 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
19608 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
19609 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
19610 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
19611 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
19612 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
19613 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
19614 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
19615 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
19616 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
19617 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
19618 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
19619 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
19620 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
19621 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
19622 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
19623 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
19624 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
19625 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
19626 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
19627 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
19628 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
19629 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
19630 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
19631 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
19632 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
19633 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
19634 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
19635 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
19636 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
19637 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
19638 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
19639 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
19640 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
19641 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
19642 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
19643 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
19644 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
19645 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
19646 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
19649 2006-09-13 Eric Blake <ebb9@byu.net>
19651 * lib/getopt.c: Fix typo in last commit.
19653 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
19655 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
19658 2006-09-12 Jim Meyering <jim@meyering.net>
19660 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
19661 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
19662 Reported by Nelson H. F. Beebe.
19664 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
19666 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
19667 program_invocation_name and program_invocation_short_name are
19669 * lib/argp-namefrob.h: Move declarations of program_invocation_name
19670 and program_invocation_short_name to argp.h, so they are visible
19672 * lib/argp.h: Likewise
19674 2006-09-10 Bruno Haible <bruno@clisp.org>
19676 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
19677 m4/inttypes_h.m4, m4/uintmax_t.m4.
19679 2006-09-10 Bruno Haible <bruno@clisp.org>
19681 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
19682 gl_AC_TYPE_UINTMAX_T.
19684 2006-09-10 Bruno Haible <bruno@clisp.org>
19686 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
19688 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
19690 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
19691 convention. Text proposed by Bruno Haible.
19692 (struct argp_option): Document the use of N_() wrappers.
19694 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
19695 '\v', and translate the two parts separately, instead of feeding
19696 the whole string to gettext. This allows to exclude
19697 '\v' from the strings visible to the translator by writing doc
19698 strings as N_("..") "\v" N_("..").
19700 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
19702 * config/srclist.txt: Undo latest change; the bug was fixed.
19704 2006-09-09 Bruno Haible <bruno@clisp.org>
19706 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
19707 assignments if building a library without libtool.
19708 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
19709 in func_emit_lib_Makefile_am.
19710 (func_import): When building a static library libfoo.a, arrange to
19711 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
19712 (func_create_testdir): Likewise.
19713 * modules/gc (configure.ac, Makefile.am): If building statically,
19714 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
19715 * modules/iconvme (configure.ac, Makefile.am): Likewise.
19716 * modules/striconv (configure.ac, Makefile.am): Likewise.
19717 Based on a suggestion by Ralf Wildenhues.
19719 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
19721 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
19722 Check for unistd.h too, since Autoconf doesn't assume POSIX.
19725 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
19726 Add year_2050_test to catch glibc bug 2821
19727 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
19729 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
19730 Prefer #ifdef to #if.
19732 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
19733 Return from 'main' instead of calling 'exit'.
19735 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
19737 * lib/mktime.c (guess_time_tm): Fix bug where mktime
19738 returned the maximum time_t value rather than (time_t) -1.
19739 Problem originally reported by William Bardwell
19740 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
19742 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
19744 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
19747 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
19749 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
19752 2006-09-08 Jim Meyering <jim@meyering.net>
19754 Don't make generated files read-only. That would bother too many
19755 people. However, do retain the ability to work when targets are
19756 read-only: remove the destination and temporary files before writing
19757 them (when generated via sed or echo), or by using the -f option for
19758 both cp and mv commands. Suggestion to use -f from Paul Eggert.
19759 * modules/alloca-opt, modules/argz, modules/arpa_inet:
19760 * modules/byteswap, modules/configmake, modules/fcntl:
19761 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
19762 * modules/localcharset, modules/netinet_in, modules/poll:
19763 * modules/stdbool, modules/stdint, modules/sys_select:
19764 * modules/sys_socket, modules/sys_stat, modules/sysexits:
19766 2006-09-08 Jim Meyering <jim@meyering.net>
19768 Avoid new build failure on FreeBSD 6.0.
19769 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
19770 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
19771 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
19773 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19775 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
19777 2006-09-07 Jim Meyering <jim@meyering.net>
19779 Fix global typo in last change: use chmod u-w, not chmod u-x.
19780 Spotted by Paul Eggert and Bruce Korb.
19781 * modules/alloca-opt, modules/argz, modules/arpa_inet:
19782 * modules/byteswap, modules/configmake, modules/fcntl:
19783 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
19784 * modules/localcharset, modules/netinet_in, modules/poll:
19785 * modules/stdbool, modules/stdint, modules/sys_select:
19786 * modules/sys_socket, modules/sys_stat, modules/sysexits:
19788 2006-09-06 Jim Meyering <jim@meyering.net>
19790 Make generated files be read-only.
19791 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
19792 Ensure that each generated file is now read-only.
19793 * modules/argz: Likewise.
19794 * modules/arpa_inet: Likewise.
19795 * modules/byteswap: Likewise.
19796 * modules/configmake: Likewise.
19797 * modules/fcntl: Likewise.
19798 * modules/fnmatch: Likewise.
19799 * modules/getopt: Likewise.
19800 * modules/glob: Likewise.
19801 * modules/inttypes: Likewise.
19802 * modules/netinet_in: Likewise.
19803 * modules/poll: Likewise.
19804 * modules/stdbool: Likewise.
19805 * modules/stdint: Likewise.
19806 * modules/sys_select: Likewise.
19807 * modules/sys_socket: Likewise.
19808 * modules/sys_stat: Likewise.
19809 * modules/sysexits: Likewise.
19810 * modules/localcharset: Same as above, but continue using temporary
19811 file named "t-$@" (why different?) rather than the "$@-t" used
19814 * modules/sysexits (Makefile.am): Replace literal occurrences
19815 of "sysexit.h" more readable, and more consistent, "$@".
19817 2006-09-06 Bruno Haible <bruno@clisp.org>
19819 * modules/striconv: New file.
19820 * modules/xstriconv: New file.
19821 * MODULES.html.sh (Internationalization functions): Add striconv,
19824 2006-09-06 Bruno Haible <bruno@clisp.org>
19826 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
19827 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
19828 not using libtool correctly.
19830 2006-09-06 Bruno Haible <bruno@clisp.org>
19832 * lib/striconv.h: New file.
19833 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
19835 * lib/xstriconv.h: New file.
19836 * lib/xstriconv.c: New file.
19838 2006-09-06 Bruno Haible <bruno@clisp.org>
19840 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
19843 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19845 * lib/argz_.h: Sync from Libtool.
19847 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
19848 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19850 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
19852 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
19854 * modules/trim: New file.
19856 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
19858 * lib/trim.h: New file.
19859 * lib/trim.c: New file.
19861 2006-09-05 Bruno Haible <bruno@clisp.org>
19863 * MODULES.html.sh (String handling): Add trim.
19865 2006-09-04 Karl Berry <karl@gnu.org>
19867 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
19868 until next release.
19870 2006-09-03 Bruno Haible <bruno@clisp.org>
19872 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
19875 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
19877 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
19878 not gl_GETLOADAVG. Omit unneeded semicolons.
19879 Problems reported by Ralf Wildenhues in
19880 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
19881 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
19882 at the end, which is the usual gnulib style.
19884 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
19885 of doing all the work ourselves.
19886 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
19887 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
19889 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
19891 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
19892 Problem reported by Ralf Wildenhues in
19893 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
19895 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
19896 HAVE_STRUCT_STATFS_F_FSTYPENAME.
19898 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
19900 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
19901 yesterday's patch by changing test -n to test -z.
19903 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
19905 * modules/getloadavg (Files): Add m4/getloadavg.m4.
19906 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
19907 the former is now obsolescent.
19909 * modules/chdir-long (Depends-on): Add fcntl.
19911 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
19913 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
19914 obsolescent, and programs should use gnulib instead.
19915 * m4/getloadavg.m4: New file, with contents taken from Autoconf
19916 but with prefixes changed.
19918 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
19920 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
19921 or stdbool.h, because they might not exist while configuring.
19923 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
19924 Don't include unistd.h or limits.h; not needed, since chdir-long.h
19926 (O_DIRECTORY): Remove.
19928 2006-08-31 Eric Blake <ebb9@byu.net>
19930 * gnulib-tool: Don't let emacs change spaces to TAB.
19932 2006-08-31 Bruno Haible <bruno@clisp.org>
19934 * gnulib-tool: When calling func_import more than once, do it in a
19936 Reported by Eric Blake <ebb9@byu.net>.
19938 2006-08-31 Bruno Haible <bruno@clisp.org>
19940 * gnulib-tool (nl): Remove variable.
19941 (sed_transform_lib_file): Use more robust test for config-h module.
19942 (func_import): Fix typo in 2006-08-25 patch.
19944 2006-08-31 Bruno Haible <bruno@clisp.org>
19946 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
19947 specified, augment Makefile.am variables instead of assigning them.
19949 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
19951 Work around a bug in both the Linux and SunOS 64-bit kernels:
19952 nanosleep mishandles sleeps for longer than 2**31 seconds.
19953 Problem reported by Frank v Waveren in
19954 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
19955 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
19956 Check for nanosleep bug.
19957 (LIB_NANOSLEEP): Append clock_gettime library if needed.
19959 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
19961 Work around a bug in both the Linux and SunOS 64-bit kernels:
19962 nanosleep mishandles sleeps for longer than 2**31 seconds.
19963 Problem reported by Frank v Waveren in
19964 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
19965 * lib/nanosleep.c (BILLION): New constant.
19966 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
19967 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
19970 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
19972 * modules/nanosleep (Depends-on): Add gettime.
19974 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
19975 and Simon Josefsson <jas@extundo.com>
19976 and Oskar Liljeblad <oskar@osk.mine.nu>
19978 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
19979 * gnulib-tool (func_import): New license type 'unmodifiable license
19981 * modules/fdl: Use it. Longer description.
19982 * module/gpl, module/lgpl: New files.
19984 2006-08-30 Jim Meyering <jim@meyering.net>
19986 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
19987 shadowing the parameter.
19989 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19993 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19995 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
19996 sharing with gnulib. Report by Eric Blake.
19998 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
20000 * modules/isapipe: New file.
20001 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
20003 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
20005 * modules/configmake (Makefile.am): Add a comment, and omit
20006 the CONFIGMAKE_ prefix from generated macro names. Suggested
20009 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
20011 * m4/isapipe.m4: New file.
20013 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
20015 * lib/isapipe.c, lib/isapipe.h: New files.
20017 2006-08-29 Jim Meyering <jim@meyering.net>
20019 * modules/configmake (Makefile.am): Make configmake.h depend on
20020 Makefile. Otherwise, a stale configmake.h could hang around.
20022 2006-08-29 Eric Blake <ebb9@byu.net>
20024 * lib/error.c (error_at_line, print_errno_message): Match libc, after
20025 resolution of upstream bug 3044.
20027 2006-08-29 Bruno Haible <bruno@clisp.org>
20029 * modules/localcharset (Depends-on): Add configmake.
20030 (Makefile.am): Remove setting of LIBDIR through DEFS.
20032 2006-08-29 Bruno Haible <bruno@clisp.org>
20034 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
20037 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
20039 * modules/fcntl: New file.
20040 * modules/chdir-safer (Depends-on): Add fcntl.
20041 * modules/fts: Likewise.
20042 * modules/mkdir-p: Likewise.
20044 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
20045 This undoes the most recent change, since we're now addressing the
20046 problem in a different way.
20048 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
20049 into output, since the output might be called Makefile.am even
20050 if $makefile_name is something different.
20051 (func_import): Use $makefile_am rather than
20052 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
20055 * modules/inttypes (Files): Add m4/inttypes-h.m4.
20057 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
20059 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
20060 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
20061 recent change to stdint.m4, since we're now addressing the problem in a
20064 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
20066 * m4/fcntl_h.m4: New file.
20068 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
20070 * lib/fcntl_.h: New file.
20071 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
20073 * lib/dirchownmod.c: Likewise.
20074 * lib/fts.c: Likewise.
20076 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
20077 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
20078 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
20079 just before including <inttypes.h>, to avoid circular inclusion.
20081 2006-08-28 Jim Meyering <jim@meyering.net>
20083 * doc/visibility.texi: Actually read and correct the grammar of the
20084 sentence affected by yesterday's change.
20086 2006-08-28 Eric Blake <ebb9@byu.net>
20088 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
20091 2006-08-28 Eric Blake <ebb9@byu.net>
20093 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
20095 2006-08-28 Eric Blake <ebb9@byu.net>
20097 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
20099 2006-08-28 Bruno Haible <bruno@clisp.org>
20101 * modules/c-strstr: New file, from GNU gettext.
20102 * MODULES.html.sh (String handling): Add c-strstr.
20104 2006-08-28 Bruno Haible <bruno@clisp.org>
20106 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
20108 Reported by Eric Blake.
20110 2006-08-28 Bruno Haible <bruno@clisp.org>
20112 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
20113 (VASNPRINTF): Return a string of length > INT_MAX without failing.
20114 * lib/vasprintf.c: Include errno.h, limits.h.
20115 (EOVERFLOW): New fallback definition.
20116 (vasprintf): Test here whether the string length is > INT_MAX.
20117 * lib/vsnprintf.c: Include errno.h, limits.h.
20118 (EOVERFLOW): New fallback definition.
20119 (vsnprintf): Fix bug when generated string was too long for the buffer.
20120 Test here whether the string length is > INT_MAX.
20122 2006-08-28 Bruno Haible <bruno@clisp.org>
20124 * lib/inttypes_.h (SCNX*): Remove definitions.
20125 Reported by Eric Blake.
20127 2006-08-28 Bruno Haible <bruno@clisp.org>
20129 * lib/c-strstr.h: New file, from GNU gettext.
20130 * lib/c-strstr.c: New file, from GNU gettext.
20132 2006-08-28 Bruno Haible <bruno@clisp.org>
20134 * gnulib-tool: Reorder some statements.
20136 2006-08-28 Bruno Haible <bruno@clisp.org>
20138 * gnulib-tool: New option --makefile-name.
20139 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
20141 (func_import): Write $makefile_name to the cache file, and read it from
20142 there unless explicitly specified. Use $makefile_name as file name
20143 instead of Makefile.am. Adjust the recommendations accordingly.
20145 2006-08-28 Bruno Haible <bruno@clisp.org>
20147 * gnulib-tool (func_verify_module): Check against misapplying patch.
20149 2006-08-28 Bruno Haible <bruno@clisp.org>
20151 * gnulib-tool (func_relativize, func_relconcat): New functions.
20152 Give an error if --local-dir is given with --update.
20153 Remove trailing slashes from $local_gnulib_dir.
20154 (func_import): Store the relativized $local_gnulib_dir in
20155 gnulib-cache.m4, and read it from there if not specified explicitly.
20157 2006-08-28 Bruno Haible <bruno@clisp.org>
20159 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
20160 is the current directory. Respect also $local_gnulib_dir.
20162 2006-08-28 Bruno Haible <bruno@clisp.org>
20163 Simon Josefsson <jas@extundo.com>
20166 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
20168 2006-08-27 Jim Meyering <jim@meyering.net>
20170 * doc/visibility.texi: Remove duplicate word: "pointer".
20172 2006-08-26 Bruno Haible <bruno@clisp.org>
20174 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
20175 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
20176 (Makefile.am): Create inttypes.h from inttypes_.h.
20177 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
20179 * modules/imaxabs: New file.
20181 * modules/imaxdiv: New file.
20183 2006-08-26 Bruno Haible <bruno@clisp.org>
20185 * m4/inttypes.m4: New file.
20186 * m4/_inttypes_h.m4: Remove file.
20187 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
20189 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
20191 * m4/imaxabs.m4: New file.
20193 * m4/imaxdiv.m4: New file.
20195 2006-08-26 Bruno Haible <bruno@clisp.org>
20197 * lib/inttypes_.h: New file.
20198 * lib/inttypes.h: Remove file.
20199 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
20201 * lib/imaxabs.c: New file.
20203 * lib/imaxdiv.c: New file.
20205 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
20207 New config-h module, so that "make" output needn't be cluttered
20208 by -DHAVE_CONFIG_H.
20209 * MODULES.html.sh (Support for building libraries and executables):
20211 * modules/config-h: New file.
20212 * gnulib-tool (nl, sed_transform_lib_file): New vars.
20213 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
20214 the config-h module is used.
20216 New configmake module, so that "make" output needn't be cluttered
20217 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
20218 * MODULES.html.sh (Support for building libraries and executables):
20220 * modules/configmake: New file.
20222 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
20224 * m4/config-h.m4: New file.
20226 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
20228 * config/srclist.txt: Add elisp-comp.
20230 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
20232 * MODULES.html.sh (Support for building libraries and executables):
20234 * build-aux/elisp-comp: New file.
20235 * modules/elisp-comp: New file.
20237 2006-08-24 Bruno Haible <bruno@clisp.org>
20239 * gnulib-tool (func_create_testdir): Use non-default values of
20240 sourcebase and m4base.
20242 2006-08-24 Bruno Haible <bruno@clisp.org>
20244 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
20247 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
20249 * modules/openat (Depends-on): Add lchown.
20251 2006-08-23 Bruno Haible <bruno@clisp.org>
20253 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
20254 of gl_LOCK_EARLY instead of gl_LOCK.
20256 2006-08-23 Bruno Haible <bruno@clisp.org>
20258 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
20260 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
20262 2006-08-23 Bruno Haible <bruno@clisp.org>
20264 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
20267 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
20268 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
20269 (gl_LOCK): New macro.
20271 2006-08-22 Simon Josefsson <jas@extundo.com>
20273 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
20276 2006-08-22 Simon Josefsson <jas@extundo.com>
20278 * MODULES.html.sh: Add "Support for maintaining and release
20281 * build-aux/gnupload: New file, from coreutils.
20283 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
20285 Avoid the need for AC_LIBSOURCES in m4 macros.
20286 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
20287 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
20288 * modules/check-version (EXTRA_DIST): Add check-version.h.
20289 * modules/crc (EXTRA_DIST): Add crc.h.
20290 * modules/des (EXTRA_DIST): Add des.h.
20291 * modules/gc (EXTRA_DIST): Add gc.h.
20292 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
20293 * modules/getline (EXTRA_DIST): Add getline.h.
20294 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
20295 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
20296 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
20297 * modules/md2 (EXTRA_DIST): Add md2.h.
20298 * modules/md4 (EXTRA_DIST): Add md4.h.
20299 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
20300 * modules/read-file (EXTRA_DIST): Add read-file.h.
20301 * modules/readline (EXTRA_DIST): Add readline.h.
20302 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
20303 rijndael-api-fst.h.
20305 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
20307 * m4/rijndael.m4 (gl_ARCFOUR):
20308 * m4/arctwo.m4 (gl_ARCTWO):
20309 * m4/check-version.m4 (gl_CHECK_VERSION):
20310 * m4/crc.m4 (gl_CRC):
20311 * m4/des.m4 (gl_DES):
20312 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
20313 * m4/gc.m4 (gl_GC):
20314 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
20315 * m4/getline.m4 (gl_FUNC_GETLINE):
20316 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
20317 * m4/hmac-md5.m4 (gl_HMAC_MD5):
20318 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
20319 * m4/md2.m4 (gl_MD2):
20320 * m4/md4.m4 (gl_MD4):
20321 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
20322 * m4/read-file.m4 (gl_FUNC_READ_FILE):
20323 * m4/readline.m4 (gl_FUNC_READLINE):
20324 * m4/rijndael.m4 (gl_RIJNDAEL):
20325 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
20326 to get the necessary .h files and whatnot.
20328 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
20330 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
20331 gnulib rather than the other way around.
20332 * config/srclistvars.sh (COREUTILS): Remove.
20334 2006-08-22 Jim Meyering <jim@meyering.net>
20336 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
20338 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
20340 2006-08-22 Eric Blake <ebb9@byu.net>
20342 * modules/regexprops-generic: New file.
20343 * MODULES.html.sh (Support for building documentation): List it.
20345 2006-08-22 Eric Blake <ebb9@byu.net>
20347 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
20348 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
20349 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
20350 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
20352 2006-08-22 Bruno Haible <bruno@clisp.org>
20354 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
20355 and lib_LTLIBRARIES like the other lib_* variables.
20357 2006-08-22 Bruno Haible <bruno@clisp.org>
20359 * build-aux/x-to-1.in: New file, from GNU gettext.
20361 2006-08-22 Bruno Haible <bruno@clisp.org>
20363 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
20366 2006-08-22 Bruno Haible <bruno@clisp.org>
20368 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
20371 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
20374 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
20376 Problem reported by Bruno Haible.
20378 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
20380 Avoid the need for AC_LIBSOURCES in m4 macros.
20381 * modules/acl (EXTRA_DIST): Add acl.h.
20382 * modules/argmatch (Files): Add m4/argmatch.m4.
20383 (configure.ac): Add gl_ARGMATCH.
20384 (EXTRA_DIST): Renamed from lib_SOURCES, for
20385 consistency with the other modules. Remove argmatch.c.
20386 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
20387 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
20388 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
20389 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
20390 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
20391 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
20392 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
20393 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
20394 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
20395 * modules/closeout (EXTRA_DIST): Add closeout.h.
20396 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
20397 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
20398 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
20399 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
20400 dirname.h; remove basename.c and stripslash.c.
20401 * modules/exclude (EXTRA_DIST): Add exclude.h.
20402 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
20403 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
20404 * modules/file-type (EXTRA_DIST): Add file-type.h.
20405 * modules/filemode (EXTRA_DIST): Add filemode.h.
20406 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
20407 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
20408 * modules/fpending (EXTRA_DIST): Add __fpending.h.
20409 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
20410 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
20411 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
20412 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
20413 * modules/getdate (EXTRA_DIST): Add getdate.c.
20414 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
20415 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
20416 * modules/getpass (EXTRA_DIST): Add getpass.h.
20417 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
20418 * modules/group-member (EXTRA_DIST): Add group-member.h.
20419 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
20420 * modules/hash (EXTRA_DIST): Add hash.h.
20421 * modules/human (EXTRA_DIST): Add human.h.
20422 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
20423 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
20424 * modules/lchown (EXTRA_DIST): Add lchown.h.
20425 * modules/long-options (EXTRA_DIST): Add long-options.h.
20426 * modules/lstat (EXTRA_DIST): Add lstat.h.
20427 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
20428 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
20429 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
20430 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
20431 * modules/memxor (EXTRA_DIST): Add memxor.h.
20432 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
20433 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
20434 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
20435 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
20436 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
20437 * modules/physmem (EXTRA_DIST): Add physmem.h.
20438 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
20439 * modules/posixver (EXTRA_DIST): Add posixver.h.
20440 * modules/quote (EXTRA_DIST): Add quote.h.
20441 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
20442 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
20443 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
20444 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
20445 regex_internal.h regexec.c.
20446 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
20447 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
20448 * modules/same (EXTRA_DIST): Add same.h.
20449 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
20450 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
20451 * modules/savedir (EXTRA_DIST): Add savedir.h.
20452 * modules/sha1 (EXTRA_DIST): Add sha1.h.
20453 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
20454 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
20455 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
20456 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
20457 * modules/strdup (EXTRA_DIST): Add strdup.h.
20458 * modules/strftime (EXTRA_DIST): Add strftime.h.
20459 * modules/strndup (EXTRA_DIST): Add strndup.h.
20460 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
20461 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
20462 * modules/time_r (EXTRA_DIST): Add time_r.h.
20463 * modules/timespec (EXTRA_DIST): Add timespec.h.
20464 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
20465 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
20466 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
20467 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
20468 * modules/userspec (EXTRA_DIST): Add userspec.h.
20469 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
20470 * modules/utimens (EXTRA_DIST): Add utimens.h.
20471 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
20472 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
20473 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
20474 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
20475 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
20476 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
20477 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
20478 * modules/yesno (EXTRA_DIST): Add yesno.h.
20480 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
20482 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
20484 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
20485 * m4/dev-ino.m4, same-inode.m4: Remove.
20487 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
20488 * m4/acl.m4 (AC_FUNC_ACL):
20489 * m4/backupfile.m4 (gl_BACKUPFILE):
20490 * m4/c-strtod.m4 (gl_C99_STRTOLD):
20491 * m4/canon-host.m4 (gl_CANON_HOST):
20492 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
20493 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
20494 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
20495 * m4/cloexec.m4 (gl_CLOEXEC):
20496 * m4/close-stream.m4 (gl_CLOSE_STREAM):
20497 * m4/closeout.m4 (gl_CLOSEOUT):
20498 * m4/dirfd.m4 (gl_FUNC_DIRFD):
20499 * m4/dirname.m4 (gl_DIRNAME):
20500 * m4/exclude.m4 (gl_EXCLUDE):
20501 * m4/exitfail.m4 (gl_EXITFAIL):
20502 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
20503 * m4/file-type.m4 (gl_FILE_TYPE):
20504 * m4/filemode.m4 (gl_FILEMODE):
20505 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
20506 * m4/fpending.m4 (gl_FUNC_FPENDING):
20507 * m4/fprintftime.m4 (gl_FPRINTFTIME):
20508 * m4/fts.m4 (gl_FUNC_FTS):
20509 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
20510 * m4/getdate.m4 (gl_GETDATE):
20511 * m4/gethrxtime.m4 (gl_GETHRXTIME):
20512 * m4/getpagesize.m4 (gl_GETPAGESIZE):
20513 * m4/getpass.m4 (gl_FUNC_GETPASS):
20514 * m4/gettime.m4 (gl_GETTIME):
20515 * m4/getugroups.m4 (gl_GETUGROUPS):
20516 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
20517 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
20518 * m4/hard-locale.m4 (gl_HARD_LOCALE):
20519 * m4/hash.m4 (gl_HASH):
20520 * m4/idcache.m4 (gl_IDCACHE):
20521 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
20522 * m4/lchown.m4 (gl_FUNC_LCHOWN):
20523 * m4/long-options.m4 (gl_LONG_OPTIONS):
20524 * m4/lstat.m4 (gl_FUNC_LSTAT):
20525 * m4/md5.m4 (gl_MD5):
20526 * m4/memcasecmp.m4 (gl_MEMCASECMP):
20527 * m4/memcoll.m4 (gl_MEMCOLL):
20528 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
20529 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
20530 * m4/memxor.m4 (gl_MEMXOR):
20531 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
20532 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
20533 * m4/modechange.m4 (gl_MODECHANGE):
20534 * m4/mountlist.m4 (gl_MOUNTLIST):
20535 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
20536 * m4/openat.m4 (gl_FUNC_OPENAT):
20537 * m4/pathmax.m4 (gl_PATHMAX):
20538 * m4/physmem.m4 (gl_PHYSMEM):
20539 * m4/posixtm.m4 (gl_POSIXTM):
20540 * m4/posixver.m4 (gl_POSIXVER):
20541 * m4/quote.m4 (gl_QUOTE):
20542 * m4/quotearg.m4 (gl_QUOTEARG):
20543 * m4/readtokens.m4 (gl_READTOKENS):
20544 * m4/readutmp.m4 (gl_READUTMP):
20545 * m4/regex.m4 (gl_REGEX):
20546 * m4/safe-read.m4 (gl_SAFE_READ):
20547 * m4/safe-write.m4 (gl_SAFE_WRITE):
20548 * m4/same.m4 (gl_SAME):
20549 * m4/save-cwd.m4 (gl_SAVE_CWD):
20550 * m4/savedir.m4 (gl_SAVEDIR):
20551 * m4/settime.m4 (gl_SETTIME):
20552 * m4/sha1.m4 (gl_SHA1):
20553 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
20554 * m4/stat-macros.m4 (gl_STAT_MACROS):
20555 * m4/stat-time.m4 (gl_STAT_TIME):
20556 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
20557 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
20558 * m4/strdup.m4 (gl_FUNC_STRDUP):
20559 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
20560 * m4/strndup.m4 (gl_FUNC_STRNDUP):
20561 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
20562 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
20563 * m4/time_r.m4 (gl_TIME_R):
20564 * m4/timespec.m4 (gl_TIMESPEC):
20565 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
20566 * m4/unlinkdir.m4 (gl_UNLINKDIR):
20567 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
20568 * m4/userspec.m4 (gl_USERSPEC):
20569 * m4/utimecmp.m4 (gl_UTIMECMP):
20570 * m4/utimens.m4 (gl_UTIMENS):
20571 * m4/xalloc.m4 (gl_XALLOC):
20572 * m4/xgetcwd.m4 (gl_XGETCWD):
20573 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
20574 * m4/xreadlink.m4 (gl_XREADLINK):
20575 * m4/xstrtod.m4 (gl_XSTRTOD):
20576 * m4/yesno.m4 (gl_YESNO):
20577 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
20578 to get the necessary .h files and whatnot.
20580 2006-08-21 Mark D. Baushke <mdb@gnu.org>
20581 Bruno Haible <bruno@clisp.org>
20583 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
20584 /bin/sh understanding of '!' conditional negation.
20586 2006-08-21 Jim Meyering <jim@meyering.net>
20588 * modules/openat (Depends-on): Really alphabetize.
20590 * modules/acl (Depends-on): Add error and quote.
20592 * check-module (find_included_lib_files): Add at-func.c to the
20593 ok-to-include-more-than-once white list.
20595 * modules/openat (Depends-on): Add lstat. Alphabetize.
20597 2006-08-21 Bruno Haible <bruno@clisp.org>
20599 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20600 Emit a pkgdata_DATA variable only if some snippets add contents to it.
20601 Reported by Martin Lambers <marlam@marlam.de>.
20603 2006-08-21 Bruno Haible <bruno@clisp.org>
20605 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
20606 specify an installation location, don't emit a noinst_LIBRARIES or
20607 noinst_LTLIBRARIES assignment.
20609 2006-08-21 Bruno Haible <bruno@clisp.org>
20612 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
20613 BeOS has mbrtowc() but no <wctype.h>.
20615 2006-08-21 Bruno Haible <bruno@clisp.org>
20618 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
20621 2006-08-21 Bruno Haible <bruno@clisp.org>
20624 * lib/mbchar.h: Include <wctype.h> only if it exists.
20626 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
20628 Remove files that are no longer needed by their respective modules.
20629 * m4/obstack.m4: Remove.
20630 * m4/strerror_r.m4: Remove.
20631 * m4/uint32_t.m4: Remove.
20632 * m4/uintptr_t.m4: Remove.
20633 * m4/ullong_max.m4: Remove.
20634 * m4/xstrtoimax.m4: Remove.
20635 * m4/xstrtoumax.m4: Remove.
20637 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
20638 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
20639 dependencies now capture this.
20641 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
20642 Do not use AC_LIBSOURCES, since gnulib modules now do this.
20643 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
20644 * m4/human.m4 (gl_HUMAN): Likewise.
20645 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
20646 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
20648 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
20650 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
20651 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
20653 * m4/human.m4 (gl_HUMAN): Likewise.
20654 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
20655 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
20656 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
20657 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
20658 * m4/xstrtol (gl_XSTRTOL): Likewise.
20660 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
20661 AC_TYPE_LONG_LONG_INT.
20662 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
20663 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
20664 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
20665 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
20667 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
20670 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
20671 (gl_PREREQ_XSTRTOUL): Remove.
20673 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
20675 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
20678 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
20680 Add and change modules to make it easier for coreutils to use
20682 * modules/backupfile (Files): Remove m4/d-ino.m4.
20683 (Depends-on): Add d-ino.
20684 * modules/cycle-check (Depends-on): Add stdint.
20685 (lib_SOURCES): Add cycle-check.h.
20686 * modules/d-ino: New module.
20687 * modules/d-type: New module.
20688 * modules/error (Files): Remove m4/strerror_r.m4.
20689 * modules/filemode (Files): Add m4/st_dm_mode.m4.
20690 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
20691 m4/inttypes_h.m4, m4/uintmax_t.m4.
20692 (Depends-on): Add stdint.
20693 (lib_SOURCES): Add fsusage.h.
20694 * modules/getcwd (Files): Remove d-ino.m4.
20695 (Depends-on): Add d-ino.
20696 * modules/getndelim2 (Depends-on): Add stdint.
20697 * modules/glob (Files): Remove m4/d-type.m4.
20698 (Depends-on): Add d-type.
20699 * modules/host-os: New module.
20700 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
20701 m4/inttypes_h.m4, m4/uintmax_t.m4.
20702 * Depends-on: Add stdint.
20703 (lib_SOURCES): Add human.h.
20704 * modules/inttostr (Files): Remove m4/intmax_t.m4,
20705 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
20706 m4/uintmax_t.m4, m4/ulonglong.m4.
20707 (Depends-on): Add stdint.
20708 (EXTRA_DIST): Add inttostr.h.
20709 * modules/lchmod: New module.
20710 * modules/link-follow: New module.
20711 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
20712 (Depends-on): Add lchmod.
20713 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
20714 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
20715 (Depends-on): Add stdint.
20716 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
20717 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
20718 (Depends-on): Add stdint.
20719 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
20720 * modules/perl: New module.
20721 * modules/regex (Depends-on): Add stdint.
20722 * modules/rmdir-errno: New module.
20723 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
20725 (Depends-on): Add stdint.
20726 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
20728 (Depends-on): Add stdint.
20729 * modules/unlink-busy: New module.
20730 * modules/utimecmp (Depends-on): Add stdint.
20731 * modules/uptime: New module.
20732 * modules/winsz-ioctl: New module.
20733 * modules/winsz-termios: New module.
20734 * modules/xnanosleep (Depends-on): Add nanosleep.
20735 * modules/ullong_max: Remove.
20736 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
20737 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
20738 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
20739 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
20740 (Depends-on): Add inttypes.
20741 (lib_SOURCES): Add xstrtol.h.
20742 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
20743 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
20744 * MODULES.html.sh: Move 'assert' into the assert section.
20745 Move 'dummy' into the linking section.
20747 Add section for compatibility checks for POSIX:2001 functions,
20748 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
20749 winsz-ioctl, and winsz-termios into it.
20751 Add top-level Misc section and put host-os, perl, and uptime
20754 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
20756 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
20757 now assume the stdint module. Do not include inttypes.h.
20758 * lib/fsusage.h: Likewise.
20759 * lib/getndelim2.c: Likewise.
20760 * lib/human.h: Likewise.
20761 * lib/inttostr.h: Likewise.
20762 * lib/obstack.c: Likewise.
20763 * lib/regex_internal.h: Likewise.
20764 * lib/tempname.c: Likewise.
20765 * lib/utimecmp.c: Likewise.
20766 * lib/xstrtol.h: Likewise.
20768 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
20770 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
20771 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
20772 * lib/xtime.h: Likewise.
20774 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
20776 * modules/openat (Files): Add lib/fchmodat.c.
20777 Fixes problem reported by Jay Youngman.
20779 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
20781 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
20782 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
20784 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
20785 Bruno Haible <bruno@clisp.org>
20787 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
20788 and is a script that invokes bison. Tighten the code. Add comments.
20790 2006-08-18 Jim Meyering <jim@meyering.net>
20792 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
20793 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
20794 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
20795 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
20797 2006-08-18 Bruno Haible <bruno@clisp.org>
20799 * modules/bison-i18n: New file.
20800 * MODULES.html.sh (Internationalization functions): Add it.
20802 2006-08-18 Bruno Haible <bruno@clisp.org>
20804 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
20805 sys/statvfs.h. When getmntinfo was found, check its declaration and
20806 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
20808 2006-08-18 Bruno Haible <bruno@clisp.org>
20810 * m4/bison-i18n.m4: New file, from bison.
20812 2006-08-18 Bruno Haible <bruno@clisp.org>
20814 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
20815 (ME_DUMMY): Treat "kernfs" as a dummy.
20816 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
20818 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
20820 Update from coreutils.
20822 2006-08-15 Jim Meyering <jim@meyering.net>
20824 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
20826 2006-01-17 Jim Meyering <jim@meyering.net>
20828 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
20830 2006-01-11 Jim Meyering <jim@meyering.net>
20832 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
20833 Check for the lchmod function.
20835 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
20837 Update from coreutils.
20839 * lib/__fpending.h: Add copyright notice.
20840 * lib/fprintftime.h: Likewise.
20841 * lib/savedir.c: Use (C) in copyright notice.
20842 * lib/savedir.h: Likewise.
20844 2006-08-15 Jim Meyering <jim@meyering.net>
20846 * lib/at-func.c: New file, with the logic of all emulated at-functions.
20847 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
20848 in support of the EXPECTED_ERRNO macro.
20849 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
20850 definitions. Instead, define the appropriate symbols and include
20852 * lib/mkdirat.c (mkdirat): Likewise.
20853 * lib/fchmodat.c (fchmodat): Likewise.
20854 (ENOSYS): Remove definition.
20855 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
20856 it. Don't include "unistd--.h" -- it wasn't ever used.
20858 2006-01-17 Jim Meyering <jim@meyering.net>
20860 Rewrite fts.c not to change the current working directory,
20861 by using openat, fstatat, fdopendir, etc..
20863 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
20864 (HAVE_OPENAT_SUPPORT): Define.
20865 [_LIBC] (fchdir): Don't undef or define; no longer used.
20866 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
20867 Now, this `function' always succeeds, and consumes its file descriptor
20868 parameter -- so callers must not close such FDs. Update callers.
20869 (diropen_fd, opendirat, cwd_advance_fd): New functions.
20870 (diropen): Add parameter, SP. Adjust all callers.
20871 Implement using diropen_fd, rather than open.
20872 (fts_open): Initialize new member, fts_cwd_fd.
20873 Remove fts_rft-setting code.
20874 (fts_close): Close fts_cwd_fd, if necessary.
20875 (__opendir2): Define in terms of opendir or opendirat,
20876 depending on whether the FST_NOCHDIR flag is set.
20877 (fts_build): Since fts_safe_changedir consumes its FD, and since
20878 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
20879 and close the dup'd file descriptor upon failure.
20880 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
20881 (fts_safe_changedir): Tweak semantics to reflect that this function
20882 now calls cwd_advance_fd and hence consumes its FD argument.
20883 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
20884 [struct FTS] (fts_rft): Remove now-unused member.
20885 [struct FTS] (fts_cycle.state): Improve comment.
20887 * lib/openat.c (openat_needs_fchdir): New function.
20888 * lib/openat.h (openat_needs_fchdir): Declare it.
20890 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
20892 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
20893 Problem and fix reported by Pádraig Brady in
20894 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
20896 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
20898 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
20900 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
20902 * lib/memcoll.c (memcoll): Optimize for the common case where the
20903 arguments are bytewise equal.
20905 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
20907 * doc/regexprops-generic.texi: Add a copyright notice.
20909 2006-08-15 Bruno Haible <bruno@clisp.org>
20911 * modules/tmpdir (License): Change to LGPL.
20913 2006-08-15 Bruno Haible <bruno@clisp.org>
20915 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
20918 2006-08-14 Simon Josefsson <jas@extundo.com>
20920 * config/srclist.txt: Add gnupload.
20922 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
20924 Change copyright notice from LGPL 2 to GPL 2, since that's the
20925 standard form used in the gnulib repository.
20926 * tests/test-lock.c: Likewise.
20927 * tests/test-stdint.c: Likewise.
20928 * tests/test-tls.c: Likewise.
20930 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
20931 prelude-manager. User shorter URLs for GNU projects, without '?'.
20932 Add copyright notice.
20934 * check-module: Add copyright notice. Output a copyright
20935 notice if "--version" is specified.
20936 * modules/COPYING: New file.
20937 * tests/test-getaddrinfo.c: Add copyright notice.
20938 * tests/test-verify.c: Likewise.
20940 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
20942 Change copyright notice from LGPL 2 to GPL 2, since that's the
20943 standard form used in the gnulib repository.
20944 * lib/lock.c: LGPL -> GPL.
20945 * lib/lock.h: Likewise.
20946 * lib/strnlen1.c: Likewise.
20947 * lib/strnlen1.h: Likewise.
20948 * lib/tls.c: Likewise.
20949 * lib/tls.h: Likewise.
20950 * lib/tmpdir.c: Likewise.
20952 * lib/TODO: Remove; this belongs only in coreutils.
20954 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
20956 Add copyright notices to long-enough files that lack them, since
20957 otherwise the files aren't clearly free. Use the same notice that
20958 getdate.texi already uses.
20959 * doc/alloca-opt.texi: Add copyright notice.
20960 * doc/alloca.texi: Likewise.
20961 * doc/ctime.texi: Likewise.
20962 * doc/functions.texi: Likewise.
20963 * doc/gcd.texi: Likewise.
20964 * doc/gnulib-tool.texi: Likewise.
20965 * doc/inet_ntoa.texi: Likewise.
20966 * doc/visibility.texi: Likewise.
20968 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
20969 * doc/quote.texi: Add copyright notice.
20971 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
20972 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
20973 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
20974 Mention SunOS 5.11. Mention that everything before SunOS 5.7
20975 is now obsolete, and give a pointer to the Sun list.
20976 Add copyright notice.
20978 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
20980 * config/srclistvars.sh: Add copyright notice.
20982 2006-08-14 Eric Blake <ebb9@byu.net>
20984 Import the following change from libc:
20986 2006-08-12 Ulrich Drepper <drepper@redhat.com>
20989 * lib/misc/error.c: Add space between program name and message if file
20992 2006-08-12 Karl Berry <karl@gnu.org>
20994 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
20995 remove, these originate in gnulib now.
20997 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20999 * doc/Makefile (standards.info standards.html standards.dvi):
21000 Also depend on make-stds.texi.
21002 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
21004 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
21005 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
21007 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
21008 in wchar_t. Problem reported by Eric Blake.
21010 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
21011 LEN is smaller than SIZE. Suggested by Bruno Haible.
21012 Also, help the compiler to keep LEN in a register.
21014 2006-08-11 Eric Blake <ebb9@byu.net>
21016 * users.txt: Sort. Add tar.
21018 2006-08-11 Bruno Haible <bruno@clisp.org>
21020 * users.txt: New file.
21022 2006-08-11 Bruno Haible <bruno@clisp.org>
21024 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
21025 before <wchar.h>. Needed for OSF/1 and BSD/OS.
21027 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
21029 * modules/snprintf (Depends-on): Remove minmax.
21030 (Maintainer): Add self and Bruno.
21032 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
21034 * lib/.cppi-disable: Add snprintf.h, socket_.h.
21035 * lib/snprintf.c: Include <errno.h> and <limits.h>.
21036 (EOVERFLOW): Define if the system does not.
21037 Do not include "minmax.h"; it wasn't used.
21038 (snprintf): Don't assume size_t promotes to an unsigned type.
21039 Fix bug when generated string was too long for the buffer: the
21040 buffer's contents are supposed to be the initial prefix of the
21041 output. Don't assume vasnprintf returns EOVERFLOW if the size
21042 exceeds INT_MAX; do the check ourselves.
21044 Import the following changes from libc:
21046 2006-06-02 Jakub Jelinek <jakub@redhat.com>
21048 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
21049 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
21050 set wc to the byte which couldn't be converted.
21051 (re_string_reconstruct): Don't clear valid_raw_len before calling
21052 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
21053 tip_context using re_string_context_at.
21055 2006-05-02 Ulrich Drepper <drepper@redhat.com>
21057 * lib/posix/regex.h: g++ still cannot handled [restrict].
21059 2006-04-21 Ulrich Drepper <drepper@redhat.com>
21061 * lib/posix/regex.h: Remove special handling for VMS.
21063 2006-08-10 Jim Meyering <jim@meyering.net>
21065 * modules/same-inode: New module.
21066 * modules/dev-ino: New module.
21067 * modules/cycle-check: Depend on these modules, rather than simply
21068 including their .h files.
21069 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
21070 required via m4/cycle-check.m4.
21071 * modules/same: Depend on new same-inode module, rather than
21072 including same-inode.h.
21073 * modules/chdir-safer: New file.
21075 * modules/chown (Depends-on): Add stat-macros.
21077 2006-08-10 Jim Meyering <jim@meyering.net>
21079 * m4/cycle-check.m4: New file.
21080 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
21081 * m4/dev-ino.m4, m4/same-inode.m4: New files.
21083 2006-08-10 Eric Blake <ebb9@byu.net>
21085 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
21086 in from original proposal.
21088 2006-08-10 Eric Blake <ebb9@byu.net>
21089 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21091 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
21094 2006-08-10 Bruno Haible <bruno@clisp.org>
21096 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
21099 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
21101 Sync from coreutils.
21103 2006-07-19 Mike Frysinger <vapier@gentoo.org>
21105 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
21106 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
21108 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
21110 * modules/restrict: Remove; no longer needed now that we assume
21111 Autoconf 2.59 or later.
21112 * MODULES.html.sh: Remove 'restrict'.
21113 * modules/argp (Depends-on): Remove 'restrict'.
21114 * modules/base64 (Depends-on): Likewise.
21115 * modules/gc (Depends-on): Likewise.
21116 * modules/getaddrinfo (Depends-on): Likewise.
21117 * modules/glob (Depends-on): Likewise.
21118 * modules/inet_ntop (Depends-on): Likewise.
21119 * modules/inet_pton (Depends-on): Likewise.
21120 * modules/memxor (Depends-on): Likewise.
21121 * modules/regex (Depends-on): Likewise.
21122 * modules/strtok_r (Depends-on): Likewise.
21123 * modules/time_r (Depends-on): Likewise.
21125 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
21127 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
21128 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
21129 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
21130 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
21131 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
21132 * m4/memxor.m4 (gl_MEMXOR): Likewise.
21133 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
21134 gl_C_RESTRICT replaced by AC_C_RESTRICT.
21136 Merge from coreutils.
21137 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
21138 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
21139 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
21140 * m4/time_r.m4 (gl_TIME_R): Likewise.
21142 2006-08-09 Karl Berry <karl@gnu.org>
21144 * config/srclist.txt: no more gettext-tools, per Bruno.
21146 2006-08-08 Eric Blake <ebb9@byu.net>
21148 * modules/verror: New module.
21149 * MODULES.html.sh: Document it.
21151 2006-08-08 Eric Blake <ebb9@byu.net>
21153 * lib/verror.h, lib/verror.c: New files.
21155 2006-08-08 Eric Blake <ebb9@byu.net>
21157 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
21158 verror_at_line output complies with GNU Coding Standards even when
21161 2006-08-07 Bruno Haible <bruno@clisp.org>
21163 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
21165 Reported by Ralf Wildenhues.
21167 2006-08-07 Bruno Haible <bruno@clisp.org>
21169 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
21170 in an AC_DEFUN. Needed so that the autoconf snippets can use
21173 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21175 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21176 Initialize pkgdata_DATA.
21177 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
21180 2006-08-06 Eric Blake <ebb9@byu.net>
21182 * lib/error.h: Fold in some upstream changes from glibc.
21183 * lib/error.c: Likewise.
21185 2006-08-04 Bruno Haible <bruno@clisp.org>
21187 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21188 Make the mostlyclean-local rule depend on mostlyclean-generic.
21189 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
21191 2006-07-31 Bruno Haible <bruno@clisp.org>
21193 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
21194 <stdlib.h>, <string.h>.
21196 2006-07-30 Bruno Haible <bruno@clisp.org>
21198 * modules/readlink (License): Change to LGPL.
21200 2006-07-30 Bruno Haible <bruno@clisp.org>
21202 * modules/javaversion (Makefile.am): Distribute javaversion.java and
21203 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
21204 set PKGDATADIR to point to it.
21206 2006-07-30 Bruno Haible <bruno@clisp.org>
21208 * modules/csharpexec (configure.ac): Comment out macro invocation.
21209 * modules/javaexec (configure.ac): Likewise.
21210 * modules/javacomp-script (configure.ac): Likewise.
21212 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
21214 2006-07-30 Bruno Haible <bruno@clisp.org>
21216 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
21219 2006-07-30 Bruno Haible <bruno@clisp.org>
21221 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
21223 2006-07-30 Bruno Haible <bruno@clisp.org>
21225 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
21226 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
21229 2006-07-29 Bruno Haible <bruno@clisp.org>
21231 Make it possible for gnulib-tool to work with locally modified or
21232 augmented gnulib repositories.
21233 * gnulib-tool (func_usage): Document --local-dir option.
21234 (local_gnulib_dir): New variable.
21235 Handle --local-dir option.
21236 (func_lookup_file): New function.
21237 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
21238 (func_get_description, func_get_filelist, func_get_description,
21239 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
21240 func_get_automake_snippet, func_get_include_directive,
21241 func_get_license, func_get_maintainer): Use func_lookup_file.
21242 (func_import, func_create_testdir): Use func_lookup_file.
21244 2006-07-29 Bruno Haible <bruno@clisp.org>
21246 * modules/setenv (Depends-on): Add unistd.
21248 2006-07-29 Bruno Haible <bruno@clisp.org>
21250 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
21252 2006-07-29 Bruno Haible <bruno@clisp.org>
21254 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
21256 2006-07-29 Bruno Haible <bruno@clisp.org>
21258 * gnulib-tool (import, update): If there is no Makefile.am, look at
21259 aclocal.m4, instead of bailing out.
21261 2006-07-29 Bruno Haible <bruno@clisp.org>
21263 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
21264 Categorize the options by when they are useful.
21266 2006-07-29 Bruno Haible <bruno@clisp.org>
21268 * gnulib-tool (func_usage): Document option --no-libtool.
21269 Handle option --no-libtool.
21270 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
21271 for changed semantics of $libtool variable.
21272 (func_import): Likewise. If libtool is not used, show this through
21273 an option --no-libtool.
21274 (func_create_testdir): Update.
21276 2006-07-29 Bruno Haible <bruno@clisp.org>
21278 * gnulib-tool (func_import): Extend error message about missing
21281 2006-07-29 Bruno Haible <bruno@clisp.org>
21283 * gnulib-tool (func_import): Don't create the $docbase directory if
21284 there is no file to store there.
21286 2006-07-29 Bruno Haible <bruno@clisp.org>
21288 * gnulib-tool (autoconf_minversion): If a --dir option is given and
21289 relevant, look for configure.ac there, not in the current directory.
21290 Also use a simple search for AC_PREREQ, not "autoconf --trace".
21292 2006-07-29 Bruno Haible <bruno@clisp.org>
21294 * gnulib-tool (SORT): New variable.
21295 (func_usage): Undocument --assume-autoconf option.
21296 Remove --assume-autoconf option handling.
21297 (autoconf_minversion): Determine from the contents of configure.ac.
21298 (func_import): Remove autoconf_minversion handling.
21299 Suggested by Eric Blake.
21301 2006-07-29 Bruno Haible <bruno@clisp.org>
21303 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
21305 2006-07-29 Bruno Haible <bruno@clisp.org>
21307 * config/srclist.txt (*setenv.[ch]): Remove rules.
21309 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21311 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
21313 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21315 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
21318 2006-07-28 Simon Josefsson <jas@extundo.com>
21320 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
21321 * modules/inet_pton (Depends-on): Likewise.
21323 2006-07-28 Simon Josefsson <jas@extundo.com>
21325 * m4/netinet_in_h.m4: New file.
21327 2006-07-28 Simon Josefsson <jas@extundo.com>
21329 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
21332 2006-07-28 Simon Josefsson <jas@extundo.com>
21334 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
21337 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
21339 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
21340 setgid on directories only if they set these bits.
21341 * lib/modechange.h: Remove obsolete comment about masks.
21343 2006-07-28 Eric Blake <ebb9@byu.net>
21345 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
21348 2006-07-28 Bruno Haible <bruno@clisp.org>
21350 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
21352 2006-07-28 Bruno Haible <bruno@clisp.org>
21354 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
21356 2006-07-28 Bruno Haible <bruno@clisp.org>
21358 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
21359 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
21361 Avoids link error on FreeBSD 4.x.
21362 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21364 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
21366 * lib/mbswidth.c (iswcntrl): Likewise.
21368 2006-07-27 Bruno Haible <bruno@clisp.org>
21370 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
21373 2006-07-27 Bruno Haible <bruno@clisp.org>
21375 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
21376 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
21379 2006-07-26 Eric Blake <ebb9@byu.net>
21381 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
21383 2006-07-26 Eric Blake <ebb9@byu.net>
21385 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
21386 like mingw that lack mkstemp.
21387 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
21388 avoid compilation warning on mingw.
21390 2006-07-26 Bruno Haible <bruno@clisp.org>
21392 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
21393 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
21394 INT_FAST*_MIN, INTPTR_MIN.
21396 2006-07-25 Bruno Haible <bruno@clisp.org>
21398 * modules/version-etc (Depends-on): Add stdarg.
21400 2006-07-25 Bruno Haible <bruno@clisp.org>
21402 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
21405 2006-07-25 Bruno Haible <bruno@clisp.org>
21407 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
21408 defined in <stdarg.h> or config.h.
21410 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
21412 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
21413 (gl_STDIO_SAFER): Remove.
21415 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
21417 * MODULES.html.sh (File stream based Input/Output):
21418 Add fopen-safer, tmpfile-safer; remove stdio-safer.
21419 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
21420 * modules/fopen-safer, modules/tmpfile-safer: New files.
21421 * modules/stdio-safer: Remove.
21423 2006-07-24 Bruno Haible <bruno@clisp.org>
21425 * modules/tmpdir: New file.
21426 * MODULES.html.sh (File system functions): Add it.
21428 2006-07-24 Bruno Haible <bruno@clisp.org>
21430 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
21431 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
21433 2006-07-24 Bruno Haible <bruno@clisp.org>
21435 * modules/clean-temp: New file.
21437 2006-07-24 Bruno Haible <bruno@clisp.org>
21439 * m4/tmpdir.m4: New file, from GNU gettext.
21441 2006-07-24 Bruno Haible <bruno@clisp.org>
21443 * lib/tmpdir.h: New file, from GNU gettext.
21444 * lib/tmpdir.c: New file, from GNU gettext.
21446 2006-07-24 Bruno Haible <bruno@clisp.org>
21448 * lib/clean-temp.h: New file, from GNU gettext.
21449 * lib/clean-temp.c: New file, from GNU gettext.
21451 2006-07-23 Eric Blake <ebb9@byu.net>
21453 * modules/stdio-safer (Files): Add tmpfile-safer.c.
21454 (Depends-on): Add binary-io.
21456 2006-07-23 Eric Blake <ebb9@byu.net>
21458 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
21460 2006-07-23 Eric Blake <ebb9@byu.net>
21462 * lib/tmpfile-safer.c: New file.
21463 * lib/stdio-safer.h (fopen_safer): Add prototype.
21464 * lib/stdio--.h (tmpfile): Make safer.
21466 2006-07-23 Bruno Haible <bruno@clisp.org>
21468 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
21469 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
21470 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
21471 gl_linked_remove_at): Use it.
21473 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21474 and Simon Josefsson <jas@extundo.com>
21476 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
21478 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
21480 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
21482 * modules/close-stream: New file.
21483 * modules/closeout (Description): Make it clear that it exits
21484 with a diagnostic on error.
21485 (Depends-on): Add close-stream. Remove fpending, stdbool.
21486 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
21488 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
21490 * m4/close-stream.m4: New file.
21492 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
21494 * lib/close-stream.c, lib/close-stream.h: New files.
21496 2006-07-22 Bruno Haible <bruno@clisp.org>
21498 Merge from GNU gettext 0.15.
21500 2006-05-01 Bruno Haible <bruno@clisp.org>
21502 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
21504 2006-07-22 Bruno Haible <bruno@clisp.org>
21506 * modules/javaversion: New file.
21507 * MODULES.html.sh (Java): Add javaversion.
21509 2006-03-12 Bruno Haible <bruno@clisp.org>
21511 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
21513 2005-12-04 Bruno Haible <bruno@clisp.org>
21515 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
21518 2006-06-21 Bruno Haible <bruno@clisp.org>
21520 Avoid warnings from recent versions of mcs.
21521 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
21522 -o, -L, -r any more. Use options documented since mcs-1.0
21523 instead. Similarly for -g.
21525 2005-12-04 Bruno Haible <bruno@clisp.org>
21527 * build-aux/csharpcomp.sh.in: Suffix for resources is
21528 .resources, not .resource.
21530 2005-07-09 Bruno Haible <bruno@clisp.org>
21532 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
21534 Reported by Mark Junker <mjscod@gmx.de>.
21536 2006-07-22 Bruno Haible <bruno@clisp.org>
21538 * modules/gettext: Upgrade to gettext-0.15.
21539 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
21541 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
21543 2006-07-22 Bruno Haible <bruno@clisp.org>
21545 Merge from GNU gettext 0.15.
21547 2006-03-25 Bruno Haible <bruno@clisp.org>
21549 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
21551 2006-07-21 Bruno Haible <bruno@clisp.org>
21553 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
21556 2006-05-09 Bruno Haible <bruno@clisp.org>
21558 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
21559 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
21560 for the conftestver execution.
21562 2006-05-01 Bruno Haible <bruno@clisp.org>
21564 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
21565 optional target-version argument. Verify that the compiler
21566 groks source of the specified source-version, or add -source
21567 option as necessary. Verify that the compiler produces
21568 bytecode in the specified target-version, or add -target and
21569 -source options as necessary. Make the result of the test
21570 available as variable CONF_JAVAC. Also log error output in
21573 2006-03-11 Bruno Haible <bruno@clisp.org>
21575 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
21577 2006-05-09 Bruno Haible <bruno@clisp.org>
21579 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
21580 CLASSPATH_SEPARATOR to a semicolon.
21582 2006-03-12 Bruno Haible <bruno@clisp.org>
21584 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
21585 available as variable CONF_JAVA, for subsequent autoconf
21586 tests. Also log error output in config.log.
21588 2006-07-19 Bruno Haible <bruno@clisp.org>
21590 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
21591 that getline works on glibc2 systems. Needed to avoid trouble
21593 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
21595 2005-12-04 Bruno Haible <bruno@clisp.org>
21597 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
21598 launcher (untested).
21600 2005-12-04 Bruno Haible <bruno@clisp.org>
21602 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
21604 2006-07-22 Bruno Haible <bruno@clisp.org>
21606 * gettext.m4: Update from GNU gettext-0.15.
21607 * nls.m4: Likewise.
21609 * inttypes-pri.m4: Likewise.
21610 * inttypes-h.m4: Renamed from inttypes.m4.
21611 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
21613 2006-07-22 Bruno Haible <bruno@clisp.org>
21615 Merge from GNU gettext 0.15.
21617 2005-07-05 Bruno Haible <bruno@clisp.org>
21619 * printf-args.c (printf_fetchargs): Work around broken
21620 definition of wint_t on mingw.
21622 2005-02-12 Bruno Haible <bruno@clisp.org>
21624 * xallocsa.h: Add extern "C" for C++.
21626 2006-05-17 Bruno Haible <bruno@clisp.org>
21628 Cygwin portability.
21629 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
21631 2006-04-30 Bruno Haible <bruno@clisp.org>
21633 * progreloc.c: Include <mach-o/dyld.h> if available.
21634 (find_executable): Use _NSGetExecutablePath when possible.
21636 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
21638 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
21641 2005-12-29 Bruno Haible <bruno@clisp.org>
21643 * progreloc.c (set_program_name_and_installdir): Fix
21646 2005-12-04 Bruno Haible <bruno@clisp.org>
21648 Cygwin portability.
21649 * progreloc.c: Include <windows.h> also on Cygwin.
21650 (find_executable): Add support for Cygwin.
21651 (set_program_name_and_installdir): Handle also platforms with
21654 2006-07-11 Bruno Haible <bruno@clisp.org>
21656 * javacomp.c: Fix a comment.
21657 Reported by Jim Meyering.
21659 2006-04-30 Bruno Haible <bruno@clisp.org>
21661 * javacomp.h (compile_java_class): Add source_version,
21662 target_version arguments.
21663 * javacomp.c: Rewritten to choose only a compiler that
21664 respects the specified source_version and target_version.
21666 2006-06-27 Bruno Haible <bruno@clisp.org>
21668 Assume correct S_ISDIR macro.
21669 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
21671 2006-07-22 Bruno Haible <bruno@clisp.org>
21673 * javaversion.h: New file, from GNU gettext.
21674 * javaversion.c: New file, from GNU gettext.
21675 * javaversion.java: New file, from GNU gettext.
21676 * javaversion.class: New file, from GNU gettext.
21678 2006-05-17 Bruno Haible <bruno@clisp.org>
21680 Cygwin portability.
21681 * javaexec.c (execute_java_class): Test for jview program
21684 2006-04-09 Bruno Haible <bruno@clisp.org>
21686 * fatal-signal.c: Don't include string.h.
21687 (at_fatal_signal): Use a copying loop instead of memcpy.
21689 2005-12-04 Bruno Haible <bruno@clisp.org>
21691 * csharpexec.c: Add support for 'clix' launcher (untested).
21692 (execute_csharp_using_sscli): New function.
21693 (execute_csharp_program): Call it.
21695 2006-06-21 Bruno Haible <bruno@clisp.org>
21697 Avoid warnings from recent versions of mcs.
21698 * csharpcomp.c (compile_csharp_using_mono): Don't use options
21699 -o, -L, -r any more. Use options documented since mcs-1.0
21700 instead. Similarly for -g.
21702 2005-07-09 Bruno Haible <bruno@clisp.org>
21704 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
21706 Reported by Mark Junker <mjscod@gmx.de>.
21708 2006-06-17 Bruno Haible <bruno@clisp.org>
21710 * config.charset: Update for NetBSD 3.0.
21712 2006-05-17 Bruno Haible <bruno@clisp.org>
21714 Cygwin portability.
21715 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
21717 2006-05-16 Bruno Haible <bruno@clisp.org>
21719 * localcharset.c [CYGWIN]: Include <windows.h>.
21720 (get_charset_aliases): For Cygwin, return the same CPxxx
21721 aliases list as under WIN32.
21722 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
21723 the environment variables. Fall back to GetACP().
21725 2006-04-05 Bruno Haible <bruno@clisp.org>
21727 * config.charset: Update Juan Manuel Guerrero's address.
21729 2005-02-12 Bruno Haible <bruno@clisp.org>
21731 * allocsa.h: Add extern "C" for C++.
21733 2005-02-10 Bruno Haible <bruno@clisp.org>
21735 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
21736 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
21738 2006-07-22 Bruno Haible <bruno@clisp.org>
21740 * gettext.h: Update to GNU gettext-0.15.
21742 2006-07-22 Bruno Haible <bruno@clisp.org>
21744 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
21745 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
21746 lib-prefix.m4, longdouble.m4, ssize_t.m4.
21748 2006-07-21 Eric Blake <ebb9@byu.net>
21750 * modules/stdlib-safer: New file.
21751 * MODULES.html.sh (File stream based Input/Output): Add
21754 2006-07-21 Eric Blake <ebb9@byu.net>
21756 * lib/stdlib-safer.h: New file from coreutils, required by
21759 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
21761 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
21763 2006-07-20 Bruno Haible <bruno@clisp.org>
21765 * gnulib-tool: Recognize new option --assume-autoconf.
21766 (autoconf_minversion): New variable.
21767 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
21769 2006-07-20 Bruno Haible <bruno@clisp.org>
21771 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
21773 2006-07-19 Derek R. Price <derek@ximbiot.com>
21775 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
21776 Reindent and repaginate.
21778 2006-07-19 Derek Price <derek@ximbiot.com>
21780 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
21783 2006-07-17 Bruno Haible <bruno@clisp.org>
21785 * modules/list: New file.
21786 * modules/array-list: New file.
21787 * modules/carray-list, modules/carray-list-tests: New files.
21788 * modules/linked-list, modules/linked-list-tests: New files.
21789 * modules/avltree-list, modules/avltree-list-tests: New files.
21790 * modules/rbtree-list, modules/rbtree-list-tests: New files.
21791 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
21792 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
21793 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
21794 * modules/oset: New file.
21795 * modules/array-oset: New file.
21796 * modules/avltree-oset, modules/avltree-oset-tests: New files.
21797 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
21798 * tests/test-carray_list.c: New file.
21799 * tests/test-linked_list.c: New file.
21800 * tests/test-avltree_list.c: New file.
21801 * tests/test-rbtree_list.c: New file.
21802 * tests/test-linkedhash_list.c: New file.
21803 * tests/test-avltreehash_list.c: New file.
21804 * tests/test-rbtreehash_list.c: New file.
21805 * tests/test-avltree_oset.c: New file.
21806 * tests/test-rbtree_oset.c: New file.
21807 * MODULES.html.sh (Container data structures): New section.
21809 2006-07-17 Bruno Haible <bruno@clisp.org>
21811 * m4/gl_list.m4: New file.
21813 2006-07-17 Bruno Haible <bruno@clisp.org>
21815 * lib/gl_list.h: New file.
21816 * lib/gl_list.c: New file.
21817 * lib/gl_array_list.h: New file.
21818 * lib/gl_array_list.c: New file.
21819 * lib/gl_carray_list.h: New file.
21820 * lib/gl_carray_list.c: New file.
21821 * lib/gl_linked_list.h: New file.
21822 * lib/gl_linked_list.c: New file.
21823 * lib/gl_anylinked_list1.h: New file.
21824 * lib/gl_anylinked_list2.h: New file.
21825 * lib/gl_avltree_list.h: New file.
21826 * lib/gl_avltree_list.c: New file.
21827 * lib/gl_anyavltree_list1.h: New file.
21828 * lib/gl_anyavltree_list2.h: New file.
21829 * lib/gl_rbtree_list.h: New file.
21830 * lib/gl_rbtree_list.c: New file.
21831 * lib/gl_anyrbtree_list1.h: New file.
21832 * lib/gl_anyrbtree_list2.h: New file.
21833 * lib/gl_anytree_list1.h: New file.
21834 * lib/gl_anytree_list2.h: New file.
21835 * lib/gl_linkedhash_list.h: New file.
21836 * lib/gl_linkedhash_list.c: New file.
21837 * lib/gl_anyhash_list1.h: New file.
21838 * lib/gl_anyhash_list2.h: New file.
21839 * lib/gl_avltreehash_list.h: New file.
21840 * lib/gl_avltreehash_list.c: New file.
21841 * lib/gl_rbtreehash_list.h: New file.
21842 * lib/gl_rbtreehash_list.c: New file.
21843 * lib/gl_anytreehash_list1.h: New file.
21844 * lib/gl_anytreehash_list2.h: New file.
21846 * lib/gl_oset.h: New file.
21847 * lib/gl_oset.c: New file.
21848 * lib/gl_array_oset.h: New file.
21849 * lib/gl_array_oset.c: New file.
21850 * lib/gl_avltree_oset.h: New file.
21851 * lib/gl_avltree_oset.c: New file.
21852 * lib/gl_rbtree_oset.h: New file.
21853 * lib/gl_rbtree_oset.c: New file.
21854 * lib/gl_anytree_oset.h: New file.
21856 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
21858 * m4/mkancesdirs.m4: New file.
21859 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
21860 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
21861 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
21864 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
21866 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
21867 * lib/mkancesdirs.h: New files.
21868 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
21869 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
21870 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
21871 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
21872 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
21873 callers changed. Revamp internals significantly, by not
21874 attempting to create directories that are temporarily more
21875 permissive than the final results. Do not attempt to use
21876 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
21877 This removes some race conditions, fixes some bugs, and simplifies
21878 things. Use new dirchownmod function to do owner and mode changes.
21879 * lib/mkdir-p.h: Likewise.
21880 * lib/modechange.c (octal_to_mode): New function.
21881 (struct mode_change): New member mentioned.
21882 (make_node_op_equals): New arg mentioned. All callers changed.
21883 (mode_compile): Keep track of which mode bits the user has explicitly
21885 (mode_adjust): New arg DIR, so that we implement the X op correctly.
21886 New arg PMODE_BITS, to keep track of which mode bits the user
21887 mentioned; it treats S_ISUID and S_ISGID speciall.
21888 All callers changed.
21889 * lib/modechange.h: Likewise.
21891 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
21893 * MODULES.html.sh: Add mkancestors.
21894 * modules/mkancesdirs: New module.
21895 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
21896 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
21897 The chdir-safer and afs files are now orphans; I'll remove them
21898 unless someone speaks up.
21899 Add lib/dirchownmod.c, lib/dirchownmod.h.
21900 (Depends-on): Remove alloca, chown, save-cwd, dirname.
21901 Add lchown, mkancesdirs.
21902 (Maintainer): Add self.
21904 2006-07-15 Karl Berry <karl@gnu.org>
21906 * gnulib-tool: help message wording/arrangement.
21908 2006-07-14 Simon Josefsson <jas@extundo.com>
21910 * doc/gnulib.texi (Libtool and Windows): New section.
21912 2006-07-12 Simon Josefsson <jas@extundo.com>
21914 * modules/gendocs (License): Fix license, approved by Karl.
21916 2006-07-12 Eric Blake <ebb9@byu.net>
21918 * MODULES.html.sh: Add gendocs.
21920 2006-07-11 Eric Blake <ebb9@byu.net>
21922 * modules/fdl: New module, to install doc/fdl.texi.
21923 * MODULES.html.sh: Add new section for documentation modules.
21924 * gnulib-tool: Avoid space-tab.
21925 (--doc-base): New option, to manage files from doc.
21927 2006-07-11 Eric Blake <ebb9@byu.net>
21929 * m4/absolute-header.m4: Fix comments to match recent change.
21931 2006-07-11 Eric Blake <ebb9@byu.net>
21933 * gnulib-tool: List --doc-base before --tests-base.
21935 2006-07-11 Derek R. Price <derek@ximbiot.com>
21937 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
21939 2006-07-11 Bruno Haible <bruno@clisp.org>
21941 * README: Mention where to put documentation.
21943 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21945 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
21947 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
21949 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
21952 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
21954 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
21955 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
21956 "no/such/file/stdint.h" when there is no such file, so that
21957 the resulting C code can be parsed by dodgy compilers.
21958 Problems reported by Bob Proulx.
21960 2006-07-10 Derek R. Price <derek@ximbiot.com>
21962 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
21963 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
21964 macros into the GNU _D_EXACT_NAMLEN.
21965 * lib/savedir.c: Likewise.
21966 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
21968 2006-07-10 Derek R. Price <derek@ximbiot.com>
21969 and Paul Eggert <eggert@cs.ucla.edu>
21971 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
21973 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
21974 macros into the GNU _D_EXACT_NAMLEN.
21976 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
21978 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
21979 around the absolute name, to work around a problem with the HP-UX
21980 11.23 native C compiler, reported by Bob Proulx.
21982 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
21984 * doc/maintain.texi, make-stds.texi: Sync from
21985 <http://savannah.gnu.org/projects/gnustandards>.
21987 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
21989 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
21991 2006-07-09 Jim Meyering <jim@meyering.net>
21993 * m4/glob.m4: Remove a doubled word in a comment.
21995 2006-07-09 Jim Meyering <jim@meyering.net>
21997 * lib/argp-pv.c: Remove a doubled word in a comment.
21998 * lib/check-version.c (check_version): Likewise.
21999 * lib/javacomp.c (compile_java_class): Likewise.
22001 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
22003 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
22004 for the benefit of people using Autoconf 2.60. If you want to
22005 support older Autoconf versions you can copy m4/onceonly_2_57.m4
22006 (or m4/onceonly.m4, if pre-2.57) manually.
22008 2006-07-08 Jim Meyering <jim@meyering.net>
22010 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
22012 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
22013 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
22016 2006-07-08 Jim Meyering <jim@meyering.net>
22018 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
22020 2006-07-07 Simon Josefsson <jas@extundo.com>
22022 * tests/test-crc.c: Change expected crc value, the test vector
22023 were probably computed using the old broken crc.c?
22025 2006-07-06 Simon Josefsson <jas@extundo.com>
22027 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
22028 now the canonical place for the M4 file).
22030 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
22031 from the sys_socket dependency now.
22033 * modules/inet_pton (Files): Ditto.
22035 * modules/inet_ntop (Files): Ditto.
22037 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
22039 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
22040 not gl_PREREQ_GETUSERSHELL.
22042 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22044 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
22045 with only one argument, for Autoconf 2.60.
22046 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
22047 expand to nothing, so add a shell command to avoid syntax error.
22048 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
22050 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22052 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
22054 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
22056 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
22057 no longer needed. Check for isblank decl.
22058 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
22059 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
22062 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
22064 * lib/getloadavg.c: Use __VMS, not VMS.
22065 * lib/getopt.c: Likewise.
22066 * lib/getpagesize.h: Likewise.
22067 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
22068 and probably does not work.
22070 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
22072 * lib/.cppi-disable: Add wcwidth.
22073 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
22074 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
22075 (ISGRAPH): Remove. All uses changed to isgraph.
22076 (FOLD) [!defined _LIBC]: Remove special case.
22077 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
22078 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
22080 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
22083 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
22085 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
22086 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
22087 brackets. Other minor changes to suppress some compiler
22090 2006-07-06 Derek R. Price <derek@ximbiot.com>
22091 and Paul Eggert <eggert@cs.ucla.edu>
22093 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
22094 of invoking obsolescent AC_HEADER_DIRENT macro.
22095 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
22096 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
22097 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
22098 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
22099 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
22100 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
22101 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
22102 * m4/readdir.m4: Remove; no longer needed.
22104 2006-07-06 Derek R. Price <derek@ximbiot.com>
22105 and Paul Eggert <eggert@cs.ucla.edu>
22107 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
22108 Don't worry about this obsolete case any more.
22109 (HAVE_DIR): Remove. All uses removed; we now assume you can read
22111 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
22112 worry about this obsolete case any more.
22113 * lib/fts.c: Likewise.
22114 * lib/getcwd.c: Likewise.
22115 * lib/glob.h: Likewise.
22116 * lib/savedir.c: Likewise.
22118 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
22120 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
22121 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
22122 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
22125 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
22126 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
22127 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
22129 * m4/getdate.m4 (gl_GETDATE): Likewise.
22130 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
22131 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
22132 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
22133 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
22134 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
22135 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
22136 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
22139 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
22141 * lib/memcasecmp.c: Include <limits.h>.
22142 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
22143 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
22144 Don't assume isdigit succeeds only on '0' through '9'.
22146 2006-07-05 Eric Blake <ebb9@byu.net>
22148 * modules/getaddrinfo (Depends-on): Add snprintf.
22150 2006-07-05 Eric Blake <ebb9@byu.net>
22152 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
22153 to avoid 'header present but could not be compiled' on cygwin.
22155 2006-07-05 Eric Blake <ebb9@byu.net>
22157 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
22158 missing from netdb.h.
22159 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
22161 2006-07-05 Derek R. Price <derek@ximbiot.com>
22163 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
22165 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
22166 * m4/getdate.m4 (gl_GETDATE): Likewise.
22167 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
22168 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
22169 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
22170 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
22171 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
22173 2006-07-05 Derek R. Price <derek@ximbiot.com>
22175 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
22176 All uses of is_space replaced by isspace.
22177 * lib/exit.h: Don't talk about STDC_HEADERS.
22178 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
22179 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
22180 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
22181 replaced by isprint etc.
22182 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
22183 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
22184 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
22185 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
22186 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
22187 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
22189 2006-07-05 Bruno Haible <bruno@clisp.org>
22191 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
22192 the function exists, before testing against AIX.
22193 Reported by Martin Lambers <marlam@marlam.de>.
22195 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
22197 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
22198 From Mark D. Baushke.
22200 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
22202 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
22203 to the absolute name, not just one, to bypass Sun C 5.8's
22204 "warning: #include of /usr/include/... may be non-portable".
22206 2006-07-04 Eric Blake <ebb9@byu.net>
22208 * modules/dirname-tests: New test module.
22209 * tests/test-dirname.c: New file, replacing dirname.c
22210 TEST_DIRNAME section that was recently deleted.
22212 2006-07-04 Bruno Haible <bruno@clisp.org>
22214 Assume ANSI C header files and <ctype.h> functions.
22215 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
22216 (mbsnwidth): Use isprint, iscntrl instead.
22218 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
22220 Merge from coreutils.
22221 * MODULES.html.sh: Add xstrtold.
22222 * modules/xstrtold: New file.
22223 * modules/cycle-check (Files): Add lib/same-inode.h.
22224 * modules/dirname (Files): Add m4/double-slash-root.m4.
22225 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
22226 * modules/mkdir-p (Files): Add lib/same-inode.h.
22227 * modules/same (Files): Add lib/same-inode.h.
22229 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
22231 * m4/absolute-header.m4: Renamed from full-header-path.m4.
22232 This is to keep the terminology clean; POSIX talks about
22233 "absolute pathnames", not "full pathnames", but the GNU
22234 Coding Standards say to use "path" for something else;
22235 so use "absolute" to keep both sides happy.
22236 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
22237 Set gl_absolute_header, not gl_full_header_path.
22238 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
22239 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
22242 Merge from coreutils.
22244 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
22246 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
22247 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
22248 want to require the building of c-strtod.o.
22249 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
22250 needs -lm directly.
22251 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
22253 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
22255 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
22256 --as-needed option if available. Problem reported by Albert Chin in
22257 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
22258 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
22259 cc merely issues a bunch of annoying warnings for --as-needed
22260 (this problem was reported by Bob Proulx). Also, try linking with
22261 -lm to detect a bug in binutils 2.16 (this problem was reported
22262 by Ralf Wildenhues).
22264 2006-06-18 Jim Meyering <jim@meyering.net>
22266 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
22267 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
22269 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
22270 also check for glibc-2.4's abort-inducing bug.
22272 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
22273 Low-probability clean-up should be to use rmdir to get rid of
22274 the just-created directory, not unlink.
22276 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
22277 configure fail, and request a bug report to inform us about it.
22278 Add a comment that, barring reports to the contrary, in 2007 we'll
22279 assume ftruncate is universally available.
22281 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
22283 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
22285 2006-03-12 Jim Meyering <jim@meyering.net>
22287 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
22288 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
22289 * m4/same.m4 (gl_SAME): Likewise.
22290 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
22292 2006-03-11 Eric Blake <ebb9@byu.net>
22294 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
22295 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
22296 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
22297 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
22299 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
22301 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
22302 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
22303 reported by Mark D. Baushke, one in
22304 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
22306 Merge from coreutils.
22308 * lib/.cppi-disable: Add stdint_.h.
22309 * lib/.cvsignore: Add stdint.h.
22311 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
22313 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
22314 both double and long double versions.
22315 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
22316 * lib/xstrtold.c: New file.
22317 * lib/xstrtod.h (xstrtold): New decl.
22319 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
22321 * lib/filemode.c (setst): Remove.
22322 (strmode): Rewrite to avoid setst. This makes the code shorter,
22323 (arguably) clearer, and the generated code is a bit smaller on my
22324 Debian GNU/Linux stable x86 host.
22326 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
22328 * lib/filemode.c: Include "filemode.h" first, to test the interface.
22329 Assume that filemode.h includes sys/types.h and sys/stat.h.
22330 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
22331 (ftypelet): Reorder to put common cases first, for efficiency.
22332 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
22334 (strmode): Renamed from mode_string, and now stores 12 bytes instead
22335 of 10, for compatibility with FreeBSD. All callers changed.
22336 (filemodestring): Now stores 12 bytes instead of 10, and sets file
22337 types that can't be deduced solely from st_mode. First arg is now a
22339 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
22340 (strmode): Renamed from mode_string.
22341 (filemodestring): New decl.
22342 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
22343 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
22345 (S_ISPORT, S_ISWHT): New macros, if not already defined.
22347 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
22349 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
22350 fsusage.h now does that. Include fsusage.h first, to test interface.
22351 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
22352 at most one method (the old code could have generated decls that
22353 didn't conform to C89, not that this was ever exercised).
22354 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
22356 2006-03-19 Jim Meyering <jim@meyering.net>
22358 Work even in a chroot where d_ino values for entries in "/"
22359 don't match the stat.st_ino values for the same names.
22360 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
22361 number, iterate through all entries again, using lstat instead.
22362 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
22363 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
22365 * lib/getcwd.c (__getcwd): Clarify a comment.
22366 Use memcpy in place of a call to strcpy.
22368 2006-03-12 Jim Meyering <jim@meyering.net>
22370 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
22371 matches that of the current directory (which we're about to chdir ".."
22372 out of), then save the dev-ino of the parent, instead.
22374 * lib/same-inode.h (SAME_INODE): New file/macro.
22375 * lib/chdir-safer.c (SAME_INODE): Remove definition.
22376 Include "same-inode.h", instead.
22377 * lib/same.c: Likewise.
22378 * lib/cycle-check.h: Include "same-inode.h".
22379 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
22380 * lib/cycle-check.c (SAME_INODE): Remove definition.
22381 * lib/root-dev-ino.h: Include "same-inode.h".
22383 2006-03-11 Eric Blake <ebb9@byu.net>
22385 * lib/same.c (same_name): s/base_name/last_component/
22386 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
22387 * lib/filenamecat.c (file_name_concat): Likewise.
22389 2006-03-11 Eric Blake <ebb9@byu.net>,
22390 Paul Eggert <eggert@cs.ucla.edu>
22392 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
22393 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
22395 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
22396 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
22397 (last_component): New method.
22398 * lib/dirname.c (dir_len): Determine when drive letters need a
22399 subsequent slash. Preserve // when it is special.
22400 (dir_name): Don't append dot when drive letter is absolute.
22401 [TEST_DIRNAME]: Move into a full-blown gnulib test.
22402 * lib/basename.c (base_name): New semantics - malloc the result.
22403 Preserve // when it is special. Preserve relative files that look
22404 like drive letters.
22405 (base_len): Preserve // when it is special.
22406 (last_component): New method, similar to old base_name semantics.
22407 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
22408 base_name. Strip redundant slashes from ///.
22410 2006-07-03 Jim Meyering <jim@meyering.net>
22412 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
22413 macro is used before the first cycle_check call.
22415 2006-07-03 Eric Blake <ebb9@byu.net>
22417 * modules/dirname (Depends-on): Add xstrndup.
22419 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
22421 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
22422 test cases, so that config.log is a bit easier to follow.
22424 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
22426 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
22427 both are 64 bits, since this seems to be the tradition, and this
22428 prevents gcc -Wformat from warning about usages with PRIuMAX. If
22429 we ever run into a host that prefers long long to long in this
22430 case, we'll need another configure-time test. Problem reported by
22433 2006-07-02 Eric Blake <ebb9@byu.net>
22435 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
22437 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
22439 * modules/inttypes (Depends-on): No longer depends on stdint.
22440 * modules/stdint (Description): Say more about assumptions.
22441 Say that the fast types might differ. Say macros are used.
22442 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
22443 (Makefile.am): Revise list of substituted symbols to match
22445 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
22446 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
22447 * tests/test-stdint.c (verify_same_types)
22448 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
22449 the code conforms to C99/C89.
22450 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
22451 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
22453 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
22455 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
22456 but fix a bug, by requiring at least 64 bits.
22457 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
22458 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
22459 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
22460 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
22462 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
22463 changes. Make 2.59 a prerequisite. Check and substitute for
22464 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
22465 inttypes.h. Do not use special include files; just use the
22466 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
22467 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
22468 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
22469 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
22470 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
22471 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
22472 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
22473 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
22474 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
22475 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
22476 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
22477 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
22478 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
22479 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
22480 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
22481 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
22482 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
22483 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
22484 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
22485 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
22486 WINT_MAX. Check for C99 conformance more strictly, by detecting
22487 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
22488 not check for things that C99 does not require, e.g., int8_t. If
22489 a test isn't needed unless <stdint.h> isn't working, and is
22490 unlikely to be needed for any other reason, then don't do it
22491 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
22492 size_t, since we assume C89 freestanding at least. Do not check
22493 for sig_atomic_t, wchar_t, or wint_t, since the code now does
22494 the right thing even if the types are not defined. Instead use:
22495 (gl_STDINT_TYPE_PROPERTIES): New macro.
22496 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
22497 testing whether <sys/types.h> clashes, as Autoconf does this for
22498 us now. All uses removed.
22499 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
22500 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
22501 (gl_CHECK_TYPE_SAME):
22502 Remove; no longer needed.
22503 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
22504 exists, since we'll return 0 anyway in that case.
22505 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
22507 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
22509 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
22510 possible collision with system files.
22511 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
22512 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
22513 WCHAR_MIN and WCHAR_MAX in this case.
22514 (<stddef.h>): Do not include; no longer needed.
22515 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
22516 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
22517 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
22518 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
22519 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
22520 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
22521 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
22522 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
22523 !defined(__c99))]: Include in this case too, since it's harmless
22525 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
22526 dangerous to do so.
22527 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
22528 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
22529 (_STDINT_MIN, _STDINT_MAX): New macros.
22530 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
22531 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
22532 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
22533 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
22534 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
22535 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
22536 macros, not typedefs; this simplifies things quite a bit.
22537 Use long int for all types narrower than int64_t.
22538 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
22539 Define in terms of long long int or int64_t or long int,
22540 not int64_t or int32_t. This saves some compile-time testing.
22541 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
22542 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
22543 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
22544 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
22545 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
22546 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
22547 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
22548 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
22549 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
22550 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
22551 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
22552 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
22553 undef any previous version and define our own version, for
22554 simplicity and consistency with the new macros for types.
22555 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
22556 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
22557 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
22558 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
22559 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
22560 @WINT_T_SUFFIX@ to keep things simple here.
22561 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
22562 Simplify by assuming typical 8/16/32/64 host, since we're
22563 already doing that elsewhere anyway.
22564 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
22565 and assume long long int is 64 bits if available. This
22566 speeds up 'configure'.
22568 2006-07-01 Eric Blake <ebb9@byu.net>
22570 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
22571 Reported by Andreas Buening.
22573 2006-07-01 Eric Blake <ebb9@byu.net>
22575 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
22577 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
22579 * lib/getaddrinfo.c: fixed typo
22581 2006-06-29 Jim Meyering <jim@meyering.net>
22583 * modules/strftime (Maintainer): Add my name, since with the
22584 FPRINTFTIME changes strftime.c has forked from glibc.
22586 2006-06-29 Eric Blake <ebb9@byu.net>
22588 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
22590 2006-06-29 Eric Blake <ebb9@byu.net>
22592 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
22594 2006-06-29 Eric Blake <ebb9@byu.net>
22596 * lib/stat_.h: New file.
22598 2006-06-29 Eric Blake <ebb9@byu.net>
22600 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
22601 unused static function.
22603 2006-06-29 Eric Blake <ebb9@byu.net>
22605 * doc/functions.texi (Function Portability): Document missing lstat
22608 2006-06-29 Eric Blake <ebb9@byu.net>
22610 * MODULES.html.sh: Add sys_stat.
22611 * modules/sys_stat: New module.
22612 * modules/mkstemp (Depends-on): Add sys_stat.
22614 2006-06-29 Derek R. Price <derek@ximbiot.com>
22616 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
22618 2006-06-29 Derek R. Price <derek@ximbiot.com>
22620 * m4/c-bs-a.m4: Removed.
22622 2006-06-29 Derek R. Price <derek@ximbiot.com>
22624 * lib/strftime.c: Assume strftime() exists.
22626 2006-06-29 Derek Price <derek@ximbiot.com>
22628 * modules/c-bs-a: Removed - \a is C89.
22629 * MODULES.html.sh: Remove c-bs-a.
22631 2006-06-29 Bruno Haible <bruno@clisp.org>
22633 * modules/wcwidth (License): Change to LGPL.
22635 2006-06-28 Simon Josefsson <jas@extundo.com>
22637 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
22640 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
22643 2006-06-28 Simon Josefsson <jas@extundo.com>
22645 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
22647 2006-06-28 Simon Josefsson <jas@extundo.com>
22649 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
22650 functions there. It will succeed on Windows XP, but on Windows
22651 2000 and (presumably) earlier, it will fail, and use the internal
22653 (use_win32_p): New function.
22654 (getaddrinfo): Use strtoul on servname, to support numeric ports.
22655 Support AI_NUMERICSERV to disable getservbyname.
22656 (getnameinfo): New function, only supports
22657 NI_NUMERICHOST|NI_NUMERICSERV for now.
22659 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
22660 only have some of them. Add AI_NUMERICSERV. Add prototype for
22663 2006-06-28 Eric Blake <ebb9@byu.net>
22665 * modules/wcwidth: New file.
22666 * modules/mbchar (Depends-on): Add wcwidth.
22667 * modules/mbswidth (Depends-on): Add wcwidth.
22668 * MODULES.html.sh: Add wcwidth.
22670 2006-06-28 Eric Blake <ebb9@byu.net>
22672 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
22673 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
22675 2006-06-28 Eric Blake <ebb9@byu.net>
22677 * lib/xvasprintf.h: Fix comments.
22679 2006-06-28 Eric Blake <ebb9@byu.net>
22681 * lib/mbchar.h (wcwidth): Include wcwidth.h.
22682 * lib/mbswidth.c (wcwidth): Move from here...
22683 * lib/wcwidth.h: ...to this new file.
22685 2006-06-28 Derek R. Price <derek@ximbiot.com>
22687 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
22689 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
22691 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
22693 2006-06-28 Derek R. Price <derek@ximbiot.com>
22695 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
22696 Autoconf 2.60 says this stuff was obsolete.
22698 2006-06-28 Bruno Haible <bruno@clisp.org>
22700 * modules/wcwidth (Files): Add m4/wchar_t.m4.
22702 2006-06-28 Bruno Haible <bruno@clisp.org>
22704 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
22707 2006-06-28 Bruno Haible <bruno@clisp.org>
22709 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
22710 declaration for wcwidth.
22711 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
22713 2006-06-28 Bruno Haible <bruno@clisp.org>
22715 * lib/mkdtemp.c [MINGW]: Include <io.h>.
22716 (mkdir): Define using _mkdir.
22718 2006-06-28 Bruno Haible <bruno@clisp.org>
22720 * lib/getaddrinfo.h: Fix POSIX URL.
22721 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
22723 (use_win32_p): Make static.
22724 (getaddrinfo): Reject service name if it is empty or does not consist
22725 solely of decimal digits, or if its value is > 65535.
22726 (getnameinfo): Remove useless casts.
22728 2006-06-27 Simon Josefsson <jas@extundo.com>
22730 * modules/sys_select: New file, suggested by Bruno Haible, Paul
22731 Eggert and Martin Lambers.
22733 2006-06-27 Simon Josefsson <jas@extundo.com>
22735 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
22736 Eggert and Martin Lambers.
22738 2006-06-27 Bruno Haible <bruno@clisp.org>
22740 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
22741 result to 0, not to empty.
22742 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
22744 2006-06-27 Bruno Haible <bruno@clisp.org>
22746 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
22748 2006-06-26 Simon Josefsson <jas@extundo.com>
22750 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
22753 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
22755 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
22756 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
22757 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
22759 2006-06-26 Mark D. Baushke <mdb@gnu.org>
22761 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
22763 2006-06-26 Bruno Haible <bruno@clisp.org>
22765 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
22767 2006-06-26 Bruno Haible <bruno@clisp.org>
22769 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
22771 2006-06-26 Bruno Haible <bruno@clisp.org>
22773 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
22774 SGI C compiler in pre-C99 mode.
22775 Suggested by Mark D. Baushke and Larry Jones.
22777 2006-06-26 Bruno Haible <bruno@clisp.org>
22779 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
22781 Reported by Mark D. Baushke and Larry Jones.
22783 2006-06-26 Bruno Haible <bruno@clisp.org>
22785 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
22787 Suggested by Mark D. Baushke and Larry Jones.
22789 2006-06-23 Simon Josefsson <jas@extundo.com>
22790 Bruno Haible <bruno@clisp.org>
22792 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
22793 Emit mostlyclean-local rule.
22794 (func_emit_tests_Makefile_am): Likewise.
22795 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
22797 2006-06-23 Mark D. Baushke <mdb@gnu.org>
22799 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
22801 2006-06-23 Bruno Haible <bruno@clisp.org>
22803 * tests/test-stdint.c: Update to match ISO C 99 Technical
22806 2006-06-23 Bruno Haible <bruno@clisp.org>
22808 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
22810 2006-06-23 Bruno Haible <bruno@clisp.org>
22812 * lib/stdint_.h: Treat IRIX like OpenBSD.
22814 2006-06-23 Bruno Haible <bruno@clisp.org>
22816 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
22817 ISO C 99 Technical Corrigendum 1.
22819 2006-06-22 Simon Josefsson <jas@extundo.com>
22821 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
22824 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
22826 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
22827 needed. Some compiler complained about some of them. Problem reported
22829 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
22831 2006-06-21 Simon Josefsson <jas@extundo.com>
22833 * tests/test-getaddrinfo.c: New file.
22835 * modules/getaddrinfo-tests: New file.
22837 * MODULES.html.sh: Add inet_pton.
22839 * modules/inet_pton: New file.
22841 2006-06-21 Simon Josefsson <jas@extundo.com>
22843 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
22844 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
22845 of using the (limited) gnulib implementation on Windows XP.
22847 * m4/inet_pton.m4: New file.
22849 2006-06-21 Simon Josefsson <jas@extundo.com>
22851 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
22854 * lib/socket_.h: Don't define WINVER.
22856 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
22857 slightly modified to work in gnulib.
22859 2006-06-21 Simon Josefsson <jas@extundo.com>
22861 * doc/gnulib.texi (Windows sockets): Add.
22863 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
22865 * lib/read-file.c (fread_file): Start with buffer allocation of
22866 0 bytes rather than 1 byte; this simplifies the code.
22867 Don't invoke feof; it's not needed. Refactor to avoid duplicate
22868 code to free buffer and save/restore errno.
22869 (internal_read_file): Remove unused local.
22871 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
22873 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
22874 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
22875 Problem reported by Denis Excoffier in
22876 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
22878 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
22880 * modules/sys_socket, modules/socklen: Include sys/types since
22881 FreeBSD 4.x's sys/socket.h needs it.
22883 2006-06-19 Simon Josefsson <jas@extundo.com>
22885 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
22887 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
22889 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
22891 2006-06-19 Bruno Haible <bruno@clisp.org>
22893 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
22894 and FULL_PATH_INTTYPES_H in angle brackets.
22895 Reported by Mark D. Baushke <mdb@gnu.org>.
22897 2006-06-17 Eric Blake <ebb9@byu.net>
22899 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
22902 2006-06-17 Bruno Haible <bruno@clisp.org>
22904 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
22907 2006-06-17 Bruno Haible <bruno@clisp.org>
22909 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
22910 whether errno is declared. Assume <errno.h> declares errno.
22912 2006-06-17 Bruno Haible <bruno@clisp.org>
22914 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
22916 2006-06-17 Bruno Haible <bruno@clisp.org>
22918 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
22919 problem on Solaris 2.5.1.
22921 2006-06-16 Eric Blake <ebb9@byu.net>
22923 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
22924 * lib/unicodeio.c [!defined errno]: Likewise.
22925 * lib/strtol.c [!defined errno]: Likewise.
22926 * lib/strtod.c [!defined errno]: Likewise.
22928 2006-06-15 Eric Blake <ebb9@byu.net>
22930 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
22932 2006-06-15 Eric Blake <ebb9@byu.net>
22934 * config/srclist.txt (ssize_t.m4): Lose sync.
22936 2006-06-15 Bruno Haible <bruno@clisp.org>
22938 * modules/stdint (Files): Include m4/full-header-path.m4,
22939 m4/size_max.m4, m4/wchar_t.m4.
22940 (Makefile.am): Many more substitutions.
22941 * modules/stdint-tests: New file.
22942 * tests/test-stdint.c: New file.
22944 2006-06-15 Bruno Haible <bruno@clisp.org>
22946 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
22947 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
22948 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
22949 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
22950 gl_CHECK_TYPE_SAME): New macros.
22952 2006-06-15 Bruno Haible <bruno@clisp.org>
22954 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
22956 2006-06-15 Bruno Haible <bruno@clisp.org>
22958 * lib/stdint_.h: Rewritten to be fully auto-configured.
22959 Fixes bug on HP-UX/IA64.
22961 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
22963 * lib/getdate.y (__attribute__): Don't define if already defined.
22964 Problem reported by Larry Jones.
22965 * lib/utimens.c (__attribute__): Likewise.
22967 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
22969 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
22970 reported by Andreas Schwab.
22972 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22973 Bruno Haible <bruno@clisp.org>
22975 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
22976 check for the declaration of strnlen and a run test that exposes the
22977 AIX 5.1 strnlen bug. In the failure case, #define strndup to
22980 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22981 Bruno Haible <bruno@clisp.org>
22983 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
22985 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22987 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
22988 compile test, for Tru64 4.0D.
22990 2006-05-28 Karl Berry <karl@gnu.org>
22992 * config/srclist.txt (printf-args.c): lose sync.
22994 2006-05-26 Martin Lambers <marlam@marlam.de>
22996 * lib/getpass.c: Updates the test for the native W32 API, and adds
22997 missing includes, thus fixing compilation warnings.
22999 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
23001 * lib/exclude.c (exclude_fnmatch): New function.
23002 (excluded_file_name): Call exclude_fnmatch.
23003 * lib/exclude.h (excluded_file_name): New prototype
23005 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
23007 * lib/tempname.c (small_open, large_open): New macros.
23008 (__open, __open64) [!_LIBC]: Remove.
23009 (__gen_tempname): Use small_open and large_open instead of __open
23010 and __open64. This fixes a portability bug on HP-UX 11.11i
23011 reported by Simon Wing-Tang in
23012 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
23014 2006-05-24 Bruno Haible <bruno@clisp.org>
23016 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
23017 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
23018 Reported by Thorsten Maerz <torte@netztorte.de> via
23019 Aaron Stone <aaron@serendipity.cx>.
23021 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
23023 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
23024 gl_ rather than jm_. Link, don't run, so that cross-compiles are
23025 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
23026 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
23027 not really conditional on the cache.
23028 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
23030 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
23032 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
23033 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
23034 (my_usleep): Don't mishandle maximum value.
23036 2006-05-19 Jim Meyering <jim@meyering.net>
23038 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
23040 2006-05-17 Bruno Haible <bruno@clisp.org>
23042 Cygwin portability.
23043 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
23045 2006-05-17 Bruno Haible <bruno@clisp.org>
23047 * lib/stdint_.h: Fix recognition of Cygwin.
23049 2006-05-15 Bruno Haible <bruno@clisp.org>
23051 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
23052 on libtool patch by Ralf Wildenhues.
23054 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
23056 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
23057 test for C99 conformance; (bool) 0.5 is an integer constant
23058 expression, but (bool) -0.5 is not. Problem reported by Fedor
23059 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
23061 2006-05-11 Simon Josefsson <jas@extundo.com>
23063 * m4/xvasprintf.m4: Fix obvious typo.
23065 2006-05-11 Jim Meyering <jim@meyering.net>
23067 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
23070 2006-05-10 Simon Josefsson <jas@extundo.com>
23072 * lib/md4.c: Typo fix, update copyright years.
23073 (K1, K2): Don't use L because it turn computations into 64-bit on
23076 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
23078 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
23079 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
23080 unwanted sign propagation, e.g., on hosts with 64-bit int.
23081 There still are some problems with reeelly weird theoretical hosts
23082 (e.g., 33-bit int) but it's not worth worrying about now.
23083 * lib/sha1.c (rol): Likewise.
23084 (K1, K2, K3, K4): Remove unnecessary L suffix.
23086 2006-05-10 Bruno Haible <bruno@clisp.org>
23088 * lib/des.c: Cast to avoid warnings.
23090 2006-05-09 Bruno Haible <bruno@clisp.org>
23092 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
23093 (Depends-on): Depend also on xsize, stdarg.
23094 (configure.ac): Add gl_XVASPRINTF.
23096 2006-05-09 Bruno Haible <bruno@clisp.org>
23098 * m4/xvasprintf.m4: New file.
23100 2006-05-09 Bruno Haible <bruno@clisp.org>
23102 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
23103 (EOVERFLOW): Define fallback value.
23104 (xstrcat): New function.
23105 (xvasprintf): Recognize the special case of a string concatenation.
23107 2006-05-08 Eric Blake <ebb9@byu.net>
23109 * gnulib-tool (func_version): Base copyright year on CVS date.
23110 (func_emit_copyright_notice): New function.
23111 (func_emit_lib_Makefile_am): Use it.
23112 (func_emit_tests_Makefile_am): Likewise.
23113 (func_import): Likewise.
23115 2006-05-08 Bruno Haible <bruno@clisp.org>
23117 * modules/stdarg: New file.
23118 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
23120 2006-05-08 Bruno Haible <bruno@clisp.org>
23122 * m4/stdarg.m4: New file, from GNU gettext.
23124 2006-05-08 Bruno Haible <bruno@clisp.org>
23126 * config/srclist.txt (build-aux/config.rpath): different from latest
23129 2006-05-08 Bruno Haible <bruno@clisp.org>
23131 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
23133 2006-05-05 Jim Meyering <jim@meyering.net>
23135 * m4/warning.m4: New file, derived from bison's file by the same name.
23137 2006-05-03 Bruno Haible <bruno@clisp.org>
23139 * lib/stdint_.h: Shorter URL.
23140 * lib/inttypes.h: Likewise.
23142 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
23144 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
23146 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
23148 * lib/verify.h: Document the internals better. Most of this change
23149 was written by Bruno Haible.
23151 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
23153 * doc/verify.texi: New file, partly based on a proposal by
23156 2006-05-02 Bruno Haible <bruno@clisp.org>
23158 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
23160 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
23162 2006-04-29 Bruno Haible <bruno@clisp.org>
23164 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
23165 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
23167 2006-04-29 Bruno Haible <bruno@clisp.org>
23169 * gnulib-tool: Make --update option actually work.
23171 2006-04-29 Bruno Haible <bruno@clisp.org>
23173 * doc/gcd.texi: New file.
23174 * doc/gnulib.texi: Include it.
23176 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
23178 * lib/getdate.y (get_date): When adding relative date, start with the
23179 initial time, not with the result of the first mktime call.
23181 2006-04-25 Bruno Haible <bruno@clisp.org>
23183 * gnulib-tool (func_import): Output the include directives in three
23184 blocks, sorted separately.
23185 Reported by Ben Pfaff <blp@cs.stanford.edu>.
23187 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
23189 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
23190 to define main with arguments, for C++. Reported by Eric Blake.
23191 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
23192 Prefer 'int main ()' to 'int main (void)', for C++.
23193 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23194 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
23195 for 'main', for C99 and C++.
23197 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
23199 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
23200 Don't assume that exit status -1 is valid.
23201 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23202 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23203 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
23204 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
23205 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
23206 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
23207 not AC_TRY_RUN. Use return, not exit. Don't assume that
23208 functions can be used without declaring them, or that you can
23209 exit with status -1.
23210 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
23212 2006-04-24 Karl Berry <karl@gnu.org>
23214 * config/srclist.txt (longdouble.m4): sync lost.
23216 2006-04-24 Eric Blake <ebb9@byu.net>
23218 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
23220 2006-04-24 Bruno Haible <bruno@clisp.org>
23222 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
23223 poll() implementation in AIX.
23224 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23226 2006-04-24 Bruno Haible <bruno@clisp.org>
23228 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
23229 assigned exactly once.
23231 2006-04-23 Claudio Fontana <claudio@gnu.org>
23232 Bruno Haible <bruno@clisp.org>
23234 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
23235 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
23238 2006-04-23 Bruno Haible <bruno@clisp.org>
23240 * modules/copy-file: Depend on unistd.
23241 * modules/execute: Likewise.
23242 * modules/fatal-signal: Likewise.
23243 * modules/findprog: Likewise.
23244 * modules/mkdtemp : Likewise.
23245 * modules/pipe: Likewise.
23246 * modules/wait-process: Likewise.
23248 2006-04-23 Bruno Haible <bruno@clisp.org>
23250 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
23251 condition was already detected.
23252 Reported by Ben Pfaff <blp@cs.stanford.edu>.
23254 2006-04-23 Bruno Haible <bruno@clisp.org>
23256 * lib/copy-file.c: Include <unistd.h> unconditionally.
23257 * lib/execute.c: Likewise.
23258 * lib/fatal-signal.c: Likewise.
23259 * lib/findprog.c: Likewise.
23260 * lib/mkdtemp.c: Likewise.
23261 * lib/pipe.h: Likewise.
23262 * lib/pipe.c: Likewise.
23263 * lib/wait-process.h: Likewise.
23265 2006-04-23 Bruno Haible <bruno@clisp.org>
23267 * gnulib-tool (func_usage): Fix --import description. Document
23269 (func_import): Create temporary file in a temporary directory, if
23270 --dry-run is specified. Silence errors from 'grep' when there are no
23271 m4 files in $m4dir.
23272 (func_create_testdir): Silence errors from 'grep' when there are no
23273 m4 files in $m4dir.
23274 Reported by Karl Berry <karl@freefriends.org>.
23276 2006-04-20 Bruno Haible <bruno@clisp.org>
23278 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
23279 one argument, so that the code will be portable to Autoconf 2.60.
23280 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
23281 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
23282 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
23284 2006-04-19 Derek Price <derek@ximbiot.com>
23285 Eric Blake <ebb9@byu.net>
23287 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
23288 rather than "/full/path.h". Update comment to match. Shorten &
23289 generalize m4_translit call via AS_TR_CPP.
23291 2006-04-19 Derek Price <derek@ximbiot.com>
23292 Eric Blake <ebb9@byu.net>
23294 * lib/inttypes.h: Correct grammar in comment.
23296 2006-04-18 Derek Price <derek@ximbiot.com>
23297 Paul Eggert <eggert@cs.ucla.edu>
23299 * modules/inttypes: New file.
23300 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
23302 2006-04-18 Derek Price <derek@ximbiot.com>
23303 Paul Eggert <eggert@cs.ucla.edu>
23305 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
23308 2006-04-18 Derek Price <derek@ximbiot.com>
23309 Paul Eggert <eggert@cs.ucla.edu>
23311 * lib/inttypes.h: New file.
23312 * lib/strtoimax.c: Assume <inttypes.h>.
23314 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
23316 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
23317 isn't mounted. Problem reported by Kir Kolyshkin.
23319 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
23321 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
23322 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
23324 * lib/regex.h (RE_DUP_MAX): Update comment to match current
23327 2006-04-12 Eric Blake <ebb9@byu.net>
23329 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
23330 is now done automatically by the corresponding Autoconf macro.
23332 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
23334 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
23337 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
23339 Merge regex changes from libc, removing some of our
23340 POSIX-conformance changes that were rejected and redoing them in a
23341 less-intrusive way.
23343 * lib/regcomp.c (re_compile_internal, init_dfa):
23344 Length arg is now size_t, not Idx. All uses changed.
23345 (peek_token): Forward decl now says internal_function.
23346 (__re_error_msgid, __re_error_msgid_idx):
23347 Now static rather than extern with attribute_hidden.
23348 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
23349 For some reason libc prefers K&R style defns for external functions.
23350 (regerror) [!defined _LIBC]: Likewise.
23351 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
23352 (seek_collating_symbol_entry, lookup_collation_sequence_value):
23353 (build_range_exp, build_collating_symbol):
23354 Use K&R-style defn.
23355 (re_compile_fastmap): Use '\0' to memset, not 0.
23356 (utf8_sb_map): Make the calculations more obvious.
23357 (init_dfa, parse_bracket_exp, build_charclass_op):
23358 Call calloc and cast result, as glibc does.
23359 (init_word_char, fetch_token, peek_token, peek_token_bracket):
23360 (build_range_exp, build_collating_symbol):
23361 Now internal functions.
23363 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
23365 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
23366 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
23367 Don't depend on VMS; depend on __VMS instead, for POSIX
23368 namespace cleanness.
23369 (regoff_t): Define to ssize_t, not long int.
23371 Remove the REG_ macros named below. Instead, make the old names
23372 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
23374 (REG_BACKSLASH_ESCAPE_IN_LISTS):
23375 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
23376 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
23377 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
23378 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
23379 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
23380 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
23381 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
23382 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
23383 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
23384 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
23385 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
23386 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
23387 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
23388 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
23389 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
23390 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
23392 Remove. All uses replaced by the old RE_* names.
23393 (RE_BACKSLASH_ESCAPE_IN_LISTS):
23394 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
23395 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
23396 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
23397 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
23398 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
23399 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
23400 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
23401 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
23402 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
23403 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
23404 Don't bother having these macros be independent of each others'
23405 values, since they no longer exist in the POSIX name space.
23407 Rename the following member names back to their old names,
23408 unless !__USE_GNU_REGEX. All uses changed back.
23409 (buffer): Renamed from re_buffer.
23410 (allocated): Renamed from re_allocated.
23411 (used): Renamed from re_used.
23412 (syntax): Renamed from re_syntax.
23413 (fastmap): Renamed from re_fastmap.
23414 (translate): Renamed from re_translate.
23415 (can_be_null): Renamed from re_can_be_null.
23416 (regs_allocated): Renamed from re_regs_allocated.
23417 (fastmap_accurate): Renamed from re_fastmap_accurate.
23418 (no_sub): Renamed from re_no_sub.
23419 (not_bol): Renamed from re_not_bol.
23420 (not_eol): Renamed from re_not_eol.
23421 (newline_anchor): Renamed from re_newline_anchor.
23422 (num_regs): Renamed from rm_num_regs.
23423 (start): Renamed from rm_start.
23424 (end): Renamed from rm_end.
23426 (free_state): Move up a bit.
23428 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
23429 #define to be empty.
23430 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
23431 when that is what is intended.
23432 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
23433 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
23435 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
23436 All uses changed back to re_malloc, etc. It's now the caller's
23437 responsibility to check for overflow; all callers changed.
23438 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
23439 (re_x2nrealloc): Remove.
23440 (free_state): Remove decl.
23442 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
23443 (re_set_registers, re_exec):
23444 Use K&R-style defn.
23446 2006-01-31 Roland McGrath <roland@redhat.com>
23448 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
23449 Reported by Mike Frysinger <vapier@gentoo.org>.
23451 2006-01-15 Andreas Jaeger <aj@suse.de>
23454 * lib/regex_internal.c (re_string_reconstruct): Adjust for
23455 build_wcs_upper_buffer change.
23456 (build_wcs_upper_buffer): Change return type.
23458 2005-12-10 Ulrich Drepper <drepper@redhat.com>
23460 * lib/regex_internal.h: Include <stdint.h> if available.
23462 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
23464 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
23466 2005-10-14 Ulrich Drepper <drepper@redhat.com>
23468 * lib/regcomp.c: Adjust for changed secondary hash function.
23470 2005-09-30 Ulrich Drepper <drepper@redhat.com>
23472 * lib/regex.h: Pretty printing.
23473 Clean up namespace a bit.
23475 2005-09-30 Jakub Jelinek <jakub@redhat.com>
23477 * lib/regexec.c (update_cur_sifted_state, check_arrival,
23478 check_arrival_add_next_nodes): Avoid using uninitialized variable.
23480 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
23481 Ulrich Drepper <drepper@redhat.com>
23484 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
23486 (bitset_word_t): Renamed from bitset_word. All uses changed.
23488 2005-09-22 Ulrich Drepper <drepper@redhat.com>
23491 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
23492 * lib/regcomp.c: Remove unnecessary uses of
23493 unsigned RE_TRANSLATE_TYPE.
23494 * lib/regex_internal.h: Likewise.
23495 * lib/regex_internal.c: Likewise.
23496 * lib/regexec.c: Likewise.
23497 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
23499 2005-09-07 Ulrich Drepper <drepper@redhat.com>
23501 * lib/regexec.c (find_recover_state): Remove unnecessary
23503 (transit_state_bkref): Make DFA a const pointer.
23504 (get_subexp): Likewise.
23505 (check_arrival): Likewise.
23506 (update_cur_sifted_state): Likewise.
23507 (re_search_internal): Likewise.
23508 (prune_impossible_nodes): Likewise.
23509 (acquire_init_state_context): Likewise.
23510 (proceed_next_node): Likewise.
23511 (set_regs): Likewise.
23512 (free_fail_stack_return): Likewise.
23513 (check_arrival_expand_ecl): Mark DFA parameter as const.
23514 (check_arrival_expand_ecl_sub): Likewise.
23515 (check_subexp_limits): Likewise.
23516 (sub_epsilon_src_nodes): Likewise.
23517 (add_epsilon_src_nodes): Likewise.
23518 (merge_state_array): Likewise.
23519 (update_regs): Likewise.
23520 (build_trtable): Likewise.
23521 (sift_states_backward): Mark MCTX parameter as const.
23522 (build_sifted_states): Likewise.
23523 (update_cur_sifted_state): Likewise.
23524 (sift_states_mkref): Likewise.
23525 (check_arrival_expand_ecl): Mark eclosure as const.
23526 (check_dst_limits_calc_pos_1): Likewise.
23527 * lib/regex_internal.h (re_match_context_t): Make dfa a const
23530 2005-09-06 Ulrich Drepper <drepper@redhat.com>
23532 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
23533 (transit_state_sb): Likewise.
23534 (transit_state_mb): Likewise.
23535 (sift_states_iter_mb): Likewise.
23536 (check_arrival_add_next_nodes): Likewise.
23537 (check_node_accept_bytes): Change first parameter to pointer-to-const.
23538 [_LIBC] (re_search_2_stub): Use mempcpy.
23540 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
23541 mbrtowc for very simple UTF-8 case.
23543 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
23544 a pointer-to-const.
23545 (re_acquire_state_context): Likewise.
23546 * lib/regex_internal.h: Adjust prototypes.
23548 * lib/regex.c: Prevent using C++ compilers.
23550 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
23551 (re_acquire_state_context): Likewise.
23553 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
23555 * modules/regex (Depends-on): Add ssize_t.
23557 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
23559 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
23562 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
23564 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
23566 2006-03-29 Mark D. Baushke <mdb@gnu.org>
23567 Bruno Haible <bruno@clisp.org>
23569 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
23570 <sys/types.h> and <inttypes.h>.
23572 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23574 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
23575 `__error_t_defined', so argp.h will not typedef the former.
23577 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
23579 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
23580 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
23581 glibc names. Even if glibc is changed to conform to POSIX, the
23582 traditional names will be available anyway, since regex depends on
23583 the extensions module. Also, fix a longstanding typo in the
23584 implementation of Spencer ERE test #75 from grep 2.3. Problems
23585 reported by Emanuele Giaquinta. Also, change sense of cached
23586 variable, so that the message makes sense.
23588 2006-03-24 Simon Josefsson <jas@extundo.com>
23590 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
23591 including some doc fixes.
23592 (base64_encode_alloc): Fix +1 bug on allocation failures.
23594 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23596 * lib/base64.c (base64_encode): Do not read past end of array with
23597 unsanitized input on systems with CHAR_BIT > 8.
23599 2006-03-24 Eric Blake <ebb9@byu.net>
23601 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
23603 2006-03-22 Karl Berry <karl@gnu.org>
23605 * config/srclist.txt (*setenv.[ch]): get from coreutils.
23606 * config/srclistvars.sh (COREUTILS): new var.
23608 2006-03-17 Jim Meyering <jim@meyering.net>
23610 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
23611 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
23613 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
23615 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
23616 no longer needs it. Instead, check that regoff_t is as least
23617 as wide as ptrdiff_t.
23619 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
23620 so that our regex.h stays compatible with the installed regex.
23621 This is helpful for installers who configure --without-included-regex.
23622 Problem reported by Emanuele Giaquinta.
23624 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
23626 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
23627 Typedef to long int, not to off_, as POSIX will likely change
23630 2006-03-15 Eric Blake <ebb9@byu.net>
23632 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
23634 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
23636 * lib/argp-help.c (validate_uparams): Fix typo
23637 * lib/argp-parse.c (argp_default_options): Consistently begin help
23638 messages with a lowercase letter.
23640 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
23642 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
23643 overrun buffers and shouldn't be used (much as gets shouldn't be
23645 * lib/time_r.c (asctime_r, ctime_r): Likewise.
23647 2006-03-08 Simon Josefsson <jas@extundo.com>
23649 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
23650 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23652 2006-03-08 Simon Josefsson <jas@extundo.com>
23654 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
23655 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23657 2006-03-08 Simon Josefsson <jas@extundo.com>
23659 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
23660 signal that configure disabled the device.
23662 2006-03-08 Simon Josefsson <jas@extundo.com>
23664 * build-aux/maint.mk: Fix refresh-po, to handle no translated
23667 2006-03-07 Simon Josefsson <jas@extundo.com>
23669 * modules/getopt (Depends-on): Add unistd.
23671 * modules/unistd: New file.
23673 2006-03-07 Simon Josefsson <jas@extundo.com>
23675 * modules/gc-random: New file.
23677 2006-03-07 Simon Josefsson <jas@extundo.com>
23679 * m4/unistd_h.m4: New file.
23681 2006-03-07 Simon Josefsson <jas@extundo.com>
23683 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
23684 test to be side-effect free by storing the result in the cache
23685 variable gl_cv_lib_readline, and moving the assignment of
23686 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
23687 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23689 2006-03-07 Simon Josefsson <jas@extundo.com>
23691 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
23692 error on missing devices (the functions will return an error).
23694 * m4/gc.m4: Move random stuff to gc-random.m4
23696 2006-03-07 Simon Josefsson <jas@extundo.com>
23698 * lib/unistd_.h: New file.
23700 2006-03-07 Simon Josefsson <jas@extundo.com>
23702 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
23704 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
23706 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
23707 Problem reported by Juan Manuel Guerrero.
23709 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
23711 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
23713 * lib/getlogin_r.c: Likewise.
23714 * lib/getlogin_r.h: Likewise.
23715 * lib/glob.c: Likewise.
23716 * lib/pagealign_alloc.c: Likewise.
23717 * lib/unistd_.h: Remove; no longer needed.
23719 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
23721 * MODULES.html.sh (Support for systems lacking POSIX:2001):
23723 * modules/c-stack (Depends-on): Add unistd.
23724 * modules/getlogin_r: Likewise.
23725 * modules/glob: Likewise.
23726 * modules/pagealign_alloc: Likewise.
23727 * modules/unistd (Files): Remove lib/unistd_.h.
23728 (EXTRA_DIST): Remove.
23729 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
23731 (MOSTLYCLEANFILES): Remove unistd.h-t.
23733 2006-03-03 Simon Josefsson <jas@extundo.com>
23735 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
23737 2006-03-03 Simon Josefsson <jas@extundo.com>
23739 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
23742 2006-03-03 Simon Josefsson <jas@extundo.com>
23744 * build-aux/maint.mk: Add indent target.
23746 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
23748 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
23749 our replacement poll.h in any case, to avoid a differing
23750 declaration from a system header. Seen on AIX.
23752 2006-03-01 Simon Josefsson <jas@extundo.com>
23754 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
23757 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
23759 * modules/gettime (Depends-on): Add extensions module.
23760 * modules/nanosleep (Depends-on): Likewise.
23761 * modules/settime (Depends-on): Likewise.
23763 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
23765 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
23766 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
23768 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23769 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
23771 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
23772 not "==". Reported by Ralf Wildenhues.
23774 2006-03-01 Karl Berry <karl@gnu.org>
23776 * doc/Copyright/request-*: new files, synced from gnuorg.
23778 2006-03-01 Karl Berry <karl@gnu.org>
23780 * config/srclist.txt (Copyright/*): new entries.
23782 2006-02-28 Simon Josefsson <jas@extundo.com>
23784 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
23786 2006-02-27 Simon Josefsson <jas@extundo.com>
23788 * lib/base64.h: Indent #define's. From Jim Meyering
23789 <jim@meyering.net>.
23791 2006-02-27 Jim Meyering <jim@meyering.net>
23793 Revert the change of 2006-02-24, so these files can continue
23794 to be sync'd from gettext.
23795 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
23798 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
23800 * modules/intprops: New file.
23801 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
23803 * modules/getloadavg (Files): Remove lib/intprops.h.
23804 (Depends-on): Add intprops.
23805 * modules/human: Likewise.
23806 * modules/inttostr: Likewise.
23807 * modules/openat: Likewise.
23808 * modules/sig2str: Likewise.
23809 * modules/userspec: Likewise.
23810 * modules/utimecmp: Likewise.
23811 * modules/xnanosleep: Likewise.
23812 * modules/xstrtol: Likewise.
23814 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
23816 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
23817 * modules/lock-tests (TESTS): Use $(EXEEXT).
23818 * modules/tls-tests: Likewise.
23819 * modules/argp-tests: Likewise.
23820 (check_PROGRAMS): New var, replacing...
23821 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
23823 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23825 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
23828 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
23830 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
23832 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23834 Sync from coreutils.
23835 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
23838 2006-02-22 Jim Meyering <jim@meyering.net>
23840 Sync from coreutils.
23841 * m4/chdir-safer.m4: New file.
23843 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
23845 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
23846 AT_FDCWD exceeds INT_MAX.
23847 * lib/openat.h (AT_FDCWD): Likewise.
23849 2006-02-17 Eric Blake <address@hidden>
23851 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
23853 2006-02-16 Simon Josefsson <jas@extundo.com>
23855 * modules/getaddrinfo (Depends-on): Add sys_socket.
23857 2006-02-15 Simon Josefsson <jas@extundo.com>
23859 * build-aux/maint.mk: Add dsyntax-check rule.
23861 2006-02-15 Eric Blake <ebb9@byu.net>
23863 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
23864 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
23865 'present but cannot compile' warnings on cygwin.
23866 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
23867 use ws2tcpip.h if sys/socket.h works.
23868 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
23869 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
23871 2006-02-14 Simon Josefsson <jas@extundo.com>
23873 * modules/maintainer-makefile (Files): Rename.
23875 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
23876 and (the local) Makefile.cfg to maint-cfg.mk.
23878 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
23881 * modules/maintainer-makefile: New module.
23883 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
23884 severaly stripped to make it possible to build it up from scratch
23885 with reliable tests.
23887 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
23888 fixes to permit overriding the default actions when configure and
23889 makefile are not available.
23891 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
23893 Sync from coreutils.
23894 * modules/lstat (Depends-on): Don't depend on xalloc.
23895 (License): Change from GPL to LGPL, since this is now simply a
23896 replacement for a libc function.
23898 2006-02-14 Jim Meyering <jim@meyering.net>
23900 Sync from coreutils.
23902 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
23903 failure on deficient systems, and simplify gnulib lgpl dependencies.
23904 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
23905 xmalloc/lstat combination. Based on a patch from Bruno Haible.
23907 * lib/xalloc-die.c: Remove unused definition of N_.
23909 2006-02-14 Jim Meyering <jim@meyering.net>
23911 Sync from coreutils.
23912 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
23913 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
23914 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
23915 double-quote uses of that variable, to accommodate the rare case in
23916 which getmntent is available in none of the libraries checked. This
23917 happens at least on FreeBSD 5.0.
23919 2006-02-13 Simon Josefsson <jas@extundo.com>
23921 * gnulib-tool (Usage): Fix --import, from
23922 karl@freefriends.org (Karl Berry).
23924 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
23926 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
23928 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
23930 * lib/argp-namefrob.h: Restore changes accidentally lost during the
23931 "autoupdate" on 2005-12-12.
23933 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
23935 * modules/closeout (Depends-on): Remove atexit.
23937 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
23939 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
23940 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
23942 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
23944 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
23945 __EXTENSIONS__ if this causes compilation to fail. Problem
23946 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
23947 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
23949 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
23951 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
23952 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
23953 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
23956 2006-01-26 Simon Josefsson <jas@extundo.com>
23958 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
23959 prototype is visible on mingw32.
23961 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
23964 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
23967 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
23969 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
23970 attempt to open for write; this always fails, at least on POSIX
23971 hosts. This reinstates the 2006-01-09 change, which was
23972 inadvertently removed.
23974 2006-01-26 Bruno Haible <bruno@clisp.org>
23976 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
23977 Reported by Paul Eggert.
23979 2006-01-26 Bruno Haible <bruno@clisp.org>
23980 Paul Eggert <eggert@cs.ucla.edu>
23982 * lib/stdbool_.h (_Bool)
23983 [(! (defined __cplusplus || defined __BEOS__)
23984 && !defined __GNUC__
23985 && !(defined __HP_cc || defined __xlc__
23986 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
23987 || defined __sgi))]:
23988 #define to signed char in these cases too; this simplifies
23989 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
23990 etc., separately) and makes it more conservative.
23992 2006-01-25 Simon Josefsson <jas@extundo.com>
23994 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
23995 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
23996 ws2tcpip.h with WINVER=0x0501. All for mingw32.
23998 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
24000 * lib/argp-namefrob.h: Bugfix. Remove stray #
24002 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
24004 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
24005 so that we test the test.
24006 Check for yet another HP-UX cc bug involving *bool |= bool.
24008 2006-01-25 Karl Berry <karl@gnu.org>
24010 * config/srclist.txt (vasnprintf.c): sync lost.
24012 2006-01-25 Jim Meyering <jim@meyering.net>
24014 Sync from the stable (b5) branch of coreutils:
24016 * lib/fts.c (fts_children): Don't let close() clobber errno from
24019 * lib/fts.c (fts_stat): When following a symlink-to-directory,
24020 don't necessarily interpret stat-fails+lstat-succeeds as indicating
24021 a dangling symlink. That can also happen at least for ELOOP.
24022 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
24023 FYI, this bug predates the inclusion of fts.c in coreutils.
24025 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
24026 in their own block, so pre-c99 compilers don't object.
24028 Avoid the double-free (first in fts_read, second in fts_close) that
24029 would occur when an `active' directory is made inaccessible (e.g.,
24030 via chmod a-x) during a traversal.
24031 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
24032 before returning. Reproduce this failure by
24033 mkdir -p a/b; cd a; chmod a-x . b
24034 Reported by Stavros Passas.
24036 2006-01-25 Jim Meyering <jim@meyering.net>
24038 * lib/fileblocks.c: Remove more useless parentheses.
24039 * lib/readutmp.h: Likewise.
24041 2006-01-25 Bruno Haible <bruno@clisp.org>
24043 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
24045 Reported by Paul Eggert.
24047 2006-01-25 Bruno Haible <bruno@clisp.org>
24049 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
24050 rid of a trap command. For Solaris sh.
24051 Reported by Mark D. Baushke <mdb@gnu.org>.
24053 2006-01-24 Simon Josefsson <jas@extundo.com>
24055 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
24058 2006-01-24 Karl Berry <karl@gnu.org>
24060 * config/srclist.txt (argp-namefrob.h): sync lost.
24062 2006-01-24 Jim Meyering <jim@meyering.net>
24064 * modules/openat (Files): Add lib/intprops.h.
24065 From Mark D. Baushke.
24067 2006-01-24 Jim Meyering <jim@meyering.net>
24069 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
24070 Reported by Mark D. Baushke.
24072 2006-01-24 Jim Meyering <jim@meyering.net>
24074 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
24076 2006-01-24 Bruno Haible <bruno@clisp.org>
24078 * modules/strnlen (Maintainer): Change from glibc to all.
24080 2006-01-24 Bruno Haible <bruno@clisp.org>
24082 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
24083 Patch by Paul Eggert.
24085 2006-01-24 Bruno Haible <bruno@clisp.org>
24087 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
24089 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
24092 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
24093 'signed char' to avoid problems with the built-in _Bool type.
24094 Reported by Paul Eggert on 2005-11-26.
24096 2006-01-24 Bruno Haible <bruno@clisp.org>
24098 * gnulib-tool (func_import): Avoid constructing complicated sed
24099 expressions inside backquote.
24100 Report and solution by Mark D. Baushke <mdb@gnu.org>.
24102 2006-01-23 Ulrich Drepper <drepper@redhat.com>
24104 These changes imported from libc.
24105 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
24106 test and two separate function calls.
24107 * lib/strndup.c (__strndup): Add libc_hidden_def.
24109 2006-01-23 Simon Josefsson <jas@extundo.com>
24111 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
24112 Remove the test_*_SOURCES variable: automake infers it by default.
24113 * modules/tls-tests: Likewise.
24115 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
24117 Work around porting bugs reported by Dieter in
24118 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
24119 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
24120 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
24121 Include "getopt.h" first, to check interface.
24122 (getenv): Declare only if defined HAVE_DECL_GETENV &&
24124 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
24125 (__strndup): Revert to K&R-style function dfns, the glibc style.
24126 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
24127 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
24128 Include strnlen.h first, to get prototype properly.
24129 (strnlen): Renamed from __strnlen.
24132 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
24134 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
24136 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
24138 * config/srclist.txt: Adjust to reflect glibc reorganization.
24139 This affects only comments.
24141 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
24143 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
24144 Reported by Bruce Korb <bkorb@gnu.org>.
24146 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
24148 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
24149 to pacify gcc -Wswitch-default.
24151 2006-01-22 Bruno Haible <bruno@clisp.org>
24153 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
24154 temporary buffer for sprintf, take into account the precision also
24155 for 'd', 'i', 'u', 'o', 'x', 'X'.
24157 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
24159 * modules/argp-tests: New module
24160 * tests/test-argp.c: New file
24161 * tests/test-argp-2.sh: New file
24163 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
24165 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
24166 (__argp_base_name): Removed
24167 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
24169 (__argp_base_name): Provide macro definition or extern declaration
24170 depending on the configuration
24172 2006-01-20 Simon Josefsson <jas@extundo.com>
24174 * modules/inet_ntop (Depends-on): Depend on sys_socket.
24176 2006-01-20 Simon Josefsson <jas@extundo.com>
24178 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
24180 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
24182 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
24183 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
24184 Suggested by Bruno Haible.
24186 2006-01-20 Karl Berry <karl@gnu.org>
24188 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
24189 until changes propagate, I guess.
24191 2006-01-19 Simon Josefsson <jas@extundo.com>
24193 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
24195 2006-01-19 Simon Josefsson <jas@extundo.com>
24197 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
24199 2006-01-19 Simon Josefsson <jas@extundo.com>
24201 * gnulib-tool: Set check_PROGRAMS.
24203 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
24204 modules/des-tests, modules/gc-arcfour-tests,
24205 modules/gc-arctwo-tests, modules/gc-des-tests,
24206 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
24207 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
24208 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
24209 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
24210 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
24211 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
24212 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
24215 2006-01-18 Simon Josefsson <jas@extundo.com>
24217 * modules/socklen (Depends-on): Depend on sys_socket.
24219 2006-01-18 Simon Josefsson <jas@extundo.com>
24221 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
24222 modules/des-tests, modules/gc-arcfour-tests,
24223 modules/gc-arctwo-tests, modules/gc-des-tests,
24224 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
24225 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
24226 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
24227 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
24228 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
24229 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
24230 $(EXEEXT) to automake TESTS variable, for mingw32.
24232 2006-01-17 Simon Josefsson <jas@extundo.com>
24234 * modules/socklen (Include): Need sys/socket.h.
24236 2006-01-17 Bruno Haible <bruno@clisp.org>
24238 * modules/ssize_t (Include): Add <sys/types.h>.
24240 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
24242 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
24243 it's not portable and it doesn't work with cross-compiles.
24244 Problem reported by Bruno Haible. Fix missing-$ typo in
24245 'test "gl_cv_ignore_unused_libraries" ...' that prevented
24246 -zignore from being used with Sun's C compiler.
24248 2006-01-12 Simon Josefsson <jas@extundo.com>
24250 * lib/base64.c: Fix warning, reported by Bruno Haible
24251 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
24253 2006-01-12 Bruno Haible <bruno@clisp.org>
24255 * modules/ldd: New file.
24256 * build-aux/ldd.sh.in: New file.
24257 * MODULES.html.sh (Support for building libraries and executables): Add
24260 2006-01-12 Bruno Haible <bruno@clisp.org>
24262 * m4/ldd.m4: New file.
24264 2006-01-12 Bruno Haible <bruno@clisp.org>
24266 * gnulib-tool (func_import, func_create_testdir): Don't go into an
24267 endless loop while replacing $auxdir with build-aux.
24269 2006-01-11 Simon Josefsson <jas@extundo.com>
24271 * lib/stdint_.h (SIZE_MAX): Add missing (.
24273 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
24275 Sync from coreutils.
24276 * lib/md5.c: Fix commentary typos.
24277 (alignof, UNALIGNED_P): No need for a GCC-specific version.
24278 * lib/md5.h (__attribute__): Remove; unused.
24279 * lib/sha1.c: Fix commentary to match md5 better.
24280 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
24281 so that we don't need to worry about alignment. All uses changed.
24282 This merges the 2005-10-28 md5 change into sha1.
24284 2006-01-11 Jim Meyering <jim@meyering.net>
24286 Sync from coreutils.
24287 * lib/md5.c (OP): Fix spacing.
24289 2006-01-11 Bruno Haible <bruno@clisp.org>
24291 Ensure automatic ordering between gl_LOCK and gl_ARGP.
24292 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
24293 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
24295 2006-01-11 Bruno Haible <bruno@clisp.org>
24297 Ensure automatic ordering between gl_LOCK and gl_ARGP.
24298 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
24299 the "early" section as well.
24301 2006-01-11 Bruno Haible <bruno@clisp.org>
24303 Avoid "ar: no archive members specified" error on MacOS X.
24304 * gnulib-tool (func_modules_add_dummy): New function.
24305 (func_import, func_create_testdir): Invoke it.
24307 2006-01-11 Bruno Haible <bruno@clisp.org>
24309 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
24310 with $auxdir in AC_CONFIG_FILES statements.
24312 2006-01-11 Bruno Haible <bruno@clisp.org>
24314 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24315 Initialize also noinst_HEADERS to empty.
24317 2006-01-11 Bruno Haible <bruno@clisp.org>
24319 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
24321 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
24324 2006-01-11 Bruno Haible <bruno@clisp.org>
24326 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
24327 overridable by the user.
24328 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24330 2006-01-10 Simon Josefsson <jas@extundo.com>
24332 * modules/sys_socket: New file.
24334 2006-01-10 Simon Josefsson <jas@extundo.com>
24336 * m4/sys_socket_h.m4: New file.
24338 2006-01-10 Simon Josefsson <jas@extundo.com>
24340 * lib/socket_.h: New file.
24342 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
24344 * modules/readutmp (Maintainer): Add myself.
24346 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
24348 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
24349 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
24350 People who are still concerned with buggy memcmp implementations
24351 can invoke gl_FUNC_MEMCMP themselves.
24353 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
24355 * lib/regex_internal.h (BITSET_WORD_BITS):
24356 Work around a bug in 64-bit PGC (before version 6.1-2), where the
24357 preprocessor mishandles large unsigned values as if they were signed.
24358 Problem reported by Claudio Fontana in
24359 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
24361 2006-01-10 Jim Meyering <jim@meyering.net>
24363 Avoid the double-free (first in fts_read, second in fts_close) that
24364 would occur when an `active' directory is made inaccessible (e.g.,
24365 via chmod a-x) during a traversal.
24366 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
24367 before returning. Reproduce this failure by
24368 mkdir -p a/b; cd a; chmod a-x . b
24369 Reported by Stavros Passas.
24371 Sync from coreutils.
24372 * lib/sha1.c: Tweak grammar in a comment.
24374 2006-01-10 Jim Meyering <jim@meyering.net>
24376 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
24377 Patch by Joerg Sonnenberger.
24379 2006-01-10 Bruno Haible <bruno@clisp.org>
24381 * modules/readutmp: Depend on module free.
24382 * modules/strtok_r: Depend on module restrict.
24384 2006-01-10 Bruno Haible <bruno@clisp.org>
24386 * modules/gettext (configure.ac): Add an invocation of
24387 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
24389 2006-01-10 Bruno Haible <bruno@clisp.org>
24391 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
24392 Reported by Werner Lemberg <wl@gnu.org>.
24394 2006-01-10 Bruno Haible <bruno@clisp.org>
24396 * lib/localcharset.c: Update from GNU gettext.
24398 2006-01-10 Bruno Haible <bruno@clisp.org>
24400 * lib/argp.h (__const): Remove macro. Use const instead.
24401 * lib/argp-fmtstream.h (__const): Likewise.
24402 * lib/glob_.h (__const): Remove macro.
24403 * lib/glob-libc.h: Use const instead of __const.
24405 2006-01-10 Bruno Haible <bruno@clisp.org>
24407 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
24409 Needed to avoid an automake error regarding the 'gettext' module.
24411 2006-01-09 Simon Josefsson <jas@extundo.com>
24413 * modules/inet_ntop (Depends-on): Add restrict.
24415 2006-01-09 Simon Josefsson <jas@extundo.com>
24417 * modules/gc-rijndael-tests (License): Put under LGPL.
24419 * modules/gc-des-tests (License): Likewise.
24421 * modules/gc-arcfour-tests (License): Likewise.
24423 * modules/gc-arctwo-tests (License): Likewise.
24425 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
24427 * modules/gc-hmac-sha1-tests (Files): Likewise.
24429 * modules/gc-hmac-md5-tests (License): Likewise.
24431 * modules/gc-sha1-tests (License): Likewise.
24433 * modules/gc-md5-tests (License): Likewise.
24435 * modules/gc-md4-tests (License): Likewise.
24437 * modules/gc-md2-tests (License): Likewise.
24439 * modules/gc-tests (License): Likewise.
24441 * modules/des-tests (License): Likewise.
24443 * modules/md4-tests (License): Likewise.
24445 * modules/md2-tests (License): Likewise.
24447 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
24449 Sync from coreutils:
24451 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
24452 * modules/lib-ignore: New file.
24453 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
24454 chdir-safer.m4, lchmod.m4.
24455 * modules/openat: Add mkdirat.c, openat-priv.h.
24457 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
24459 Sync from coreutils.
24460 * m4/lib-ignore.m4: New file.
24461 * m4/lchmod.m4: New file.
24463 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
24465 Sync from coreutils.
24466 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
24467 for write access: POSIX says that must fail.
24468 * lib/fts.c (diropen): Likewise.
24469 * lib/save-cwd.c (save_cwd): Likewise.
24470 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
24471 well, for minor improvements on hosts that lack O_DIRECTORY.
24472 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
24473 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
24474 Fall back on chown if open failed with EACCES.
24476 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
24477 Report an error at compile-time if only a 1-second nominal clock
24478 resolution is found.
24480 * lib/lchmod.h: New file.
24481 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
24482 (make_dir_parents): Use lchown rather than chown, and
24483 lchmod rather than chmod.
24485 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
24486 dummies too. Problem with "none" reported by Bob Proulx. Problem with
24487 "proc" reported by n0dalus.
24489 * lib/mountlist.c: Include <limits.h>.
24490 (dev_from_mount_options)
24491 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
24492 New function. It no longer assumes "dev=" has the System V meaning
24493 on Linux (since it doesn't). It also parses "dev=" more carefully.
24494 (read_file_system_list)
24495 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
24496 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
24499 * lib/posixtm.h (PDS_PRE_2000): New macro.
24500 * lib/posixtm.c (year): Arg is now syntax_bits rather than
24501 allow_century. All usages changed. Reject dates outside the range
24502 1969-1999 if PDS_PRE_2000 is used.
24504 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
24506 Sync from coreutils.
24507 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
24508 (Time of day items): Mention the possibility of leap seconds.
24509 Problem reported by Dr. David Alan Gilbert.
24511 2006-01-09 Jim Meyering <jim@meyering.net>
24513 Sync from coreutils.
24515 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
24517 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
24519 * lib/modechange.c (mode_compile): Reject an invalid mode string
24520 that starts with an octal digit. From Andreas Gruenbacher.
24522 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
24523 and dup to open_safer and dup_safer, respectively.
24524 (openat_permissive): Fix typo in comment.
24526 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
24527 "gettext.h"; either no longer needed or are guaranteed by openat.h.
24528 (_): Remove; no longer needed.
24529 (openat): Renamed from rpl_openat; no need for rpl_openat
24530 since openat.h renames openat for us.
24531 Replace most of the body with a call to openat_permissive,
24532 to avoid duplicate code.
24533 Port to (probably hypothetical) environments were mode_t is
24535 (openat_permissive): Require mode arg, so that we can check
24536 types better. Put it just after flags. Change cwd failure
24537 indicator from pointer-to-bool to pointer-to-errno-value.
24538 All callers changed.
24539 Invoke openat_save_fail and/or openat_restore_fail if
24540 cwd_errno is null, so that openat can call us.
24541 (openat_permissive, fdopendir, fstatat, unlinkat):
24542 Simplify errno handling to avoid some duplicate code,
24543 as it's OK to set errno on success.
24544 * lib/openat.h: Revamp code so that function macros depend on
24545 __OPENAT_PREFIX only, not also on AT_FDCWD.
24546 (openat_ro): Remove. Caller changed to use openat_permissive.
24547 (openat_permissive): Now a macro, if not a function.
24548 (openat_restore_fail, openat_save_fail): Now always functions,
24549 since mkdirat needs them even if __OPENAT_PREFIX is defined.
24551 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
24553 * lib/mkdirat.c: Include openat-priv.h.
24554 Remove definitions of macros defined therein.
24555 * lib/openat.c: Likewise.
24557 * lib/mkdirat.c (mkdirat): New file and function.
24558 * lib/openat.h (mkdirat): Declare.
24560 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
24562 * lib/openat.h (openat_permissive): Declare.
24563 (openat_ro): Define.
24565 * lib/openat.c (EXPECTED_ERRNO): New macro.
24566 (openat_permissive): New function -- used in remove.c rewrite.
24567 (all functions): Set errno just before returning, only if there
24568 was an actual failure.
24569 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
24571 Emulate openat-family functions using Linux's procfs, if possible.
24572 Idea and some code based on Ulrich Drepper's glibc changes.
24574 * lib/openat.c: (BUILD_PROC_NAME): New macro.
24575 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
24576 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
24577 before falling back on save_cwd and restore_cwd.
24578 (fdopendir, fstatat, unlinkat): Likewise.
24580 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
24581 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
24583 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
24584 as second argument to va_arg. Otherwise, some versions of gcc
24585 warn that `if this code is reached, the program will abort'.
24587 2006-01-09 Jim Meyering <jim@meyering.net>
24589 Sync from coreutils.
24590 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
24591 Require openat-priv.h.
24593 2006-01-09 Bruno Haible <bruno@clisp.org>
24595 * modules/strnlen (Include): Use strnlen.h.
24597 2006-01-09 Bruno Haible <bruno@clisp.org>
24599 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
24601 2006-01-09 Bruno Haible <bruno@clisp.org>
24603 * lib/sysexit_.h (EX_OK): New macro.
24604 Suggested by Martin Lambers <marlam@marlam.de>.
24606 2006-01-09 Bruno Haible <bruno@clisp.org>
24608 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
24609 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
24611 2006-01-09 Bruno Haible <bruno@clisp.org>
24613 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
24616 2006-01-09 Bruno Haible <bruno@clisp.org>
24618 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
24619 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
24620 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
24621 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
24623 2006-01-09 Bruno Haible <bruno@clisp.org>
24625 * build-aux/javacomp.sh.in: New file, moved from lib/.
24626 * modules/javacomp-script (Files): Update.
24627 (configure.ac): Add AC_CONFIG_FILES invocation.
24628 (EXTRA_DIST): Remove variable.
24630 * build-aux/javaexec.sh.in: New file, moved from lib/.
24631 * modules/javaexec (Files): Update.
24632 (configure.ac): Add AC_CONFIG_FILES invocation.
24633 (EXTRA_DIST): Remove javaexec.sh.in.
24635 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
24636 * modules/csharpcomp-script (Files): Update.
24637 (configure.ac): Add AC_CONFIG_FILES invocation.
24638 (EXTRA_DIST): Remove variable.
24640 * build-aux/csharpexec.sh.in: New file, moved from lib/.
24641 * modules/csharpexec (Files): Update.
24642 (configure.ac): Add AC_CONFIG_FILES invocation.
24643 (EXTRA_DIST): Remove csharpexec.sh.in.
24645 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
24647 Sync from coreutils.
24649 Add POSIX ACL support
24650 * lib/acl.h (copy_acl, set_acl): Add declarations.
24651 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
24652 systems other than Linux.
24653 (chmod_or_fchmod): New function: use fchmod when possible,
24654 and chmod otherwise.
24655 (file_has_acl): Add a POSIX ACL implementation, with a
24656 Linux-specific subcase.
24657 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
24658 S_ISVTX from one file to another. Fall back to fchmod/chmod when
24659 acls are unsupported.
24660 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
24661 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
24664 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
24666 Sync from coreutils.
24667 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
24669 2006-01-07 Bruno Haible <bruno@clisp.org>
24671 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
24674 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
24676 * lib/strftime.c (tzname): Don't declare if it is already #defined.
24677 Problem reported for Mingw by Mark Junker.
24679 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
24681 * README: Gnulib normally doesn't generate a tarball.
24683 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
24685 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
24686 long int, not int, for nanosecond counts, so that people who are
24687 used to POSIX struct timespec won't be surprised. Reported by Jim
24690 2005-12-28 Bruno Haible <bruno@clisp.org>
24692 * build-aux/config.rpath: Update from GNU gettext.
24694 2005-12-16 Jim Meyering <jim@meyering.net>
24696 * modules/fprintftime: New module.
24697 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
24699 2005-12-16 Jim Meyering <jim@meyering.net>
24701 * m4/fprintftime.m4: New file.
24703 2005-12-16 Jim Meyering <jim@meyering.net>
24705 * lib/fprintftime.c, lib/fprintftime.h: New files.
24707 2005-12-15 Simon Josefsson <jas@extundo.com>
24709 * modules/socklen (configure.ac): Fix M4 macro name, to align with
24712 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
24714 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
24715 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
24717 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
24719 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
24720 * lib/argp-help.c (fill_in_uparams): Check if the constructed
24721 struct uparams is valid. Fall back to the default values if it is
24724 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
24726 * modules/argp (Files): Add argp-pin.c
24727 (Depends-on): dirname
24728 (lib_SOURCES): Add argp-pin.c
24730 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
24732 * m4/argp.m4: Check if program_invocation_name and
24733 program_invocation_short_name are declared and define appropriate
24734 macros if they are not.
24736 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
24738 * lib/argp-help.c (__argp_base_name): New function
24739 (__argp_short_program_name): Rewrite using __argp_base_name
24740 * lib/argp-namefrob.h: Define program_invocation_name and
24741 program_invocation_short_name if requested
24742 (__argp_base_name): Add prototype
24743 * lib/argp-parse.c (argp_def): Use gettext wrappers
24744 (argp_default_parser): Use __argp_base_name
24745 * lib/argp-pin.c: New file. Defines program_invocation_name and
24746 program_invocation_short_name on systems that lack them.
24748 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
24750 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
24751 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
24752 porting problem reported by Georg Schwarz in
24753 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
24755 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
24757 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
24758 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
24759 porting problem reported by Georg Schwarz in
24760 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
24762 2005-12-05 Bruno Haible <bruno@clisp.org>
24764 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
24765 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
24766 Reported by Mark Junker <mjscod@gmx.de>.
24768 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
24770 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
24771 Use implementation from Albert Chin, with some
24772 comments/corrections by Stepan Kasal and myself.
24774 2005-12-02 Bruno Haible <bruno@clisp.org>
24776 * gnulib-tool (func_import): Accept GPLed build tool modules when
24778 * modules/csharpcomp-script: New file.
24779 * modules/csharpcomp: Depend on it.
24780 * modules/javacomp-script: New file.
24781 * modules/javacomp: Depend on it.
24782 Suggested by Simon Josefsson.
24784 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
24786 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
24787 statement, to work around an HP-UX 10.20 compiler bug reported by
24790 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
24792 * modules/savedir (Depends-on): Add openat.
24794 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
24796 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
24797 (uintmax_t) [defined uintmax_t]: Do not declare.
24798 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
24799 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
24800 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
24801 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
24802 sake of portability to weird hosts that C allows (though we don't
24803 know of any practical examples).
24805 * lib/savedir.h (fdsavedir): New decl.
24806 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
24807 contains most of the former guts of savedir.
24808 (savedir): Use savedirstream.
24809 Include "openat.h".
24811 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
24813 * modules/obstack (Files): Add m4/ulonglong.m4.
24814 Problem reported by Davide Angelocola.
24816 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
24818 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
24819 coreutils no longer futzes with rounding modes.
24821 2005-11-14 Jim Meyering <jim@meyering.net>
24823 * lib/mkstemp-safer.c: Include <config.h>, required for possible
24824 replacement of mkstemp.
24826 2005-11-10 Simon Josefsson <jas@extundo.com>
24828 * lib/readline.c: Remove EOL.
24830 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
24832 * modules/gethrxtime (Depends-on): Add gettime.
24834 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
24836 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
24837 or gettimeofday; no longer needed.
24839 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
24841 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
24843 (gethrxtime) [! (HAVE_NANOUPTIME
24844 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
24845 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
24846 our own approximation.
24848 2005-11-08 Eric Blake <ebb9@byu.net>
24850 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
24852 2005-11-08 Eric Blake <ebb9@byu.net>
24854 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
24856 2005-11-04 Bruno Haible <bruno@clisp.org>
24858 * gnulib-tool: Implement --update mode.
24860 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
24862 Fix porting problem reported by Theodoros V. Kalamatianos.
24863 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
24864 Don't assume that futimes failing means we must fail.
24866 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
24868 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
24869 variables to suggest the intended function of the PATH_MAX check.
24871 2005-10-30 Kean Johnston <jkj@sco.com>
24873 Trivial changes to support SCO systems.
24874 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
24876 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
24877 where __ptr is null when no I/O is pending.
24879 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
24881 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
24882 leave errno alone. Problem reported by Dmitry V. Levin.
24884 2005-10-28 Simon Josefsson <jas@extundo.com>
24886 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
24889 * tests/test-gc-md2.c, tests/test-md2.c: New files.
24891 * modules/md2, modules/md2-tests: New files.
24893 2005-10-28 Simon Josefsson <jas@extundo.com>
24895 * m4/inet_ntop.m4: More tests.
24897 * m4/gc-md2.m4, md2.m4: New file.
24899 2005-10-28 Simon Josefsson <jas@extundo.com>
24901 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
24902 "restrict" keywords, as per POSIX. Protect the function
24903 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
24904 Don't use K&R prototypes. Check the sprintf return values.
24905 Re-define EAFNOSUPPORT if not present. Indent.
24907 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
24908 suggested by Bruno Haible <bruno@clisp.org>.
24910 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
24912 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
24914 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
24917 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
24919 * lib/md2.h, lib/md2.c: New files.
24921 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
24923 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
24924 errno alone. Problem reported by Frederic Jolliton.
24926 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
24928 * modules/verify (License): Change from GPL to LGPL. This is a
24929 tiny module and there are apparently near-equivalents that are
24930 under the BSD license.
24932 2005-10-24 Simon Josefsson <jas@extundo.com>
24934 * modules/sha1: Relicense to LGPL.
24936 2005-10-24 Simon Josefsson <jas@extundo.com>
24938 * lib/md4.h: Shrink buffer size, now that we changed the type.
24940 2005-10-23 Simon Josefsson <jas@extundo.com>
24942 * gnulib-tool (func_import): Fix --tests-base.
24944 2005-10-22 Simon Josefsson <jas@extundo.com>
24946 * modules/arcfour (Depends-on): Need stdint.
24948 2005-10-22 Simon Josefsson <jas@extundo.com>
24950 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
24951 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
24953 2005-10-22 Simon Josefsson <jas@extundo.com>
24955 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
24956 suggested by Bruno Haible <bruno@clisp.org>.
24958 2005-10-22 Simon Josefsson <jas@extundo.com>
24960 * lib/crc.h: Include stddef.h, for size_t.
24962 2005-10-22 Simon Josefsson <jas@extundo.com>
24964 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
24965 arcfour_context struct (simplify test vector testing in GNU
24968 2005-10-21 Simon Josefsson <jas@extundo.com>
24970 * modules/des, modules/des-tests: New files.
24972 * modules/gc-des, modules/gc-des-tests: New files.
24974 * tests/test-des.c, tests/test-gc-des.c: New file.
24976 2005-10-21 Simon Josefsson <jas@extundo.com>
24978 * modules/arctwo, modules/arctwo-tests: New files.
24980 * tests/test-arctwo.c: New file.
24982 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
24984 * tests/test-gc-arctwo.c: New file.
24986 2005-10-21 Simon Josefsson <jas@extundo.com>
24988 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
24989 Bruno Haible <bruno@clisp.org>.
24991 * m4/gc-des.m4: New file.
24993 2005-10-21 Simon Josefsson <jas@extundo.com>
24995 * m4/arctwo.m4: New file.
24997 * m4/gc-arctwo.m4: New file.
24999 2005-10-21 Simon Josefsson <jas@extundo.com>
25001 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
25004 2005-10-21 Simon Josefsson <jas@extundo.com>
25006 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
25009 * lib/hmac-sha1.c (hmac_sha1): Likewise.
25011 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
25012 Bruno Haible <bruno@clisp.org>.
25014 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
25017 2005-10-21 Simon Josefsson <jas@extundo.com>
25019 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
25021 2005-10-21 Simon Josefsson <jas@extundo.com>
25023 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
25025 2005-10-21 Simon Josefsson <jas@extundo.com>
25027 * lib/des.h, lib/des.c: New files.
25029 * lib/gc-gnulib.c: Support DES.c
25031 2005-10-21 Simon Josefsson <jas@extundo.com>
25033 * lib/arctwo.h, lib/arctwo.c: New files.
25035 * lib/gc-gnulib.c: Support ARCTWO.
25037 2005-10-21 Simon Josefsson <jas@extundo.com>
25039 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
25040 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25042 2005-10-21 Simon Josefsson <jas@extundo.com>
25044 * gnulib-tool (func_import, func_create_testdir): Define automake
25045 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
25046 Makefile.am snippet),
25047 suggested by Bruno Haible <bruno@clisp.org>.
25049 * modules/gc (Makefile.am): Use it.
25051 2005-10-21 Bruno Haible <bruno@clisp.org>
25053 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
25056 2005-10-19 Simon Josefsson <jas@extundo.com>
25058 * tests/test-gc-rijndael.c: New file.
25060 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
25062 2005-10-19 Simon Josefsson <jas@extundo.com>
25064 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
25067 2005-10-19 Simon Josefsson <jas@extundo.com>
25069 * tests/test-gc-arcfour.c: New file.
25071 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
25073 2005-10-19 Simon Josefsson <jas@extundo.com>
25075 * modules/gc-md4, modules/gc-md4-tests: New file.
25077 * tests/test-gc-md4.c: New file.
25079 2005-10-19 Simon Josefsson <jas@extundo.com>
25081 * m4/gc-md4.m4: New file.
25083 2005-10-19 Simon Josefsson <jas@extundo.com>
25085 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
25086 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
25089 2005-10-19 Simon Josefsson <jas@extundo.com>
25091 * m4/gc-arcfour.m4: New file.
25093 * m4/gc-rijndael.m4: New file.
25095 2005-10-19 Simon Josefsson <jas@extundo.com>
25097 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
25099 2005-10-19 Simon Josefsson <jas@extundo.com>
25101 * lib/gc-gnulib.c: Support ARCFOUR.
25103 2005-10-19 Simon Josefsson <jas@extundo.com>
25105 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
25108 * lib/gc.h: Add ECB enum type.
25110 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
25112 2005-10-18 Simon Josefsson <jas@extundo.com>
25114 * tests/test-md5.c: New file.
25116 * modules/md5-tests: New file.
25118 2005-10-18 Simon Josefsson <jas@extundo.com>
25120 * tests/test-md4.c: New file.
25122 * modules/md4, modules/md4-tests: New files.
25124 2005-10-18 Simon Josefsson <jas@extundo.com>
25126 * m4/md4.m4: New file.
25128 2005-10-18 Simon Josefsson <jas@extundo.com>
25130 * lib/md4.h, lib/md4.c: New files, based on md5.?.
25132 2005-10-17 Stepan Kasal <kasal@ucw.cz>
25134 * gnulib-tool (func_create_testdir): Omit the second check whether
25135 BUILT_SOURCES in nonempty.
25137 2005-10-17 Simon Josefsson <jas@extundo.com>
25139 * tests/test-rijndael.c: New file.
25141 2005-10-17 Simon Josefsson <jas@extundo.com>
25143 * modules/sha1: Depend on stdint instead of md5.
25145 * modules/md5: Depend on stdint, remove uint32_t.
25147 2005-10-17 Simon Josefsson <jas@extundo.com>
25149 * modules/gc-sha1-tests: New file.
25151 * tests/test-gc-sha1.c: New file.
25153 2005-10-17 Simon Josefsson <jas@extundo.com>
25155 * m4/md5.m4: Remove call to uint32_t.m4.
25157 2005-10-17 Simon Josefsson <jas@extundo.com>
25159 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
25161 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
25164 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
25166 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
25168 2005-10-17 Simon Josefsson <jas@extundo.com>
25170 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
25172 2005-10-17 Simon Josefsson <jas@extundo.com>
25174 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
25176 2005-10-17 Simon Josefsson <jas@extundo.com>
25178 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
25180 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
25182 2005-10-17 Bruno Haible <bruno@clisp.org>
25184 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
25185 that it can also be used in a test.
25187 2005-10-16 Bruno Haible <bruno@clisp.org>
25189 * gnulib-tool (func_emit_tests_Makefile_am): Also define
25190 TESTS_ENVIRONMENT, so that individual tests can augment it.
25192 * gnulib-tool (func_create_testdir): Use an intermediate target for
25193 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
25194 macros, like $(ALLOCA_H), which cannot be passed through the command
25197 2005-10-15 Simon Josefsson <jas@extundo.com>
25199 * modules/rijndael-tests: New file.
25201 * modules/rijndael: New file.
25203 2005-10-15 Simon Josefsson <jas@extundo.com>
25205 * m4/rijndael.m4: New file.
25207 2005-10-15 Simon Josefsson <jas@extundo.com>
25209 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
25211 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
25213 2005-10-14 Simon Josefsson <jas@extundo.com>
25215 * tests/test-arcfour.c: New file.
25217 * modules/arcfour, modules/arcfour-tests: New files.
25219 2005-10-14 Simon Josefsson <jas@extundo.com>
25221 * m4/arcfour.m4: New file.
25223 2005-10-14 Simon Josefsson <jas@extundo.com>
25225 * lib/arcfour.h, lib/arcfour.c: New files.
25227 2005-10-14 Roland McGrath <roland@redhat.com>
25229 Import from libc. [BZ #1331]
25230 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
25232 Reported by Matej Vela <vela@debian.org>.
25234 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
25236 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
25237 include <wchar.h>; no longer needed.
25239 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
25241 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
25243 2005-10-14 Jakub Jelinek <jakub@redhat.com>
25244 and Ulrich Drepper <drepper@redhat.com>
25247 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
25248 instead of inline stream orientation test and two separate
25249 function calls. Pay no attention to USE_IN_LIBIO.
25251 2005-10-13 Simon Josefsson <jas@extundo.com>
25253 * modules/gc-hmac-md5-tests: New file.
25255 * tests/test-gc-hmac-sha1.c: New file.
25257 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
25259 * modules/gc-hmac-md5-tests: New file.
25261 * tests/test-gc-md5.c: New file.
25263 * modules/gc-md5-tests: New file.
25265 2005-10-13 Simon Josefsson <jas@extundo.com>
25267 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
25268 Move memory allocation outside of loop.
25270 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
25272 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
25273 intermediate directory is in a read-only file system. Problem
25274 reported by Eric Blake.
25276 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
25278 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
25280 2005-10-12 Simon Josefsson <jas@extundo.com>
25282 * tests/test-hmac-sha1.c: New file.
25284 * modules/hmac-sha1-tests: New file.
25286 * modules/hmac-sha1: New file.
25288 2005-10-12 Simon Josefsson <jas@extundo.com>
25290 * modules/gc-sha1: New file.
25292 2005-10-12 Simon Josefsson <jas@extundo.com>
25294 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
25296 * tests/test-gc-pbkdf2-sha1.c: New file.
25298 2005-10-12 Simon Josefsson <jas@extundo.com>
25300 * modules/gc-md5, modules/gc-hmac-md5: New files.
25302 * modules/gc (Files): Remove md5, memxor and hmac files.
25304 2005-10-12 Simon Josefsson <jas@extundo.com>
25306 * m4/gc-pbkdf2-sha1.m4: New file.
25308 * m4/gc-hmac-sha1.m4: New file.
25310 * m4/gc-sha1: New file.
25312 * m4/hmac-sha1.m4: New file.
25314 2005-10-12 Simon Josefsson <jas@extundo.com>
25316 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
25318 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
25320 2005-10-12 Simon Josefsson <jas@extundo.com>
25322 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
25323 suggested by Bruno Haible <bruno@clisp.org>.
25325 2005-10-12 Simon Josefsson <jas@extundo.com>
25327 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
25329 2005-10-12 Simon Josefsson <jas@extundo.com>
25331 * lib/gc-pbkdf2-sha1.c: New file.
25333 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
25335 2005-10-12 Simon Josefsson <jas@extundo.com>
25337 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
25339 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
25341 2005-10-12 Simon Josefsson <jas@extundo.com>
25343 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
25344 GC_USE_HMAC_MD5, respectively.
25346 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
25347 (gc_md5): Fix typo.
25349 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
25351 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
25353 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
25355 2005-10-12 Bruno Haible <bruno@clisp.org>
25357 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
25358 Reported by Stepan Kasal <kasal@ucw.cz>.
25360 2005-10-11 Simon Josefsson <jas@extundo.com>
25362 * tests/test-crc.c: New file.
25364 * modules/crc, modules/crc-tests: New files.
25366 2005-10-11 Simon Josefsson <jas@extundo.com>
25368 * m4/crc.m4: New file.
25370 2005-10-11 Simon Josefsson <jas@extundo.com>
25372 * lib/gc.h: Add gc_hash and gc_hash_buffer.
25374 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
25376 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
25378 2005-10-11 Simon Josefsson <jas@extundo.com>
25380 * lib/crc.h, lib/crc.c: New files.
25382 * lib/gc.h (gc_hash_buffer): Add doc.
25384 2005-10-11 Bruno Haible <bruno@clisp.org>
25386 * modules/c-strcasestr: New file.
25387 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
25389 2005-10-11 Bruno Haible <bruno@clisp.org>
25391 * modules/c-strcase: New file.
25392 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
25394 2005-10-11 Bruno Haible <bruno@clisp.org>
25396 * lib/strcasecmp.c: Include limits.h.
25397 (strcasecmp): Avoid integer overflow on exotic platforms.
25398 * lib/strncasecmp.c: Include limits.h.
25399 (strncasecmp): Avoid integer overflow on exotic platforms.
25400 Reported by Paul Eggert.
25402 2005-10-11 Bruno Haible <bruno@clisp.org>
25404 * lib/c-strcasestr.h: New file, from GNU gettext.
25405 * lib/c-strcasestr.c: New file, from GNU gettext.
25407 2005-10-11 Bruno Haible <bruno@clisp.org>
25409 * lib/c-strcase.h: New file, from GNU gettext.
25410 * lib/c-strcasecmp.c: New file, from GNU gettext.
25411 * lib/c-strncasecmp.c: New file, from GNU gettext.
25413 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
25415 * modules/mempcpy (License): GPL -> LGPL.
25416 * modules/strchrnul (License): Likewise.
25417 * modules/sysexits (License): Likewise.
25419 2005-10-08 Simon Josefsson <jas@extundo.com>
25421 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
25423 2005-10-07 Simon Josefsson <jas@extundo.com>
25425 * m4/memxor.m4: Remove gl_C_RESTRICT call.
25427 2005-10-06 Simon Josefsson <jas@extundo.com>
25429 * tests/test-hmac-md5.c: New file.
25431 * modules/hmac-md5-tests: New file.
25433 * modules/hmac-md5: New file.
25435 2005-10-06 Simon Josefsson <jas@extundo.com>
25437 * m4/hmac-md5.m4: New file.
25439 * m4/memxor.m4: Require gl_C_RESTRICT.
25441 2005-10-06 Simon Josefsson <jas@extundo.com>
25443 * lib/memxor.c (memxor): Avoid casts and warnings.
25445 2005-10-06 Simon Josefsson <jas@extundo.com>
25447 * lib/hmac-md5.c: New file.
25449 * lib/hmac.h: New file.
25451 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
25453 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
25454 promotes to int, not unsigned int, to catch the AIX 5.3
25457 2005-10-05 Simon Josefsson <jas@extundo.com>
25459 * modules/memxor: New file.
25461 * modules/iconv (Files): Move config.rpath to havelib, it is used
25464 * modules/havelib (Files): Add config.rpath.
25466 2005-10-05 Simon Josefsson <jas@extundo.com>
25468 * m4/memxor.m4: New file.
25470 2005-10-05 Simon Josefsson <jas@extundo.com>
25472 * lib/memxor.c (memxor): Fix compiler error.
25474 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
25475 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
25477 * lib/memxor.h, lib/memxor.c: New files.
25479 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
25480 we assume all systems have it, suggested by Jim Meyering
25481 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
25482 any systems lack sys/socket.h; mingw32 is known to lack it, but we
25483 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
25486 2005-10-05 Simon Josefsson <jas@extundo.com>
25488 * config/srclist.txt: Add glibc bug 1423 for md5.h.
25490 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
25492 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
25493 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
25494 needed, since the source code now assumes these .h files.
25496 2005-10-05 Derek Price <derek@ximbiot.com>
25498 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
25500 2005-10-05 Bruno Haible <bruno@clisp.org>
25502 * modules/stdint (License): Change to LGPL.
25504 2005-10-04 Simon Josefsson <jas@extundo.com>
25506 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
25507 D. Baushke" <mdb@gnu.org>.
25509 2005-10-04 Bruno Haible <bruno@clisp.org>
25511 * lib/verify.h (verify_true): Provide alternative definition for C++.
25513 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
25515 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
25516 (SSIZE_MAX): New macro, if not already defined.
25517 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
25520 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
25522 Sync from coreutils.
25523 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
25524 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
25525 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
25526 ULLONG_MAX doesn't work with 2.7.2.1.
25528 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
25530 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
25533 * modules/exclude (Depends-on): Depend on verify.
25534 * modules/strtoimax (Depends-on): Likewise.
25535 * modules/utimecmp (Depends-on): Likewise.
25537 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
25539 * lib/exclude.c: Include verify.h.
25540 (verify): Remove. All callers changed to use verify.h's version.
25541 * lib/strtoimax.c: Likewise.
25542 * lib/utimecmp.c: Likewis.e
25544 Sync from coreutils.
25545 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
25546 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
25547 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
25548 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
25549 bother returning ENOSYS if settimeofday or stime fails; just let
25550 them return whatever errno they want to return.
25551 * lib/utimens.c: Include unistd.h, for dup2.
25552 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
25553 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
25555 2005-10-02 Jim Meyering <jim@meyering.net>
25557 Sync from coreutils.
25558 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
25559 from glibc-2.2.5 that fails for read-only files.
25561 2005-10-02 Jim Meyering <jim@meyering.net>
25563 Sync from coreutils.
25564 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
25565 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
25566 `#if HAVE_CONFIG_H'.
25567 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
25568 Remove AT_FDCWD test.
25569 Do not consume the fd unless successful.
25570 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
25571 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
25572 block, so that we don't even try to compile it if settimeofday is
25573 available. This works around a compilation failure on OSF1 V5.1,
25574 due to stime requiring a `long int*' while tv_sec is `int'.
25576 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
25578 Sync from coreutils.
25579 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
25580 against `yes', rather than just testing for nonempty.
25582 2005-10-01 Simon Josefsson <jas@extundo.com>
25584 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
25587 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
25588 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
25589 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
25590 freeaddrinfo and gai_strerror are declared by the POSIX headers.
25591 Check if struct addrinfo is declared.
25593 2005-10-01 Simon Josefsson <jas@extundo.com>
25595 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
25596 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
25597 AI_* and EAI_* definitions. Protect function declarations.
25599 2005-10-01 Jim Meyering <jim@meyering.net>
25601 Sync from coreutils.
25603 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
25604 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
25605 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
25606 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
25607 in the inet and nsl libraries. Required on Solaris 5.7.
25609 2005-10-01 Jim Meyering <jim@meyering.net>
25611 Sync from coreutils.
25612 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
25613 in the inet and nsl libraries. Required on Solaris 5.7.
25615 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
25617 * lib/getdelim.c (getdelim): Remove unused variables.
25619 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
25621 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
25622 so that the code works even with ancient cpp. Portability problem
25623 with GCC 2.7.2.1 reported by Thomas M.Ott.
25625 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
25627 * modules/regex (Depends-on): Add strcase.
25629 * modules/gethostname (Licence): Change from GPL to LGPL, since
25630 gethostname.c is a trivial implementation of a standard library
25632 * modules/poll (License): Change from GPL to LGPL, since it's
25633 derived from LGPL code.
25635 2005-09-27 Jim Meyering <jim@meyering.net>
25637 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
25640 * lib/intprops.h (signed_type_or_expr__): Define.
25641 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
25642 for unsigned types.
25644 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
25646 * lib/verify.h (verify_expr): Remove, replacing with:
25647 (verify_true): New macro that returns true instead of void.
25648 (verify_type__): Remove.
25649 (verify): Use verify_true rather than verify_type__.
25651 2005-09-26 Bruno Haible <bruno@clisp.org>
25653 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
25655 (lib_SOURCES): Remove mbchar.c.
25656 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
25657 (Files): Add m4/mbrtowc.m4.
25658 * modules/mbiter: Likewise.
25659 * modules/mbuiter: Likewise.
25661 2005-09-26 Bruno Haible <bruno@clisp.org>
25663 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
25664 compile mbchar.c if they are not both present.
25665 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
25666 * m4/mbiter.m4 (gl_MBITER): Likewise.
25667 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
25668 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
25669 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
25671 2005-09-25 Jim Meyering <jim@meyering.net>
25673 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
25674 also uses socklen_t.
25676 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
25678 * lib/utimens.c (ENOSYS): Define if not already defined.
25679 (futimens): Support having a null PATH if the file descriptor
25682 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
25684 (__attribute): Define to empty unless GCC 3.1 or later.
25685 This works around a core dump on OpenBSD 3.4, which has GCC
25686 2.95.3, which dumps core when given __attribute__(()). It also
25687 simplifies other tests, since we really don't want to bother with
25688 worrying about which ancient version of GCC supported what.
25689 Original problem reported by Yoann Vandoorselaere, with part of
25690 the fix suggested by Derek Price.
25692 2005-09-24 Jim Meyering <jim@meyering.net>
25694 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
25695 so we can once again use a positive bitfield width of 1 -- now we
25696 don't have to explain why we were using a bitfield width of 2.
25698 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
25700 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
25701 and similarly for the other external symbols. Problem reported
25704 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
25705 bug reported by Jim Meyering.
25707 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
25708 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
25709 not needed, since socklen is a prerequisite module.
25711 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
25713 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
25714 Problem reported by Eric Blake.
25715 (getaddrinfo): Initialize se so that it's not garbage.
25716 Redo internal storage allocation so that it doesn't make unportable
25717 assumptions about alignment.
25720 * lib/utimens.c (futimens): Use futimesat if available.
25721 Prefer it to futimes since it doesn't have the futimes bug.
25723 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
25724 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
25725 Instead, declare a function that returns a pointer to an array,
25726 and use verify_type__ to declare the size of the array.
25727 Problem and germ of a solution reported by Bruno Haible.
25728 (verify_type__): Use 2, not 1, for bitfield size, to avoid
25729 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
25731 2005-09-23 Jim Meyering <jim@meyering.net>
25733 Sync from coreutils.
25734 Correct build failure (socklen_t not defined) on at least
25735 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
25736 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
25738 2005-09-23 Jim Meyering <jim@meyering.net>
25740 * modules/getaddrinfo (Depends-on): Add socklen.
25742 2005-09-23 Bruno Haible <bruno@clisp.org>
25744 * tests/test-verify.c: New file.
25746 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
25748 Sync from coreutils.
25750 * modules/argmatch (Depends-on): Add verify.
25751 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
25753 * modules/save-cwd (Depends-on): Likewise.
25755 * modules/openat (Files): Add lib/openat-die.c.
25756 (Depends-on): Remove error, exitfail.
25759 * modules/verify: New file.
25760 * MODULES.html.sh (Diagnostics <assert.h>): New section,
25761 with "verify" module.
25763 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
25765 Sync from coreutils.
25767 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
25768 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
25769 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
25770 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
25771 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
25772 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
25773 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
25774 Don't bother checking for string.h, stdlib.h, unistd.h.
25775 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
25776 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
25778 * m4/jm-macros.m4 (gl_MACROS): Likewise.
25779 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
25781 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
25782 (gl_GETDATE): Use it.
25784 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
25786 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
25788 Sync from coreutils.
25790 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
25792 * lib/argmatch.h: Include verify.h
25793 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
25794 (ARGMATCH_ASSERT): Remove; unused.
25795 * lib/canonicalize.c: Assume STDC_HEADERS.
25796 * lib/exclude.c: Include "strcase.h".
25797 * lib/regex_internal.h [!defined _LIBC]: Likewise.
25798 * lib/getusershell.c: Include stdio--.h rather than stdio.h
25800 (getusershell): Call fopen, not fopen_safer.
25801 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
25802 Do not include unistd-safer.h.
25803 (save_cwd): Don't call fd_safer; no longer needed
25804 now that we include fcntl--.h.
25806 * lib/getdate.y (relative_time): New type.
25807 (RELATIVE_TIME_0): New constant.
25808 (parser_control): Use relative_time instead of doing it ourselves.
25809 (%union): Add new relative_time rel member.
25810 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
25812 (relunit, relunit_snumber): Now of type rel.
25813 (zone, rel, relunit, get_date): Adjust to above changes.
25815 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
25816 Do not include unistd-safer.h.
25817 (getloadavg): Don't call fd_safer; no longer needed
25818 now that we include fcntl--.h.
25820 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
25821 (make_dir_parents): Treat ENOSYS like EEXIST.
25823 Improve quality of diagnostics on restore_cwd failure.
25824 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
25825 (make_dir_parents): Last arg is now int * (for errno), not bool *.
25826 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
25827 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
25828 each time through the loop. Do not diagnose restore_cwd failure;
25829 that is the caller's job (and perhaps the caller does not care).
25831 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
25832 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
25833 If the file already exists but is not a directory, don't bother
25834 to try to make its parents.
25835 Close potential file descriptor leak if we can't chdir("/") (!).
25836 Don't always return true if chdir($PWD) fails; return true only
25837 if the requested action was done successfully (except for the
25839 Don't log final directory unless we actually made it.
25840 Refactor to avoid duplicate code to fix up permissions.
25841 Don't attempt to fix up parent permissions if chdir($PWD) fails.
25843 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
25844 to make it a bit faster and (I hope) clearer.
25845 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
25846 Fix bug in formats like %2N.
25848 * lib/verify.h: New file.
25850 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
25852 Sync from coreutils.
25853 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
25855 2005-09-22 Jim Meyering <jim@meyering.net>
25857 Sync from coreutils.
25859 * m4/lstat.m4 (gl_FUNC_LSTAT):
25860 Use AC_LIBSOURCES to require lstat.c and lstat.h.
25861 Remove obsolete comment.
25862 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
25863 * m4/xstrtod.m4: Likewise.
25865 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
25867 2005-09-22 Jim Meyering <jim@meyering.net>
25869 Sync from coreutils.
25871 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
25873 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
25874 the .tm_year member, since otherwise gcc-4.0 would now warn about
25875 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
25877 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
25878 order to avoid an unsuppressible warning from gcc on 64-bit systems.
25880 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
25881 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
25882 when run in a time zone for which daylight savings time is in effect
25883 for the starting date.
25885 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
25886 stop us from restricting permissions of just-created absolute-named
25888 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
25889 to restore initial working directory.
25890 * lib/mkdir-p.c (make_dir_parents): New parameter:
25891 different_working_dir, to tell caller if/when we change the working
25892 directory and are unable to return to the initial one.
25893 * lib/mkdir-p.h (make_dir_parents): Update prototype.
25894 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
25895 `return false'. This fixes a bug introduced on 2004-07-30.
25897 * lib/openat.c (fdopendir): Be sure to close the supplied
25898 file descriptor before returning. This makes our replacement
25899 implementation a little closer to Solaris's, where fdopendir
25900 ties the file descriptor to the returned DIR* pointer.
25901 * lib/openat.c (unlinkat): New function.
25902 * lib/openat.h (unlinkat): Add prototype.
25903 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
25904 (openat_restore_fail): Rename from openat_restore_die.
25905 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
25907 Provide an alternative to exiting immediately upon save_cwd or
25908 restore_cwd failure. Now, an application can arrange e.g.,
25909 to perform a longjump in that case.
25910 * lib/openat.c: Include dirname.h.
25911 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
25912 (rpl_openat, fdopendir, fstatat): Call openat_save_die
25913 and openat_restore_die rather than calling error directly.
25914 Don't include "error.h" or "exitfail.h"; they're no longer needed.
25916 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
25917 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
25920 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
25921 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
25922 int utc, int nanoseconds);
25924 date should not have to allocate a megabyte of virtual memory to
25925 handle a format argument like +%1048575T. When implemented with
25926 strftime, it must allocate such a buffer, use strftime to fill it
25927 in, print it, then free it.
25928 With fprintftime, it simply prints everything and exits.
25929 With no need for memory allocation, that's one fewer way to fail.
25930 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
25931 optional field width, not before, so we accept %9:z, not %:9z.
25932 (my_strftime): Be sure to use L_('x') for literals.
25934 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
25935 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
25936 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
25937 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
25938 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
25939 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
25940 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
25941 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
25942 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
25943 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
25944 * lib/xgethostname.c, lib/xreadlink.c:
25945 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
25947 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
25948 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
25949 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
25950 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
25951 and don't include <sys/file.h>).
25953 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
25955 Sync from coreutils.
25957 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
25958 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
25959 [!LDAV_DONE]: Avoid unused variable warning.
25961 2005-09-21 Bruno Haible <bruno@clisp.org>
25963 * lib/unicodeio.h (unicode_to_mb): New declaration.
25965 2005-09-20 Derek Price <derek@ximbiot.com>
25967 * lib/getaddrinfo.c: Don't include <netdb.h> included from
25970 2005-09-20 Bruno Haible <bruno@clisp.org>
25972 * gnulib-tool: Remove trailing slashes from the values specified for
25973 --source-base, --m4-base, --tests-base, --aux-dir.
25974 Suggested by Simon Josefsson <jas@extundo.com>.
25976 2005-09-20 Bruno Haible <bruno@clisp.org>
25978 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
25979 func_modules_to_filelist, func_import, func_create_testdir): Make all
25980 sorting results locale-independent, so that gnulib-cache.m4 doesn't
25981 change when gnulib-tool is invoked in a different locale.
25983 2005-09-19 Simon Josefsson <jas@extundo.com>
25985 * m4/socklen.m4: Fix typo.
25987 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25989 Use a consistent style for including <config.h>.
25990 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
25991 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
25992 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
25993 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
25994 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
25995 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
25996 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
25997 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
25998 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
25999 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
26000 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
26001 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
26002 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
26003 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
26004 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
26005 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
26006 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
26007 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
26008 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
26009 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
26010 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
26011 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
26012 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
26013 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
26014 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
26015 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
26016 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
26017 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
26018 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
26019 lib/xstrtoumax.c, lib/yesno.c:
26020 Standardize inclusion of config.h.
26021 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
26022 lib/inttostr.h: Removed inclusion of config.h from header files.
26023 * lib/inttostr.c: Adjusted in-tree users.
26024 * lib/timespec.h: Remove superfluous warning to include config.h.
26025 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
26026 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
26027 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
26028 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
26029 config.h with HAVE_CONFIG_H.
26031 2005-09-19 Jim Meyering <jim@meyering.net>
26033 * modules/pathmax (License): Change to LGPL.
26035 2005-09-19 Derek Price <derek@ximbiot.com>
26037 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
26039 2005-09-19 Bruno Haible <bruno@clisp.org>
26041 * gnulib-tool (import): Provide default for --tests-base.
26043 2005-09-19 Bruno Haible <bruno@clisp.org>
26045 * doc/quote.texi: New file, extracted from gnulib.texi.
26046 * doc/ctime.texi: New file, extracted from gnulib.texi.
26047 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
26048 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
26049 * doc/gnulib.texi: Include them.
26051 2005-09-18 Bruno Haible <bruno@clisp.org>
26054 * gnulib-tool (func_readlink): New function.
26055 (func_ln_if_changed): Use it.
26057 2005-09-18 Bruno Haible <bruno@clisp.org>
26059 * gnulib-tool: Support --with-tests also with --import.
26060 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
26061 (func_import): Use variables $testsbase and $inctests. Emit a
26062 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
26063 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
26064 SUBDIRS += $testsdir.
26065 (func_create_testdir): Update.
26067 2005-09-18 Bruno Haible <bruno@clisp.org>
26069 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
26070 instead of $dry_run.
26071 (func_cp_if_changed, func_mv_if_changed): Remove functions.
26072 (func_ln_if_changed): Don't handle dry-run here.
26073 (func_import): In dry-run mode, detect more precisely which actions
26074 would be performed, and don't use "...ing" verbs.
26076 2005-09-18 Bruno Haible <bruno@clisp.org>
26078 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
26079 (func_import): Use join on two temporary files instead of three nested
26080 loops, in order to determine which files are new or old.
26082 2005-09-18 Bruno Haible <bruno@clisp.org>
26084 * gnulib-tool (func_import): Comment out code that spits out the
26085 new files with --dry-run.
26087 2005-09-18 Bruno Haible <bruno@clisp.org>
26089 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
26091 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
26093 * lib/stat-time.h: New file.
26094 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
26095 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
26096 in a different way.
26097 (timespec_cmp): New function.
26098 * lib/utimecmp.c: Include stat-time.h.
26099 (SYSCALL_RESOLUTION): Depend on whether various struct stat
26100 members exist, not on the obsolescent ST_MTIM_NSEC.
26101 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
26103 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
26105 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
26107 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
26109 * MODULES.html.sh (File system functions): Add stat-time.
26110 * modules/stat-time: New file.
26111 * modules/timespec (Files): Remove m4/st_mtim.m4; this
26112 is now done in a different way, by the stat-time module.
26113 * modules/utimecmp (Depends-on): Add stat-time.
26115 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
26117 * m4/st_mtim.m4: Remove. Superseded by...
26118 * m4/stat-time.m4: New file.
26119 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
26120 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
26122 2005-09-15 Derek Price <derek@ximbiot.com>
26124 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
26126 2005-09-15 Derek Price <derek@ximbiot.com>
26128 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
26129 * lib/regex_internal.c: Ditto, using this...
26130 (__GNUC_PREREQ): ...new macro.
26131 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
26133 (__GNUC_PREREQ): ...this new macro.
26135 * lib/strstr.h: Include string.h. Define strstr as a macro here.
26137 2005-09-15 Derek Price <derek@ximbiot.com>
26138 Paul Eggert <eggert@cs.ucla.edu>
26140 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
26141 changes, consolidating in...
26142 * lib/regex_internal.h: ...this file.
26144 2005-09-13 Jim Meyering <jim@meyering.net>
26146 * lib/canon-host.c: Filter through gnu indent and reword comments
26148 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
26150 2005-09-13 Derek Price <derek@ximbiot.com>
26152 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
26154 Reported by Jim Meyering <jim@meyering.net>.
26156 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
26158 * lib/base64.c: Typo.
26159 (base64_encode): Put b64str in initialized data section.
26161 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
26163 Merge glibc and coreutils changes into gnulib, plus a few
26165 * lib/md5.c: Use #error rather than a string.
26166 (CYCLIC): New macro, from glibc source. Use it instead of rol.
26167 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
26168 (__attribute__): Define to empty for non recent-GCC.
26169 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
26170 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
26171 Renamed from their non-__ counterparts, with new macros replacing
26172 them if not _LIBC. Add __THROW attribute.
26174 (struct md5_ctx): Align buffer if using GCC.
26175 * lib/sha1.h (struct sha1_ctx): Likewise.
26176 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
26177 The old name was backwards.
26178 (NOTSWAP): Remove; not used.
26179 (rol): New macro, moved here from md5.h.
26180 (sha1_process_block): Remove a FIXME that doesn't make sense.
26182 2005-09-12 Derek Price <derek@ximbiot.com>
26184 Return usable errors from canon-host.
26185 * lib/canon-host.h: New file.
26186 * lib/canon-host.c (canon_host): Wrap...
26187 (canon_host_r): ...this new function, which now relies exclusively on
26189 (ch_strerror): New function.
26190 (last_cherror): New global.
26191 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
26193 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
26195 (freeaddrinfo): Free ai->ai_canonname when set.
26197 2005-09-12 Derek Price <derek@ximbiot.com>
26199 Make canon-host require getaddrinfo.
26200 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
26201 AC_LIBSOURCE canon-host.h. Call...
26202 (gl_PREREQ_CANON_HOST): ...this new function, which requires
26204 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
26206 2005-09-12 Derek Price <derek@ximbiot.com>
26208 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
26210 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
26212 2005-09-12 Derek Price <derek@ximbiot.com>
26214 * lib/gai_strerror.c: Include config.h when available. Include
26215 getaddrinfo.h before other headers to test interface.
26216 Reported by Larry Jones <lawrence.jones@ugs.com>.
26218 2005-09-12 Derek Price <derek@ximbiot.com>
26219 Paul Eggert <eggert@cs.ucla.edu>
26221 * modules/glob (Files): Add glob-libc.h.
26223 2005-09-12 Derek Price <derek@ximbiot.com>
26224 Paul Eggert <eggert@cs.ucla.edu>
26226 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
26227 glob_.h, glob-libc.h.
26228 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
26230 2005-09-12 Derek Price <derek@ximbiot.com>
26231 Paul Eggert <eggert@cs.ucla.edu>
26233 * lib/glob-libc.h: Renamed from glob_.h. The new version is
26234 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
26235 protecting things that should be done only in gnulib contexts.
26236 * lib/glob_.h: New file, containing only the glob things needed for
26238 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
26239 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
26240 (glob, globfree, glob_pattern_p): Now defined simply in terms of
26241 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
26242 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
26243 and to respect the namespace rules better.
26245 2005-09-08 Simon Josefsson <jas@extundo.com>
26247 * modules/socklen: New file.
26249 2005-09-08 Simon Josefsson <jas@extundo.com>
26251 * m4/socklen.m4: New file.
26253 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
26255 * modules/utimens (Files): Add m4/utimbuf.m4, since
26256 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
26257 Reported by Sergey Poznyakoff.
26259 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
26261 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
26262 definitions, since that's the preferred style in glibc.
26263 Fix a minor spacing issue, and update copyright notice to match
26266 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
26268 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
26270 2005-09-06 Simon Josefsson <jas@extundo.com>
26272 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
26273 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
26275 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
26277 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
26280 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
26282 * config/srclist.txt: Add glibc bug 1302.
26284 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
26286 Change bitset word type from unsigned int to unsigned long int,
26287 as this has better performance on typical 64-bit hosts.
26288 Port bitset code to hosts with unusual word sizes.
26289 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
26290 (build_collating_symbol):
26291 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
26292 argument is a bitset. This is merely a style issue, but it makes
26293 it clearer that an entire array is expected.
26294 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
26295 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
26296 Port to the case where bitset_word is not the same as unsigned int.
26297 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
26298 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
26300 * lib/regexec.c (check_dst_limits_calc_pos_1,
26301 check_subexp_matching_top):
26302 (build_trtable, group_nodes_into_DFAstates):
26304 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
26305 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
26306 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
26307 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
26308 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
26309 * lib/regcomp.c (optimize_subexps, lower_subexp):
26310 Work even if bitset_word has holes in its bitwise representation.
26311 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
26312 * lib/regexec.c (check_dst_limits_calc_pos_1,
26313 check_subexp_matching_top):
26315 * lib/regex_internal.c (re_string_reconstruct):
26316 Don't assume UCHAR_MAX == 255.
26317 * lib/regex_internal.h (bitset_set_all): Likewise.
26318 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
26320 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
26321 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
26323 (BITSET_WORD_MAX): New macro.
26324 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
26325 (bitset_set_all, bitset_copy): Now inline functions, not macros.
26326 (bitset_empty, bitset_copy):
26327 Prefer sizeof (bitset) to multiplying it out ourselves.
26328 (bitset_not_merge): Remove; unused.
26329 (bitset_contain): Return bool, not unsigned int with one bit on.
26330 All callers changed.
26331 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
26332 alignment than re_node_set; do this by defining a new internal
26333 type struct dests_alloc and using it to allocate memory.
26335 2005-09-05 Bruno Haible <bruno@clisp.org>
26337 * gnulib-tool (func_import): Fix comparison in handling of symbolic
26340 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
26342 * modules/size_max (Makefile.am): Add size_max.h
26344 2005-09-04 Derek Price <derek@ximbiot.com>
26346 * gnulib-tool (func_import): Fix reversed $symbolic logic.
26348 2005-09-03 Simon Josefsson <jas@extundo.com>
26350 * gnulib-tool: Fix typo.
26352 2005-09-03 Simon Josefsson <jas@extundo.com>
26354 * config/srclist.txt: Add glibc bug 1293.
26356 2005-09-03 Derek Price <derek@ximbiot.com>
26358 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
26359 From Larry Jones <lawrence.jones@ugs.com>.
26361 2005-09-02 Simon Josefsson <jas@extundo.com>
26363 * modules/socklen: New file.
26365 2005-09-02 Simon Josefsson <jas@extundo.com>
26367 * modules/havelib: New module.
26369 * modules/gettext, modules/iconv, modules/lock, modules/readline:
26372 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
26374 Check for arithmetic overflow when calculating sizes, to prevent
26375 some buffer-overflow issues. These patches are conservative, in the
26376 sense that when I couldn't determine whether an overflow was possible,
26377 I inserted a run-time check.
26378 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
26380 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
26381 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
26382 (re_xnrealloc, re_x2nrealloc): New inline functions.
26383 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
26384 parse_bracket_exp):
26385 (build_equiv_class, build_charclass): Check for arithmetic overflow
26386 in size expression calculations.
26387 * lib/regex_internal.c (re_string_realloc_buffers):
26388 (build_wcs_upper_buffer, re_node_set_add_intersect):
26389 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
26390 (re_dfa_add_node, register_state): Likewise.
26391 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
26392 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
26393 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
26394 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
26396 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
26398 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
26399 m4/ulonglong.m4. Problem reported by Martin Lambers.
26401 2005-09-02 Bruno Haible <bruno@clisp.org>
26403 Support for lib vs. lib64 distinction on biarch platforms.
26404 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
26405 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
26406 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
26408 2005-09-02 Bruno Haible <bruno@clisp.org>
26410 * gnulib-tool (import): In the other first-use case, provide defaults
26413 2005-09-02 Bruno Haible <bruno@clisp.org>
26415 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
26416 patches not yet found in the latest gettext release.
26418 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
26420 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
26421 to avoid a collision with bits/local_lim.h in glibc.
26422 All uses changed. Problem reported by Dmitry V. Levin in
26423 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
26425 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
26426 bugs in int versus size_t comparisons.
26427 (re_string_context_at): Fix bug where the code assumed that
26430 Use bool where appropriate.
26431 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
26432 All callers changed.
26433 (calc_eclosure_iter): Likewise, for ROOT arg.
26434 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
26435 (build_charclass_op): Likewise, for NON_MATCH arg.
26436 * lib/regex_internal.c (re_string_allocate, re_string_construct):
26437 (re_string_construct_common): Likewise, for ICASE arg.
26438 * lib/regexec.c (re_search_2_stub, re_search_stub):
26439 Likewise, for RET_LEN arg.
26440 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
26441 (set_regs): Likewise, for FL_BACKTRACK arg.
26442 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
26443 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
26444 (calc_eclosure_iter, parse_bracket_exp):
26445 Use bool for internal variables that are booleans.
26446 * lib/regexec.c (re_search_internal, check_matching,
26447 proceed_next_node):
26448 (set_regs, build_sifted_states, sift_states_bkref):
26449 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
26450 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
26451 (find_collation_sequence_value):
26453 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
26454 (re_node_set_compare):
26455 Return bool, not int. All callers changed.
26456 * lib/regexec.c (check_halt_node_context, check_dst_limits):
26457 (build_trtable, check_node_accept): Likewise.
26458 * lib/regex_internal.h: Include stdbool.h.
26460 Fix bugs uncovered when converting to bool.
26461 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
26462 failure instead of charging ahead blindly.
26463 * lib/regex_internal.c (register_state): Likewise.
26464 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
26465 for freeing internal storage.
26466 (group_nodes_into_DFA_states): Use unsigned int, not int, for
26467 bitset pieces used as boolean, to avoid undefined behavior
26468 on hosts that do int overflow checking.
26470 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
26472 * config/srclist.txt: Add glibc bugs 1285-1287.
26474 2005-09-01 Jim Meyering <jim@meyering.net>
26476 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
26477 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
26478 Require gl_STAT_MACROS, too.
26480 2005-09-01 Bruno Haible <bruno@clisp.org>
26482 * gnulib-tool (import): In the first-use case, provide defaults.
26484 2005-09-01 Bruno Haible <bruno@clisp.org>
26486 * gnulib-tool (func_import): Remove the .tmp files.
26488 2005-09-01 Bruno Haible <bruno@clisp.org>
26490 * gnulib-tool (func_import): Fix handling of symbolic links.
26492 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
26494 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
26495 old glibc regex code mishandles strings longer than 2**31 bytes.
26496 This patch fixes this when the regex code is used in gnulib
26497 (i.e., outside glibc).
26499 This patch should not affect the use of the regex code inside
26500 glibc. No doubt this problem also needs to be handled for glibc
26501 as well, but the result will be an incompatible change to the
26502 glibc ABI, and the old ABI will have to be supported too. That
26503 can be the the subject for another patch.
26505 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
26506 governing whether the rest of this patch is active. By default,
26507 the macro is disabled and the patch has no effect.
26508 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
26509 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
26510 (struct re_pattern_buffer, re_search, re_search_2, re_match):
26511 (re_match_2, re_set_registers): Use the new types.
26512 * lib/regex_internal.h (Idx, re_hashval_t): New types.
26513 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
26515 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
26516 (re_string_context_at, bin_tree_t, re_dfastate_t):
26517 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
26518 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
26519 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
26520 (re_string_char_size_at, re_string_wchar_at):
26521 (re_string_elem_size_at):
26522 Use the new types and macros to port to 64-bit hosts.
26523 Use unsigned types for internal values, so that the code
26524 mostly works even for arrays larger than SSIZE_MAX.
26525 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
26526 (search_duplicated_node, calc_eclosure_iter, fetch_number):
26527 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
26528 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
26529 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
26530 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
26531 (calc_inveclosure, parse_dup_op, build_range_exp):
26532 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
26533 (fetch_number, create_token_tree, mark_opt_subexp):
26535 * lib/regex_internal.c (re_string_construct_common,
26536 create_ci_newstate):
26537 (create_cd_newstate, re_string_allocate, re_string_construct):
26538 (re_string_realloc_buffers, build_wcs_upper_buffer):
26539 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
26540 (re_string_reconstruct, re_string_peek_byte_case):
26541 (re_string_fetch_byte_case, re_string_context_at):
26542 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
26543 (re_node_set_init_copy, re_node_set_add_intersect):
26544 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
26545 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
26546 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
26547 (re_acquire_state, re_acquire_state_context, register_state):
26549 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
26550 search_cur_bkref_entry):
26551 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
26552 (re_search_internal, re_search_2_stub, re_search_stub)
26553 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
26554 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
26555 (update_cur_sifted_state, check_dst_limits):
26556 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
26557 (check_subexp_limits, sift_states_bkref, merge_state_array):
26558 (check_subexp_matching_top, get_subexp, get_subexp_sub):
26559 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
26560 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
26561 (expand_bkref_cache, check_node_accept_bytes):
26562 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
26563 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
26564 (acquire_init_state_context, check_halt_node_context):
26565 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
26566 (sift_states_backward, clean_state_log_if_needed):
26567 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
26568 (find_recover_state, transit_state_sb, transit_state_mb):
26569 (transit_state_bkref, build_trtable, match_ctx_clean):
26571 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
26572 to work around an assumption that REG_MISSING is negative.
26574 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
26575 (seek_collating_symbol_entry) [defined _LIBC]:
26576 (lookup_collation_sequence_value) [defined _LIBC]:
26577 (build_range_exp, build_collating_symbol) [defined _LIBC]:
26578 Use prototypes rather than old-style function definitions.
26579 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
26580 (transit_state_sb) [0]:
26581 (find_collation_sequence_value) [defined _LIBC]: Likewise.
26583 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
26586 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
26587 (optimize_subexps, lower_subexp):
26588 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
26589 since the signed shift might overflow. Use 1u<<31 instead.
26590 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
26592 * lib/regexec.c (check_dst_limits_calc_pos_1,
26593 check_subexp_matching_top): Likewise.
26595 * lib/regcomp.c (optimize_subexps, lower_subexp):
26596 Use CHAR_BIT rather than 8, for clarity.
26597 * lib/regexec.c (check_dst_limits_calc_pos_1):
26598 (check_subexp_matching_top): Likewise.
26599 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
26600 have to worry about portability issues when shifting it left.
26601 Remove no-longer-needed test for table_size > 0.
26602 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
26603 in a word, as the resulting behavior is undefined.
26604 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
26605 in one case, a <= should have been an <, and in another case the
26606 whole test was missing.
26607 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
26608 the standard name CHAR_BIT.
26609 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
26610 this is not true on one's complement and signed-magnitude hosts.
26612 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
26614 (struct re_dfa_t): Remove unused member states_alloc.
26615 * lib/regcomp.c (init_dfa): Don't initialize unused members.
26617 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
26619 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
26620 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
26621 and large-file glibc and in 32-bit large-file Solaris.
26623 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
26625 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
26626 lengths fit in regoff_t; this isn't true if regoff_t is the same
26628 * lib/regex.c (re_search_internal): 5th arg is LAST_START
26629 (= START + RANGE) instead of RANGE. This avoids overflow
26630 problems when regoff_t is the same width as size_t.
26631 All callers changed.
26632 (re_search_2_stub): Check for overflow when adding the
26633 sizes of the two strings.
26634 (re_search_stub): Check for overflow when adding START
26635 to RANGE; if it occurs, substitute the extreme value.
26637 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
26639 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
26641 2005-08-31 Jim Meyering <jim@meyering.net>
26643 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
26644 a pointer-to-const.
26645 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
26646 (register_state): Likewise.
26647 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
26648 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
26649 (group_nodes_into_DFAstates): Likewise.
26651 2005-08-31 Jim Meyering <jim@meyering.net>
26653 * check-module: Add a FIXME comment.
26655 2005-08-31 Eric Blake <ebb9@byu.net>
26657 * modules/unistd-safer (Files): Add unistd--.h.
26658 * modules/stdio-safer (Files): Add stdio--.h.
26660 2005-08-31 Derek Price <derek@ximbiot.com>
26662 * lib/getdelim.c (getdelim): Return EOF on EOF.
26663 Reported by Larry Jones <lawrence.jones@ugs.com>.
26665 2005-08-31 Bruno Haible <bruno@clisp.org>
26667 Avoid unnecessary diffs in the generated lib/Makefile.am.
26668 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
26669 the generated files.
26670 (func_import): Don't set cmd.
26672 2005-08-31 Bruno Haible <bruno@clisp.org>
26674 * lib/strstr.c: Include <stddef.h>, for NULL.
26675 * lib/strcasestr.c: Likewise.
26676 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26678 2005-08-31 Bruno Haible <bruno@clisp.org>
26680 * gnulib-tool: New option --macro-prefix.
26681 (func_import): Use macro_prefix.
26682 (import): Handle option --macro-prefix.
26684 2005-08-31 Bruno Haible <bruno@clisp.org>
26686 * gnulib-tool (import): Rename most ac_* variables to cached_*.
26687 Also use new variables cached_lgpl, cached_libtool.
26689 2005-08-31 Bruno Haible <bruno@clisp.org>
26691 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
26692 always instantiating them.
26694 2005-08-31 Bruno Haible <bruno@clisp.org>
26696 * gnulib-tool (func_import): Read the previous cached settings
26697 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
26698 earlier added by gnulib but are now dropped. Warn when a gnulib file
26699 overwrites a non-gnulib file.
26701 2005-08-31 Bruno Haible <bruno@clisp.org>
26703 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
26704 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
26705 projects that don't keep autogenerated files in CVS. Put into
26706 actioncmd only the specified modules, not the transitive closure.
26708 2005-08-31 Bruno Haible <bruno@clisp.org>
26710 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
26711 Create directories that shall be filled.
26712 (import): Don't look for gl_* macros in configure.ac. Recurse across
26713 all directories containing a gnulib-cache.m4 files, if meaningful.
26715 2005-08-31 Bruno Haible <bruno@clisp.org>
26717 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
26718 (import): Set seen_libtool when we see gl_LIBTOOL.
26720 2005-08-31 Bruno Haible <bruno@clisp.org>
26722 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
26723 declaration macro definitions from generated gnulib.m4.
26725 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
26727 * lib/iconvme.h: Add prototype for iconv_alloc.
26729 2005-08-29 Simon Josefsson <jas@extundo.com>
26731 * lib/iconvme.c: Fix errno.
26733 2005-08-29 Bruno Haible <bruno@clisp.org>
26735 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
26736 that it works when the directory contains spaces.
26738 2005-08-29 Bruno Haible <bruno@clisp.org>
26740 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
26742 2005-08-29 Bruno Haible <bruno@clisp.org>
26744 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
26747 2005-08-29 Bruno Haible <bruno@clisp.org>
26748 and Stepan Kasal <kasal@ucw.cz>
26750 * check-module: If more parameters are given, check each of them
26751 separately; add more exceptions, as noted by Jim Meyering.
26752 (check_module): New procedure.
26753 (%exempt_header): Now contains all exceptions.
26755 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
26757 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
26759 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
26761 * lib/iconvme.c: Split iconv_string into iconv_alloc.
26763 2005-08-28 Bruno Haible <bruno@clisp.org>
26765 * m4/gnulib-tool.m4: New file.
26767 2005-08-27 Jim Meyering <jim@meyering.net>
26769 * modules/unistd-safer (Files): Add pipe-safer.c.
26770 * modules/fcntl-safer (Files): Add creat-safer.c.
26772 2005-08-27 Jim Meyering <jim@meyering.net>
26774 * m4/stdlib-safer.m4: New file. From coreutils.
26775 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
26776 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
26777 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
26778 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
26779 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
26781 2005-08-27 Jim Meyering <jim@meyering.net>
26783 * lib/fopen-safer.c: Merge minor changes from coreutils.
26784 * lib/dup-safer.c: Likewise.
26785 * lib/fd-safer.c: Likewise.
26787 Merge from coreutils.
26788 * lib/stdio--.h: New file.
26789 * lib/stdlib--.h: New file.
26790 * lib/mkstemp-safer.c: New file.
26792 GNU tar needs these.
26793 * lib/pipe-safer.c: New file.
26794 * lib/creat-safer.c: New file.
26795 * lib/fcntl--.h (creat): Define to creat_safer.
26796 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
26797 * lib/unistd--.h (pipe): Define to pipe_safer.
26798 * lib/unistd-safer.h: Declare pipe_safer.
26800 2005-08-26 Simon Josefsson <jas@extundo.com>
26802 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
26803 Haible <bruno@clisp.org>.
26805 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
26807 * lib/regex_internal.h: Remove all references to
26808 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
26810 (bitset_not, bitset_merge, bitset_not_merge):
26811 (bitset_mask, re_string_allocate, re_string_construct):
26812 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
26813 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
26814 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
26815 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
26816 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
26817 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
26818 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
26819 (re_acquire_state_context):
26820 Remove unnecessary forward decls.
26821 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
26822 Put __attribute at function definition,
26823 now that the function decl has been removed.
26824 * lib/regex_internal.c (re_string_peek_byte_case):
26825 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
26828 2005-08-25 Stepan Kasal <kasal@ucw.cz>
26830 * m4/regex.m4: Add AC_PREREQ(2.50).
26831 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
26833 2005-08-25 Simon Josefsson <jas@extundo.com>
26835 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
26838 2005-08-25 Simon Josefsson <jas@extundo.com>
26840 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
26841 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
26842 GLIBC specific code.
26844 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
26846 Make regex safe for g++. This fixes one real bug (an "err"
26847 that should have been "*err"). g++ problem reported by
26849 * lib/regex_internal.h (re_calloc): New macro, consistent with
26850 re_malloc etc. All callers of calloc changed to use re_calloc.
26851 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
26852 not int. All callers changed.
26853 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
26854 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
26855 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
26856 (find_recover_state): Change "err" to "*err"; this fixes what
26857 appears to be a real bug.
26858 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
26861 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
26863 * modules/regex (Depends-on): Add malloc, since the code
26864 assumes that !malloc(0) means failure.
26866 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
26868 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
26870 alloca modernization/simplification for regex.
26871 * lib/regex.c: Remove portability cruft for alloca. This no longer
26872 needs to be at the start of the file, and can be moved into
26873 regex_internal.h and simplified.
26874 * lib/regex_internal.h: Include <alloca.h>.
26875 (__libc_use_alloca) [!defined _LIBC]: New macro.
26876 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
26877 now works outside glibc.
26879 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
26881 * config/srclist.txt: Add glibc bugs 1241, 1245.
26883 2005-08-25 Jim Meyering <jim@meyering.net>
26885 * lib/open-safer.c: Include <config.h>.
26886 Otherwise, we'd lose LARGEFILE support in any file using
26889 2005-08-25 Bruno Haible <bruno@clisp.org>
26891 * m4/minmax.m4: Require autoconf 2.52.
26892 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
26893 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
26894 alternatives of translit over the alphabet.
26895 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
26897 2005-08-24 Simon Josefsson <jas@extundo.com>
26899 * tests/test-getpass.c: New file.
26901 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
26903 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
26904 for GNU regex features.
26906 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
26908 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
26909 * lib/regex.h (regerror): Likewise.
26911 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
26912 requires this. (The code never needed it.)
26914 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
26915 All uses of recently-renamed identifiers changed to use the new,
26916 POSIX-compliant names. The code will build and run just fine
26917 without these changes, but it's better to eat our own dog food
26918 and use the standard-conforming names.
26920 * lib/regex.h: Fix a multitude of POSIX name space violations.
26921 These changes have an effect only for programs that define
26922 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
26923 do not change anything for programs compiled in the normal way.
26924 Also, there is no effect on the ABI.
26926 (_REGEX_SOURCE): New macro.
26927 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
26928 defined and _GNU_SOURCE is not; this fixes a name space violation.
26930 Rename the following macros to obey POSIX requirements.
26931 The old names are still visible as macros if _REGEX_SOURCE is defined.
26932 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
26933 RE_BACKSLASH_ESCAPE_IN_LISTS.
26934 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
26935 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
26936 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
26937 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
26938 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
26939 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
26940 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
26941 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
26942 (REG_INTERVALS): renamed from RE_INTERVALS.
26943 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
26944 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
26945 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
26946 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
26947 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
26948 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
26949 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
26950 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
26951 RE_UNMATCHED_RIGHT_PAREN_ORD.
26952 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
26953 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
26954 (REG_DEBUG): renamed from RE_DEBUG.
26955 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
26956 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
26957 unusual, since we can't clash with the POSIX REG_ICASE.
26958 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
26959 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
26960 (REG_NO_SUB): renamed from RE_NO_SUB.
26961 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
26962 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
26963 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
26964 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
26965 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
26966 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
26967 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
26968 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
26969 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
26970 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
26971 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
26972 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
26973 RE_SYNTAX_POSIX_MINIMAL_BASIC.
26974 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
26975 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
26976 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
26977 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
26978 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
26979 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
26980 (REG_FIXED): Renamed from REGS_FIXED.
26981 (REG_NREGS): Renamed from RE_NREGS.
26983 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
26984 of other REG_* macros, since POSIX says the user is allowed to
26985 #undef these macros selectively.
26987 (reg_errcode_t): Update comment stating what other tables need
26990 Rename the following enum values to obey POSIX requirements.
26991 The old names are still visible as macros.
26992 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
26993 is not defined, since GNU is supposed to be a superset of POSIX as
26994 much as possible, and since we want reg_errcode_t to be a signed
26995 type for implementation consistency.
26996 (_REG_NOERROR): Renamed from REG_NOERROR.
26997 (_REG_NOMATCH): Renamed from REG_NOMATCH.
26998 (_REG_BADPAT): Renamed from REG_BADPAT.
26999 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
27000 (_REG_ECTYPE): Renamed from REG_ECTYPE.
27001 (_REG_EESCAPE): Renamed from REG_EESCAPE.
27002 (_REG_ESUBREG): Renamed from REG_ESUBREG.
27003 (_REG_EBRACK): Renamed from REG_EBRACK.
27004 (_REG_EPAREN): Renamed from REG_EPAREN.
27005 (_REG_EBRACE): Renamed from REG_EBRACE.
27006 (_REG_BADBR): Renamed from REG_BADBR.
27007 (_REG_ERANGE): Renamed from REG_ERANGE.
27008 (_REG_ESPACE): Renamed from REG_ESPACE.
27009 (_REG_BADRPT): Renamed from REG_BADRPT.
27010 (_REG_EEND): Renamed from REG_EEND.
27011 (_REG_ESIZE): Renamed from REG_ESIZE.
27012 (_REG_ERPAREN): Renamed from REG_ERPAREN.
27013 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
27014 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
27015 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
27016 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
27018 (_REG_RE_NAME, _REG_RM_NAME): New macros.
27019 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
27020 changed. But support the old name if the new one is not defined
27021 and if _REGEX_SOURCE.
27023 Change the following member names in struct re_pattern_buffer.
27024 The old names are still supported if !_REGEX_SOURCE.
27025 The new names are always supported, regardless of _REGEX_SOURCE.
27026 (re_buffer): Renamed from buffer.
27027 (re_allocated): Renamed from allocated.
27028 (re_used): Renamed from used.
27029 (re_syntax): Renamed from syntax.
27030 (re_fastmap): Renamed from fastmap.
27031 (re_translate): Renamed from translate.
27032 (re_can_be_null): Renamed from can_be_null.
27033 (re_regs_allocated): Renamed from regs_allocated.
27034 (re_fastmap_accurate): Renamed from fastmap_accurate.
27035 (re_no_sub): Renamed from no_sub.
27036 (re_not_bol): Renamed from not_bol.
27037 (re_not_eol): Renamed from not_eol.
27038 (re_newline_anchor): Renamed from newline_anchor.
27040 Change the following member names in struct re_registers.
27041 The old names are still supported if !_REGEX_SOURCE.
27042 The new names are always supported, regardless of _REGEX_SOURCE.
27043 (rm_num_regs): Renamed from num_regs.
27044 (rm_start): Renamed from start.
27045 (rm_end): Renamed from end.
27047 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
27048 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
27049 Prepend __ to parameter names.
27051 Undo yesterday's changes.
27053 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
27055 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
27056 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
27059 2005-08-24 Jim Meyering <jim@meyering.net>
27061 Sync from coreutils.
27062 * m4/fcntl-safer.m4: New file.
27064 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
27065 and object files for this module.
27067 2005-08-24 Jim Meyering <jim@meyering.net>
27069 Sync from coreutils.
27070 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
27072 2005-08-24 Jim Meyering <jim@meyering.net>
27074 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
27075 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
27077 2005-08-24 Jim Meyering <jim@meyering.net>
27079 * modules/fcntl-safer: New module.
27080 * modules/fts (Depends-on): Add fcntl-safer.
27081 * MODULES.html.sh (File descriptor based Input/Output):
27084 2005-08-24 Bruno Haible <bruno@clisp.org>
27086 Support for unit test modules.
27087 * modules/README: Mention tests modules.
27088 * modules/TEMPLATE-TESTS: New file.
27089 * gnulib-tool: New options --extract-tests-module, --with-tests and
27090 --tests-base (unused for the moment).
27091 (testsbase, inctests): New variables.
27092 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
27093 (func_verify_module): Exclude TEMPLATE-TESTS.
27094 (func_verify_nontests_module, func_verify_tests_module): New functions.
27095 (func_get_dependencies): Add implicit dependency for tests modules.
27096 (func_get_tests_module): New function.
27097 (func_modules_transitive_closure): When --with-tests was specified,
27098 include the unit tests as well, unless explicitly avoided.
27099 (func_emit_lib_Makefile_am): Ignore the tests modules here.
27100 (func_emit_tests_Makefile_am): New function.
27101 (func_create_testdir): When --with-tests was specified, emit a
27103 * MODULES.html.sh (Future developments): Update.
27105 2005-08-24 Bruno Haible <bruno@clisp.org>
27107 * modules/tls-tests: New file.
27108 * tests/test-tls.c: New file, from GNU gettext.
27110 2005-08-24 Bruno Haible <bruno@clisp.org>
27112 * modules/lock-tests: New file.
27113 * tests/test-lock.c: New file, from GNU gettext.
27115 2005-08-24 Bruno Haible <bruno@clisp.org>
27117 * lib/lock.h: Add multiple inclusion guard.
27118 * lib/tls.h: Add multiple inclusion guard.
27120 2005-08-24 Bruno Haible <bruno@clisp.org>
27122 * gnulib-tool: Add support for the --aux-dir option to
27123 --create-testdir, --create-megatestdir, --test, --megatest.
27124 (func_create_testdir, func_create_megatestdir): Optionally emit a
27125 AC_CONFIG_AUX_DIR directive.
27126 (create-testdir, create-megatestdir, test, megatest): Provide a
27127 default value for $auxdir.
27129 2005-08-24 Bruno Haible <bruno@clisp.org>
27131 * gnulib-tool (import): Use compound statement instead of subshell
27134 2005-08-24 Bruno Haible <bruno@clisp.org>
27136 * gnulib-tool (import): Change --aux-dir default to "build-aux".
27138 2005-08-24 Bruno Haible <bruno@clisp.org>
27140 * gnulib-tool (func_version): Update.
27142 2005-08-24 Bruno Haible <bruno@clisp.org>
27144 * gnulib-tool (func_import, func_create_testdir,
27145 func_create_megatestdir): Quote all autoconf macro arguments.
27147 2005-08-24 Bruno Haible <bruno@clisp.org>
27149 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
27150 option --force, because --force causes the aclocal.m4 of each
27151 subdirectory to be newer than the corresponding config.h.in.
27153 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
27155 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
27156 All contents moved to gl_REGEX.
27157 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
27158 assume that it does.
27160 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
27162 * lib/regex.h (REG_NOSYS)
27163 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
27164 Define, since POSIX requires it as of 2001.
27166 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
27167 New private symbol, used to keep the enum signed in all cases.
27168 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
27170 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
27172 * lib/regex_internal.c (re_string_skip_chars, register_state):
27174 Remove forward decls; no longer needed now that we use prototypes.
27175 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
27176 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
27177 (clean_state_log_if_needed): Likewise.
27179 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
27181 * config/srclist.txt: Add glibc bugs 1231-1233.
27183 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
27185 Fix problems reported by Sam Steingold in
27186 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
27187 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
27188 assumed that reg_errcode_t is a signed type, which is not
27189 necessarily true if _XOPEN_SOURCE is not defined.
27190 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
27191 since some compilers warn about it otherwise.
27193 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
27195 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
27196 (init_word_char, create_initial_state, duplicate_node_closure):
27197 (fetch_token, peek_token_bracket, build_range_exp):
27198 (build_collating_symbol): Remove forward decls; no longer needed
27199 now that we use prototypes.
27202 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
27203 (re_compile_fastmap_iter, regcomp, regerror, regfree):
27204 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
27205 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
27206 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
27207 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
27208 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
27209 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
27210 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
27211 (build_range_exp, build_collating_symbol, parse_bracket_exp):
27212 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
27213 (build_charclass, build_charclass_op, fetch_number, create_tree):
27214 (create_token_tree, mark_opt_subexp, duplicate_tree):
27215 Use prototypes rather than old-style definitions.
27217 * lib/regex_internal.c:
27218 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
27219 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
27220 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
27221 (re_string_reconstruct, re_string_peek_byte_case):
27222 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
27223 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
27224 (re_node_set_init_copy, re_node_set_add_intersect):
27225 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
27226 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
27227 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
27228 (re_acquire_state, re_acquire_state_context, register_state):
27229 (create_ci_newstate, create_cd_newstate, free_state):
27231 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
27233 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
27234 (re_search_internal, prune_impossible_nodes):
27235 (acquire_init_state_context, check_matching, static):
27236 (check_halt_node_context, check_halt_state_context, proceed_next_node):
27237 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
27238 (update_regs, sift_states_backward, build_sifted_states):
27239 (clean_state_log_if_needed, merge_state_array):
27240 (update_cur_sifted_state, add_epsilon_src_nodes):
27241 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
27242 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
27243 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
27244 (find_recover_state, check_subexp_matching_top, transit_state_mb):
27245 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
27246 (check_arrival, check_arrival_add_next_nodes):
27247 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
27248 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
27249 (check_node_accept_bytes, check_node_accept, extend_buffers):
27250 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
27251 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
27255 * lib/regex_internal.h:
27256 (re_string_allocate, re_string_construct, re_string_reconstruct):
27257 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
27258 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
27259 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
27260 (re_string_context_at, re_string_peek_byte_case):
27261 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
27262 is defined, since we now use prototypes always.
27264 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
27265 C89 or better. All uses removed.
27267 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
27269 * config/srclist.txt: Add glibc bugs 1220-1227.
27271 2005-08-20 Jim Meyering <jim@meyering.net>
27273 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
27274 of unused local, dfa.
27276 2005-08-20 Bruno Haible <bruno@clisp.org>
27278 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
27280 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
27282 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
27283 (re_node_set_insert_last, re_dfa_add_node):
27284 Rename local variables to avoid GCC shadowing warnings.
27286 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
27288 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
27289 [defined lint]: Suppress bogus uninitialized-variable warnings.
27291 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
27292 and let the caller return REG_ESPACE if out of space. This
27293 removes an uninitialied-variable warning with GCC 4.0.1, and also
27294 avoids taking the address of a local variable. All callers
27297 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
27299 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
27300 $LIBCSRC/posix/regexec.c.
27301 Add glibc bug 1217 for regcomp.c.
27303 2005-08-19 Jim Meyering <jim@meyering.net>
27305 * lib/regexec.c (proceed_next_node): Redo local variables to
27306 avoid GCC shadowing warnings.
27308 2005-08-18 Bruno Haible <bruno@clisp.org>
27310 * lib/strstr.c (strstr): Fix return value in multibyte case.
27311 * lib/strcasestr.c (strcasestr): Likewise.
27313 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
27315 * lib/regex.h: Remove useless space-before-tab. From coreutils.
27317 2005-08-17 Jim Meyering <jim@meyering.net>
27319 Make the %s format (seconds since the epoch) work for a negative
27320 number and when used with a zero-padded field width, e.g. %015s.
27322 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
27323 label so that it precedes the code to set `digits'. Otherwise,
27324 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
27325 print `00-22'. Now, it prints `-0022', as it should.
27327 2005-08-17 Bruno Haible <bruno@clisp.org>
27329 * modules/strstr (Files): Add m4/mbrtowc.m4.
27330 (Depends-on): Add mbuiter.
27332 2005-08-17 Bruno Haible <bruno@clisp.org>
27334 * modules/strcasestr: New file.
27335 * MODULES.html.sh (String handling, based on ANSI C 89): Add
27338 2005-08-17 Bruno Haible <bruno@clisp.org>
27340 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
27342 2005-08-17 Bruno Haible <bruno@clisp.org>
27344 * modules/mbuiter: New file.
27345 * MODULES.html.sh (Extended multibyte and wide character utilities):
27348 2005-08-17 Bruno Haible <bruno@clisp.org>
27350 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
27351 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
27353 2005-08-17 Bruno Haible <bruno@clisp.org>
27355 * m4/strcasestr.m4: New file.
27357 2005-08-17 Bruno Haible <bruno@clisp.org>
27359 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
27360 * lib/strstr.c: Completely rewritten, with multibyte locale support.
27362 2005-08-17 Bruno Haible <bruno@clisp.org>
27364 * lib/strcasestr.h: New file.
27365 * lib/strcasestr.c: New file.
27367 2005-08-17 Bruno Haible <bruno@clisp.org>
27369 * lib/strcasecmp.c: Use mbuiter.h.
27371 2005-08-17 Bruno Haible <bruno@clisp.org>
27373 * lib/mbuiter.h: New file.
27375 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
27377 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
27378 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
27379 and gl_GETOPT are both invoked via different paths (as happens
27380 with GNU tar CVS because it uses both argp and getopt), the former
27383 2005-08-16 Bruno Haible <bruno@clisp.org>
27385 * modules/tls: New file.
27386 * MODULES.html.sh (Multithreading): Add tls.
27388 2005-08-16 Bruno Haible <bruno@clisp.org>
27390 * modules/strnlen1: New file.
27391 * MODULES.html.sh (String handling): Add strnlen1.
27393 2005-08-16 Bruno Haible <bruno@clisp.org>
27395 * modules/strcase (Files): Add m4/mbrtowc.m4.
27396 (Depends-on): Add strnlen1, mbchar.
27398 2005-08-16 Bruno Haible <bruno@clisp.org>
27400 * modules/mbiter: New file.
27401 * MODULES.html.sh (Extended multibyte and wide character utilities):
27404 2005-08-16 Bruno Haible <bruno@clisp.org>
27406 * modules/mbfile: New file.
27407 * MODULES.html.sh (Extended multibyte and wide character utilities):
27410 2005-08-16 Bruno Haible <bruno@clisp.org>
27412 * modules/mbchar: New file.
27413 * MODULES.html.sh (Extended multibyte and wide character utilities):
27416 2005-08-16 Bruno Haible <bruno@clisp.org>
27418 * m4/tls.m4: New file, from GNU gettext.
27420 2005-08-16 Bruno Haible <bruno@clisp.org>
27422 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
27424 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
27426 2005-08-16 Bruno Haible <bruno@clisp.org>
27428 * m4/mbiter.m4: New file.
27430 2005-08-16 Bruno Haible <bruno@clisp.org>
27432 * m4/mbfile.m4: New file.
27434 2005-08-16 Bruno Haible <bruno@clisp.org>
27436 * m4/mbchar.m4: New file.
27438 2005-08-16 Bruno Haible <bruno@clisp.org>
27440 * lib/tls.h: New file, from GNU gettext.
27441 * lib/tls.c: New file, from GNU gettext.
27443 2005-08-16 Bruno Haible <bruno@clisp.org>
27445 * lib/strnlen1.h: New file.
27446 * lib/strnlen1.c: New file.
27448 2005-08-16 Bruno Haible <bruno@clisp.org>
27450 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
27451 (mbi_init): Update.
27452 (mbi_avail, mbi_advance): Let the iteration end before the terminating
27453 NUL byte, not after it.
27455 2005-08-16 Bruno Haible <bruno@clisp.org>
27457 * lib/strcase.h (strcasecmp): Add note in comments.
27458 * lib/strncasecmp.c: Use code from strcasecmp.c.
27459 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
27460 (strcasecmp): Work correctly in multibyte locales.
27462 2005-08-16 Bruno Haible <bruno@clisp.org>
27464 * lib/mbiter.h: New file.
27466 2005-08-16 Bruno Haible <bruno@clisp.org>
27468 * lib/mbfile.h: New file.
27470 2005-08-16 Bruno Haible <bruno@clisp.org>
27472 * lib/mbchar.h: New file.
27473 * lib/mbchar.c: New file.
27475 2005-08-16 Bruno Haible <bruno@clisp.org>
27477 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
27478 the valid ones. Makes the comparison operations transitive:
27479 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
27480 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
27482 2005-08-15 Simon Josefsson <jas@extundo.com>
27484 * modules/ssize_t (License): Change to 'unlimited'.
27486 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
27488 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
27490 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
27491 Add comments for each pending glibc patch.
27493 2005-08-15 Bruno Haible <bruno@clisp.org>
27495 * lib/regex.h (__restrict_arr): Don't define to __restrict if
27496 __cplusplus is defined.
27498 2005-08-14 Jim Meyering <jim@meyering.net>
27500 Sync from coreutils.
27502 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
27503 Use the hash-table-based cycle-detection code not just when
27504 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
27505 Reported by James Youngman in
27506 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
27507 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
27508 FTS_TIGHT_CYCLE_CHECK.
27509 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
27510 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
27512 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
27513 * lib/fts.c (fd_safer): Remove decl.
27514 Include fcntl--.h rather than unistd-safer.h
27515 (fts_safe_changedir): Don't call fd_safer; no longer needed
27516 now that we include fcntl--.h.
27518 2005-08-12 Simon Josefsson <jas@extundo.com>
27520 * modules/getndelim2: Use ssize_t module.
27521 * modules/getnline: Likewise.
27522 * modules/safe-read: Likewise.
27523 * modules/xreadlink: Likewise.
27525 * modules/ssize_t: New file.
27527 2005-08-12 Simon Josefsson <jas@extundo.com>
27529 * m4/readline.m4: Look for termcap, curses or ncurses if required.
27531 2005-08-12 Simon Josefsson <jas@extundo.com>
27533 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27536 2005-08-12 Simon Josefsson <jas@extundo.com>
27538 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
27539 readline, getdelim and check_version.
27540 (Support for systems lacking ISO C 99: Sizes of integer types):
27543 2005-08-12 Bruno Haible <bruno@clisp.org>
27545 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
27547 2005-08-11 Simon Josefsson <jas@extundo.com>
27549 * modules/readline: New file.
27551 * modules/strnlen (Files): Add strnlen.h.
27553 2005-08-11 Simon Josefsson <jas@extundo.com>
27555 * m4/readline.m4: New file.
27557 2005-08-11 Simon Josefsson <jas@extundo.com>
27559 * lib/readline.h, readline.c: New file.
27561 2005-08-11 Simon Josefsson <jas@extundo.com>
27563 * doc/gnulib.texi (Initial import, Finishing touches): Mention
27566 2005-08-11 Bruno Haible <bruno@clisp.org>
27568 * lib/strnlen.h (strnlen): Change parameter name to match comment.
27570 2005-08-10 Stepan Kasal <kasal@ucw.cz>
27572 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
27574 2005-08-10 Simon Josefsson <jas@extundo.com>
27576 * tests/test-iconvme.c: New file.
27578 2005-08-10 Simon Josefsson <jas@extundo.com>
27580 * m4/strnlen.m4: New file.
27582 * m4/strndup.m4: Don't check for strnlen declaration, done in
27585 2005-08-10 Simon Josefsson <jas@extundo.com>
27587 * lib/strndup.c: Use strnlen.h.
27589 * lib/strnlen.h: New file.
27591 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
27595 2005-08-02 Simon Josefsson <jas@extundo.com>
27597 * modules/readline: New file.
27599 2005-08-02 Simon Josefsson <jas@extundo.com>
27601 * modules/getdelim: New file.
27603 * modules/getline: Rewrite, don't use getndelim2.
27605 2005-08-02 Simon Josefsson <jas@extundo.com>
27607 * m4/getline.m4: Separate out getdelim stuff into separate module.
27609 * m4/getdelim.m4: New file.
27611 2005-08-02 Simon Josefsson <jas@extundo.com>
27613 * lib/getline.h, getline.c: Rewrite.
27615 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
27617 2005-07-31 Bruno Haible <bruno@clisp.org>
27619 * lib/lock.h (gl_lock_initializer): New macro.
27620 (gl_lock_define_initialized): Use it.
27621 (gl_rwlock_initializer): New macro.
27622 (gl_rwlock_define_initialized): Use it.
27623 (gl_recursive_lock_initializer): New macro.
27624 (gl_recursive_lock_define_initialized): Use it.
27626 2005-07-30 Karl Berry <karl@gnu.org>
27628 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
27629 Report from Ben Pfaff, regarding getopt.
27631 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
27633 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
27635 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
27636 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
27637 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
27638 (gl_GETOPT): Use the new macros. Most of the implementation
27639 is moved to the new macros. This is for programs like Emacs
27640 that don't want all the functionality of gl_GETOPT.
27642 2005-07-26 Bruno Haible <bruno@clisp.org>
27644 * m4/lock.m4: Update from GNU gettext.
27646 2005-07-26 Bruno Haible <bruno@clisp.org>
27648 * lib/lock.h: Update from GNU gettext.
27649 * lib/lock.c: Update from GNU gettext.
27651 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
27653 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
27654 obsolescent AC_TRY_RUN. Include the default includes files, for
27657 2005-07-24 Bruno Haible <bruno@clisp.org>
27659 * modules/visibility: New file.
27660 * MODULES.html.sh (Misc): Add visibility.
27662 2005-07-24 Bruno Haible <bruno@clisp.org>
27664 * m4/visibility.m4: New file.
27666 2005-07-24 Bruno Haible <bruno@clisp.org>
27668 * doc/visibility.texi: New file.
27670 2005-07-22 Bruno Haible <bruno@clisp.org>
27672 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
27673 $(ALLOCA_H), redundant through BUILT_SOURCES.
27674 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
27675 redundant through BUILT_SOURCES.
27676 * modules/byteswap (Makefile.am): Remove explicit dependency on
27677 $(BYTESWAP_H), redundant through BUILT_SOURCES.
27678 * modules/fnmatch (Makefile.am): Remove explicit dependency on
27679 $(FNMATCH_H), redundant through BUILT_SOURCES.
27680 * modules/getopt (Makefile.am): Remove explicit dependency on
27681 $(GETOPT_H), redundant through BUILT_SOURCES.
27682 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
27683 redundant through BUILT_SOURCES.
27684 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
27685 redundant through BUILT_SOURCES.
27686 * modules/stdbool (Makefile.am): Remove explicit dependency on
27687 $(STDBOOL_H), redundant through BUILT_SOURCES.
27688 * modules/stdint (Makefile.am): Remove explicit dependency on
27689 $(STDINT_H), redundant through BUILT_SOURCES.
27690 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
27691 Remove explicit dependency on $(SYSEXITS_H).
27692 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
27694 2005-07-18 Simon Josefsson <jas@extundo.com>
27696 * lib/check-version.c (check_version): Accept identical versions too.
27698 2005-07-18 Bruno Haible <bruno@clisp.org>
27700 * modules/lock: New file.
27701 * MODULES.html.sh (Multithreading): New section.
27703 2005-07-18 Bruno Haible <bruno@clisp.org>
27705 * m4/lock.m4: New file, from GNU gettext.
27707 2005-07-18 Bruno Haible <bruno@clisp.org>
27709 * lib/lock.h: New file, from GNU gettext.
27710 * lib/lock.c: New file, from GNU gettext.
27712 2005-07-18 Bruno Haible <bruno@clisp.org>
27714 * lib/lock.h (gl_once_t): New type.
27715 (gl_once_define, gl_once): New macros.
27716 * lib/lock.c (fresh_once): New variable.
27717 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
27720 2005-07-16 Simon Josefsson <jas@extundo.com>
27722 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
27723 workaround, suggested by Bruno.
27725 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
27727 * modules/xalloc (Depends-on): Add xalloc-die.
27728 * modules/xvasprintf (Depends-on): Add xalloc-die.
27730 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
27732 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
27733 with a minor change.
27735 2005-07-15 Bruno Haible <bruno@clisp.org>
27737 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
27738 When using lib/poll.c, define poll as rpl_poll.
27740 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
27742 * modules/argp (Depends-on): Remove unlocked-io.
27744 2005-07-14 Derek Price <derek@ximbiot.com>
27746 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
27747 for glob symlink bug.
27749 2005-07-14 Bruno Haible <bruno@clisp.org>
27751 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
27752 Instead, test for *_unlocked function declarations directly.
27754 2005-07-11 Simon Josefsson <jas@extundo.com>
27756 * modules/size_max: New file.
27758 * modules/xsize: Depend on size_max module for size_max.m4.
27760 2005-07-11 Simon Josefsson <jas@extundo.com>
27762 * lib/size_max.h: New file.
27764 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
27766 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
27767 copyright symbol and the year.
27768 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
27769 (version_etc_va): Use parameterized copyright notice.
27770 Reword to conform to the current GNU coding standards.
27772 2005-07-11 Karl Berry <karl@gnu.org>
27774 * doc/gnulib.texi (Quoting): new node.
27775 (Initial import): more info, from Patrice.
27777 2005-07-11 Bruno Haible <bruno@clisp.org>
27779 * gnulib-tool (func_usage): Document option --avoid.
27780 (Command line options): Handle --avoid.
27781 (func_acceptable): New function.
27782 (func_modules_transitive_closure): Use it.
27784 2005-07-11 Bruno Haible <bruno@clisp.org>
27786 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
27787 Reported by Jim Meyering.
27789 2005-07-10 Bruno Haible <bruno@clisp.org>
27791 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
27792 Needed when size_t is smaller than 'unsigned int'.
27793 Reported by Paul Eggert.
27795 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
27797 * modules/argp (Depends-on): Add unlocked-io
27799 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
27801 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
27804 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
27806 * config/srclist.txt: Comment out regcomp.c, since we have a porting
27809 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
27810 and Paul Eggert <eggert@cs.ucla.edu>
27812 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
27813 in wint_t, not wchar_t. Remove now-unnecessary cast.
27815 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
27817 * modules/regex (Files): Add lib/regex_internal.c,
27818 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
27819 (Depends-on): Add extensions.
27820 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
27822 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
27824 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
27826 * m4/same.m4 (gl_SAME): Likewise.
27827 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
27829 * m4/regex.m4: Adjust to new libc regex implementation.
27830 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
27831 all the .c and .h parts of (the new) regex.
27832 Quote the m4 stuff better.
27833 Check for RE_ICASE bug of old gnulib.
27834 Check for REG_STARTEND of recent libc.
27835 Rename local variables from jm_* to gl_*.
27836 Quote operand of "test -f".
27837 Say "recent enough" version of libc, not "version 2".
27838 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
27839 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
27840 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
27841 Remove check for btowc, isascii.
27842 Require AM_LANGINFO_CODESET.
27844 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
27846 * lib/regex.c, regex.h: Sync from libc.
27847 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
27849 New files, synced from libc, except that regex_internal.h
27850 currently has a small porting fix.
27852 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
27854 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
27855 regex_internal.c, regexec.c.
27856 Add regex_internal.h too, but as a comment, since the libc version
27857 is currently broken in gnulib mode.
27859 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
27861 Support programs like Emacs that use gnulib but not gettext.
27862 * MODULES.html.sh (Internationalization functions): Add gettext-h.
27863 * modules/gettext-h: New file.
27864 * modules/gettext (Files): Remove lib/gettext.h.
27865 (Depends-on): Add gettext-h.
27866 (Makefile.am): Remove lib_SOURCES.
27867 * modules/argmatch, modules/c-stack, modules/closeout:
27868 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
27869 * modules/execute, modules/file-type, modules/getaddrinfo:
27870 * modules/getopt, modules/human, modules/javacomp:
27871 * modules/javaexec, modules/mkdir-p, modules/obstack:
27872 * modules/openat, modules/pagealign_alloc, modules/pipe:
27873 * modules/quotearg, modules/regex, modules/rpmatch:
27874 * modules/unicodeio, modules/userspec, modules/version-etc:
27875 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
27877 Depend on gettext-h, not gettext.
27879 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
27881 * gnulib-tool (func_import): Add support for 'public domain' license.
27882 * modules/alloca, modules/atexit, modules/memmove:
27883 Now public domain, not GPL.
27884 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
27885 * modules/realloc, modules/strerror, modules/strtod:
27888 2005-07-05 Bruno Haible <bruno@clisp.org>
27890 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
27891 autoconf CVS. Needed for mingw.
27893 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
27895 Remove the dependency of the strftime module on the tzset module.
27896 * modules/strftime (Depends-on): Remove dependency on tzset.
27898 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
27900 Remove the dependency of the strftime module on the tzset module.
27901 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
27902 gl_FUNC_TZSET_CLOBBER.
27904 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
27906 Remove the dependency of the strftime module on the tzset module.
27907 * lib/strftime.c (my_strftime)
27908 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
27909 Copy the input structure, to work around some of the bug with
27910 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
27911 Solaris releases, you should also use the tzset module, but we won't
27912 require it as a dependency any more since we don't want LGPLed code
27913 to depend on GPLed code.
27915 2005-07-02 Jim Meyering <jim@meyering.net>
27917 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
27918 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
27919 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
27920 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
27922 2005-07-02 Jim Meyering <jim@meyering.net>
27924 * lib/backupfile.c (backup_args): Change a `0' to NULL.
27926 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
27928 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
27929 declares only 'struct timespec;' (!).
27931 2005-07-01 Jim Meyering <jim@meyering.net>
27933 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
27934 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
27935 * lib/save-cwd.c, tempname.c:
27936 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
27937 and don't include <sys/file.h>).
27939 2005-06-29 Jim Meyering <jim@meyering.net>
27941 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
27942 type name. Use the variable name instead.
27943 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
27946 2005-06-28 Simon Josefsson <jas@extundo.com>
27948 * modules/check-version (Files): Add check-version.m4.
27950 2005-06-28 Simon Josefsson <jas@extundo.com>
27952 * m4/check-version.m4: New file, suggested by Jim Meyering
27953 <jim@meyering.net>.
27955 2005-06-28 Simon Josefsson <jas@extundo.com>
27957 * lib/check-version.h, lib/check-version.c: New files.
27959 2005-06-28 Simon Josefsson <jas@extundo.com>
27961 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
27962 collision with global variable. Better indentation. Don't
27963 increment buffer pointer beyond buffer end. Based on comments
27964 from Paul Eggert <eggert@cs.ucla.edu>.
27966 * lib/base64.h: Indent.
27968 2005-06-28 Simon Josefsson <jas@extundo.com>
27970 * doc/gnulib.texi (Library version handling): New section.
27972 2005-06-28 Jim Meyering <jim@meyering.net>
27974 * check-module (find_included_lib_files): Hard-code another
27975 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
27976 but modules/fts-lgpl (correctly) does not list those files.
27978 * modules/canonicalize (Files): Add lib/pathmax.h.
27980 2005-06-25 Simon Josefsson <jas@extundo.com>
27982 * modules/check-version: New file.
27984 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
27986 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
27987 initializer of struct addrinfo, as an indication that we don't
27988 care how many members the structure has.
27990 2005-06-24 Derek Price <derek@ximbiot.com>
27991 and Bruno Haible <bruno@clisp.org>
27993 Remove stat module & update lstat.
27994 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
27995 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
27996 * m4/stat.m4: Remove this file.
27998 2005-06-24 Derek Price <derek@ximbiot.com>
27999 and Bruno Haible <bruno@clisp.org>
28001 Remove stat module & update lstat.
28002 * lib/stat.c: Remove this file...
28003 (slash_aware_lstat): ...moving this content and its support...
28004 * lib/lstat.c (rpl_lstat): ...into here.
28005 * lib/lstat.h: New file.
28007 2005-06-24 Derek Price <derek@ximbiot.com>
28008 and Bruno Haible <bruno@clisp.org>
28010 Remove stat module & update lstat.
28011 * config/srclist.txt (libc sources): Remove stat.
28013 2005-06-24 Derek Price <derek@ximbiot.com>
28014 and Bruno Haible <bruno@clisp.org>
28016 Remove stat module & update lstat.
28017 * MODULES.html.sh (stat): Remove.
28018 * MODULES.html: Regenerated.
28019 * modules/lstat (Description): Correct function name.
28020 (Files): Add "lstat.h".
28021 (Depends-on): Remove stat, add xalloc, stat-macros.
28022 * modules/stat: Remove this file.
28023 (Include): Add "lstat.h", remove <sys/stat.h>.
28025 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
28027 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
28028 (ranged_convert): Don't save conversion in a temporary struct.
28029 This causes a warning with GCC 4.0.0, and anyway in the typical
28030 case it's not worth the extra 100 bytes or so of code.
28031 (ranged_convert, __mktime_internal): When calling a function via a
28032 pointer P, use P () rather than (*P) (), as we now assume C89 or
28035 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
28037 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
28038 "who -r" failed to give output. Problem reported by Tim Waugh.
28040 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
28041 (xcalloc): Use it to avoid needless tests.
28042 Problem reported by Jim Meyering.
28044 2005-06-20 Derek Price <derek@ximbiot.com>
28046 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
28047 unnecessary for Autoconfs > 2.59c.
28049 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
28051 * lib/argp.h (__option_is_short): Check upper limit of
28052 __key. Isprint() requires its argument to have the value
28053 of an unsigned char or EOF.
28055 2005-06-16 Jim Meyering <jim@meyering.net>
28057 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
28058 when either N or S is zero.
28060 2005-06-16 Derek Price <derek@ximbiot.com>
28062 * m4/bison.m4: Declare YACC & YFLAGS precious.
28064 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
28066 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
28067 multibyte string or pattern, fall back on unibyte matching.
28068 Problem reported by James Youngman.
28070 2005-06-08 Bruno Haible <bruno@clisp.org>
28072 * modules/csharpcomp: New file.
28073 * MODULES.html.sh (C#): Add csharpcomp.
28075 2005-06-08 Bruno Haible <bruno@clisp.org>
28077 * m4/csharpcomp.m4: New file, from GNU gettext.
28079 2005-06-08 Bruno Haible <bruno@clisp.org>
28081 * lib/csharpcomp.h: New file, from GNU gettext.
28082 * lib/csharpcomp.c: New file, from GNU gettext.
28083 * lib/csharpcomp.sh.in: New file, from GNU gettext.
28085 2005-06-08 Bruno Haible <bruno@clisp.org>
28087 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
28090 2005-06-07 Derek Price <derek@ximbiot.com>
28093 * lib/glob_.h: Indent nested #ifdef.
28095 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
28097 Sync from coreutils.
28098 Use "file name" when talking about file names, instead of "filename"
28099 or "path", as per the GNU coding standards.
28100 * lib/mkdir-p.c: Renamed from makepath.c.
28101 (make_dir_parents): Renamed from make_path. All callers changed.
28102 * lib/mkdir-p.h: Likewise. All includers changed.
28103 * lib/filenamecat.c: Renamed from path-concat.c.
28104 (file_name_concat): Renamed from path_concat. All callers changed.
28105 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
28106 * lib/filenamecat.h: Likewise. All includers changed.
28107 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
28108 in comments or local variable names.
28109 * lib/basename.c: Likewise.
28110 * lib/canonicalize.c, canonicalize.h: Likewise.
28111 * lib/dirname.c, dirname.h: Likewise.
28112 * lib/euidaccess.c: Likewise.
28113 * lib/exclude.c: Likewise
28114 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
28115 * lib/fsusage.c, fsuage.h: Likewise.
28116 * lib/fts.c, fts_.h: Likewise.
28117 * lib/getcwd.c: Likewise.
28118 * lib/getloadavg.c: Likewise.
28119 * lib/mkstemp.c: Likewise.
28120 * lib/mountlist.c, mountlist.h: Likewise.
28121 * lib/openat.c, openat.h: Likewise.
28122 * lib/readlink-stub.c: Likewise.
28123 * lib/readutmp.c, readutmp.h: Likewise.
28124 * lib/rename.c: Likewise.
28125 * lib/rmdir.c: Likewise.
28126 * lib/same.c: Likewise.
28127 * lib/savedir.c: Likewise.
28128 * lib/stripslash.c: Likewise.
28129 * lib/tempname.c: Likewise.
28130 * lib/xreadlink.c: Likewise.
28131 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
28133 * lib/exclude.h: Likewise.
28135 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
28136 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
28137 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
28138 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
28139 * lib/pathmax.h: Include <limits.h> unconditionally, since other
28140 files have been getting away with it for years (MORE/BSD 4.3
28142 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
28143 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
28145 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
28146 Define to 256, not 255, as per modern POSIX.
28148 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
28150 Sync from coreutils.
28151 Use "file name" when talking about file names, instead of "filename"
28152 or "path", as per the GNU coding standards.
28153 * MODULES.html.sh: mkdir-p renamed from makepath.
28154 filenamecat renamed from path-concat.
28155 * modules/filenamecat: Renamed from modules/path-concat.
28156 (Files): filenamecat.h and filenamecat.c renamed from
28157 path-concat.h and path-concat.c.
28158 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
28159 (Include): filenamecat.h, not path-concat.h.
28160 * modules/mkdir-p: Renamed from modules/makepath.
28161 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
28163 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
28164 (Include): mkdir-p.h, not makepath.h.
28166 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
28168 Sync from coreutils.
28169 * m4/mkdir-p.m4: Renamed from makepath.m4.
28170 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
28171 Rename files from makepath.c to mkdir-p.c, and from
28172 makepath.h to mkdir-p.h.
28173 * m4/filenamecat.m4: Renamed from path-concat.m4.
28174 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
28175 Rename files from path-concat.c to filenamecat.c,
28176 and from path-concat.h to filenamecat.h.
28177 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
28178 "file name" in local variables or comments.
28179 * m4/rename.m4: Likewise.
28181 2005-06-01 Bruno Haible <bruno@clisp.org>
28183 * modules/csharpexec: New file.
28184 * MODULES.html.sh (C#): New section.
28186 2005-06-01 Bruno Haible <bruno@clisp.org>
28188 * m4/csharp.m4: New file, from GNU gettext.
28189 * m4/csharpexec.m4: New file, from GNU gettext.
28191 2005-06-01 Bruno Haible <bruno@clisp.org>
28193 * lib/csharpexec.h: New file, from GNU gettext.
28194 * lib/csharpexec.c: New file, from GNU gettext.
28195 * lib/csharpexec.sh.in: New file, from GNU gettext.
28197 2005-05-31 Derek Price <derek@ximbiot.com>
28198 Paul Eggert <eggert@cs.ucla.edu>
28201 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
28203 2005-05-31 Derek Price <derek@ximbiot.com>
28204 Paul Eggert <eggert@cs.ucla.edu>
28207 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
28209 2005-05-29 Derek Price <derek@ximbiot.com>
28211 * config/srclist.txt (glob_.h, glob.c): Add these files.
28213 2005-05-29 Derek Price <derek@ximbiot.com>
28215 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
28216 * modules/glob: New file.
28217 * modules/getlogin_r: Add link to POSIX spec in description.
28219 2005-05-29 Derek Price <derek@ximbiot.com>
28220 Paul Eggert <eggert@cs.ucla.edu>
28222 * m4/glob.m4: New file.
28224 2005-05-29 Derek Price <derek@ximbiot.com>
28225 Paul Eggert <eggert@cs.ucla.edu>
28227 * lib/glob_.h, lib/glob.c: New files.
28229 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
28231 * modules/fts (Files): Remove m4/inttypes-pri.m4.
28232 * modules/fts-lgpl (Depends-on): Remove gettext.
28234 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
28236 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
28237 and don't require gt_INTTYPES_PRI.
28239 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
28241 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
28243 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
28244 the configuration hassle isn't worth it.
28245 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
28246 (LONGEST_MODIFIER, PRIuMAX): Remove.
28248 2005-05-27 Bruno Haible <bruno@clisp.org>
28250 * lib/getlogin_r.h: Remove second include of <stddef.h>.
28252 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
28254 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
28255 _POSIX_PTHREAD_SEMANTICS for Solaris.
28257 2005-05-25 Derek Price <derek@ximbiot.com>
28259 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
28261 2005-05-25 Derek Price <derek@ximbiot.com>
28262 Paul Eggert <eggert@cs.ucla.edu>
28264 * modules/getlogin_r, m4/getlogin_r.m4: New files.
28265 * lib/getlogin_r.c, getlogin_r.h: New files.
28267 2005-05-25 Bruno Haible <bruno@clisp.org>
28268 Derek Price <derek@ximbiot.com>
28270 * lib/getlogin_r.h: Simplify API documentation.
28272 2005-05-23 Derek Price <derek@ximbiot.com>
28274 * modules/minmax (Files): Add m4/minmax.m4.
28275 (configure.ac): Add gl_MINMAX.
28277 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
28279 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
28280 so that unistd-safer.h (GPL'ed code) need not be included.
28282 2005-05-22 Bruno Haible <bruno@clisp.org>
28284 * m4/minmax.m4: New file.
28285 Based on a patch by Derek Price <derek@ximbiot.com>.
28287 2005-05-22 Bruno Haible <bruno@clisp.org>
28289 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
28290 (INT64_MIN): Fix definition.
28291 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
28293 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
28294 NEED_SIGNED_INT_TYPES.
28296 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
28297 HAVE_SYSTEM_INTTYPES.
28299 2005-05-22 Bruno Haible <bruno@clisp.org>
28301 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
28302 Also include <sys/param.h> if it defines MIN, MAX.
28303 Based on a patch by Derek Price <derek@ximbiot.com>.
28305 2005-05-21 Jim Meyering <jim@meyering.net>
28307 * modules/fts (Files): Add m4/inttypes-pri.m4.
28308 (Depends-on): Add lstat and remove gettext. Alphabetize.
28310 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
28313 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
28314 (setup_dir, free_dir): New functions.
28315 (enter_dir, leave_dir): Define trivial
28316 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
28317 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
28318 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
28319 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
28320 Move to fts-cycle.c.
28321 (fts_open): Use setup_dir.
28322 (fts_close): Use free_dir.
28323 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
28324 This adds a label and some gotos, but the alternatives were messier.
28325 Check for memory allocation failure when entering a dir.
28326 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
28327 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
28328 (FTS): New member fts_cycle, that is a union that contains the
28329 old active_dir_ht and cycle_state. All uses changed to mention
28330 fts_cycle.ht and fts_cycle.state.
28331 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
28332 fts.c, with the following changes:
28333 (setup_dir, free_dir): New functions.
28334 (enter_dir): Now returns bool. Return true if successful, false
28335 if memory exhausted. All callers changed.
28336 Do not bother partly cleaning up on
28337 memory allocation failure; that is free_dir's job.
28338 However, free ad if hash_insert fails, to avoid memory leak.
28339 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
28340 fts->fts_options to see which union member to use.
28342 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
28344 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
28345 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
28347 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
28349 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
28351 2005-05-20 Jim Meyering <jim@meyering.net>
28353 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
28354 Now a macro, to pacify GCC.
28356 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
28358 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
28361 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
28363 * lib/chown.c (rpl_chown): Return -1 on failure.
28365 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
28367 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
28368 Don't check for stddef.h.
28369 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
28370 don't use its results.
28371 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
28372 since we include them unconditionally. Don't require
28373 AM_STDBOOL_H, since stdbool is a prerequisite.
28374 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
28375 since we assume C89 or better.
28376 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
28377 as we don't use their results.
28378 Don't check for fchdir, memmove, memset, strrchr, as we use
28379 them unconditionally.
28380 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
28381 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
28383 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
28385 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
28386 Include <stddef.h> unconditionally, since we assume C89 now.
28387 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
28388 * lib/fts.c: Include fts_.h first, to check interface.
28389 Do not include intprops.h; no longer needed.
28390 Include cycle-check.h and hash.h, since fts_.h no longer does.
28391 Remove unnecessary casts of closedir to void.
28392 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
28393 decide whether to decrement nlinks.
28394 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
28395 (FTS): Use struct hash_table * instead of Hash_table, so that
28396 we no longer need to include hash.h here.
28398 2005-05-18 Jim Meyering <jim@meyering.net>
28400 * modules/dirfd (License): Change to LGPL. Most of the code
28401 is already in the public domain.
28403 2005-05-18 Jim Meyering <jim@meyering.net>
28405 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
28406 Reported by Yoann Vandoorselaere.
28408 2005-05-17 Jim Meyering <jim@meyering.net>
28410 * m4/fts.m4: New file, from coreutils.
28412 2005-05-17 Jim Meyering <jim@meyering.net>
28414 * lib/fts.c, lib/fts_.h: New files, from coreutils.
28416 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
28418 Sync from coreutils.
28419 * m4/unlinkdir.m4: New file.
28421 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
28423 Sync from coreutils.
28424 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
28425 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
28426 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
28427 White space changes only.
28428 * lib/makepath.c (make_path): Port to hosts where leading "//" is
28430 * lib/yesno.c: Include getline.h, not ctype.h.
28431 (yesno): Don't remove leading white space; POSIX doesn't allow it.
28432 Use getline to remove arbitrary restriction on response length.
28434 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
28436 * config/srclist-update: Spell out "Street" in FSF postal
28437 mail address; this is the style the FSF seems to prefer.
28439 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
28440 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
28441 this updates FSF postal mail address.
28443 Sync from coreutils.
28444 * modules/unlinkdir: New file.
28445 * modules/yesno (Depends-on): Add getline.
28446 * MODULES.html.sh (File system functions): Add unlinkdir.
28448 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
28450 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
28452 Change the initial comment to refer to GPL, not LGPL.
28453 gnulib-tool will change it to LGPL as needed.
28455 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
28456 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
28457 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
28458 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
28459 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
28460 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
28461 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
28462 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
28463 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
28464 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
28465 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
28466 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
28467 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
28468 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
28469 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
28470 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
28471 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
28472 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
28473 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
28474 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
28475 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
28476 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
28477 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
28478 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
28479 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
28480 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
28481 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
28482 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
28483 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
28484 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
28485 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
28486 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
28487 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
28488 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
28489 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
28490 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
28491 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
28492 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
28493 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
28494 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
28495 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
28496 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
28497 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
28498 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
28499 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
28500 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
28501 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
28502 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
28503 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
28504 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
28505 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
28506 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
28507 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
28508 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
28509 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
28510 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
28511 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
28512 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
28513 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
28514 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
28515 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
28516 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
28517 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
28518 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
28519 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
28520 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
28521 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
28522 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
28523 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
28524 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
28525 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
28526 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
28527 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
28528 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
28529 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
28530 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
28531 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
28532 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
28533 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
28534 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
28535 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
28536 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
28537 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
28538 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
28539 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
28540 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
28541 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
28542 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
28543 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
28544 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
28545 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
28546 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
28547 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
28548 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
28549 lib/yesno.c, lib/yesno.h:
28550 Update FSF postal mail address.
28552 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
28554 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
28555 tests/test-memmem.c, tests/test-stpncpy.c:
28556 Update FSF postal mail address.
28558 2005-05-13 Bruno Haible <bruno@clisp.org>
28560 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
28561 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
28562 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
28563 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
28564 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
28565 Add support for 64-bit integers in the MSVC compiler.
28567 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
28569 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
28571 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
28573 * gnulib-tool (func_import): Sort and uniquify recommended includes.
28575 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
28577 * doc/getdate.texi (General date syntax): Don't say that date
28578 date --iso-8601=ns generates acceptable dates; it doesn't yet.
28579 Problem reported by Nic Ferrier.
28581 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
28583 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
28584 specified in ai_socktype. Fix invalid ai_protocol
28585 check. ai_protocol is usually set to 0 or depending on
28586 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
28587 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
28588 ai_socktype / ai_protocol in the returned addrinfo structure.
28590 2005-05-10 Simon Josefsson <jas@extundo.com>
28592 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
28593 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28595 2005-05-10 Karl Berry <karl@gnu.org>
28597 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
28598 (from http://www.gnu.org/licenses).
28599 * doc/COPYING.LIB: also rename to COPYING.LESSER.
28600 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
28603 2005-05-10 Karl Berry <karl@gnu.org>
28605 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
28606 (COPYING.DOC): remove.
28608 * config/srclist-update: new FSF address.
28610 2005-05-10 Derek Price <derek@ximbiot.com>
28612 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
28615 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
28616 Bruno Haible <bruno@clisp.org>
28618 * modules/inet_ntop: New file.
28619 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28622 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
28623 Bruno Haible <bruno@clisp.org>
28625 * m4/inet_ntop.m4: New file.
28627 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
28628 Bruno Haible <bruno@clisp.org>
28630 * lib/inet_ntop.h: New file.
28631 * lib/inet_ntop.c: New file, from glibc with modifications.
28633 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
28635 * modules/time_r (License): Change to LGPL.
28636 * modules/extensions (License): Change to LGPL. Actually,
28637 the license is more permissive than that, but currently gnulib-tool
28638 doesn't know how to handle more-permissive licenses.
28640 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
28641 Problem reported by Dave Love.
28643 2005-05-08 Jim Meyering <jim@meyering.net>
28645 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
28648 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
28650 * modules/argmatch (Depends-on): Add stdbool.
28651 * modules/backupfile (Depends-on): Likewise.
28652 * modules/chdir-long (Depends-on): Likewise.
28653 * modules/closeout (Depends-on): Likewise.
28654 * modules/cycle-check (Depends-on): Likewise.
28655 * modules/dirname (Depends-on): Likewise.
28656 * modules/fnmatch (Depends-on): Likewise.
28657 * modules/fsusage (Depends-on): Likewise.
28658 * modules/fwriteerror (Depends-on): Likewise.
28659 * modules/getcwd (Depends-on): Likewise.
28660 * modules/getloadavg (Depends-on): Likewise.
28661 * modules/hard-locale (Depends-on): Likewise.
28662 * modules/makepath (Depends-on): Likewise.
28663 * modules/mountlist (Depends-on): Likewise.
28664 * modules/nanosleep (Depends-on): Likewise.
28665 * modules/posixtm (Depends-on): Likewise.
28666 * modules/quotearg (Depends-on): Likewise.
28667 * modules/readtokens (Depends-on): Likewise.
28668 * modules/readtokens0 (Depends-on): Likewise.
28669 * modules/readutmp (Depends-on): Likewise.
28670 * modules/save-cwd (Depends-on): Likewise.
28671 * modules/strftime (Depends-on): Likewise.
28672 * modules/userspec (Depends-on): Likewise.
28673 * modules/utimecmp (Depends-on): Likewise.
28674 * modules/xgetcwd (Depends-on): Likewise.
28675 * modules/xnanosleep (Depends-on): Likewise.
28676 * modules/xstrtod (Depends-on): Likewise.
28677 * modules/yesno (Depends-on): Likewise.
28679 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
28681 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
28684 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
28686 Merge from coreutils. Among other things,
28687 add bulletproofing for cases where stdin, stdout, or stderr are closed.
28688 * lib/fd-safer.c: New file.
28689 * lib/fcntl-safer.h, open-safer.c: Remove.
28690 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
28691 * lib/dup-safer.c: Include unistd-safer.h first.
28692 Don't include errno.h.
28693 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
28694 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
28695 * lib/file-type.c: Rely on file-type.h change.
28696 * lib/getloadavg.c: Include unistd-safer.h.
28697 (getloadavg): Use safer open.
28698 * lib/getusershell.c: Include "stdio-safer.h".
28699 (getusershell): Use safer fopen.
28700 * lib/long-options.c (long_options): Use NULL rather than 0.
28701 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
28703 * lib/modechange.c: Likewise.
28704 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
28705 (MODE_DONE): New constant.
28706 (struct mode_change): Remove 'next' member.
28707 (make_node_op_equals): New function; like the old one of the
28708 same name, except it allocates an array.
28709 (mode_compile, mode_create_from_ref): Use it.
28710 (mode_compile): Allocate result as an array, not a linked list.
28711 Parse octal string ourself, so that we catch mistakes like "+0".
28712 (mode_adjust): Arg is an array, not a linked list.
28713 * lib/modechange.c: Include stat-macros.h, xalloc.h.
28714 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
28715 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
28716 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
28717 Remove. This is now stat-macros.h's job.
28718 (talloc): Remove. All callers replaced by xalloc, so that
28719 our invokers don't have to worry about reporting memory failures.
28720 (make_node_op_equals): Remove.
28721 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
28723 (struct mode_change): Moved here from modechange.h.
28724 (mode_append_entry): Remove.
28725 (mode_compile): Remove MASKED_OPS arg, since it encouraged
28726 apps to have incorrect behavior. Use simpler algorithm for head
28727 and tail. Don't futz with umask; that's now the job of mode_adjust.
28728 Detect more invalid usages rather than having somewhat-random behavior.
28729 Don't insert an "a=" action, as that leads to incorrect behavior.
28730 (mode_compile, mode_create_from_ref): Return NULL on error instead
28731 of an enum, since now there's only one way to have an error. All
28733 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
28734 at the correct time. Simplify calculation of "+u" and its ilk.
28735 Don't mishandle "+X".
28736 (mode_free): Remove "register" and localize decls.
28737 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
28738 (struct mode_change): Move to modechange.c; callers don't
28739 need to see this stuff.
28740 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
28741 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
28742 (mode_change, mode_adjust): Reflect the new signatures noted above.
28743 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
28744 that might redefine system include files.
28745 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
28746 (my_usleep): Use NULL rather than (void *) 0.
28747 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
28748 Use siginterrupt to specify that system calls should be interrupted.
28749 (rpl_nanosleep): Move initialization of suspended closer to call of
28751 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
28752 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
28753 (desirable_utmp_entry): New function.
28754 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
28755 using x2nrealloc, to simplify logic.
28756 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
28757 size calculation. Do not assume utmp file is a regular file.
28758 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
28759 (READ_UTMP_CHECK_PIDS): New constant.
28760 * lib/save-cwd.c: Include unistd-safer.h.
28761 (save_cwd): Use fd_safer.
28762 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
28763 [!_LIBC] Include "stat-macros.h" instead.
28764 * lib/unistd-safer.h (fd_safer): New decl.
28766 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
28768 * modules/getloadavg (Depends-on): Add unistd-safer.
28769 * modules/getusershell (Depends-on): Add stdio-safer.
28770 * modules/lstat (Depends-on): Remove xalloc.
28771 * modules/mkstemp (Depends-on): Add stat-macros.
28772 * modules/modechange (Depends-on): Remove xstrtol.
28773 Add stat-macros, xalloc.
28774 * modules/save-cwd (Depends-on): Add unistd-safer.
28775 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
28776 * modules/unistd-safer (Files): Add lib/fd-safer.c
28777 (Makefile.am): Remove lib_SOURCES.
28779 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
28780 Remove fcntl-safer; unistd-safer supersedes it.
28782 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
28784 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
28786 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
28787 (gl_PREREQ_CHOWN): Remove.
28788 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
28789 it. Don't require AC_HEADER_STAT.
28790 (gl_PREREQ_LSTAT): Remove.
28791 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
28792 Don't require AC_HEADER_STAT.
28793 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
28794 (gl_PREREQ_RMDIR): Remove.
28795 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
28796 mention stat-macros.h or AC_HEADER_STAT, since we'll make
28797 the stat-macros module a prerequisite.
28798 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
28799 * m4/filemode.m4 (gl_FILEMODE): Likewise.
28800 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
28801 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
28802 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
28804 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
28805 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
28807 * m4/fcntl-safer.m4: Remove.
28808 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
28809 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
28810 Invoke gl_PREREQ_FD_SAFER.
28811 (gl_PREREQ_FD_SAFER): New macro.
28812 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
28813 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
28814 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
28815 Remove duplicate call to AC_LIBOBJ(readutmp).
28816 (gl_PREREQ_READUTMP): Remove. All uses inlined.
28818 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
28819 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
28821 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
28823 * MODULES.html.sh (Misc): Add byteswap.
28825 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
28827 * modules/getcwd (Depends-on): Add extensions.
28828 * modules/openat (Depends-on): Likewise.
28830 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
28832 * modules/byteswap: New file.
28834 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
28836 * m4/byteswap.m4: New file.
28838 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
28840 * lib/byteswap_.h: New file.
28842 2005-04-25 Karl Berry <karl@gnu.org>
28844 * m4/gettext.m4: Update from GNU gettext 0.14.4.
28846 2005-04-25 Albert Chin <china@thewrittenword.com>
28848 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
28851 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
28853 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
28854 (func_ln_if_changed) Remove forcibly for no error message
28855 in case file does not exist.
28857 2005-04-19 Simon Josefsson <jas@extundo.com>
28859 * gnulib-tool (Options): Make --symlink mean --symbolic.
28861 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
28863 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
28865 2005-04-16 Simon Josefsson <jas@extundo.com>
28867 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
28869 2005-04-15 Simon Josefsson <jas@extundo.com>
28871 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
28873 2005-04-15 Simon Josefsson <jas@extundo.com>
28875 * gnulib-tool: Rename --symlink to --symbolic.
28877 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
28879 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
28880 symbolic links to files instead of copying/moving. Add --aux-dir,
28881 specifying directory relative --dir where auxiliary build tools
28884 2005-04-14 Bruno Haible <bruno@clisp.org>
28886 * modules/allocsa (License): Change to LGPL.
28887 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28889 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
28891 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
28892 that "UTC +1 second" continues to work. Problem reported
28893 by Dmitry V. Levin.
28894 (relunit_snumber): New rule.
28897 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
28899 * lib/getdate.y (universal_time_zone_table): New constant.
28900 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
28901 universal_time_zone_table.
28902 (lookup_zone): Prefer universal_time_zone_table to
28903 local_time_zone_table, so that "GMT" time stamps are allowed in
28904 London during the summer. Problem reported by Ian Abbott.
28906 2005-04-12 Jim Meyering <jim@meyering.net>
28908 * lib/human.c (humblock): Set *options even when returning due to
28909 xstrtoumax conversion failure. Thanks to a used-uninitialized
28910 warning from gcc-4.
28912 2005-04-09 Jim Meyering <jim@meyering.net>
28914 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
28915 -Wuninitialized: initialize tm0.tm_year.
28917 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
28919 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
28920 count, since there's no maximum. All uses changed.
28921 Add member dsts_seen.
28922 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
28924 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
28925 Use pc_rels_seen to decide whther a date is absolute.
28927 * lib/getdate.y (number): Don't overwrite year.
28928 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
28931 2005-04-02 Simon Josefsson <jas@extundo.com>
28933 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
28934 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
28936 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
28938 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
28939 where no absolute path name can be longer than PATH_MAX.
28941 2005-03-27 Jim Meyering <jim@meyering.net>
28943 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
28945 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
28947 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
28948 "one's complement" -> "ones' complement" in comment, as per Knuth.
28949 "value of type" -> "type or expression" in comment.
28950 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
28952 2005-03-26 Jim Meyering <jim@meyering.net>
28955 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
28956 Correct typos: s/or/of/.
28958 2005-03-26 Jim Meyering <jim@meyering.net>
28960 * modules/check-include-files: Move to ../ and rename to...
28961 * check-module: ...this.
28963 2005-03-25 Jim Meyering <jim@meyering.net>
28965 * modules/xvasprintf (Files): Add xalloc.h.
28967 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
28969 * modules/gettext (Files): config/config.rpath ->
28970 build-aux/config.rpath
28971 * modules/iconv (Files): Likewise.
28972 Problem reported by Oskar Liljeblad.
28974 2005-03-23 Jim Meyering <jim@meyering.net>
28976 * modules/check-include-files: New script to check for
28977 missing dependencies, multiple includes, etc.
28979 * modules/c-strtold (Depends-on): Add xalloc.
28980 * modules/c-strtod (Depends-on): Add xalloc.
28981 * modules/hash (Depends-on): Add xalloc.
28982 (Files): Remove lib/xalloc.h.
28984 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
28985 * modules/userspec (Files): Add lib/inttostr.h.
28987 2005-03-23 Jim Meyering <jim@meyering.net>
28989 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
28991 2005-03-22 Jim Meyering <jim@meyering.net>
28993 * modules/stat-macros: New module.
28994 * modules/canonicalize, modules/euidaccess, modules/file-type,
28995 * modules/filemode, modules/lchown, modules/makepath,
28996 * modules/rmdir, modules/stat: Depend on new stat-macros module
28997 rather than listing lib/stat-macros.h manually.
28998 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
29000 2005-03-22 Jim Meyering <jim@meyering.net>
29002 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
29004 2005-03-22 Bruno Haible <bruno@clisp.org>
29006 * config/srclist.txt: Replace target directory 'config' with
29008 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
29009 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
29012 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
29014 * modules/chdir-long (Depends-on): Add mempcpy.
29016 * modules/acl, modules/backupfile, modules/c-strtod,
29017 modules/c-strtold, modules/canon-host, modules/canonicalize,
29018 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
29019 modules/exclude, modules/exitfail, modules/file-type,
29020 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
29021 modules/getdate, modules/getline, modules/getpagesize,
29022 modules/getpass, modules/getugroups, modules/group-member,
29023 modules/hard-locale, modules/hash, modules/human, modules/idcache,
29024 modules/inttostr, modules/long-options, modules/makepath,
29025 modules/md5, modules/memcasecmp, modules/memcoll,
29026 modules/modechange, modules/mountlist, modules/path-concat,
29027 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
29028 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
29029 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
29030 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
29031 modules/strftime, modules/strndup, modules/strverscmp,
29032 modules/timespec, modules/unlocked-io, modules/userspec,
29033 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
29035 Remove lib_SOURCES line from Makefile.am section, as this is now
29036 done automatically by the corresponding Autoconf macro.
29038 2005-03-21 Jim Meyering <jim@meyering.net>
29040 Changes imported from coreutils.
29042 * lib/cycle-check.c: Don't include xalloc.h.
29044 * lib/path-concat.c: Don't include assert.h.
29045 (path_concat): Remove assertion that would have triggered
29046 for ABASE starting with more than one slash.
29047 Reported by Andreas Schwab.
29049 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
29050 properly when ABASE is an absolute file name.
29051 Correct the description of this function.
29052 Include <assert.h>.
29053 Add an assertion and a test driver.
29054 This fixes a bug introduced on 2004-07-02.
29055 Andreas Schwab reported the resulting failure of cp --parents:
29056 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
29058 2005-03-21 Jim Meyering <jim@meyering.net>
29060 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
29061 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
29063 2005-03-21 Jim Meyering <jim@meyering.net>
29064 and Paul Eggert <eggert@cs.ucla.edu>
29066 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
29067 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
29068 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
29069 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
29070 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
29071 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
29072 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
29073 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
29074 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
29075 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
29076 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
29077 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
29078 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
29079 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
29080 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
29081 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
29082 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
29085 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
29087 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
29088 (which shouldn't happen), generate nothing instead of returning 0
29089 immediately, so that nstrftime (NULL, ...) doesn't return 0.
29091 2005-03-16 Bruno Haible <bruno@clisp.org>
29093 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
29094 HAVE_LONGLONG_64BIT.
29096 2005-03-16 Bruno Haible <bruno@clisp.org>
29098 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
29099 HAVE_LONGLONG_64BIT.
29101 2005-03-16 Bruno Haible <bruno@clisp.org>
29103 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
29104 HAVE_LONGLONG_64BIT.
29106 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
29108 * lib/strftime.c (my_strftime): Prepend space to format so that we can
29109 reliably distinguish strftime failure from empty output on POSIX
29112 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
29114 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
29115 (iconv_string): Don't guess a size-zero buffer, as that might cause
29116 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
29117 result would be 'too large', where 'too large' is (heuristically)
29118 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
29119 overflow concerns. This will prevent some unwanted malloc failures
29120 when the inputs are very large.
29122 2005-03-15 Karl Berry <karl@gnu.org>
29124 * config/srclist.txt (config.rpath): from gettext.
29125 * config/config.rpath: update.
29127 2005-03-15 Bruno Haible <bruno@clisp.org>
29129 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
29132 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
29135 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
29138 2005-03-14 Simon Josefsson <jas@extundo.com>
29140 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
29143 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
29145 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
29146 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
29148 * lib/strtol.c: Likewise.
29150 2005-03-14 Jim Meyering <jim@meyering.net>
29152 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
29153 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
29154 to be nonzero so that we (and caller) can detect the difference
29155 between a valid zero-length expansion and an error return, even
29156 when the underlying strftime fails before writing anything into
29159 2005-03-14 Bruno Haible <bruno@clisp.org>
29161 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
29162 Update from GNU gettext 0.14.3.
29164 2005-03-10 Jim Meyering <jim@meyering.net>
29166 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
29168 2005-03-10 Jim Meyering <jim@meyering.net>
29170 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
29171 so that this module works on systems without fchdir.
29173 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
29175 Factor int-properties macros into a single file, except for
29176 glibc-related files.
29177 * lib/intprops.h: New file.
29178 * lib/getloadavg.c: Include it instead of limits.h.
29179 (INT_STRLEN_BOUND): Remove.
29180 * lib/human.c: Include intprops.h.
29181 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
29182 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
29184 * lib/inttostr.h: Include intprops.h instead of limits.h.
29185 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
29186 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
29187 for consistency with intprops.h.
29188 (time_t_is_integer, twos_complement_arithmetic): Use them.
29189 * lib/sig2str.h: Include <signal.h>, intprops.h.
29190 (INT_STRLEN_BOUND): Remove.
29191 * lib/strftime.c (TYPE_SIGNED): Remove.
29192 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
29193 * lib/strtol.c: Adjust comments to match intprops.h.
29194 * lib/userspec.c: Include intprops.h.
29195 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
29196 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
29197 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
29198 instead of rolling our own expressions.
29199 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
29201 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
29203 (my_strftime): Do not mishandle years close to INT_MAX, by doing
29204 the right thing even if adding 1900 would overflow. Similarly
29205 for tm_mon + 1 and tm_yday + 1.
29206 Make %Y always equivalent to %C%y, and similarly for %G and %g.
29207 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
29208 (DO_SIGNED_NUMBER): New macro.
29209 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
29211 2005-03-07 Bruno Haible <bruno@clisp.org>
29213 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
29215 2005-03-07 Bruno Haible <bruno@clisp.org>
29217 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
29219 2005-03-04 Derek R. Price <derek@ximbiot.com>
29221 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
29222 (func_import): Only replace files via --import when they have actually
29225 2005-03-03 Derek R. Price <derek@ximbiot.com>
29227 * m4/mmap-anon.m4: New file.
29228 * m4/pagealign_alloc.m4: New file.
29230 2005-03-03 Derek R. Price <derek@ximbiot.com>
29231 Bruno Haible <bruno@clisp.org>
29233 * modules/pagealign_alloc: New file.
29234 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
29236 2005-03-03 Derek R. Price <derek@ximbiot.com>
29237 Bruno Haible <bruno@clisp.org>
29239 * lib/pagealign_alloc.h: New file.
29240 * lib/pagealign_alloc.c: New file.
29242 2005-03-03 Bruno Haible <bruno@clisp.org>
29244 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
29245 Use an all-permissive copyright notice, recommended by RMS.
29247 2005-03-02 Bruno Haible <bruno@clisp.org>
29249 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
29250 of AIX, the replacement has to be done only after <string.h> is
29251 included, therefore not in config.h. stpncpy.h does the replacement,
29252 and stpncpy.c uses it.
29254 2005-03-02 Bruno Haible <bruno@clisp.org>
29256 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
29259 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
29261 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
29262 The workaround isn't strictly needed for POSIX conformance, and
29263 it's too much of a pain to configure and maintain. We'll ask
29264 people to fix their kernels instead.
29265 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
29266 (NANOSLEEP_BUG_WORKAROUND): Remove.
29267 (xnanosleep): Remove the workaround.
29269 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
29271 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
29272 Reported by Derek Price.
29273 (Include): Add "timespec.h".
29275 * modules/xnanosleep (Depends-on): Remove gethrxtime.
29277 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
29279 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
29280 to detect nanosleep bug.
29282 2005-03-01 Bruno Haible <bruno@clisp.org>
29284 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
29286 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
29288 * modules/gethrxtime: New file.
29289 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
29290 (Depends-on): Add gethrxtime.
29291 (configure.ac): Add gl_XNANOSLEEP.
29292 (Makefile.am): Remove lib_SOURCES line.
29294 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
29296 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
29297 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
29299 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
29301 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
29302 * lib/timespec.h (gettime): Return void, since it always
29303 succeeds now. All uses changed.
29304 * lib/gettime.c (gettime) Likewise.
29305 [HAVE_NANOTIME]: Prefer nanotime.
29306 Assume gettimeofday succeeds, as POSIX requires.
29307 Assime time () succeeds, since other code already does.
29308 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
29309 (timespec_subtract): Remove.
29310 (NANOSLEEP_BUG_WORKAROUND): New constant.
29311 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
29312 things considerably. Use it only on GNU/Linux hosts, since the
29313 workaround shouldn't be needed elsewhere.
29315 2005-02-24 Bruno Haible <bruno@clisp.org>
29317 * modules/gettext (Files): Add m4/glibc2.m4.
29319 2005-02-24 Bruno Haible <bruno@clisp.org>
29321 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
29322 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
29324 Update from GNU gettext 0.14.2.
29325 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
29327 2005-02-24 Bruno Haible <bruno@clisp.org>
29329 * lib/localcharset.c: Update from GNU gettext 0.14.2.
29330 * lib/config.charset: Update from GNU gettext 0.14.2.
29332 2005-02-24 Bruno Haible <bruno@clisp.org>
29334 * lib/gettext.h: Update from GNU gettext 0.14.2.
29336 2005-02-23 Simon Josefsson <jas@extundo.com>
29338 * m4/iconvme.m4: New file.
29340 2005-02-23 Jim Meyering <jim@meyering.net>
29342 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
29344 Thanks to Bruno Haible for catching it.
29346 2005-02-22 Simon Josefsson <jas@extundo.com>
29348 * modules/iconvme: New file.
29350 * MODULES.html.sh: Add iconvme.
29352 2005-02-22 Simon Josefsson <jas@extundo.com>
29354 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
29356 2005-02-22 Simon Josefsson <jas@extundo.com>
29358 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
29360 2005-02-22 Jim Meyering <jim@meyering.net>
29362 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
29365 2005-02-20 Neil Conway <neilc@samurai.com>
29367 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
29368 returned by OSX/Darwin if the specified buffer is not large
29369 enough for the hostname.
29371 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
29373 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
29374 pass it to _help, otherwise the latter coredumps trying to
29375 dereference state.root_argp.
29377 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
29379 * modules/chdir-long (Depends-on): Add memrchr.
29380 * modules/memrchr (Files): Add lib/memrchr.h.
29381 (Include): "memrchr.h".
29383 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
29385 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
29387 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
29389 * lib/memrchr.h: New file.
29390 * lib/chdir-long.c: Include it.
29391 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
29392 Don't bother including stddef.h.
29394 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
29396 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
29398 Include <sys/types.h>, for dev_t.
29399 (ME_DUMMY, ME_REMOTE): Move from here....
29400 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
29401 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
29403 Include mountlist.h first, to test the interface.
29405 2005-01-29 Bruno Haible <bruno@clisp.org>
29407 * lib/progname.c (program_name): Initialize.
29408 Needed when linking statically on MacOS X.
29410 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
29412 Sync from coreutils.
29413 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
29414 (Depends-on): Add c-strtod.
29415 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
29417 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
29419 Sync from coreutils.
29420 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
29422 Remove files that are specific to coreutils.
29423 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
29425 2005-01-28 Bruno Haible <bruno@clisp.org>
29427 * modules/javacomp: New file.
29428 * MODULES.html.sh (Java): Add javacomp.
29430 2005-01-28 Bruno Haible <bruno@clisp.org>
29432 * m4/javacomp.m4: New file, from GNU gettext.
29434 2005-01-28 Bruno Haible <bruno@clisp.org>
29436 * lib/javacomp.sh.in: New file, from GNU gettext.
29437 * lib/javacomp.h: New file, from GNU gettext.
29438 * lib/javacomp.c: New file, from GNU gettext.
29440 2005-01-26 Simon Josefsson <jas@extundo.com>
29442 * lib/gai_strerror.c: Use GPL in header.
29444 2005-01-26 Bruno Haible <bruno@clisp.org>
29446 * modules/javaexec: New file.
29447 * MODULES.html.sh (Java): Add javaexec.
29449 2005-01-26 Bruno Haible <bruno@clisp.org>
29451 * m4/javaexec.m4: New file, from GNU gettext.
29453 2005-01-26 Bruno Haible <bruno@clisp.org>
29455 * lib/javaexec.sh.in: New file, from GNU gettext.
29456 * lib/javaexec.h: New file, from GNU gettext.
29457 * lib/javaexec.c: New file, from GNU gettext.
29459 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
29461 * modules/lchown (Depends-on): Remove lchown.h
29463 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
29465 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
29466 must be defined if the header file was not found, in order
29467 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
29469 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
29471 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
29472 initializers for struct pentry_state.
29473 (__argp_error): Check return value of __asprintf
29474 (__argp_failure): Translate error message
29476 * lib/argp-parse.c: Removed braces around the expansion of N_()
29478 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
29480 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
29481 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
29482 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
29483 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
29484 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
29485 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
29486 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
29487 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
29488 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
29489 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
29490 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
29491 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
29492 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
29493 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
29494 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
29495 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
29496 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
29497 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
29498 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
29499 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
29500 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
29501 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
29502 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
29503 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
29504 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
29505 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
29506 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
29507 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
29508 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
29509 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
29510 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
29511 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
29512 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
29513 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
29514 xstrtol.m4, xstrtoumax.m4, yesno.m4:
29515 Use an all-permissive copyright notice, recommended by RMS.
29517 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
29519 * modules/chdir-long (Depends-on): Remove mempcpy.
29521 2005-01-21 Jim Meyering <jim@meyering.net>
29523 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
29524 same value as for Solaris 9.
29526 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
29527 component length. This included changing the parameter to be
29528 of type `char *' rather than `char const *'.
29529 * lib/chdir-long.h (chdir_long): Update prototype.
29531 * lib/openat.c (fdopendir, fstatat): New functions.
29532 * lib/openat.h: Include headers required for use of DIR and struct
29534 [AT_SYMLINK_NOFOLLOW]: Define.
29535 (fdopendir, fstatat): Add prototypes.
29537 2005-01-21 Bruno Haible <bruno@clisp.org>
29539 * modules/classpath: New file.
29540 * MODULES.html.sh (Java): Add classpath.
29542 2005-01-21 Bruno Haible <bruno@clisp.org>
29544 * lib/classpath.h: New file, from GNU gettext.
29545 * lib/classpath.c: New file, from GNU gettext.
29547 2005-01-20 Simon Josefsson <jas@extundo.com>
29549 * modules/version-etc-fsf: New file.
29551 2005-01-20 Simon Josefsson <jas@extundo.com>
29553 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
29554 * lib/version-etc.c: Remove version_etc_copyright.
29555 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
29556 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
29558 2005-01-20 Simon Josefsson <jas@extundo.com>
29560 * lib/base64.h (isbase64): Add.
29562 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
29563 using a unsigned prototype, don't inline.
29564 (base64_decode): Use it.
29566 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
29568 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
29571 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
29573 * lib/save-cwd.c (save_cwd): Remove code to support the case
29574 where fchdir is missing or flaky.
29576 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
29578 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
29580 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
29582 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
29583 AC_LIBSOURCES now does this.
29584 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
29585 with new ullong_max module.
29587 2005-01-19 Bruno Haible <bruno@clisp.org>
29589 * modules/sh-quote: New file.
29590 * MODULES.html.sh (Executing programs): Add sh-quote.
29592 2005-01-19 Bruno Haible <bruno@clisp.org>
29594 * lib/sh-quote.h: New file, from GNU gettext.
29595 * lib/sh-quote.c: New file, from GNU gettext.
29597 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
29599 Merge from coreutils.
29600 * m4/ullong_max.m4: New file.
29601 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
29602 (gl_MACROS): Assume localeconv exists.
29604 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
29606 Merge changes from coreutils, as described below in several
29607 changelogs dated today.
29609 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
29610 (O_DIRECTORY): Remove; not needed here, since "." must be
29611 a directory. All uses removed.
29612 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
29613 universal on Suns, and we also need to test for IRIX.
29614 Revamp code to use 'if' rather than '#if'.
29615 Avoid unnecessary comparison of cwd->desc to 0.
29617 * lib/utimens.c (futimens): Robustify the previous patch, by checking
29618 for known valid error numbers rather than observed invalid ones.
29620 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
29622 * modules/ullong_max: New file.
29624 * modules/chdir-long, modules/openat: New files.
29625 * modules/save-cwd (Depends-on): Depend on chdir-long.
29626 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
29628 2005-01-18 Jim Meyering <jim@meyering.net>
29630 Merge from coreutils.
29631 * m4/chdir-long.m4, m4/openat.m4: New files.
29632 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
29633 save-cwd.h. Add AC_LIBOBJ for save-cwd.
29634 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
29635 is sane and DOES follow symlinks. Besides, testing 20 different
29636 systems found no broken chown implementations.
29637 Prompted by a change in rsync's copy of this macro.
29638 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
29640 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
29642 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
29643 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
29644 NULL-means-set-to-current-time semantics.
29645 Remove temporary file immediately, rather than waiting
29646 for configure's at-exit trap code to do it.
29648 2005-01-18 Jim Meyering <jim@meyering.net>
29650 * lib/version-etc.c (version_etc_copyright): Update copyright date.
29652 * lib/utimens.c (futimens): Account for the fact that futimes
29653 can also fail with errno == ENOSYS or errno == ENOENT.
29654 Patch from Dmitry V. Levin.
29656 Change the name of the robust chdir function from chdir to chdir_long.
29657 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
29658 (restore_cwd): Use chdir_long, not chdir.
29659 * lib/chdir-long.c: Renamed from chdir.c.
29660 * lib/chdir-long.h: Renamed from chdir.h.
29661 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
29664 2005-01-18 Bruno Haible <bruno@clisp.org>
29666 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
29667 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
29668 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
29669 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
29670 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
29671 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
29672 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
29673 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
29674 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
29675 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
29676 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
29677 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
29678 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
29679 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
29680 Use an all-permissive copyright notice, recommended by RMS.
29682 2005-01-18 Bob Proulx <bob@proulx.com>
29684 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
29685 simplify offsetof() macro construct to avoid compile failure with
29686 native HP-UX 11.0 ANSI C compiler.
29688 2005-01-17 Bruno Haible <bruno@clisp.org>
29690 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
29691 redundant because stpncpy.m4 takes care of it.
29693 2005-01-17 Bruno Haible <bruno@clisp.org>
29695 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
29697 2005-01-17 Bruno Haible <bruno@clisp.org>
29699 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
29702 2005-01-17 Bruno Haible <bruno@clisp.org>
29704 * lib/fwriteerror.h (fwriteerror): Change specification to include
29706 * lib/fwriteerror.c: Include <stdbool.h>.
29707 (fwriteerror): At the end, close the file stream. Record whether
29708 stdout was already closed.
29710 2005-01-17 Bruno Haible <bruno@clisp.org>
29712 * lib/execute.c (environ): Declare if needed.
29713 * lib/pipe.c (environ): Likewise.
29714 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
29716 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
29718 * modules/argp: Depend on vsnprintf
29720 2005-01-10 Jim Meyering <jim@meyering.net>
29722 * modules/closeout (Depends-on): Add atexit.
29724 2005-01-06 Bruno Haible <bruno@clisp.org>
29726 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
29728 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
29730 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
29731 definitions to be after all include files, to avoid collisions.
29732 Problem reported by Bob Proulx.
29734 2005-01-04 Jim Meyering <jim@meyering.net>
29736 Changes imported from coreutils.
29737 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
29738 as the mkstemp template, use a temporary directory and an
29739 8.3-friendly template to avoid trouble on systems like DJGPP.
29740 Reported by Juan M. Guerrero via Stepan Kasal.
29741 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
29742 close. Remove the temporary directory right away, rather than waiting
29743 for configure's at-exit trap code to do it.
29744 Suggestion from Stepan Kasal.
29746 2005-01-01 Simon Josefsson <jas@extundo.com>
29748 * gnulib-tool: Print #include directives when --import'ing.
29750 2004-12-28 Simon Josefsson <jas@extundo.com>
29752 * tests/test-base64.c: Include required header files. Remove
29755 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
29757 * modules/error (Depends-on): Remove gettext.
29759 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
29761 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
29762 not needed. This removes a dependency on the gettext module.
29763 [defined _LIBC]: Do not include <libintl.h>; not needed.
29765 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
29767 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
29768 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
29770 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
29772 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
29775 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
29777 * modules/getdate (Depends-on): Remove alloca-opt.
29779 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
29781 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
29783 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
29785 * lib/argp-parse.c: Include <stddef.h>.
29786 (alignof, alignto): New macros.
29787 (parser_init): Don't assume that void * is aligned sufficiently
29790 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
29791 need to extend the stack.
29792 (YYINITDEPTH): New macro, so that the initial stack isn't overly
29795 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
29797 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
29799 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
29801 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
29802 (2004-10-24) change. Apparently this was a false alarm.
29804 * modules/getdate: Depend on alloca-opt, not alloca.
29806 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
29808 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
29809 Remove now-obsolete comment about AIX.
29810 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
29811 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
29812 (YYMAXDEPTH): New macro.
29814 2004-12-18 Simon Josefsson <jas@extundo.com>
29816 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
29818 2004-12-18 Bruno Haible <bruno@clisp.org>
29820 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
29822 2004-12-18 Bruno Haible <bruno@clisp.org>
29824 * lib/fatal-signal.c (fatal_signals): Make non-const.
29825 (init_fatal_signals): New function.
29826 (uninstall_handlers, install_handlers): Ignore signals that were set to
29828 (at_fatal_signal): Call init_fatal_signals.
29829 (init_fatal_signal_set): Likewise. Ignore signals that were set to
29831 Reported by Paul Eggert.
29833 2004-12-18 Bruno Haible <bruno@clisp.org>
29835 * doc/alloca.texi: New file.
29836 * doc/alloca-opt.texi: New file.
29838 2004-12-17 Jim Meyering <jim@meyering.net>
29840 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
29841 Otherwise, install-sh could exit with improper exit status when
29842 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
29844 2004-12-16 Simon Josefsson <jas@extundo.com>
29846 * tests/test-base64.c: Add license.
29848 2004-12-15 Stepan Kasal <address@hidden>
29850 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
29852 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
29854 * modules/getcwd (Files): Add m4/d-ino.m4.
29855 Suggested by Mark D. Baushke.
29857 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
29859 * lib/getdate.y (textint): New member "negative".
29860 (time_zone_hhmm): New function.
29861 Expect 14 shift-reduce conflicts, not 13.
29862 (o_colon_minutes): New rule.
29863 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
29864 (yylex): Set the "negative" member of signed numbers.
29866 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
29868 * doc/getdate.texi (Time of day items, Time zone items):
29869 Describe new formats +00:00, UTC+00:00.
29871 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
29873 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
29874 spurious "-l"s. Problem reported by Stepan Kasal.
29876 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
29878 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
29879 in Autoconf 2.59. Problem reported by Mark D. Baushke.
29881 2004-12-04 Simon Josefsson <jas@extundo.com>
29883 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
29884 Vandoorselaere <yoann@prelude-ids.org>.
29886 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
29888 Changes imported from coreutils.
29889 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
29891 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
29893 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
29895 Changes imported from coreutils.
29896 * lib/hard-locale.c: Assume <locale.h> exists.
29897 Include "strdup.h".
29898 (GLIBC_VERSION): New macro.
29899 (hard_locale): Assume setlocale exists.
29900 Rewrite to avoid #ifdef.
29901 Use strdup rather than malloc + strcpy.
29902 * lib/human.c: Assume <locale.h> exists.
29903 (human_readable): Assume localeconv exists.
29905 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
29907 * modules/hard-locale (Depends-on): Add strdup.
29909 2004-12-01 Jakub Jelinek <jakub@redhat.com>
29911 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
29912 convert T2, not T. (Imported from libc.)
29914 2004-11-30 Simon Josefsson <jas@extundo.com>
29916 * modules/restrict (License): Change to LGPL.
29918 2004-11-30 Simon Josefsson <jas@extundo.com>
29920 * m4/restrict.m4: Add copyright and copying conditions.
29922 2004-11-30 Simon Josefsson <jas@extundo.com>
29924 * m4/base64.m4: New file.
29926 2004-11-30 Simon Josefsson <jas@extundo.com>
29928 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
29931 * tests/test-base64.c: New file.
29933 * modules/base64: New file.
29935 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
29937 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
29938 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
29940 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
29942 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
29944 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
29945 (__getcwd.c): Don't restore errno; glibc doesn't.
29946 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
29947 first, falling back to our code only if its results look suspicious.
29948 Ensure that the resulting buffer is only as large as necessary.
29950 * lib/readutmp.c: Include readutmp.h first.
29951 Include <errno.h>, since readutmp.h no longer does that.
29952 * lib/readutmp.h: Don't include <errno.h>,
29953 <sys/param.h>, <time.h>; not needed to establish interface.
29954 (errno): Remove decl.
29955 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
29956 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
29957 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
29959 2004-11-28 Simon Josefsson <jas@extundo.com>
29961 * lib/base64.h, base64.c: New file.
29963 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
29965 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
29967 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
29969 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
29970 (Depends-on): Remove pathmax, same. Add mempcpy.
29971 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
29972 (Makefile.am): Append getcwd.h to lib_SOURCES.
29973 (Include): Add getcwd.h.
29974 (Maintainer): Change from Jim Meyering to "all, glibc",
29975 since getdate now uses intended-for-glibc code.
29976 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
29977 (Depends-on): Depend on getcwd. Do not depend on pathmax.
29979 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
29981 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
29982 HP's ANSI C compiler.
29983 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
29984 Declaring int functions causes warnings on some modern systems and
29985 shouldn't be needed to compile on ancient ones.
29986 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
29989 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
29990 with the following changes.
29991 (__set_errno): Parenthesize properly.
29992 Include <stdbool.h>.
29993 (MIN, MAX, MATCHING_INO): New macros.
29994 (__getcwd): Define with prototype, not K&R form.
29995 Use heuristics to allocate default buffer on stack if possible.
29996 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
29997 behavior, and to avoid the PATH_MAX limit when computing
29999 Use MATCHING_INO to compare inode number to file.
30000 Check for arithmetic overflow in size calculations.
30001 Fix bug in reallocation of dot array that caused getcwd to fail
30002 on directories nested deeper than 75.
30003 Be more careful about saving errno on error.
30004 Do not use realloc; use only free+malloc, as this is a bit
30005 more flexible and avoids a needless copy operation.
30006 Do not inspect st_dev and st_ino for symbolic links; POSIX
30007 doesn't specify the latter.
30008 Check for closedir errors.
30009 Avoid needless casts.
30010 Use "#ifdef weak_alias" around weak_alias, to be like other
30012 The following changes to getcwd.c have effect only when used in
30013 gnulib; they have no effect inside glibc proper.
30014 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
30015 as alloca isn't used.
30016 (alloca, __alloca): Likewise.
30017 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
30018 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
30019 unconditionally, as gnulib assumes C89 or better.
30020 Do not include <sys/param.h>.
30021 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
30022 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
30024 (NULL) [!defined NULL]: Remove; we assume C89 or better.
30025 Include <dirent.h> in a way that is compatible with modern Autoconf.
30026 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
30027 New macros, if not already defined.
30028 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
30029 Use "_LIBC", not "defined _LIBC", for consistency.
30030 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
30032 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
30033 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
30034 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
30035 credit only to Jim Meyering and adjust the copyright dates.
30036 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
30037 <stdlib.h>, <unistd.h>, "pathmax.h".
30038 Instead, include "xgetcwd.h" (first) and "getcwd.h".
30039 (INITIAL_BUFFER_SIZE): Remove.
30040 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
30042 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
30044 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
30045 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
30046 Use the _ONCE methods, for efficiency.
30047 Check for fcntl.h. In test program, include <errno.h>
30048 and <fcntl.h> if available. Remove old K&R cruft from
30049 test program. Check for common errors in GNU/Linux,
30050 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
30051 don't do AC_LIBOBJ, as that's getcwd.m4's job.
30052 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
30053 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
30055 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
30056 accommodate new getcwd.c.
30057 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
30058 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
30059 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
30060 that's all we need now.
30062 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
30064 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
30065 argp-parse.c depends on getopt internals, that means we should
30066 always use our getopt, to be on the safe side.
30067 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
30068 order not to spoil the result of an eventual previous invocation
30069 of gl_GETOPT_SUBSTITUTE.
30071 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
30073 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
30074 redefinition warnings. To avoid them, include the defines
30075 in `#if !defined __need_getopt ... #endif'. The only place
30076 where __getopt_argv_const is used is in definitions
30077 of getopt_long and getopt_long_only below, which are as well
30078 protected by `#ifndef __need_getopt'.
30079 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
30080 __need_getopt after including <stdio.h> and <unistd.h> These
30081 headers might have defined it.
30083 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
30085 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
30087 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
30089 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
30090 (futimens): New function, which uses futimes if available.
30091 (futimens, utimens): Support timespec==NULL, with same semantics
30092 as utime and utimens.
30093 * lib/utimens.h (futimens): New decl.
30095 2004-11-23 Jim Meyering <jim@meyering.net>
30097 * lib/getopt_.h: Remove trailing blanks.
30099 2004-11-23 Jim Meyering <jim@meyering.net>
30101 * lib/__fpending.c: Add comment.
30103 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
30105 * modules/canonicalize (Depends-on): Add xreadlink.
30106 Problem reported by James Youngman.
30108 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
30110 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
30112 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
30113 optopt): Use them instead of invoking ## directly; otherwise, the
30114 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
30116 2004-11-19 Bruno Haible <bruno@clisp.org>
30118 * lib/strtok_r.c: Move comments from here...
30119 * lib/strtok_r.h: ... to here.
30121 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
30123 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
30124 implementations that mishandle size_t overflow.
30126 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
30128 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
30129 might fail. Problem reported by Yoann Vandoorselaere.
30130 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
30131 implementations that mishandle size_t overflow.
30133 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
30135 * modules/canon-host (Depends-on): Add strdup.
30137 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
30139 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
30141 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
30143 * lib/canon-host.c: Include "strdup.h".
30144 (canon_host): Use getaddrinfo if available, so that IPv6 works.
30145 Use strdup instead of malloc/strcpy to duplicate strings.
30147 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
30148 (human_space_before_unit): New constant.
30149 * lib/human.c (human_readable): Support it.
30151 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
30152 (xgetcwd): Set errno correctly when failing.
30153 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
30154 the failure is actually due to a PATH_MAX problem.
30156 Further getopt changes to make it more likely that glibc will
30157 buy the changes back.
30158 * lib/getopt.c (POSIXLY_CORRECT): New constant.
30159 (getopt): Use it, so to preserve glibc semantic
30160 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
30161 when compiling for libc.
30162 * lib/getopt_.h (__getopt_argv_const): Bring it back.
30163 (getopt_long, getopt_long_only): Use it.
30165 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
30166 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
30167 (getopt): Argv is now char * const *, as per standard.
30168 (_getopt_internal_r, _getopt_internal): Argv is now char **,
30169 not char *__getopt_argv_const *.
30170 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
30171 _getopt_long_only_r): Likewise.
30172 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
30173 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
30174 _getopt_long_r, _getopt_long_only_r): Likewise.
30175 * lib/getopt_.h (__getopt_argv_const): Remove.
30176 (getopt): Argv is now char * const *, as per standard.
30178 * lib/getdate.y (tORDINAL): New token.
30179 (day, relunit): Allow it for relative times.
30180 (relative_time_table): Use tORDINAL for ordinals.
30182 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
30184 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
30185 Document that "second" isn't allowed as an ordinal number.
30187 2004-11-16 Jim Meyering <jim@meyering.net>
30189 * modules/closeout (Depends-on): Add fpending.
30191 2004-11-15 Jim Meyering <jim@meyering.net>
30193 * lib/closeout.c: Include "__fpending.h" once again.
30194 Include <stdbool.h>.
30195 (close_stdout): Don't fail just because stdout was closed initially,
30196 since some programs don't write to stdout in the normal course of
30197 operation (other than --version and --help), and we don't want this
30198 function to make e.g. `touch file >&-' fail.
30199 But do fail if it was closed and someone has tried to write to it.
30200 E.g., `printf foo >&-' must fail.
30202 2004-11-13 Jim Meyering <jim@meyering.net>
30204 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
30206 2004-11-12 Simon Josefsson <jas@extundo.com>
30208 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
30209 small doc fix is still pending.
30211 2004-11-11 Simon Josefsson <jas@extundo.com>
30213 * modules/strtok_r: New file.
30215 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30218 2004-11-11 Simon Josefsson <jas@extundo.com>
30220 * m4/strtok_r.m4: New file.
30222 * m4/getopt.m4: Replace opterr.
30224 2004-11-11 Simon Josefsson <jas@extundo.com>
30226 * lib/strtok_r.h, strtok_r.c: New file.
30228 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
30230 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
30231 of replacing opterr, getopt, etc. This should handle the
30232 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
30234 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
30236 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
30237 we can stop lying to compilers about the constness of argv when we
30238 are compiled outside glibc.
30239 (getopt, getopt_long, getopt_long_only): Use it.
30240 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
30241 _getopt_internal, getopt): Likewise.
30242 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
30243 _getopt_long_only_r): Likewise.
30244 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
30245 _getopt_long_r, _getopt_long_only_r): Likewise.
30247 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
30248 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
30249 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
30250 the other external symbols.
30251 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
30252 declaration, since the above renaming now works around collisions.
30254 2004-11-11 Jim Meyering <jim@meyering.net>
30256 * lib/linebreak.c: Remove trailing blanks.
30257 * lib/alloca_.h: Likewise.
30258 * lib/acosl.c: Likewise.
30259 * lib/euidaccess.c: Likewise.
30260 * lib/allocsa.h: Likewise.
30262 2004-11-10 Simon Josefsson <jas@extundo.com>
30264 * m4/getaddrinfo.m4: New file.
30266 2004-11-10 Simon Josefsson <jas@extundo.com>
30268 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
30270 2004-11-10 Simon Josefsson <jas@extundo.com>
30272 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30275 * modules/getaddrinfo: New file.
30277 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
30279 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
30281 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
30283 * lib/mktime.c (SHR): New macro, which is a portable
30284 substitute for >> that should work even on Crays.
30285 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
30286 Problem reported by Mark D. Baushke in
30287 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
30288 * lib/getdate.y (SHR): Likewise.
30290 * lib/strftime.c (SHR): Likewise.
30292 * lib/quotearg.c (struct quoting_options): Use unsigned int for
30293 quote_these_too, so that right shifts are well defined. All uses
30296 2004-11-10 Jim Meyering <jim@meyering.net>
30298 Ensure that no close failure goes unreported.
30299 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
30300 return early when it seems there's nothing to flush.
30301 Don't include __fpending.h.
30303 2004-11-10 Jim Meyering <jim@meyering.net>
30305 * modules/closeout (Depends-on): Remove fpending.
30307 2004-11-10 Jim Meyering <jim@meyering.net>
30309 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
30311 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
30313 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
30315 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
30316 and AC_REQUIRE when possible, to avoid duplicate checks.
30317 Check for <wchar.h>.
30319 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
30321 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
30323 2004-11-09 Bruno Haible <bruno@clisp.org>
30325 * m4/sockpfaf.m4: New file.
30327 2004-11-05 Bruno Haible <bruno@clisp.org>
30329 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
30330 Reported by Mark D. Baushke <mdb@cvshome.org>.
30332 2004-11-04 Bruno Haible <bruno@clisp.org>
30334 2004-09-11 Bruno Haible <bruno@clisp.org>
30335 * allocsa.valgrind: New file.
30336 2004-02-06 Bruno Haible <bruno@clisp.org>
30337 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
30338 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
30339 Reported by Christopher Seip <chris.seip@hp.com>.
30341 2004-11-04 Bruno Haible <bruno@clisp.org>
30343 * modules/allocsa (Files): Add lib/allocsa.valgrind.
30344 (Makefile.am): Distribute it.
30346 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
30348 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
30349 with errno == ERANGE if the buffer is too small.
30350 Problem reported by Mark D. Baushke.
30352 2004-11-03 Albert Chin <china@thewrittenword.com>
30353 Paul Eggert <eggert@cs.ucla.edu>
30355 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
30356 equivalent, substitute $ac_type for equivalent type rather than
30357 blindly using uint32_t *always* which won't work if uint32_t is not
30358 available. Define _UINT32_T to work around typedef of uint32_t if
30359 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
30362 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
30364 * m4/jm-macros.m4: Sync from coreutils.
30365 (gl_MACROS): Check for mbrlen, for pathchk.
30366 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
30368 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
30370 * lib/xreadlink.c (MAXSIZE): New macro.
30371 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
30372 size does not exceed MAXSIZE. Avoid cast.
30373 As suggested by Mark D. Baushke in
30374 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
30375 if readlink fails with buffer size just under MAXSIZE, try again
30378 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
30380 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
30382 2004-11-02 Derek R. Price <derek@ximbiot.com>
30383 and Paul Eggert <eggert@cs.ucla.edu>
30385 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
30386 (get_date): Overparenthesize to avoid GCC warning.
30388 2004-11-02 Bruno Haible <bruno@clisp.org>
30390 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
30393 2004-11-02 Bruno Haible <bruno@clisp.org>
30395 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
30396 function returns void.
30398 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
30400 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
30401 fflush_unlocked, flockfile, funlockfile, funlockfile,
30402 fputs_unlocked, putc_unlocked.
30404 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
30406 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
30407 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
30410 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
30412 * modules/getdate (Files): Add doc/getdate.texi.
30413 (Depends-on): Add setenv, xalloc.
30415 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
30417 * lib/getdate.y: Add support for TZ="foo" within a date string.
30418 Fix some bugs near time_t boundaries. Reject dates with
30419 out-of-range components, e.g., "Sept 31".
30420 Include <stdlib.h>, "setenv.h", "xalloc.h".
30421 (ISDIGIT_LOCALE): Remove; unused.
30422 Note that the TZ and time functions used here are not reentrant.
30423 (mktime_ok, get_tz): New functions.
30424 (TZBUFSIZE): New constant.
30425 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
30426 This requires that we sometimes generate our own TZ="XXX..." setting.
30428 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
30430 * doc/getdate.texi: New file, from coreutils with modifications for
30431 the new TZ parsing.
30433 2004-10-27 Derek R. Price <derek@ximbiot.com>
30435 * lib/mktime.c (not_equal_tm): Remove redundant check.
30437 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
30439 * modules/regex (lib_SOURCES): Add regex.c.
30440 Reported by James Youngman in
30441 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
30443 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
30445 * lib/getdate.y: Use Bison 1.875 features, and some minor
30446 code cleanups. This change does not affect semantics.
30447 Don't include <stdlib.h>; no longer needed.
30448 Don't include unlocked-io.h; only the "#if TEST" code uses
30449 stdio, and performance isn't crucial there.
30450 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
30451 Bison 1.875 features as described below.
30452 All uses of "PC." replaced by "pc->".
30453 (YYSTYPE): Add a forward declaration.
30454 (yylex, yyerror): Use full prototypes in forward decls.
30455 Use "%pure-parser" rather than obsolescent "%pure_parser".
30456 Use %parse-param and %lex-param instead of obsolescent
30457 YYPARSE_PARAM and YYLEX_PARAM.
30458 (meridian_table, month_and_day_table, time_units_table,
30459 relative_time_table, time_zone_table, military_table,
30460 lookup_zone, lookup_word, get_date):
30461 Use NULL instead of 0 where appropriate.
30462 (to_hour): Avoid abort (), to avoid a dependency on
30464 (yyerror, yylex): Now accepts parser_control * arg.
30465 (main) [TEST]: Use '\0' rather than 0 for char.
30467 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
30469 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
30471 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
30473 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
30474 It's now the caller's responsibility to handle the case where
30475 !HAVE_GETPAGESIZE && !defined getpagesize.
30477 * lib/mktime.c (leapyear): Arg is long int, not int.
30479 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
30481 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
30483 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
30485 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
30486 missing. Problem reported by James Youngman.
30488 2004-10-16 Simon Josefsson <jas@extundo.com>
30490 * gnulib-tool: Fix comments. Fix parse problem.
30491 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
30493 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
30495 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
30496 implementation of getopt_long. Problem reported by Alexander Taler in:
30497 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
30499 2004-10-15 Bruno Haible <bruno@clisp.org>
30501 * gnulib-tool: Untabify. Initialize supplied_libname.
30502 (func_usage): More homogenous output.
30503 (func_modules_transitive_closure, func_modules_to_filelist,
30504 func_emit_lib_Makefile_am): New functions.
30505 (func_import): New function, extracted from big case statement. Use
30506 func_get_license, func_modules_transitive_closure,
30507 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
30508 opt_lgpl. Don't use test -a, as it's not portable.
30509 (func_create_testdir): Use func_modules_transitive_closure,
30510 func_modules_to_filelist, func_emit_lib_Makefile_am.
30512 2004-10-15 Bruno Haible <bruno@clisp.org>
30514 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
30516 2004-10-15 Bruno Haible <bruno@clisp.org>
30518 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
30519 the portions belonging to each module.
30520 Suggested by Derek Robert Price <derek@ximbiot.com>.
30522 2004-10-12 Simon Josefsson <jas@extundo.com>
30524 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
30525 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
30528 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
30530 * modules/vsnprintf: New file.
30532 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
30534 * m4/vsnprintf.m4: New file.
30536 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
30538 * lib/vsnprintf.h: New file.
30539 * lib/vsnprintf.c: New file.
30541 2004-10-11 Bruno Haible <bruno@clisp.org>
30543 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
30546 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
30548 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
30550 2004-10-07 Bruno Haible <bruno@clisp.org>
30552 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
30553 fits into the provided buffer.
30555 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
30557 * lib/diacrit.c, diacrit.h: Add GPL notice.
30559 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
30561 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
30562 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
30563 This avoids a potential constant-folding bug.
30565 2004-10-05 Bruno Haible <bruno@clisp.org>
30567 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
30568 for the declaration of strsep.
30570 2004-10-05 Bruno Haible <bruno@clisp.org>
30572 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
30574 2004-10-04 Simon Josefsson <jas@extundo.com>
30576 * modules/memmem: New file.
30577 * tests/test-memmem.c: New file.
30578 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
30580 2004-10-04 Simon Josefsson <jas@extundo.com>
30582 * m4/memmem.m4: New file.
30584 2004-10-04 Simon Josefsson <jas@extundo.com>
30586 * lib/memmem.h: New file.
30587 * lib/memmem.c: New file, taken from glibc.
30589 2004-10-04 Simon Josefsson <jas@extundo.com>
30591 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
30592 '#ifdef USE_UNLOCKED_IO'.
30594 2004-10-04 Simon Josefsson <jas@extundo.com>
30596 * config/srclist.txt: Add memmem from glibc.
30598 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
30600 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
30602 * modules/argmatch, modules/argp, modules/closeout, modules/error,
30603 modules/exclude, modules/getdate, modules/getline,
30604 modules/getndelim2, modules/getpass, modules/getpass-gnu,
30605 modules/getusershell, modules/linebuffer, modules/md5,
30606 modules/mountlist, modules/posixtm, modules/readtokens,
30607 modules/readutmp, modules/regex, modules/sha1,
30608 modules/version-etc, modules/yesno:
30609 Remove dependency on unlocked-io.
30611 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
30613 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
30615 * m4/unlocked-io.m4: Add copyright notice.
30616 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
30618 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
30620 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
30621 * lib/xmalloc.c (xmemdup): Likewise.
30622 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
30623 XFREE): Remove these long-obsolescent macros.
30624 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
30625 * lib/xstrdup.c: Remove.
30627 * lib/regex.c (re_comp): Cast gettext return value to char *,
30628 Problem reported by Martin Neitzel via Mark D. Baushke.
30630 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
30632 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
30633 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
30634 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
30635 regex.c, sha1.c, version-etc.c, yesno.c:
30636 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
30637 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
30638 the includer's responsibility.
30640 Sync from coreutils.
30642 * lib/modechange.c (mode_compile): Don't decrement a pointer that
30643 points to the start of a string, as the C Standard says the
30644 resulting behavior is undefined.
30646 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
30647 simple -> simple_backups, numbered_existing ->
30648 numbered_existing_backups, numbered -> numbered_backups
30649 to avoid shadowing problems. All uses changed.
30650 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
30651 * lib/backupfile.c (check_extension, numbered_backup):
30652 Rename locals to avoid shadowing 'basename'.
30653 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
30656 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
30657 * lib/.cvsignore: Add getopt.h.
30659 2004-10-04 Bruno Haible <bruno@clisp.org>
30661 * modules/README: New file.
30662 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
30665 2004-10-02 Jim Meyering <jim@meyering.net>
30667 * lib/dirfd.h, getpagesize.h: Add copyright notice.
30669 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
30671 * modules/strsep: New file.
30673 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
30675 * m4/strsep.m4: New file.
30677 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
30679 * lib/strsep.h: New file.
30680 * lib/strsep.c: New file.
30682 2004-10-01 Simon Josefsson <jas@extundo.com>
30684 * lib/snprintf.c (snprintf): Handle size==0.
30686 2004-10-01 Simon Josefsson <jas@extundo.com>
30687 Bruno Haible <bruno@clisp.org>
30689 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
30690 (snprintf): Declare 'args'.
30692 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
30694 * lib/snprintf.c: Remove comments as to why each header is needed.
30696 2004-10-01 Bruno Haible <bruno@clisp.org>
30698 * MODULES.html.sh: Add strsep.
30700 2004-09-30 Simon Josefsson <jas@extundo.com>
30702 * modules/snprintf: New file.
30704 2004-09-30 Simon Josefsson <jas@extundo.com>
30706 * m4/snprintf.m4: New file.
30708 2004-09-30 Simon Josefsson <jas@extundo.com>
30710 * lib/snprintf.h, lib/snprintf.c: New files.
30712 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
30714 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
30715 (hol_entry_help): Never translate an empty string.
30716 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
30717 * lib/argp.h (OPTION_NO_TRANS): New option.
30719 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
30721 * modules/argp (Maintainer): Replace Simon Josefsson
30722 by Sergey Poznyakoff.
30724 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
30726 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
30727 changes merged back into glibc.
30729 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
30731 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
30733 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
30735 * lib/xvasprintf.c: Include xalloc.h.
30736 (xvasprintf): Use xalloc_die, not xmalloc_die.
30738 2004-09-29 Bruno Haible <bruno@clisp.org>
30740 * modules/alloca-opt: New file, derived from modules/alloca.
30741 * modules/allocsa: Depend on alloca-opt instead of alloca.
30742 * modules/setenv: Likewise.
30743 * modules/vasnprintf: Likewise.
30744 * MODULES.html.sh: Add alloca-opt.
30746 2004-09-28 Simon Josefsson <jas@extundo.com>
30748 * gnulib-tool: New parameter --lgpl, to asseert that modules are
30749 LGPL, and to replace license template from GPL to LGPL.
30751 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
30753 * modules/dummy: Change license to LGPL.
30755 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
30757 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
30759 2004-09-24 Simon Josefsson <jas@extundo.com>
30761 * modules/minmax (License): Change from GPL to LGPL.
30763 2004-09-23 Simon Josefsson <jas@extundo.com>
30765 * gnulib-tool (--import): Typo.
30767 2004-09-23 Simon Josefsson <jas@extundo.com>
30769 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
30771 2004-09-22 Bruno Haible <bruno@clisp.org>
30773 * modules/*: Add 'License' field.
30774 * gnulib-tool: Accept --extract-license option.
30775 (func_get_license): New function.
30777 2004-09-21 Bruno Haible <bruno@clisp.org>
30779 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
30780 Reported by Simon Josefsson.
30782 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
30784 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
30785 gl_AC_TYPE_LONG_LONG.
30787 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
30789 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
30791 2004-09-18 Simon Josefsson <jas@extundo.com>
30792 and Paul Eggert <eggert@cs.ucla.edu>
30794 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
30795 calls with autoreconf. Define GL_LIB.
30797 2004-09-14 Karl Berry <karl@gnu.org>
30799 * config/srclist.txt: unsync setenv.c, sigh.
30801 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
30803 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
30804 Problem reported by Bruno Haible in:
30805 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
30807 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
30809 * config/srclist.txt: Comment out argp-pvh.c.
30811 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
30813 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
30814 in case some system header has #define'd it. Problem reported by
30815 Soeren D. Schulze in
30816 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
30818 2004-09-09 Karl Berry <karl@gnu.org>
30820 * regex.[ch]: delete from the root. These were supposed to be
30821 synced with emacs cvs, but this has not happened for about
30822 a year, and anyway nothing else uses emacs regex.[ch].
30823 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
30824 lib/regex[.ch] is untouched.
30826 2004-09-09 Bruno Haible <bruno@clisp.org>
30828 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
30830 2004-09-09 Bruno Haible <bruno@clisp.org>
30832 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
30834 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
30836 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
30838 * modules/xvasprintf: New file.
30839 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
30841 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
30843 * lib/xvasprintf.h: New file.
30844 * lib/xvasprintf.c: New file.
30845 * lib/xasprintf.c: New file.
30847 2004-09-08 Bruno Haible <bruno@clisp.org>
30849 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
30851 2004-09-08 Bruno Haible <bruno@clisp.org>
30853 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
30854 length is > INT_MAX.
30855 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
30858 2004-09-08 Bruno Haible <bruno@clisp.org>
30860 * lib/stdint_.h: New file, taken from GNU clisp.
30862 2004-09-08 Bruno Haible <bruno@clisp.org>
30863 Oskar Liljeblad <oskar@osk.mine.nu>
30865 * modules/stdint: New file.
30866 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
30868 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
30870 Import from coreutils.
30871 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
30872 strings on unbounded length. alloca's performance benefits aren't
30873 that important here.
30874 (V_STRDUP): Remove.
30875 (parse_with_separator): New function, with most of the internals
30876 of the old parse_user_spec. Allow user to omit both user and group,
30877 for compatibility with FreeBSD.
30878 Clone only the user name, not the entire spec.
30879 Do not set *uid, *gid unless entirely successful.
30880 Avoid memory leak in some failing cases.
30881 Fix regression for USER.GROUP reported by Dmitry V. Levin in
30882 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
30883 (parse_user_spec): Rewrite to use parse_with_separator.
30885 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
30887 * modules/userspec: Don't depend on alloca.
30889 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
30891 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
30893 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
30895 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
30896 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
30897 utimecmp, utimens, xnanosleep. Rename sha to sha1.
30899 2004-08-16 Simon Josefsson <jas@extundo.com>
30901 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
30902 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
30903 Add --dry-run for --import.
30904 Let user provided command line parameters override configure.ac
30907 2004-08-12 Simon Josefsson <jas@extundo.com>
30909 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
30910 as discussed with Paul Eggert in threads rooted at
30911 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
30913 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
30914 Before, the test was empty, and relied on ELIDE_CODE in source
30916 (gl_PREREQ_GETOPT): New macro.
30917 (gl_GETOPT): Use them.
30919 2004-08-12 Simon Josefsson <jas@extundo.com>
30921 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
30922 * lib/getopt_.h: Renamed from getopt.h.
30924 2004-08-12 Simon Josefsson <jas@extundo.com>
30926 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
30927 Change default library name from libfoo to libgnu.
30928 Now, if you have a configure.ac that says:
30931 gl_MODULES(error getopt etcetera)
30933 you can import all you need by running:
30934 ../gnulib/gnulib-tool --import
30936 * modules/getopt (Files): Rename getopt.h to getopt_.h.
30937 (Makefile.am): Rewrite, use logic from argz.
30938 (Include): Use <getopt.h> instead of "getopt.h".
30940 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
30942 * modules/argp (Files): Add m4/unlocked-io.m4.
30943 (Depends-on): Add extensions.
30945 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
30947 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
30948 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
30949 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
30950 Check for program_invocation_name, program_invocation_short_name,
30951 flockfile, funlockfile, features.h, _getopt_long_only_r.
30953 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
30955 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
30956 its complicated substitute.
30957 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
30958 and program_invocation_name.
30959 (__argp_basename) [!_LIBC]: Remove; the only use was
30960 replaced by its body.
30961 (__argp_short_program_name): Change condition from
30962 !defined __argp_short_program_name to
30963 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
30964 to match argp-namefrob.h.
30965 (__argp_failure): Don't assume strerror_r returns char *.
30966 * lib/argp-parse.c (N_): Define unconditionally.
30967 (argp_default_options): Fill out initializers with 0 to avoid
30970 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
30972 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
30975 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
30977 Merge from coreutils.
30979 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
30981 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
30982 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
30984 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
30986 Merge from coreutils.
30988 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
30989 wmemchr or wmemcpy. Problem reported by Robert Dahlem
30990 for Reliant Unix 5.43.
30992 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
30993 (union fooround): Use uintmax_t, not long int.
30994 The rest is a merge from libc:
30995 [defined _LIBC]: Include <shlib-compat.h>.
30996 (_obstack) [defined _LIBC]: Remove after 2.3.4.
30998 * lib/settime.c (settime): Recode to avoid warning with
31001 * lib/strverscmp.c: Convert to UTF-8.
31003 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
31005 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
31008 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
31010 * modules/xalloc-die: New file.
31011 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
31013 * modules/md5 (Files): Add m4/uint32_t.m4.
31014 * modules/sha1: Renamed from modules/sha.
31016 Rename lib/sha.h to lib/sha1.h.
31017 Rename lib/sha.c to lib/sha1.c.
31018 Rename m4/sha.m4 to m4/sha1.m4.
31019 (lib_SOURCES): Likewise.
31020 (configure.ac): Rename gl_SHA to gl_SHA1.
31021 (Include): sha.h -> sha1.h.
31023 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
31025 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
31026 * m4/sha1.m4: Renamed from sha.m4.
31027 (gl_SHA1): Renamed from gl_SHA. All uses changed.
31029 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
31031 * lib/obstack.h (obstack_empty_p):
31032 Don't assume that chunk->contents is suitably aligned.
31033 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
31034 Likewise. Problem reported by Benno in
31035 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
31037 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
31038 readable. This could be improved further but it'd take some work.
31040 2004-08-08 Simon Josefsson <jas@extundo.com>
31042 * modules/xgethostname (Depends-on): Remove exit and error (not
31045 * modules/getpass-gnu: Add getpass.h.
31046 (Depends-on): Add stdbool.
31047 * modules/getpass: Add getpass.h.
31049 2004-08-08 Simon Josefsson <jas@extundo.com>
31051 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
31052 Check getpass declaration.
31054 2004-08-08 Simon Josefsson <jas@extundo.com>
31056 * lib/xgethostname.c: Don't include error.h (not used).
31058 * lib/getpass.h: Add.
31059 * lib/getpass.c: Include getpass.h first.
31061 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
31063 * lib/xalloc-die.c: New file.
31064 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
31066 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
31067 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
31069 (_, N_, xalloc_die): Move to xalloc-die.c.
31070 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
31071 so that we needn't mess with xalloc_msg_memory_exhausted.
31073 * lib/sha1.h: Renamed from sha.h.
31074 (SHA1_H): Renamed from _SHA_H.
31075 (sha1_ctx): Renamed from sha_ctx.
31076 (sha1_init_ctx): Renamed from sha_init_ctx.
31077 (sha1_process_block): Renamed from sha_process_block.
31078 (sha1_process_bytes): Renamed from sha_process_bytes.
31079 (sha1_finish_ctx): Renamed from sha_finish_ctx.
31080 (sha1_read_ctx): Renamed from sha_read_ctx.
31081 (sha1_stream): Renamed from sha_stream.
31082 (sha1_buffer): Renamed from sha_buffer.
31083 * lib/sha1.c: Likewise; renamed from sha.c.
31084 Do not include <sys/types.h>.
31085 Include <stddef.h> rather than <stdlib.h>.
31087 2004-08-08 Bruno Haible <bruno@clisp.org>
31089 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
31090 FILESYSTEM_PREFIX_LEN.
31091 * lib/progreloc.c: Likewise.
31092 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
31094 2004-08-06 Simon Josefsson <jas@extundo.com>
31096 * modules/progname (Depends-on): Don't depend on stdbool.
31098 2004-08-06 Simon Josefsson <jas@extundo.com>
31100 * modules/getsubopt: New file.
31101 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31104 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
31106 More merge from coreutils.
31108 * m4/utimens.m4, m4/utimecmp.m4: New files.
31109 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
31110 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
31111 prereq.m4, sha.m4: Import changes from coreutils.
31113 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
31115 More merge from coreutils.
31116 * modules/raise, modules/readtokens0, modules/utimens:
31117 * modules/utimecmp, module/xnanosleep: New files.
31118 * modules/strftime: Add lib/strftime.h.
31119 Change include from <time.h> to "strftime.h".
31120 * modules/yesno: Add lib/yesno.h.
31121 * modules/backupfile: Remove lib/addext.c.
31122 * modules/euidaccess: Add stat-macros.h.
31123 * modules/canonicalize, modules/euidaccess,
31124 modules/filemode, modules/lchown, modules/makepath,
31125 modules/rmdir, modules/stat: Likewise.
31127 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
31130 * lib/argp-help.c (make_hol, hol_append): Don't assume that
31131 SIZE_MAX is a valid preprocessor constant.
31132 (__argp_basename): Change from "#ifndef _LIBC"
31133 to "#ifndef __argp_short_program_name", so that
31134 we don't compile these functions for tar.
31136 More merges from coreutils.
31137 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
31138 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
31139 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
31140 * lib/addext.c: Remove; no longer needed.
31141 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
31142 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
31143 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
31144 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
31145 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
31146 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
31147 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
31148 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
31149 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
31150 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
31151 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
31152 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
31153 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
31154 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
31155 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
31156 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
31157 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
31158 Import changes from coreutils.
31160 2004-08-05 Simon Josefsson <jas@extundo.com>
31162 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
31164 2004-08-05 Simon Josefsson <jas@extundo.com>
31166 * m4/getsubopt.m4: New file.
31168 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
31170 Merge from coreutils.
31172 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
31173 * m4/getcwd-path-max.m4: New files.
31175 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
31176 FILESYSTEM_PREFIX_LEN ->
31177 FILE_SYSTEM_PREFIX_LEN.
31178 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
31179 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
31180 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
31181 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
31183 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
31184 prerequisite modules now handle the DOS stuff.
31185 Don't check for unistd.h.
31187 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
31189 Merge from coreutils.
31191 * lib/.gdb-history: Remove; this doesn't belong here.
31193 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
31194 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
31195 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
31196 * lib/getcwd.c: New files.
31198 * lib/dirname.h: Include <stdbool.h>.
31199 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
31200 for consistency with POSIX terminology. All uses changed.
31201 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
31202 (strip_trailing_slashes): Use bool for booleans.
31203 * lib/stripslash.c (strip_trailing_slashes): Likewise.
31205 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
31206 sometimes returns a positive errno value even when it succeeds.
31207 (print_errno_message) [!LIBC]: Fall back on strerror if
31208 __strerror_r fails.
31210 * lib/path-concat.c (mempcpy): Don't define if a system header defines
31211 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
31212 (longest_relative_suffix): New function.
31213 (path_concat): Use it. Assume first argument is not NULL.
31214 Port to DOS. Omit redundant separators.
31215 Report an error instead of returning NULL.
31216 Use mempcpy instead of memcpy.
31217 (xpath_concat): Remove: not declared or used.
31219 * lib/same.h: Include <stdbool.h>
31220 (same_name): Return bool, not int.
31221 * lib/same.c (same_name): Likewise.
31222 (errno): Don't declare; we assume C89 or better now.
31224 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
31225 if not already defined.
31227 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
31228 * lib/dup-safer.c (errno): Likewise.
31230 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
31232 Merge from coreutils.
31233 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
31234 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
31235 * modules/path-concat: Don't depend on strdup.
31237 2004-08-03 Simon Josefsson <jas@extundo.com>
31239 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
31240 * lib/progname.h: Don't include stdbool.h.
31242 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
31244 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
31245 * MODULES.html.sh (func_all_modules): Remove fatal.
31247 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
31249 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
31251 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
31253 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
31256 2004-08-02 Simon Josefsson <jas@extundo.com>
31258 * lib/getsubopt.h: New file, with comments from Bruno Haible.
31259 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
31260 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
31262 2004-08-01 Simon Josefsson <jas@extundo.com>
31264 * lib/xgetdomainname.c: Include stdlib.h, for free().
31266 2004-07-19 Bruno Haible <bruno@clisp.org>
31268 * MODULES.html.sh (func_all_modules): Add dummy.
31270 2004-07-16 Simon Josefsson <jas@extundo.com>
31272 * modules/dummy: New file.
31274 2004-07-16 Simon Josefsson <jas@extundo.com>
31276 * lib/dummy.c: New file.
31278 2004-07-16 Bruno Haible <bruno@clisp.org>
31280 * lib/backupfile.h: Add extern "C" for C++.
31281 * lib/closeout.h: Likewise.
31282 * lib/copy-file.h: Likewise.
31283 * lib/findprog.h: Likewise.
31284 * lib/full-write.h: Likewise.
31285 * lib/pathname.h: Likewise.
31286 * lib/progname.h: Likewise.
31287 * lib/stpcpy.h: Likewise.
31288 * lib/stpncpy.h: Likewise.
31289 * lib/strcase.h: Likewise.
31290 * lib/strstr.h: Likewise.
31291 * lib/xalloc.h: Likewise.
31293 * lib/mbswidth.h: Add extern "C" for C++.
31294 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
31296 2004-07-13 Robert Millan <robertmh@gnu.org>
31298 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
31300 2004-07-09 Simon Josefsson <jas@extundo.com>
31302 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
31303 failed without this.)
31305 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
31307 * modules/chown (Files): Add lib/fchown-stub.c, since
31308 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
31310 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
31312 * lib/fchown-stub.c: New file.
31314 2004-06-24 Jim Meyering <jim@meyering.net>
31316 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
31318 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
31320 * modules/argz: Omit "#include".
31322 * MODULES.html.sh (func_all_modules): Add calloc, to match
31323 2004-06-01 addition of calloc module.
31325 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
31327 * m4/argz.m4: New file, which is autoupdated from libtool.
31329 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
31331 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
31334 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
31336 * config/srclist-update: Don't insist on "USA." before the
31337 close-comment, as libtool omits the period and puts the */ on a
31339 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
31340 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
31342 2004-06-22 Gary V. Vaughan <gary@gnu.org>
31344 * modules/argz: New file.
31345 * MODULES.html.sh (func_all_modules): Add argz.
31347 2004-06-12 Jim Meyering <jim@meyering.net>
31348 and Paul Eggert <eggert@cs.ucla.edu>
31350 * modules/hash (Files): Add lib/xalloc.h.
31351 * modules/pipe (Depends-on): Add wait-process.
31352 * modules/stat (Depends-on): Add xalloc.
31353 * modules/userspec (Files): Add lib/userspec.h.
31356 Upgrade from gettext-0.13.
31357 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
31358 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
31359 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
31361 2004-06-10 Jim Meyering <jim@meyering.net>
31363 * lib/calloc.c: New file.
31365 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
31367 * lib/getdate.y (yylex): Allow space between sign and number.
31368 Problem reported by Dan Jacobson.
31370 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
31372 Merge from coreutils CVS.
31374 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
31375 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
31376 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
31377 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
31378 xstrtol.m4: Fix copyright date and/or serial number.
31380 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
31381 See if we need an fchown replacement.
31382 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
31383 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
31384 and use the replacement function if we detect either defect.
31386 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
31389 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
31390 and Jim Meyering <jim@meyering.net>
31392 Merge from coreutils CVS.
31394 * lib/stat-macros.h: New file, with contents from file-type.h
31395 and coreutils' system.h.
31396 * lib/file-type.c: Include "stat-macros.h".
31397 * lib/file-type.h (file_type): Move all macro definitions to new file,
31400 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
31401 Wrap old code with this conditional.
31402 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
31403 function that does not dereference symlinks.
31404 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
31406 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
31407 dependency problems.
31408 (xreadlink): Accept new arg SIZE, for efficiency.
31409 All decls and uses changed.
31410 * lib/xreadlink.h: Include <stddef.h>, for size_t.
31412 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
31413 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
31415 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
31418 2004-06-01 Jim Meyering <jim@meyering.net>
31420 * m4/calloc.m4: New file.
31422 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
31424 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
31425 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
31426 Also, fix a typo in a diagnostic.
31428 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
31430 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
31431 or AC_FUNC_REALLOC.
31433 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
31435 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
31436 macros to be defined.
31437 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
31438 the allocator returns NULL because the requested size is zero.
31440 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
31442 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
31443 var. Add comment explaining why libc still defines it. This
31444 merges the following patch from glibc:
31445 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
31447 2004-05-20 Andreas Schwab <schwab@suse.de>
31449 * m4/free.m4: Replace free if it not known to work, not the other
31452 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
31454 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
31455 present in glibc since revision 1.1 of this file.
31456 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
31457 obstack_alignment_mask, obstack_alloc, obstack_base,
31458 obstack_blank, obstack_blank_fast, obstack_chunk_size,
31459 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
31460 obstack_grow0, obstack_init, obstack_int_grow,
31461 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
31462 obstack_next_free, obstack_object_size, obstack_ptr_grow,
31463 obstack_ptr_grow_fast, obstack_room): Remove declarations of
31464 nonexistent functions.
31466 2004-05-18 Karl Berry <karl@gnu.org>
31468 * config/srclist.txt: break link for vasnprintf.c.
31470 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
31472 Port obstack to the AS/400, where pointers are 16 bytes wide and
31473 you cannot cast an integer to a valid pointer. This patch is
31474 currently waiting to be integrated into glibc; see
31475 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
31477 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
31478 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
31479 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
31480 (struct obstack): temp member is now a union of a pointer and
31481 an integer, instead of an integer. All integer uses changed.
31482 This does not affect the physical layout of struct obstack,
31483 except on hosts (like the AS/400) where the size or alignment of
31484 void * is greater than that of ptrdiff_t.
31485 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
31486 __STDC__)]: Store temporary in pointer member of union, not
31488 * lib/obstack.c: Include <stddef.h>, for offsetof.
31489 (struct fooalign): Remove; it doesn't need a name.
31490 (union fooround): Change double to long double, and add void *.
31491 (DEFAULT_ALIGNMENT): Use offsetof to compute.
31492 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
31493 not a macro. Hence the values are always int; so remove all
31494 casts-to-int in uses.
31496 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
31498 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
31499 we can get this patch merged into glibc.
31501 2004-05-17 Derek R. Price <derek@ximbiot.com>
31502 Paul Eggert <eggert@cs.ucla.edu>
31504 * m4/argp: Depend on alloca.
31506 2004-05-17 Derek R. Price <derek@ximbiot.com>
31507 Paul Eggert <eggert@cs.ucla.edu>
31509 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
31512 2004-05-17 Bruno Haible <bruno@clisp.org>
31514 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
31515 precision that consists of a '.' followed by an empty digit string.
31516 Patch by Tor Lillqvist <tml@iki.fi>.
31518 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
31520 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
31521 for backward compatibility with older code. We need our own
31522 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
31523 it under some other name, and our alloca.h will define it.
31525 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
31526 Derek Price <derek@ximbiot.com>
31528 * lib/alloca.c: Include <alloca.h>, to get our interface.
31529 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
31530 include <alloca.h> first. Use C89 prototype for alloca; this
31531 requires including <stddef.h> for size_t. Use extern "C" if C++.
31532 Use #elif for simplicity, since we can assume C89 now.
31533 Don't try to source the system alloca.h since it will not be found
31534 and to prevent recursively including its replacement.
31535 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
31536 * lib/regex.c: Likewise.
31538 2004-05-16 Derek Price <derek@ximbiot.com>
31539 Paul Eggert <eggert@cs.ucla.edu>
31541 getline cleanup. This changes the getndelim2 API: both order of
31542 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
31545 * lib/getline.c: Don't include stddef.h or stdio.h, since our
31546 interface does that.
31547 (getline): Always use getdelim, so that we don't have two
31548 copies of this code.
31549 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
31551 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
31552 (GETNDELIM2_MAXIMUM): New macro.
31553 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
31554 instead of the old practice of delim2==0. All callers changed.
31555 Return -1 on overflow, instead of returning junk.
31556 Do not set *linesize unless allocation succeeds.
31557 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
31558 that we include sys/types.h.
31559 * lib/getnline.h: Likewise.
31560 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
31561 (getndelim2): Reorder arguments.
31562 * lib/getnline.c (getnline, getndelim):
31563 Don't discard the NMAX argument.
31564 (getnline): Invoke getndelim, to avoid code duplication.
31565 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
31566 of (size_t) -1 by callers of the getnline family.
31568 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
31570 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
31571 Check for gettimeofday.
31572 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
31573 Check for settimeofday, stime.
31575 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
31577 * lib/nanosleep.c (suspended): Change its type from int to
31578 sig_atomic_t volatile.
31579 (first_call): Make it private to rpl_nanosleep, and have it
31580 be zero initially as that's a bit faster.
31581 (my_usleep): Round up fractional times instead of truncating them,
31582 as this is the usual meaning for 'sleep'.
31584 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
31586 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
31587 (ENOSYS): Define if not defined.
31588 (settime): Fall back on stime if it exists and settimeofday fails.
31589 But don't bother with fallbacks if a method fails with errno == EPERM.
31591 2004-05-11 Jim Meyering <jim@meyering.net>
31593 Prior to this change, the save_cwd caller required read access to the
31594 current directory on most systems (ones with the fchdir function).
31596 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
31597 fails, try write-only, and finally, resort to using xgetcwd.
31599 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
31601 * lib/obstack.c, obstack.h: Import changes from libc.
31603 2004-04-28 Bruno Haible <bruno@clisp.org>
31605 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
31606 also implicitly appends .exe to executables.
31607 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
31608 accepts Windows pathnames.
31609 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
31610 Treat Cygwin like Windows, since it now accepts Windows pathnames.
31611 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
31612 Treat Cygwin like Windows, since it now accepts Windows pathnames.
31613 Reported by Derek Robert Price <derek@ximbiot.com>.
31615 2004-04-21 Karl Berry <karl@gnu.org>
31617 * config/srclist.txt (localcharset.c): break sync.
31619 2004-04-20 Paul Eggert <eggert@twinsun.com>
31621 * m4/host-os.m4: Add a copyright notice.
31623 2004-04-20 Jim Meyering <jim@meyering.net>
31625 Change UTILS_ to gl_ in AC_DEFINE'd names.
31626 Change utils_- and jm_-prefixed variables, too.
31627 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
31628 UTILS_FUNC_MKDIR_TRAILING_SLASH.
31629 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
31631 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
31632 Don't emit trailing blanks.
31633 Also rename jm_-prefixed variables to have gl_ prefix.
31635 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
31636 Also rename jm_-prefixed variables to have gl_ prefix.
31638 * m4/jm-macros.m4: Reflect the renamings.
31639 * m4/prereq.m4: Likewise.
31641 2004-04-20 Jim Meyering <jim@meyering.net>
31643 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
31646 2004-04-20 Jim Meyering <jim@meyering.net>
31647 Bruno Haible <bruno@clisp.org>
31649 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
31650 memory when realloc fails.
31652 2004-04-19 Jim Meyering <jim@meyering.net>
31654 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
31655 now that readutmp.c may call `free (0)'.
31657 2004-04-19 Bruno Haible <bruno@clisp.org>
31659 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
31660 * m4/inttypes_h.m4: Likewise.
31661 * m4/stdint_h.m4: Likewise.
31662 * m4/intmax_t.m4: Likewise.
31663 * m4/uintmax_t.m4: Likewise.
31665 2004-04-18 Jim Meyering <jim@meyering.net>
31667 * m4/prereq.m4: Don't forbid jm_ prefix.
31669 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
31670 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
31671 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
31672 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
31673 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
31674 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
31675 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
31676 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
31677 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
31678 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
31679 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
31680 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
31681 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
31682 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
31683 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
31684 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
31685 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
31686 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
31687 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
31689 2004-04-18 Jim Meyering <jim@meyering.net>
31691 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
31692 failure, don't leak memory and do call END_UTMP_ENT.
31694 2004-04-16 Jim Meyering <jim@meyering.net>
31696 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
31697 coreutils' stat program.
31698 (gl_PREREQ): Don't require jm_PREREQ_STAT.
31700 2004-04-11 Paul Eggert <eggert@twinsun.com>
31702 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
31704 (CHAR_BIT): Remove, since we assume C89.
31705 Include <stdint.h> if available, as per current Autoconf CVS advice.
31707 2004-03-31 Jim Meyering <jim@meyering.net>
31709 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
31710 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
31711 * m4/xalloc.m4: Likewise.
31713 2004-03-30 Paul Eggert <eggert@twinsun.com>
31715 Merge from coreutils.
31717 * m4/inttostr.m4: New file.
31718 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
31719 Require AM_STDBOOL_H and gl_TIMESPEC instead.
31720 Require gl_CLOCK_TIME.
31721 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
31723 2004-03-30 Paul Eggert <eggert@twinsun.com>
31725 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
31726 not bool, to be more consistent with Unix conventions.
31727 Suggested by Bruno Haible.
31729 Merge from coreutils.
31731 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
31732 * lib/umaxtostr.c: New files.
31734 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
31735 the usual <time.h> dance.
31736 (get_date): Change signature to support fractional time stamps.
31737 All callers changed.
31738 * lib/getdate.y: Include "getdate.h" first, as we can now
31739 assume C89 and don't need to worry about 'const'.
31740 Similarly, include "unlocked-io.h" near start, not in middle.
31741 Include <limits.h>.
31742 (textint.value): Use long int rather than int.
31743 (textint.digits): Use size_t rather than int.
31744 (BILLION, LOG10_BILLION): New constants.
31745 (parser_control): New member rel_ns. Members day_ordinal,
31746 time_zone, month, day, hour, minutes, rel_year, rel_month,
31747 rel_day, rel_hour, rel_minutes, rel_seconds
31748 are now long int, not int. Member seconds is now struct timespec,
31749 not int. New member timespec_seen. Members dates_seen, days_seen,
31750 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
31752 (%union.intval): Now long int, not int.
31753 New member timespec.
31754 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
31755 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
31756 (spec): Now is a timespec or an item list.
31757 (timespec, items): New nonterminals.
31758 (time, rel, relunit, number, get_date):
31759 Add support for fractional seconds.
31760 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
31761 (gmtime, localtime, mktime): Remove decls; not needed with C89.
31762 (to_hour): First arg is now long int, not int.
31763 (to_year): Returns long int, not int.
31764 Don't treat year -70 like 70.
31765 (tm_diff): Returns long int, not int.
31766 (lookup_word): Use bool instead of int when appropriate.
31767 (yylex): Use size_t for count, not int.
31768 Detect overflow when parsing large integer constants.
31769 Add support for fractions.
31770 (get_date): Make pointers 'const' if possible.
31771 Use more-portable code to detect integer overflow.
31772 (main) [TEST]: Adjust to above changes. Test for localtime failure.
31773 Don't use ctime; it's not reliable if the year has >4 digits.
31775 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
31776 This is for compatibility with BSD.
31778 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
31779 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
31780 From coreutils' system.h.
31782 * lib/userspec.c: Don't include "posixver.h".
31783 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
31784 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
31785 compatible extension. Simplify code by removing a boolean int
31786 that was always nonzero if a string was nonnull.
31788 2004-03-30 Jim Meyering <jim@meyering.net>
31790 Merge from coreutils.
31792 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
31793 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
31794 on some systems one must include <grp.h> before it.
31795 Reported by Christian Krackowizer.
31797 2004-03-30 Jim Meyering <jim@meyering.net>
31799 Merge from coreutils.
31801 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
31803 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
31804 an empty input stream.
31806 * lib/readtokens.c: Include <stdbool.h>.
31807 (readtoken): Use `size_t' rather than int/long.
31808 All callers adjusted.
31809 Use `bool' rather than `int' where appropriate.
31810 Use memset rather than an explicit loop.
31811 Use x2nrealloc rather than xrealloc.
31812 Allow the use of `\0' as a delimiter.
31813 (readtokens): Likewise.
31814 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
31816 2004-03-30 Jim Meyering <jim@meyering.net>
31818 * m4/realloc.m4: Remove file, since now it does no more than
31819 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
31820 the `configure.ac' section of module/realloc.
31821 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
31823 2004-03-30 Bruno Haible <bruno@clisp.org>
31825 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
31828 2004-03-29 Paul Eggert <eggert@twinsun.com>
31830 Merge changes to getloadavg.c from coreutils and Emacs.
31832 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
31833 Define to an expression, not to the empty string.
31834 Include cloexec.h and xalloc.h.
31835 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
31836 Use set_cloexec_flag rather than rolling our own.
31837 * lib/cloexec.c, lib/cloexec.h: New files.
31839 2004-03-29 Paul Eggert <eggert@twinsun.com>
31841 * m4/cloexec.m4: New file.
31843 2004-03-18 Paul Eggert <eggert@twinsun.com>
31845 * lib/getopt.h: Sync with libc CVS.
31847 2004-03-18 Paul Eggert <eggert@twinsun.com>
31848 Bruno Haible <bruno@clisp.org>
31850 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
31853 2004-03-18 Paul Eggert <eggert@twinsun.com>
31854 Bruno Haible <bruno@clisp.org>
31856 * lib/mbswidth.h: Include <wchar.h> only if
31857 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
31859 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
31861 2004-03-09 Paul Eggert <eggert@twinsun.com>
31863 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
31864 Sync with libc CVS.
31865 * lib/getopt_int.h: New file, also synced from libc.
31867 2004-03-09 Paul Eggert <eggert@twinsun.com>
31869 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
31870 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
31871 Bring back getopt.c, getopt.h, getopt1.c.
31873 2004-03-07 Paul Eggert <eggert@twinsun.com>
31875 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
31876 All uses changed. Check for sa_sigaction member; this fixes
31877 a bug first reported by Jason Andrade in
31878 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
31880 2004-03-07 Paul Eggert <eggert@twinsun.com>
31882 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
31883 '#if' expressions. Unlike the code it replaces, it does not
31884 depend on (defined _SC_PAGESIZE). However, it does depend on
31885 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
31886 first reported by Jason Andrade in
31887 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
31889 2004-02-25 Simon Josefsson <jas@extundo.com>
31891 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
31893 2004-02-25 Simon Josefsson <jas@extundo.com>
31895 * lib/strdup.h: New file.
31896 * lib/strdup.c: Include it.
31897 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
31898 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
31900 2004-02-23 Karl Berry <karl@gnu.org>
31902 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
31903 (from fencepost.gnu.org:/gd/gnuorg).
31905 2004-02-23 Karl Berry <karl@gnu.org>
31907 * config/srclistvars.sh (GNUORG) [karl]: redefine.
31908 * config/srclist.txt: add maintain/standards documents.
31910 2004-02-18 Bruno Haible <bruno@clisp.org>
31912 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
31913 Reported by Derek Robert Price <derek@ximbiot.com>.
31915 2004-02-16 Karl Berry <karl@gnu.org>
31917 * config/mkinstalldirs, install-sh: update from automake.
31919 2004-02-06 Karl Berry <karl@gnu.org>
31921 * m4/po.m4: update from gettext 0.14.1.
31923 2004-02-06 Karl Berry <karl@gnu.org>
31925 * lib/config.charset: update from gettext 0.14.1.
31927 2004-02-05 Paul Eggert <eggert@twinsun.com>
31929 Add comments and code, prompted by suggestions from Bruno Haible
31931 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
31932 describing the enum quoting_style values.
31933 * lib/quotearg.c (quotearg_alloc): New function.
31934 (quotearg_buffer_restyled): Treat lone { and } as special.
31935 Treat = as special. Work around bug with older shells
31936 that "see" a '\' that is really the 2nd byte of a multibyte char.
31937 Quote empty string with shell_quoting_style.
31939 2004-02-03 Bruno Haible <bruno@clisp.org>
31941 * m4/pipe.m4: New file, from GNU gettext.
31943 2004-02-03 Bruno Haible <bruno@clisp.org>
31945 * lib/pipe.h: New file, from GNU gettext.
31946 * lib/pipe.c: New file, from GNU gettext.
31948 2004-01-27 Bruno Haible <bruno@clisp.org>
31950 * m4/execute.m4: New file, from GNU gettext.
31952 2004-01-27 Bruno Haible <bruno@clisp.org>
31954 * lib/execute.h: New file, from GNU gettext.
31955 * lib/execute.c: New file, from GNU gettext.
31956 * lib/w32spawn.h: New file, from GNU gettext.
31958 2004-01-24 Paul Eggert <eggert@twinsun.com>
31960 Merge from diffutils.
31962 * lib/file-type.c (file_type): Add typed memory objects.
31963 * lib/file-type.h (S_TYPEISTMO): New macro.
31965 * lib/c-stack.h (c_stack_action): Remove argv argument.
31966 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
31967 (die): Don't calculate message unless segv_action returns.
31968 (get_stack_location, min_address_from_argv, max_address_from_argv,
31969 volatile stack_base, volatile_stack_size): Remove.
31970 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
31971 that every segmentation violation is a stack overflow. (Ouch!)
31972 See Debian bug 136249 (still outstanding) for more info about why
31973 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
31975 2004-01-24 Paul Eggert <eggert@twinsun.com>
31977 Exit-status fix from coreutils.
31979 Use exit_failure consistently in place of EXIT_FAILURE,
31980 so that program exit statuses are consistent on failure.
31982 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
31983 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
31984 * lib/argmatch.h: Comment fix to match the above.
31985 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
31986 Now a macro referring to exit_failure, instead of a separate
31987 variable. Include "exitfail.h" to get it.
31988 * lib/xstrtol.h: Include "exitfail.h".
31989 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
31991 * lib/long-options.c (parse_long_options): Use prototype
31992 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
31995 2004-01-21 Jim Meyering <jim@meyering.net>
31997 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
31998 so as not to conflict with a different-sized __mktime_internal
31999 function in GNU libc.
32000 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
32001 Problem building statically-linked `ls' reported by Michael Brunnbauer.
32003 2004-01-20 Karl Berry <karl@gnu.org>
32005 * config/config.guess: update from config.
32007 * config/srclistvars.sh: GNUWWWLICENSES for karl.
32009 2004-01-20 Bruno Haible <bruno@clisp.org>
32011 Safer stack allocation.
32012 * lib/setenv.c: Include allocsa.h.
32013 (alloca): Remove fallback definition.
32014 (freea): Remove macro.
32015 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
32018 2004-01-20 Bruno Haible <bruno@clisp.org>
32020 * m4/eealloc.m4: New file, from GNU gettext.
32022 2004-01-20 Bruno Haible <bruno@clisp.org>
32024 * m4/allocsa.m4: New file, from GNU gettext.
32026 2004-01-20 Bruno Haible <bruno@clisp.org>
32028 * lib/xallocsa.h: New file, from GNU gettext.
32029 * lib/xallocsa.c: New file, from GNU gettext.
32031 2004-01-20 Bruno Haible <bruno@clisp.org>
32033 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
32035 2004-01-20 Bruno Haible <bruno@clisp.org>
32037 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
32038 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
32041 2004-01-20 Bruno Haible <bruno@clisp.org>
32043 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
32046 2004-01-20 Bruno Haible <bruno@clisp.org>
32048 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
32050 2004-01-20 Bruno Haible <bruno@clisp.org>
32052 * lib/eealloc.h: New file.
32054 2004-01-20 Bruno Haible <bruno@clisp.org>
32056 * lib/binary-io.h: Avoid warnings on Cygwin.
32058 2004-01-20 Bruno Haible <bruno@clisp.org>
32060 * lib/allocsa.h: New file, from GNU gettext.
32061 * lib/allocsa.c: New file, from GNU gettext.
32063 2004-01-18 Karl Berry <karl@gnu.org>
32065 * doc/gpl.texi, doc/lgpl.texi: new files.
32067 2004-01-18 Karl Berry <karl@gnu.org>
32069 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
32070 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
32072 2004-01-15 Paul Eggert <eggert@twinsun.com>
32074 Merge from coreutils.
32076 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
32077 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
32078 (gl_DEFAULT_POSIX2_VERSION): Move
32079 the documentation from 'configure' into 'config.hin',
32080 so that 'configure --help' isn't burdened by it and
32081 we don't have to worry about its formatting there.
32082 Reword the documentation so that it's more succinct
32083 and can be run together into a single paragraph.
32084 * m4/same.m4 (gl_SAME): Check for pathconf.
32086 2004-01-15 Paul Eggert <eggert@twinsun.com>
32088 Merge from coreutils.
32090 * lib/posixver.c: Include posixver.h.
32092 * lib/same.c: Include <stdbool.h>, <limits.h>.
32093 (_POSIX_NAME_MAX): Define if not defined.
32095 (same_name): If file names are silently truncated, report
32096 that the file names are the same if they are the same after
32097 the silent truncation.
32099 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
32100 conversion function.
32101 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
32102 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
32105 2004-01-15 Jim Meyering <jim@meyering.net>
32107 Merge from coreutils.
32109 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
32110 if no library is required.
32111 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
32112 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
32113 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
32114 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
32115 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
32116 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
32117 value, $ac_cv_search_crypt, if it's "none required".
32118 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
32119 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
32120 not gl_FUNC_GETLOADAVG.
32121 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
32122 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
32124 2004-01-15 Jim Meyering <jim@meyering.net>
32126 Merge from coreutils.
32128 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
32129 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
32130 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
32132 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
32133 optional configure-time default.
32135 * lib/version-etc.c (version_etc_copyright): Update copyright date.
32137 * lib/xreadlink.c (xreadlink): Correct outdated comment.
32139 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
32141 Merge from coreutils.
32143 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
32144 value, $ac_cv_search_nanosleep, if it's "none required".
32146 2004-01-14 Paul Eggert <eggert@twinsun.com>
32148 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
32149 with like-named macro in fnmatch.c.
32150 (EXT): Use an internal constant instead.
32152 Merge fnmatch patches from glibc.
32153 * lib/fnmatch.c (mbsinit): Remove define.
32154 Add libc_hidden_ver (__fnmatch, fnmatch).
32155 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
32156 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
32158 2004-01-14 Karl Berry <karl@gnu.org>
32160 * config/install-sh: update from automake.
32162 2004-01-13 Karl Berry <karl@gnu.org>
32164 * config/install-sh: update from automake.
32166 2004-01-09 Karl Berry <karl@gnu.org>
32168 * config/install-sh: update from automake.
32170 2004-01-05 Karl Berry <karl@gnu.org>
32172 * config/config.{sub,guess}: update from config.
32174 2003-12-31 Karl Berry <karl@gnu.org>
32176 * config/depcomp: update from automake.
32178 2003-12-14 Karl Berry <karl@gnu.org>
32180 * lib/config.charset: update from gettext-runtime.
32182 2003-12-03 Paul Eggert <eggert@twinsun.com>
32184 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
32185 Bug reported by Alfred M. Szmidt.
32187 2003-12-03 Bruno Haible <bruno@clisp.org>
32189 * m4/gettext.m4: Upgrade from gettext-0.13.
32190 * m4/po.m4: Upgrade from gettext-0.13.
32191 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
32192 * m4/intmax.m4: New file, from gettext-0.13.
32193 * m4/printf-posix.m4: New file, from gettext-0.13.
32195 2003-11-29 Karl Berry <karl@gnu.org>
32197 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
32199 2003-11-25 Paul Eggert <eggert@twinsun.com>
32200 Bruno Haible <bruno@clisp.org>
32202 * lib/printf-parse.h: Don't include sys/types.h.
32203 (ARG_NONE): New macro.
32204 (char_directive): Change type of *arg_index fields to size_t.
32205 * lib/printf-parse.c: Don't include sys/types.h.
32206 (SSIZE_MAX): Remove macro.
32207 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
32208 Remove unnecessary overflow check.
32209 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
32212 2003-11-25 Bruno Haible <bruno@clisp.org>
32214 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
32216 2003-11-25 Bruno Haible <bruno@clisp.org>
32218 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
32221 2003-11-24 Paul Eggert <eggert@twinsun.com>
32223 * modules/alloca: Remove dependency on xalloc.
32225 2003-11-24 Paul Eggert <eggert@twinsun.com>
32227 * lib/alloca.c: Remove dependency on xalloc module.
32228 (xalloc_die): Remove.
32229 (memory_full) [!defined emacs]: New macro.
32230 [!defined emacs]: Don't include xalloc.h.
32231 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
32232 address arithmetic overflows. Change datatypes a bit to avoid
32235 2003-11-22 Jim Meyering <jim@meyering.net>
32237 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
32240 2003-11-21 Karl Berry <karl@gnu.org>
32242 * config/config.{sub,guess}: update from config.
32244 2003-11-18 Karl Berry <karl@gnu.org>
32246 * config/config.{sub,guess}: update from config.
32248 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
32250 2003-11-17 Paul Eggert <eggert@twinsun.com>
32252 * README: Mention that S+T cannot overflow if S is the size of
32253 an existing object and T is sufficiently small.
32255 2003-11-17 Jim Meyering <jim@meyering.net>
32257 On systems without utime and without a utimes function capable of
32258 dealing with a NULL struct utimbuf* argument, this utime replacement
32259 could -- in unusual circumstances -- leak a file descriptor.
32260 * lib/utime.c: Include <unistd.h> and <errno.h>.
32261 (utime_null): Be sure to close `fd' and to preserve errno.
32262 Reported by Geoff Collyer via Arnold Robbins.
32264 2003-11-17 Bruno Haible <bruno@clisp.org>
32266 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
32267 (Depends-on): Add xsize.
32269 2003-11-17 Bruno Haible <bruno@clisp.org>
32271 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
32273 2003-11-17 Bruno Haible <bruno@clisp.org>
32275 * lib/vasnprintf.c (alloca): Remove fallback definition.
32276 (freea): Remove definition.
32277 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
32278 Reported by Paul Eggert.
32280 2003-11-16 Paul Eggert <eggert@twinsun.com>
32281 Bruno Haible <bruno@clisp.org>
32283 Protect against address arithmetic overflow.
32284 * lib/printf-args.h: Include stddef.h.
32285 (arguments): Change type of field 'count' to size_t.
32286 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
32287 'unsigned int' where appropriate.
32288 * lib/printf-parse.h: Include sys/types.h.
32289 (char_directive): Change type of *arg_index fields to ssize_t.
32290 (char_directives): Change type of fields 'count', max_*_length to
32292 * lib/printf-parse.c: Include sys/types.h and xsize.h.
32293 (SSIZE_MAX): Define fallback value.
32294 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
32295 instead of 'int' where appropriate. Check a_allocated, d_allocated
32296 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
32297 * lib/vasnprintf.c: Include xsize.h.
32298 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
32299 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
32300 overflow. Avoid wraparound when converting a width or precision from
32303 2003-11-16 Bruno Haible <bruno@clisp.org>
32305 Update from GNU gettext.
32306 * lib/printf-parse.c: Generalize to it can be compiled for wide
32308 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
32309 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
32310 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
32311 SNPRINTF): New macros.
32312 Don't include <alloca.h> if the file is used inside libintl.
32313 (local_wcslen): New function, for Solaris 2.5.1.
32314 (VASNPRINTF): Use it instead of wcslen.
32316 2003-11-16 Bruno Haible <bruno@clisp.org>
32318 * lib/xsize.h (xmax): New function.
32319 (xsum, xsum3, xsum4): Declare as "pure" functions.
32321 2003-11-12 Paul Eggert <eggert@twinsun.com>
32323 * modules/xalloc (Files): Undo latest change, since xalloc.h
32324 no longer needs SIZE_MAX or PTRDIFF_MAX.
32326 2003-11-12 Paul Eggert <eggert@twinsun.com>
32328 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
32331 2003-11-12 Paul Eggert <eggert@twinsun.com>
32333 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
32334 "return", to pacify some unknown compiler. Problem reported
32335 by Joerg Schilling.
32337 2003-11-12 Paul Eggert <eggert@twinsun.com>
32339 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
32340 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
32341 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
32342 heuristic is just as accurate as far as we know, and it removes a
32343 dependency on size_max.m4 and ptrdiff_max.m4.
32345 2003-11-11 Bruno Haible <bruno@clisp.org>
32347 * modules/xsize (Files): Add m4/size_max.m4.
32348 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
32350 2003-11-11 Bruno Haible <bruno@clisp.org>
32352 * m4/size_max.m4: New file.
32353 * m4/ptrdiff_max.m4: New file.
32354 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
32355 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
32356 (gl_XALLOC): Invoke it.
32358 2003-11-11 Bruno Haible <bruno@clisp.org>
32360 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
32361 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
32364 2003-11-10 Paul Eggert <eggert@twinsun.com>
32366 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
32367 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
32368 rejected some allocations of exactly SIZE_MAX - 2 bytes.
32370 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
32371 not (size_t) -1, since it's defined here.
32373 2003-11-09 Karl Berry <karl@gnu.org>
32375 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
32377 2003-11-06 Paul Eggert <eggert@twinsun.com>
32379 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
32380 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
32381 Reject sizes of exactly SIZE_MAX bytes.
32382 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
32383 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
32385 2003-11-05 Bruno Haible <bruno@clisp.org>
32387 * lib/xsize.h: Include limits.h, to avoid a possible collision with
32388 SIZE_MAX defined in <limits.h> on Solaris.
32390 2003-11-04 Jim Meyering <jim@meyering.net>
32392 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
32393 variable names, rather than @VAR@.
32394 * modules/poll: Likewise.
32396 2003-11-04 Bruno Haible <bruno@clisp.org>
32398 * modules/xsize: New file.
32399 * modules/linebreak: Depend on xsize.
32400 * MODULES.html.sh (func_all_modules): Add xsize.
32402 2003-11-04 Bruno Haible <bruno@clisp.org>
32404 * m4/xsize.m4: New file.
32406 2003-11-04 Bruno Haible <bruno@clisp.org>
32408 * lib/xsize.h: New file.
32409 * lib/linebreak.c: Include xsize.h.
32410 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
32411 argument for overflow.
32412 Suggested by Paul Eggert.
32414 2003-11-03 Karl Berry <karl@gnu.org>
32416 * config/config.{guess,sub}: update from config.
32418 2003-11-03 Jim Meyering <jim@meyering.net>
32420 * modules/userspec (lib_SOURCES): Add userspec.h.
32421 (Include): Add "userspec.h".
32422 Improve description.
32424 2003-11-03 Jim Meyering <jim@meyering.net>
32426 * lib/userspec.c: Include "userspec.h".
32427 * lib/userspec.h: New file.
32429 2003-11-03 Bruno Haible <bruno@clisp.org>
32431 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
32433 2003-11-03 Bruno Haible <bruno@clisp.org>
32435 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
32436 available, to avoid (extremely rare) race condition.
32437 Suggested by Paul Eggert.
32439 2003-11-02 Karl Berry <karl@gnu.org>
32441 * config/srclist.txt (vasprintf.c): sync broken, sigh.
32443 2003-10-31 Paul Eggert <eggert@twinsun.com>
32445 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
32446 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
32447 (read_filesystem_list): Set and use me_type_malloced.
32448 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
32449 whatever the type happens to be), for brevity and consistency.
32450 Check for size calculation overflow on Alphas running OSF/1.
32452 2003-10-31 Jim Meyering <jim@meyering.net>
32454 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
32456 * lib/linebuffer.c: Include <string.h> for declaration of memset.
32458 2003-10-30 Paul Eggert <eggert@twinsun.com>
32459 Bruno Haible <bruno@clisp.org>
32461 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
32462 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
32464 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
32466 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
32467 netbsd*-gnu*. Suggested by Robert Millan.
32469 2003-10-29 Paul Eggert <eggert@twinsun.com>
32471 * modules/group-member: Depend on stdbool.
32473 2003-10-29 Paul Eggert <eggert@twinsun.com>
32475 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
32477 2003-10-29 Paul Eggert <eggert@twinsun.com>
32479 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
32480 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
32481 after the 'gnu' in these cases. This fixes some bugs in the
32482 previous change, and is based on suggestions by Robert Millan.
32484 2003-10-29 Paul Eggert <eggert@twinsun.com>
32486 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
32487 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
32489 * lib/quotearg.c (quotearg_n_options): Use it.
32490 * lib/group-member.c: Include <stdbool.h>.
32491 (free_group_info): Arg is now const *; don't free arg.
32492 (get_group_info): Now returns bool and accepts struct group_info *,
32493 rather than returning a malloc'ed struct group_info *.
32494 All uses changed. Check for overflow in internal size calculation.
32496 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
32497 rather than xmalloc/xrealloc.
32498 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
32499 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
32500 conformance bug: the old code used a pointer after freeing the
32501 storage that it addressed.
32502 * lib/hash.c (hash_initialize): Simplify the code by using
32503 xalloc_oversized rather than doing it by hand.
32504 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
32505 the buffer preserved. Use free and xmalloc instead.
32506 * lib/quotearg.c (quotearg_n_options): Likewise.
32507 Use a simpler test for size overflow. Don't use xalloc_oversized
32508 because unsigned int might be wider than size_t (!); this suggests
32509 that we should switch from unsigned int to size_t for slot numbers.
32511 2003-10-28 Paul Eggert <eggert@twinsun.com>
32513 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
32514 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
32515 NetBSD kernels. Requested by Richard Stallman.
32517 2003-10-27 Paul Eggert <eggert@twinsun.com>
32519 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
32520 to allocate the returned structure. Do not allocate a subarray,
32521 as x2nrealloc will do that.
32522 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
32523 instead of xnrealloc.
32524 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
32526 2003-10-27 Bruno Haible <bruno@clisp.org>
32528 * lib/stdbool_.h: Better support for BeOS.
32530 2003-10-26 Paul Eggert <eggert@twinsun.com>
32532 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
32535 2003-10-26 Paul Eggert <eggert@twinsun.com>
32537 * lib/xalloc.h (xalloc_oversized): New static inline function, for
32538 callers that want to do their own size-overflow checking. Include
32539 <stdbool.h>, since xalloc_oversized returns bool.
32540 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
32541 to use xalloc_oversized.
32543 Add two functions x2realloc, x2nrealloc, for programs that grow
32544 arrays dynamically by doubling their sizes.
32545 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
32546 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
32549 Port to C99 semantics for 'inline' of external functions.
32550 Bug reported by Bruno Haible.
32551 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
32552 with the old contents of xnmalloc.
32553 (xnmalloc, xmalloc): Use it.
32554 (xnrealloc_inline): New static inline function,
32555 with the old contents of xnrealloc.
32556 (xnrealloc, xrealloc): Use it.
32558 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
32561 2003-10-26 Karl Berry <karl@gnu.org>
32563 * config/srclist.txt (COPYING.DOC): no longer available from
32564 /gd/gnuorg; don't know where the ultimate source is.
32566 2003-10-25 Paul Eggert <eggert@twinsun.com>
32568 Fix several address-calculation bugs in the hash modules,
32569 plus some minor code cleanup.
32571 * lib/hash.h: Include <stdbool.h>, for bool.
32572 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
32573 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
32574 hash_get_n_entries, hash_get_max_bucket_length,
32575 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
32576 hash_rehash): Use size_t rather than unsigned.
32577 * lib/hash.c (struct hash_table, hash_get_n_buckets,
32578 hash_get_n_buckets_used, hash_get_n_entries,
32579 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
32580 hash_get_entries, hash_do_for_each, hash_string, is_prime,
32581 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
32583 (SIZE_MAX): Define if not defined.
32584 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
32585 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
32587 Use const * when possible.
32588 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
32589 (check_tuning): Fix bug: if tuning parameters were very close to
32590 0 or 1, rounding errors could have caused subscript violations.
32591 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
32592 (hash_initialize): Add 'fail:' label
32593 to free table and return NULL, and use it to simplify code.
32594 Use calloc rather than clearing the storage ourself.
32595 (hash_initialize, hash_rehash): Check for arithmetic overflow in
32596 buffer size calculations.
32597 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
32598 Include <stddef.h>, for size_t.
32599 * lib/hash-pjw.c (hash_pjw): Likewise.
32600 Switch to method described by Bruno Haible.
32601 Include <limits.h>, for CHAR_BIT.
32602 (SIZE_BITS): New macro.
32604 2003-10-23 Paul Eggert <eggert@twinsun.com>
32606 * m4/getline.m4 (AM_FUNC_GETLINE):
32607 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
32608 hosts. Problem reported by Derek Robert Price in
32609 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
32610 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
32611 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
32613 2003-10-21 Paul Eggert <eggert@twinsun.com>
32615 * lib/getndelim2.c (getndelim2): When size calculation overflows,
32616 ceiling the allocation at NMAX bytes rather than silently
32617 discarding input bytes before NMAX is reached. This makes
32618 a difference only if NMAX exceeds SIZE_MAX / 2.
32620 * lib/obstack.c: Merge from glibc.
32621 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
32622 Add libc_hidden_def (_obstack_newchunk).
32623 (_obstack_free) [! defined _LIBC]: Remove.
32624 [defined _LIBC]: Make a strong alias from obstack_free, rather than
32625 a clone of the function body.
32626 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
32627 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
32629 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
32631 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
32634 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
32635 (obstack_ptr_grow_fast, obstack_int_grow_fast):
32636 Don't use lvalue casts, as GCC plans to remove support for them
32637 in GCC 3.5. Reported by Joseph S. Myers. This bug
32638 was also present in the non-GCC version, indicating that this
32639 code had always been buggy and had never been widely used.
32640 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
32641 Use the fast variant of each macro, rather than copying the
32642 definiens of the fast variant; that way, we'll be more likely to
32643 catch future bugs in the fast variants.
32645 2003-10-20 Bruno Haible <bruno@clisp.org>
32647 * modules/wait-process: New file.
32648 * MODULES.html.sh (func_all_modules): Add wait-process.
32650 2003-10-20 Bruno Haible <bruno@clisp.org>
32652 * m4/wait-process.m4: New file.
32654 2003-10-20 Bruno Haible <bruno@clisp.org>
32656 * lib/wait-process.h: New file, from GNU gettext.
32657 * lib/wait-process.c: New file, from GNU gettext.
32659 2003-10-19 Jim Meyering <jim@meyering.net>
32661 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
32664 2003-10-18 Karl Berry <karl@gnu.org>
32666 * config/config.guess: update from config.
32668 2003-10-16 Paul Eggert <eggert@twinsun.com>
32670 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
32671 (getgroups): First arg is int, not size_t.
32672 Don't let 'free' mangle errno.
32674 2003-10-16 Paul Eggert <eggert@twinsun.com>
32676 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
32678 2003-10-16 Karl Berry <karl@gnu.org>
32680 * config/config.{guess,sub}: update from config.
32682 2003-10-16 Jim Meyering <jim@meyering.net>
32684 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
32687 2003-10-15 Paul Eggert <eggert@twinsun.com>
32689 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
32690 (SIZE_MAX): Remove.
32691 (new_exclude, add_exclude_file): Initial size no longer needs to
32693 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
32694 our own address arithmetic overflow checking.
32696 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
32697 (fnmatch): Do not alloca more than 2000 wide characters;
32698 instead, use malloc for large buffers.
32699 Check for address arithmetic overflow, and return -1
32700 with errno set to ENOMEM in that case.
32701 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
32702 (NEW_PATTERN): Do not alloca more than 8000 bytes;
32703 instead, return -1. Check for address arithmetic overflow.
32705 2003-10-14 Paul Eggert <eggert@twinsun.com>
32707 Handle invalid suffixes and overflow independently, so that
32708 callers can treat them independently as needed. Fix some bugs in
32709 suffix handling, e.g., "100k@" was not diagnosed as an invalid
32710 suffix for a human-readable blocksize. The major caller-visible
32711 change is the addition of a new
32712 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
32713 that both overflow and suffix chars were found.
32715 * lib/human.c (humblock): Don't check separately for invalid suffix
32716 char; that is xstrtoumax's job (now that its bug is fixed).
32717 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
32718 INTMAX_MAX]: New macros.
32719 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
32720 TYPE_MAXIMUM): New macros.
32721 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
32722 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
32723 if overflow occurs, as it's what __strtol does and it's more useful
32725 (__xstrtol): If __strtol reports some error other than ERANGE,
32726 reflect it to the caller as LONGINT_INVALID. If it reports
32727 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
32728 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
32729 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
32731 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
32732 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
32733 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
32734 [defined UINTMAX_MAX]: New macros.
32736 2003-10-14 Bruno Haible <bruno@clisp.org>
32738 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
32740 2003-10-14 Bruno Haible <bruno@clisp.org>
32742 * m4/sig_atomic_t: New file, from GNU gettext.
32743 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
32745 2003-10-14 Bruno Haible <bruno@clisp.org>
32747 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
32748 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
32749 Also use volatile where needed.
32751 2003-10-12 Paul Eggert <eggert@twinsun.com>
32753 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
32754 Change maintainer from Bruno Haible to 'all'.
32756 2003-10-12 Paul Eggert <eggert@twinsun.com>
32758 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
32760 2003-10-12 Paul Eggert <eggert@twinsun.com>
32762 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
32763 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
32764 and define in terms of the other primitives.
32765 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
32766 (SIZE_MAX): Define if not already defined.
32767 (array_size_overflow): New function.
32768 (xalloc_die): Abort instead of exiting if 'error' returns.
32769 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
32770 (xmalloc, xrealloc): Use them.
32771 (xcalloc): Check for address arithmetic overflow.
32772 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
32773 a bit faster than strcpy.
32775 2003-10-10 Simon Josefsson <jas@extundo.com>
32777 * modules/argp (Depends-on): Add restrict and strcase.
32779 2003-10-10 Simon Josefsson <jas@extundo.com>
32781 * m4/argp.m4: Add AC_C_INLINE.
32783 2003-10-08 Paul Eggert <eggert@twinsun.com>
32785 Merge getpass from libc, plus a few fixes.
32787 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
32788 Include <stdbool.h>.
32789 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
32790 __fsetlocking to empty.
32791 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
32792 do include <bits/libc-lock.h>.
32793 Do not include <fcntl.h>; not needed.
32794 [_LIBC]: Include <wchar.h>.
32795 (NOTCANCEL_MODE): New macro.
32796 (flockfile, funlockfile) [_LIBC]: New macros.
32797 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
32798 [!_LIBC]: New macros.
32799 (call_fclose): New function.
32800 (getpass): Use it. Save tty stream separately; this simplifies the
32801 code and makes it more reliable if stdin happens to equal stdout.
32802 Invoke __fsetlocking on tty.
32803 Handle thread cancellation if needed.
32804 Namespace cleanup (use __tcgetattr, __getline).
32805 Use bool for Booleans.
32806 [USE_IN_LIBIO]: Handle wide streams.
32807 [!_LIBC]: Unconditionally do the fseek, since we don't know what
32808 stream might go where.
32810 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
32811 doesn't have to include <stdio.h> before us.
32812 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
32813 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
32814 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
32815 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
32816 if not declared, so that we can use getpass.c code from libc without
32818 (flockfile, ftrylockfile, funlockfile): New macros.
32820 2003-10-08 Paul Eggert <eggert@twinsun.com>
32822 * modules/getpass: Depend on stdbool.
32824 2003-10-08 Paul Eggert <eggert@twinsun.com>
32826 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
32828 2003-10-07 Karl Berry <karl@gnu.org>
32830 * config/config.{guess,sub}: update from config.
32832 2003-10-06 Jim Meyering <jim@meyering.net>
32833 Bruno Haible <bruno@clisp.org>
32835 This lets translators provide better translations for the
32836 "Written by ..." part of --version output.
32837 * lib/version-etc.h: Include stdarg.h.
32838 (version_etc_copyright): Declare as readonly.
32839 (version_etc): Make this function variadic with a NULL-terminated list
32840 of author name strings.
32841 (version_etc_va): New declaration.
32842 * lib/version-etc.c: Include stdarg.h, stdlib.h.
32843 (version_etc_copyright): Declare as readonly.
32844 (version_etc_va): New function. Provide a different translatable string
32845 for each possible number of authors < 10. Abbreviate when there are 10
32847 (version_etc): Make this function variadic. Call version_etc_va.
32848 Suggestion from Gary V. Vaughan.
32850 * lib/long-options.h (parse_long_options): Change prototype: the
32851 authors string is moved to the end and becomes variadic.
32852 * lib/long-options.c: Include stdarg.h.
32853 (parse_long_options): Make this function variadic, too.
32854 Call version_etc_va, not version_etc.
32856 2003-10-06 Bruno Haible <bruno@clisp.org>
32858 * modules/version-etc-2: Remove file.
32859 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
32861 2003-10-06 Bruno Haible <bruno@clisp.org>
32863 * modules/fatal-signal: New file.
32864 * MODULES.html.sh (func_all_modules): Add fatal-signal.
32866 2003-10-06 Bruno Haible <bruno@clisp.org>
32868 * m4/fatal-signal.m4: New file.
32869 * m4/signalblocking.m4: New file, from GNU gettext.
32871 2003-10-06 Bruno Haible <bruno@clisp.org>
32873 * lib/version-etc-2.h: Remove file.
32874 * lib/version-etc-2.c: Remove file.
32876 2003-10-06 Bruno Haible <bruno@clisp.org>
32878 * lib/fatal-signal.h: New file, from GNU gettext.
32879 * lib/fatal-signal.c: New file, from GNU gettext.
32881 2003-10-05 Paul Eggert <eggert@twinsun.com>
32883 * README: Rework advice for preventing empty .o files.
32884 Don't recommend ELIDE constructs. Recommend <stddef.h>,
32887 2003-10-04 Karl Berry <karl@gnu.org>
32889 * lib/argp*: update from libc.
32891 2003-10-04 Karl Berry <karl@gnu.org>
32893 * config/config.{guess,sub}: update from config.
32895 2003-10-02 Bruno Haible <bruno@clisp.org>
32897 * modules/lchown (Include): Add lchown.h.
32898 * modules/time_r (Include): Use "..." syntax.
32899 * modules/xgetdomainname (Include): Add xgetdomainname.h.
32901 2003-10-01 Simon Josefsson <jas@extundo.com>
32903 * MODULES.html.sh (func_all_modules): Move gethostname from section
32904 'based on' to section 'lacking' POSIX:2001.
32906 2003-10-01 Larry Jones <lawrence.jones@eds.com>
32908 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
32909 to output mode on the same stream.
32911 2003-09-29 Paul Eggert <eggert@twinsun.com>
32913 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
32914 Fix arg typo in previous patch.
32916 2003-09-28 Jim Meyering <jim@meyering.net>
32918 * lib/error.c: Correct cpp indentation.
32920 2003-09-27 Paul Eggert <eggert@twinsun.com>
32922 * modules/free: New file.
32924 2003-09-27 Paul Eggert <eggert@twinsun.com>
32926 * m4/free.m4: New file.
32928 2003-09-27 Paul Eggert <eggert@twinsun.com>
32930 * lib/minmax.h (MIN, MAX)
32931 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
32932 Omit the special code that used __typeof__, since we worry that
32933 it could be more trouble than it's worth. See:
32934 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
32935 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
32937 * lib/free.c: New file.
32939 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
32941 Trivial fixes to Makefile.am parts of module listings.
32942 * modules/strstr: Append strstr.h to lib_SOURCES.
32943 * modules/strcase: Likewise, for strcase.h.
32945 2003-09-27 Karl Berry <karl@gnu.org>
32947 * config/mkinstalldirs: update from automake.
32949 2003-09-26 Paul Eggert <eggert@twinsun.com>
32951 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
32952 (error_tail): Do not loop, reallocating temporary buffer, since
32953 the output cannot contain more wide characters than the input
32954 contains bytes, the size must be big enough already. This avoids
32955 one potential size overflow calculation. Check for size overflow
32956 when calculating temporary buffer size. Free temporary buffer
32957 when done, if it was allocated with malloc; this plugs a memory
32958 leak. Remove casts from void * to pointers, that are no longer
32959 needed now that we're assuming C89 or better.
32961 Merge error changes from glibc.
32963 * lib/error.c, error.h: Update copyright notice header to match glibc.
32964 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
32965 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
32966 Disable cancellation while printing error.
32967 * lib/error.h: Prepend __ to parameter names.
32969 2003-09-26 Jim Meyering <jim@meyering.net>
32971 * lib/error.c (error_tail): Move some declarations
32972 into inner scope where the local variables are used.
32974 2003-09-26 Bruno Haible <bruno@clisp.org>
32976 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
32978 Don't define stpncpy through config.h; it's now done through stpncpy.h.
32980 2003-09-26 Bruno Haible <bruno@clisp.org>
32982 * lib/stpncpy.h (gnu_stpncpy): New declaration.
32983 (stpncpy): Define as alias for gnu_stpncpy.
32984 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
32986 2003-09-25 Simon Josefsson <jas@extundo.com>
32988 * lib/xgetdomainname.h: New file.
32989 * lib/xgetdomainname.c: New file.
32991 2003-09-25 Simon Josefsson <jas@extundo.com>
32992 Bruno Haible <bruno@clisp.org>
32994 * modules/getdomainname: New file.
32995 * modules/xgetdomainname: New file.
32996 * MODULES.html.sh (func_all_modules): Add getdomainname,
32999 2003-09-25 Simon Josefsson <jas@extundo.com>
33000 Bruno Haible <bruno@clisp.org>
33002 * m4/getdomainname.m4: New file.
33004 2003-09-25 Simon Josefsson <jas@extundo.com>
33005 Bruno Haible <bruno@clisp.org>
33007 * lib/getdomainname.h: New file.
33008 * lib/getdomainname.c: New file.
33010 2003-09-25 Karl Berry <karl@gnu.org>
33012 * lib/argp-fmtstream.c, argp-help.c: update from libc.
33014 2003-09-25 Karl Berry <karl@gnu.org>
33016 * config/install-sh: update from automake.
33018 2003-09-25 Bruno Haible <bruno@clisp.org>
33020 * modules/version-etc-2: New file, from modules/version-etc with
33022 * MODULES.html.sh (func_all_modules): Add version-etc-2.
33024 2003-09-25 Bruno Haible <bruno@clisp.org>
33026 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
33027 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
33029 2003-09-24 Simon Josefsson <jas@extundo.com>
33031 * modules/xgethostname: Add xgethostname.h.
33033 2003-09-24 Paul Eggert <eggert@twinsun.com>
33035 * lib/linebuffer.c (freebuffer): Don't free the argument, just
33036 the buffer associated with the argument. Bug reported by
33039 2003-09-24 Paul Eggert <eggert@twinsun.com>
33041 * README: Document assumptions that 'int' is at least 32 bits
33042 wide, that integer arithmetic is 2's complement without overflow,
33043 that there are no holes in integer values, that adding sizes of
33044 two nonoverlapping objects can't overflow, and that all-bits-zero
33045 yields scalar zero. Fix spelling and capitalization typos.
33047 2003-09-19 Karl Berry <karl@gnu.org>
33049 * lib/argp.h: update from libc.
33051 2003-09-17 Paul Eggert <eggert@twinsun.com>
33053 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
33054 to avoid spurious warnings like "AC_RUN_IFELSE was called before
33055 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
33057 2003-09-17 Paul Eggert <eggert@twinsun.com>
33059 * gnulib-tool: Use "test -h", not "test -L", for portability
33060 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
33061 (tags_regexp): Remove, since \| doesn't conform to POSIX.
33062 (sed_extract_prog): Issue s commands one-by-one, rather than
33063 using \| in one s command.
33065 2003-09-16 Paul Eggert <eggert@twinsun.com>
33067 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
33068 input error, instead of returning NULL the next time we are called
33069 (and therefore losing track of errno).
33071 2003-09-16 Bruno Haible <bruno@clisp.org>
33073 * gnulib-tool (func_create_testdir): Warn about duplicated
33076 2003-09-15 Paul Eggert <eggert@twinsun.com>
33078 * modules/argmatch, modules/fatal, modules/obstack,
33079 modules/xalloc, modules/xgethostname: Sort dependencies by
33080 importance, not alphabetically.
33082 2003-09-15 Paul Eggert <eggert@twinsun.com>
33084 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
33085 fails, so that the caller gets the proper errno.
33087 * lib/readutmp.c (read_utmp): Likewise.
33088 Check for fstat error. Close stream and free storage
33091 2003-09-14 Karl Berry <karl@gnu.org>
33093 * config/srclist.txt (strdup.c): disable for c89 changes.
33095 2003-09-14 Jim Meyering <jim@meyering.net>
33097 * lib/getloadavg.c: Correct cpp indentation.
33098 * lib/strdup.c: Likewise.
33099 * lib/vasnprintf.c: Likewise.
33101 2003-09-14 Bruno Haible <bruno@clisp.org>
33103 * modules/fwriteerror: New file.
33104 * MODULES.html.sh (func_all_modules): Add fwriteerror.
33106 2003-09-14 Bruno Haible <bruno@clisp.org>
33108 * lib/fwriteerror.h: New file.
33109 * lib/fwriteerror.c: New file.
33111 2003-09-12 Paul Eggert <eggert@twinsun.com>
33113 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
33114 modules/xgethostname, modules/xalloc: Depend on exit.
33116 2003-09-12 Paul Eggert <eggert@twinsun.com>
33118 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
33120 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
33121 and AC_MINIX, too, so that their extensions are available.
33123 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
33124 This macro has been superseded by gl_BACKUPFILE.
33126 More patches to assume C89 or better.
33128 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
33130 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
33132 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
33133 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
33134 Include <string.h>, <stdlib.h> unconditionally.
33135 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
33136 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
33137 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
33138 headers or for string.h.
33139 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
33142 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
33144 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
33145 * m4/userspec.m4 (gl_USERSPEC): Likewise.
33146 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
33147 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
33148 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
33149 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
33151 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
33152 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
33153 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
33155 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
33156 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
33157 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
33160 2003-09-12 Paul Eggert <eggert@twinsun.com>
33162 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
33163 * lib/obstack.c [!defined _LIBC]: Likewise.
33164 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
33165 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
33166 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
33168 More changes to assume C89 or better.
33170 * lib/error.c (error_tail): Assume vprintf.
33172 * lib/argmatch.c (getenv): Remove decl.
33173 * lib/progreloc.c (get_full_program_name): Define via prototype.
33174 * lib/setenv.c (clearenv): Likewise.
33175 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
33177 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
33178 (malloc, memcpy): Remove decls.
33179 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
33180 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
33181 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
33182 (memcpy): Remove macro.
33183 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
33184 (__P): Remove. All uses removed.
33185 (PTR): Remove. All uses changed to void *.
33186 (CHAR_BIT, NULL): Remove.
33187 (spaces, zeros, memset_space, memset_zero)
33188 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
33190 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
33191 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
33192 Define with prototype.
33193 Remove now-unnecessary prototype decl.
33194 (extra_args_spec): Assume ANSI C. All uses changed.
33195 (extra_args_spec_iso): Remove.
33196 (my_strftime, emacs_strftimeu): Define via prototype.
33197 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
33199 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
33200 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
33201 (strtoul, strtol): Remove decls.
33202 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
33204 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
33205 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
33206 (LOCALE_PARAM_PROTO): New macro.
33207 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
33208 (INTERNAL (strtol), strtol): Define with a prototype.
33209 (PARAMS): Remove. All uses removed.
33210 * lib/tempname.c: Include <string.h> unconditionally.
33211 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
33212 * lib/xgethostname.c (main): Define with a prototype.
33213 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
33214 Include <stdlib.h> unconditionally.
33215 (calloc, malloc, realloc, free): Remove decls.
33216 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
33217 Include <stdlib.h> unconditionally. Sort include file names.
33219 (xstrtod): Define with a prototype.
33220 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
33221 (strtol, strtoul): Remove decls.
33223 2003-09-11 Paul Eggert <eggert@twinsun.com>
33225 More patches to assume C89 or better.
33226 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
33227 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
33228 string.h, memchr, STDC_HEADERS.
33230 2003-09-11 Paul Eggert <eggert@twinsun.com>
33232 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
33233 Include <stdlib.h>, <string.h> unconditionally.
33234 Remove now-unnecessary cast to char *.
33235 * lib/strnlen.c: Include <string.h> unconditionally.
33236 * lib/yesno.c (yesno): Define with a prototype.
33238 2003-09-11 Bruno Haible <bruno@clisp.org>
33240 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
33242 2003-09-10 Jim Meyering <jim@meyering.net>
33244 * lib/error.c: Correct indentation of cpp directives.
33246 2003-09-10 Bruno Haible <bruno@clisp.org>
33248 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
33249 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
33250 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
33251 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
33252 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
33253 <stdlib.h> and <string.h> checks.
33254 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
33255 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
33257 2003-09-10 Bruno Haible <bruno@clisp.org>
33259 * lib/strcspn.c: Include <string.h> unconditionally.
33260 * lib/strpbrk.c: Include <string.h> unconditionally.
33261 * lib/strstr.c: Include <string.h> unconditionally.
33262 * lib/unicodeio.c: Include <string.h> unconditionally.
33263 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
33264 * lib/unsetenv.c: Likewise.
33265 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
33266 * lib/yesno.c: Include <stdlib.h> unconditionally.
33267 (rpmatch): Add prototype.
33269 2003-09-09 Paul Eggert <eggert@twinsun.com>
33271 More patches to assume C89 or better.
33272 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
33273 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
33274 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
33276 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
33278 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
33280 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
33282 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
33283 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
33284 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
33286 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
33287 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
33289 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
33291 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
33292 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
33293 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
33294 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
33295 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
33296 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
33298 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
33299 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
33300 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
33301 C headers, or for string.h.
33302 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
33303 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
33304 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
33305 headers, memory.h, stdlib.h, string.h, strings.h.
33306 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
33307 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
33308 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
33310 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
33311 headers, memory.h, string.h.
33312 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
33313 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
33315 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
33317 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
33318 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
33319 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
33320 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
33321 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
33323 2003-09-09 Paul Eggert <eggert@twinsun.com>
33327 * lib/acosl.c (main): Use a prototype.
33328 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
33331 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
33333 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
33334 (getopt, etopt_long, getopt_long_only, _getopt_internal)
33335 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
33337 * lib/getopt.c (const): Remove macro.
33338 Include <string.h> unconditionally.
33339 (my_index): Remove; all uses changed to strchr.
33340 (strlen): Remove decl.
33341 (exchange): Remove forward decl; no longer needed.
33342 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
33343 Define with prototype.
33344 * lib/getopt1.c (const): Remove macro.
33345 (getopt_long, getopt_long_only, main): Define with prototype.
33347 * lib/getugroups.c: Include <string.h> unconditionally.
33349 * lib/getusershell.c: Include <stdlib.h> unconditionally.
33350 (getusershell, setusershell, endusershell, readname, main):
33351 Define with prototypes.
33353 * lib/group-member.c: Include group-member.h first.
33354 Include <stdlib.h> unconditionally.
33356 * lib/hard-locale.c: Include hard-locale.h first.
33357 Include <stdlib.h>, <string.h> unconditionally.
33359 * lib/hash.c (free, malloc): Remove decls.
33360 Include <stdlib.h> unconditionally.
33362 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
33363 (getenv): Do not declare.
33365 * lib/idcache.c: Include <string.h> unconditionally.
33367 * lib/long-options.c: Include long-options.h first, to test interface.
33368 Include <stdlib.h> unconditionally.
33370 * lib/makepath.c: Include makepath.h first, to test interface.
33371 Include <stdlib.h> and <string.h> unconditionally.
33373 * lib/linebuffer.c: Include <stdlib.h>.
33374 (free): Remove decl.
33376 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
33377 stddef.h. rpl_malloc returns void *, not char *.
33378 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
33381 * lib/md5.h: Include <limits.h> unconditionally.
33382 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
33383 (__P): Remove; all uses removed.
33384 * lib/md5.c: Include "md5.h" first.
33385 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
33386 md5_buffer, md5_process_bytes, md5_process_block):
33387 Define with prototypes.
33388 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
33389 * lib/sha.c: Include "sha.h" first.
33390 Include <stdlib.h>, <string.h> unconditionally.
33392 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
33393 * lib/memcmp.c (__ptr_t): Likewise.
33394 * lib/memrchr.c (__ptr_t): Likewise.
33395 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
33396 Include <string.h> unconditionally.
33397 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
33398 * lib/memchr.c: Include <stdlib.h> unconditionally.
33399 * lib/memchr.c (LONG_MAX): Remove.
33400 * lib/memrchr.c (LONG_MAX): Likewise.
33401 * lib/memchr.c (__memchr): Define via a prototype.
33402 * lib/memrchr.c (__memrchr): Likewise.
33403 * lib/memcmp.c (__P): Remove, and remove all uses.
33404 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
33405 Remove forward decls; no longer needed.
33406 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
33407 Use types required by C89 in prototype.
33409 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
33410 * lib/savedir.c: Likewise.
33411 * lib/mkdir.c (free): Remove decl.
33412 * lib/rmdir.c (rmdir): Define with a prototype.
33413 * lib/savedir.c: Include savedir.h first, to test interface.
33415 * lib/mktime.c (STDC_HEADERS): Remove.
33416 Include <stdlib.h>, <string.h> unconditionally.
33418 * lib/modechange.c: Include <stdlib.h> unconditionally.
33419 (malloc): Remove decl.
33421 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
33422 (free): Remove decl.
33424 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
33425 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
33426 (This type really should be intptr_t, but that's a C99ism.)
33427 (_obstack_memcpy): Remove: all uses changed to memcpy.
33428 Include <string.h> unconditionally.
33429 (struct obstack): Assume __STDC__ for types of members
33430 chunkfun, freefun, extra_arg.
33431 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
33432 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
33433 obstack_begin, obstack_specify_allocation,
33434 obstack_specify_allocation_with_arg, obstack_chunkfun,
33435 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
33436 Remove unprototyped decls and the macros that use them.
33437 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
33438 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
33439 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
33440 (defined __STDC__ && __STDC__)]:
33441 Remove nonprototyped code.
33442 Include <stdlib.h> unconditionally.
33443 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
33444 _obstack_allocated_p, _obstack_free, obstack_free,
33445 _obstack_memory_used, print_and_abort):
33446 Define using prototypes.
33447 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
33448 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
33449 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
33450 obstack_next_free, obstack_object_size, obstack_room) [0]:
33451 Remove unused, unprototyped code.
33453 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
33455 * lib/physmem.c (physmem_total, physmem_available, main): Define
33458 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
33459 (main): Define with a prototype.
33461 * lib/posixver.c (getenv): Remove decl.
33463 * lib/putenv.c (malloc): Returns void *, not char *.
33464 Include <string.h> unconditionally.
33465 (strchr, memcpy, NULL): Do not define.
33467 * lib/readtokens.c: Include readtokens.h first, to test interface.
33468 Include <stdlib.h>, <string.h> unconditionally.
33469 (init_tokenbuffer): Define with a prototype.
33471 * lib/regex.c (PARAMS): Remove. All uses removed.
33472 All uses of _RE_ARGS removed, too.
33473 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
33475 (bzero): Assume memset exists.
33476 (memcmp, memcpy, NULL): Remove.
33477 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
33478 char, or assignments to local vars of type signed char.
33479 (init_syntax_once, PREFIX(extract_number_and_incr),
33480 PREFIX(print_partial_compiled_pattern),
33481 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
33482 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
33483 PREFIX(regex_grow_registers), PREFIX(regex_compile),
33484 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
33485 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
33486 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
33487 wcs_compile_range, byte_compile_range, truncate_wchar,
33488 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
33489 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
33490 count_mbs_length, wcs_re_match_2_internal,
33491 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
33492 PREFIX(alt_match_null_string_p),
33493 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
33494 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
33495 regfree, PREFIX(extract_number)): Define with prototype. Remove
33496 now-unnecessary declaration, if any.
33497 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
33499 Remove now-unnecessary casts among pointer types.
33500 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
33502 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
33503 (free): Remove decl.
33505 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
33507 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
33508 (free): Remove decl.
33510 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
33511 * lib/xgetcwd.c: Likewise.
33513 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
33514 (free): Remove decl.
33516 * lib/strchrnul.c (strchrnul): Define with a prototype.
33517 Fix bug: c_in was not converted to char before searching.
33519 The following changes are not K&R related:
33521 * lib/group-member.h: Include <sys/types.h>, so that this file is
33523 * lib/makepath.h: Likewise.
33525 * lib/getusershell.c (readname, default_index, line_size, readname):
33526 Use size_t, not int, for sizes.
33527 (readname): If the size overflows, report an error instead of
33530 2003-09-09 Paul Eggert <eggert@twinsun.com>
33532 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
33535 2003-09-09 Paul Eggert <eggert@twinsun.com>
33537 * README: New section: portability guidelines.
33539 2003-09-09 Derek Robert Price <derek@ximbiot.com>
33541 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
33544 2003-09-09 Derek Robert Price <derek@ximbiot.com>
33546 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
33548 2003-09-08 Paul Eggert <eggert@twinsun.com>
33550 Assume C89 or better; remove K&R cruft.
33551 A few of these changes were first proposed by Derek Robert Price
33552 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
33554 * lib/addext.c: Include <string.h> unconditionally.
33555 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
33556 Don't declare getenv or malloc.
33558 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
33559 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
33561 (find_stack_direction, alloca): Use prototypes.
33563 * lib/atexit.c (atexit): Define using a prototype.
33565 * lib/basename.c, dirname.c, stripslash.c:
33566 Include <string.h> unconditionally.
33568 * lib/bcopy.c: Include <stddef.h>.
33569 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
33571 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
33573 * lib/error.h (error, error_at_line, error_print_progname)
33574 [! (defined (__STDC__) && __STDC__)]: Remove decls.
33575 * lib/error.c: Include error.h first, to check interface.
33576 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
33577 (VA_START): Remove; all uses changeed to va_start.
33578 (exit, strerror): Remove decls.
33579 (error_print_progname): Prototype uncondionally.
33580 Don't include <errno.h>; no longer needed.
33581 (private_strerror): Remove.
33582 (error_tail): Always define.
33583 (error, error_at_line): Assume C89 or better; always use prototypes.
33584 * lib/fatal.c: Include "fatal.h" first, to test interface.
33585 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
33586 (VA_START): Remove; all uses changed to va_start.
33587 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
33589 (exit): Remove decl.
33590 (fatal): Prototype unconditionally. Assume va_start works.
33591 Abort at end, to pacify gcc.
33593 * lib/euidaccess.c (main): Define with a prototype.
33595 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
33597 * lib/exitfail.c: Include <stdlib.h> unconditionally.
33599 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
33601 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
33602 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
33603 (getenv): Remove decl.
33604 (fnmatch): Define using a prototype.
33605 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
33606 (FCT): Define using a prototype.
33608 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
33610 * lib/gethostname.c: Include <stddef.h>.
33611 (gethostname): Define with prototype. Length is size_t, not int.
33613 2003-09-08 Paul Eggert <eggert@twinsun.com>
33615 Assume C89 or better; remove K&R cruft.
33616 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
33617 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
33618 string.h, getenv, malloc.
33619 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
33621 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
33622 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
33623 do not check for strerror.
33624 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
33625 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
33626 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
33627 do not check for doprnt or vprintf.
33628 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
33629 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
33631 2003-09-08 Paul Eggert <eggert@twinsun.com>
33633 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
33634 getversion.c should have been removed then, but was accidentally
33637 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
33638 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
33640 2003-09-08 Karl Berry <karl@gnu.org>
33642 * config/config.sub, config.guess, srclistvars.sh: update from savannah
33643 config, forget about prep.
33645 * config/depcomp, missing: update from automake.
33647 2003-09-07 Paul Eggert <eggert@twinsun.com>
33649 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
33650 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
33652 2003-09-07 Paul Eggert <eggert@twinsun.com>
33654 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
33655 copy_tm_result. Bug reported by Simon Josefsson in
33656 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
33658 2003-09-06 Paul Eggert <eggert@twinsun.com>
33660 * m4/time_r.m4: New file.
33661 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
33662 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
33663 is. Check for timegm declaration.
33664 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
33665 Do not check for gmtime_r.
33666 Replace mktime if __mktime_internal does not exist and if mktime
33667 hasn't been replaced already.
33669 2003-09-06 Paul Eggert <eggert@twinsun.com>
33671 * lib/time_r.c, lib/time_r.h: New files.
33673 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
33675 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
33676 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
33678 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
33680 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
33681 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
33682 Include <time_r.h>.
33684 * lib/timegm.c: Switch to glibc implementation, with the following
33686 [defined HAVE_CONFIG_H]: Include <config.h>.
33687 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
33688 (__mktime_internal) [!defined _LIBC]: New decl.
33689 (__gmtime_r) [!defined _LIBC]: New macro and function.
33690 (timegm): Use a prototype, since gnulib assumes C89.
33691 Do not bother declaring tmp to be const, as it's not really usefu.
33692 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
33693 (timegm): Declare only if HAVE_DECL_TIMEGM.
33695 2003-09-06 Paul Eggert <eggert@twinsun.com>
33697 * MODULES.html.sh (func_all_modules): Add time_r.
33698 * modules/time_r: New file.
33699 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
33700 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
33702 2003-09-03 Paul Eggert <eggert@twinsun.com>
33704 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
33705 Bug reported by Lute Kamstra in
33706 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
33708 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
33709 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
33710 course with correspondingly smaller numbers for tomorrow and
33711 yesterday. From Tadayoshi Funaba. Originally installed into
33712 sh-utils on 1999-08-07, but the patch got lost (I guess during the
33715 2003-08-31 Simon Josefsson <jas@extundo.com>
33717 * modules/timegm: New file.
33718 * MODULES.html.sh (func_all_modules): Add timegm.
33720 2003-08-31 Simon Josefsson <jas@extundo.com>
33722 * m4/timegm.m4: New file.
33724 2003-08-31 Simon Josefsson <jas@extundo.com>
33726 * lib/timegm.h: New file.
33727 * lib/timegm.c: New file. Based on
33728 wget-1.8.2/src/http.c:mktime_from_utc.
33730 2003-08-31 Karl Berry <karl@gnu.org>
33732 * lib/argp.h: update from libc.
33734 2003-08-28 Bruno Haible <bruno@clisp.org>
33736 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
33737 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
33738 followed by '#define fnmatch fnmatch_posix' gives an error.
33740 2003-08-28 Bruno Haible <bruno@clisp.org>
33742 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
33743 warning on QNX, which defines O_BINARY to 000000.
33745 2003-08-27 Jim Meyering <jim@meyering.net>
33747 * m4/mkstemp.m4: Require that the system mkstemp be able to create
33748 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
33749 would fail after 32. Reported by Danny Levinson. Details here:
33750 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
33752 2003-08-24 Bruno Haible <bruno@clisp.org>
33754 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
33755 MSVC7 <stdio.h> is included later.
33757 2003-08-22 Simon Josefsson <jas@extundo.com>
33759 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
33761 2003-08-20 Karl Berry <karl@gnu.org>
33763 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
33765 2003-08-20 Bruno Haible <bruno@clisp.org>
33767 * modules/progname: New file.
33768 * MODULES.html.sh (func_all_modules): Add progname.
33770 2003-08-20 Bruno Haible <bruno@clisp.org>
33772 * lib/progname.h: New file, from GNU gettext.
33773 * lib/progname.c: New file, from GNU gettext.
33774 * lib/progreloc.c: New file, from GNU gettext.
33776 2003-08-19 Jim Meyering <jim@meyering.net>
33778 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
33779 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
33781 2003-08-19 Bruno Haible <bruno@clisp.org>
33783 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
33786 2003-08-19 Bruno Haible <bruno@clisp.org>
33788 * lib/xstrdup.c: Assume <string.h> exists.
33790 2003-08-18 Paul Eggert <eggert@twinsun.com>
33792 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
33795 2003-08-18 Jim Meyering <jim@meyering.net>
33797 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
33798 * m4/lib-ld.m4: Likewise.
33800 2003-08-18 Jim Meyering <jim@meyering.net>
33802 * lib/setenv.h: Indent nested cpp directive.
33803 * lib/vasnprintf.c: Remove trailing blanks.
33805 2003-08-17 Simon Josefsson <jas@extundo.com>
33807 * modules/xstrndup: New file.
33808 * MODULES.html.sh (func_all_modules): Add xstrndup.
33810 2003-08-17 Simon Josefsson <jas@extundo.com>
33812 * modules/argp: Fix autoconf macro name. Add more dependencies.
33814 2003-08-17 Simon Josefsson <jas@extundo.com>
33816 * m4/xstrndup.m4: New file.
33818 2003-08-17 Simon Josefsson <jas@extundo.com>
33820 * m4/argp.m4: New file.
33822 2003-08-17 Simon Josefsson <jas@extundo.com>
33823 Bruno Haible <bruno@clisp.org>
33825 * lib/xstrndup.h: New file.
33826 * lib/xstrndup.c: New file.
33828 2003-08-17 Bruno Haible <bruno@clisp.org>
33830 * modules/strndup (Files, Include): Add lib/strndup.h.
33832 2003-08-17 Bruno Haible <bruno@clisp.org>
33834 * modules/euidaccess (Files): Add lib/euidaccess.h.
33836 2003-08-17 Bruno Haible <bruno@clisp.org>
33838 * lib/strndup.h: New file.
33840 2003-08-17 Bruno Haible <bruno@clisp.org>
33842 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
33843 like AC_GNU_SOURCE.
33844 * modules/extensions (configure.ac): Comment out the invocation of
33845 gl_USE_SYSTEM_EXTENSIONS.
33847 2003-08-16 Paul Eggert <eggert@twinsun.com>
33849 Merges from coreutils, etc.
33850 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
33851 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
33852 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
33854 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
33855 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
33857 2003-08-16 Paul Eggert <eggert@twinsun.com>
33859 Document merge from coreutils.
33860 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
33861 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
33862 * modules/utime: Add m4/utimes-null.m4.
33864 2003-08-16 Paul Eggert <eggert@twinsun.com>
33866 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
33867 space, undoing this 2003-08-12 change:
33868 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
33870 2003-08-16 Paul Eggert <eggert@twinsun.com>
33872 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
33873 strtoul.c from libc, undoing this 2003-08-12 change:
33874 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
33876 2003-08-16 Jim Meyering <jim@meyering.net>
33878 Merges from coreutils.
33879 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
33880 prefix. Adjust cache variables similarly. Create 500 rather than
33881 just 300 files, to exercise bug on Darwin6.5, too.
33882 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
33884 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
33885 AM_SYS_POSIX_TERMIOS.
33886 Reported by mkc@mathdogs.com.
33887 Also change use of $am_cv_sys_posix_termios
33888 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
33889 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
33890 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
33891 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
33892 in /proc/mounts until it finds one with matching device number. This
33893 is unnecessary when the FILE argument *is* a mount point. No stat call
33894 is necessary in that case. So, disable the statvfs-testing code on
33895 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
33896 as RedHat bug# 84846.
33897 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
33898 to 1MB, so as not to render systems with no stack size limit (e.g.,
33899 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
33900 Include <unistd.h>. On some systems,
33901 it is required for the definition of _SC_PAGESIZE.
33903 2003-08-16 Jim Meyering <jim@meyering.net>
33905 Merge from coreutils.
33906 * lib/xstrtoimax.c: #else #if -> #elif.
33907 * lib/xstrtoumax.c: Likewise.
33909 2003-08-16 Jim Meyering <jim@meyering.net>
33911 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
33912 * m4/utimes.m4: Removed.
33913 * m4/utimes-null.m4: Renamed from utimes.m4.
33915 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
33916 to 1MB, so as not to render systems with no stack size limit (e.g.,
33917 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
33918 Include <unistd.h>. On some systems,
33919 it is required for the definition of _SC_PAGESIZE.
33921 2003-08-16 Jim Meyering <jim@meyering.net>
33922 and Paul Eggert <eggert@cs.ucla.edu>
33924 Merges from coreutils, etc.
33926 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
33927 using the latest version from cvs. This avoids problems with #line
33928 directives using a vendor (Sun) compiler.
33929 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
33930 Don't set GETGROUPS_LIB here; now it's
33931 done via getgroups.m4's wrapper function.
33932 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
33933 rather than just in sh-util/configure.in, so that the
33934 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
33936 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
33937 AC_FUNC_GETLOADAVG where to find getloadavg.c.
33938 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
33939 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
33940 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
33941 Remove code that is now done by the newly-required macros.
33942 Append $(EXEEXT) to DF_PROG.
33943 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
33944 Do not invoke or require the following here,
33945 since prereq.m4 or some gnulib .m4 now does this for us:
33946 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
33947 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
33948 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
33949 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
33950 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
33951 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
33952 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
33954 Do not replace the following functions, as this is now the job
33955 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
33956 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
33957 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
33958 atexit getpass, strdup, getpagesize.
33960 Do not check for the following functions, as this is now the job
33961 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
33962 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
33964 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
33965 Check for sys/sysctl.h.
33966 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
33967 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
33968 of checking for ssize_t ourselves.
33970 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
33971 Require every macro that gnulib/modules/* suggests for us.
33972 (jm_PREREQ_ADDEXT): New macro.
33973 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
33974 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
33976 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
33977 (gl_PHYSMEM): Use it.
33978 Also check for `table' function.
33979 Check for new headers and functions.
33980 Add check for sys/sysmp.h.
33981 With suggestions from Kaveh Ghazi.
33982 Ignore headers that are present but cannot be compiled. This
33983 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
33986 2003-08-15 Paul Eggert <eggert@twinsun.com>
33988 Document merge from coreutils.
33989 * modules/userspec: Depend on posixver.
33990 * modules/strftime: Depend on tzset.
33992 2003-08-15 Paul Eggert <eggert@twinsun.com>
33994 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
33995 rather than tab, after '#' in shell-script copyright notices.
33996 Suggested by Bruno Haible.
33998 2003-08-15 Paul Eggert <eggert@twinsun.com>
34000 * config/srclist-update: Use three spaces, rather than tab, after '#'
34001 in shell-script copyright notices. Suggested by Bruno Haible.
34002 Remove unnecessary parenthesization in regular expression.
34004 2003-08-15 Jim Meyering <jim@meyering.net>
34006 Merge from coreutils.
34007 * lib/xgethostname.c: Include <stdlib.h>.
34008 (xghostname): Don't exit for anything other than memory-related
34009 failure; just return NULL.
34010 * lib/userspec.c: Include "posixver.h".
34011 (parse_user_spec): Accept `.' as a separator only
34012 in pre-POSIX-200112 mode.
34013 * lib/strtoimax.c: Use #elif rather than #else #if.
34014 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
34015 Remove function, now that we can rely on a working tzset function.
34016 [!_LIBC]: Ensure that the required autoconf test has been run.
34017 [!defined _NL_CURRENT && HAVE_STRFTIME]:
34018 Use underlying_strftime for %r.
34019 * lib/sha.c: Merge in some clean-up and optimization changes from
34021 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
34022 Ensure that it is a multiple of 64.
34023 Rearrange loop exit tests so as to avoid performing an
34024 additional fread after encountering an error or EOF.
34025 * lib/realloc.c: Update copyright date.
34027 2003-08-15 Jim Meyering <jim@meyering.net>
34028 and Paul Eggert <eggert@twinsun.com>
34030 Merge from coreutils.
34031 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
34032 member but strut utmpx does not. Needed for AIX 4.3.3.
34033 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
34035 2003-08-15 Jim Meyering <jim@meyering.net>
34036 and Paul Eggert <eggert@cs.ucla.edu>
34038 Merges from coreutils, etc.
34039 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
34040 Require gl_FUNC_TZSET_CLOBBER.
34041 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
34042 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
34045 2003-08-14 Paul Eggert <eggert@twinsun.com>
34047 Help the merge from coreutils.
34048 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
34049 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
34050 * m4/tzset.m4: Use it too.
34052 2003-08-14 Paul Eggert <eggert@twinsun.com>
34054 * modules/tzset: New file.
34056 2003-08-14 Jim Meyering <jim@meyering.net>
34058 Merges from coreutils.
34059 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
34060 variable names, rather than @FNMATCH_H@.
34061 * modules/alloca: Likewise for $(ALLOCA_H).
34063 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
34064 the three copies of the literal target, `fnmatch.h'.
34065 * modules/alloca (alloca.h): Likewise.
34067 2003-08-14 Jim Meyering <jim@meyering.net>
34069 Merge from coreutils.
34070 * m4/tzset.m4: New file.
34071 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
34072 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
34073 otherwise, AIX 5.1 systems would end up using the latter.
34074 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
34075 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
34076 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
34077 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
34079 2003-08-14 Jim Meyering <jim@meyering.net>
34081 Merge from coreutils.
34082 * lib/obstack.h: Whitespace changes.
34083 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
34084 and xcalloc return values.
34085 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
34086 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
34087 hang on OSF/1 5.1 for DIR on both local and remote file systems.
34088 Reported by (and fix confirmed by) Nelson H. F. Beebe.
34089 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
34091 Use mntctl's return value to drive the entry-processing loop, since
34092 we can't rely on the value of the vmt_length member in the last
34093 entry. On some systems doing so could result in exhausting
34094 virtual memory. Based in part on a patch from Mike Jetzer.
34096 2003-08-14 Jim Meyering <jim@meyering.net>
34097 and Paul Eggert <eggert@twinsun.com>
34099 Merges from coreutils, plus other fixes.
34100 * lib/physmem.c: Merge in portability changes from gcc/libiberty
34101 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
34102 for credits and details. Thanks to Kaveh Ghazi for helping
34103 to keep these files in sync.
34104 (ARRAY_SIZE): Define it.
34105 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
34106 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
34107 (memcasecmp): Don't assume size_t fits in unsigned int.
34108 Remove casts and duplicate code.
34109 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
34110 (memcpy): Remove definition.
34111 Merge in some clean-up and optimization changes from glibc.
34112 [BLOCKSIZE]: Move definition to top of file.
34113 Ensure that it is a multiple of 64.
34114 Rearrange loop exit tests so as to avoid performing an
34115 additional fread after encountering an error or EOF.
34116 * lib/md5.h (md5_uintptr): Define.
34117 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
34118 return to the initial working directory. Preserve errno
34120 * lib/idcache.c: Include "xalloc.h".
34121 (xmalloc, xrealloc): Remove decls.
34122 (getuser): Remove casts no longer required in C89.
34123 * lib/human.c: Include stdio.h, for sprintf.
34124 * lib/group-member.c: Include "xalloc.h".
34125 (xmalloc, xrealloc): Remove decls.
34126 (get_group_info): Remove casts no longer required in C89.
34127 * lib/getusershell.c (readname): Remove casts no longer required in
34129 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
34130 * lib/getline.c: Whitespace fix, from coreutils.
34132 2003-08-13 Paul Eggert <eggert@twinsun.com>
34134 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
34137 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
34138 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
34139 Undo previous (whitespace-only) change.
34141 2003-08-13 Paul Eggert <eggert@twinsun.com>
34143 * lib/exclude.c: Include <ctype.h>
34144 (IN_CTYPE_DOMAIN): New macro.
34145 (is_space): New fn.
34146 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
34149 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
34150 Undo previous (whitespace-only) change.
34152 2003-08-13 Paul Eggert <eggert@twinsun.com>
34154 * config/srclist-update: Change update back to the old behavior,
34155 leaving whitespace alone. Use one 'sed' command rather than a
34157 (fixlicense): Now a variable, not a function.
34158 (remove_trailing_blanks): Remove.
34159 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
34160 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
34161 Undo previous (whitespace-only) change.
34163 2003-08-12 Paul Eggert <eggert@twinsun.com>
34165 Merge from coreutils.
34166 * modules/euidaccess: Add lib_SOURCES, include for new
34169 2003-08-12 Paul Eggert <eggert@twinsun.com>
34171 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
34172 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
34173 Normalize leading white space and remove trailing white space.
34175 Merge from coreutils
34176 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
34178 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
34179 0.12.1. These files are now being upgraded automatically by
34180 ../config/srclist-update.
34182 2003-08-12 Paul Eggert <eggert@twinsun.com>
34184 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
34185 Normalize leading white space and remove trailing white space.
34186 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
34187 notice, as per ../config/srclist-update.
34189 Merge from coreutils.
34190 * lib/euidaccess.h: New file.
34191 * lib/euidaccess.c: Include it.
34192 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
34193 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
34194 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
34196 2003-08-12 Paul Eggert <eggert@twinsun.com>
34198 * config/srclist-update: Add copyright notice.
34199 (remove_id_lines, remove_trailing_blanks): New constants.
34200 (fixfile): Use them to normalize spacing a bit in copied files.
34201 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
34202 Normalize leading white space and remove trailing white space.
34204 * config/texinfo.tex: Sync with texinfo.
34206 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
34207 strtoul.c from libc, to merge coreutils whitespace changes.
34209 * config/srclist.txt: Get the following m4 files from gettext:
34210 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
34211 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
34212 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
34215 2003-08-12 Karl Berry <karl@gnu.org>
34217 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
34220 2003-08-11 Paul Eggert <eggert@twinsun.com>
34222 * modules/gnu-source, m4/gnu-source.m4:
34223 Remove; we're assuming Autoconf 2.54 or later now.
34224 Suggested by Bruno Haible.
34225 * MODULES.html.sh (func_all_modules): Remove gnu-source.
34227 2003-08-11 Bruno Haible <bruno@clisp.org>
34229 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
34231 2003-08-11 Bruno Haible <bruno@clisp.org>
34233 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
34234 (vasnprintf): Use it instead of wcslen.
34236 2003-08-11 Bruno Haible <bruno@clisp.org>
34238 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
34239 value to ensure that _Bool promotes to int. Use #define for _Bool when
34240 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
34242 2003-08-10 Karl Berry <karl@gnu.org>
34244 * lib/regex.h: update from libc (whitespace fix).
34246 2003-08-09 Paul Eggert <eggert@twinsun.com>
34248 Merge some files from coreutils. These changes were
34249 originally made by Jim Meyering.
34250 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
34251 many older Unixes require this.
34252 * lib/alloca.c (alloca): Remove cast to argument of free;
34253 no longer needed in C89.
34254 * lib/alloca_.h, regex.h: Fix white space to match
34255 what GNU indent does.
34257 2003-08-09 Paul Eggert <eggert@twinsun.com>
34259 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
34260 apparently Emacs's Unicode mode got confused before my 2003-08-05
34263 2003-08-08 Paul Eggert <eggert@twinsun.com>
34265 * m4/extensions.m4: New file.
34266 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
34267 Require gl_USE_SYSTEM_EXTENSIONS.
34268 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
34269 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
34271 2003-08-08 Paul Eggert <eggert@twinsun.com>
34273 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
34274 * modules/extensions, modules/gnu-source: New files.
34275 * modules/timespec, modules/unlocked-io: Depend on extensions.
34277 2003-08-07 Paul Eggert <eggert@twinsun.com>
34279 * modules/restrict: New file.
34280 * MODULES.html.sh (func_all_modules): Add restrict.
34281 * modules/regex: Depend on restrict.
34283 2003-08-07 Paul Eggert <eggert@twinsun.com>
34285 * m4/restrict.m4: New file.
34286 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
34288 2003-08-07 Bruno Haible <bruno@clisp.org>
34290 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
34291 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
34293 2003-08-07 Bruno Haible <bruno@clisp.org>
34295 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
34296 makes the module 'getndelim2' compatible with the module 'getline'.
34298 2003-08-05 Paul Eggert <eggert@twinsun.com>
34300 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
34301 byte with "\201" to avoid glitches when editing that source file
34302 with multi-gnome-terminal.
34304 2003-08-05 Paul Eggert <eggert@twinsun.com>
34306 * lib/bumpalloc.h: Remove.
34308 2003-08-05 Paul Eggert <eggert@twinsun.com>
34310 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
34311 * modules/bumpalloc: Remove.
34313 2003-08-04 Paul Eggert <eggert@twinsun.com>
34315 * lib/getloadavg.c: Change copyright notice and spacing to conform to
34318 Merge from coreutils.
34319 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
34321 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
34322 from Karl Berry, implemented by Jim Meyering.
34323 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
34324 from Dmitry V. Levin.
34325 Remove anachronistic cast of xrealloc.
34326 * lib/fnmatch_.h (__const): Remove. Use 'const'.
34327 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
34328 type. Otherwise, it wouldn't compile with at least /bin/cc on
34329 ymp-cray-unicos9.0.2.X.
34330 Combine two mostly-identical uses of alloca into one.
34331 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
34333 2003-08-04 Dave Love <d.love@dl.ac.uk>
34337 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
34338 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
34339 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
34340 obsolete NLIST_NAME_UNION.
34341 [__GNU__]: Undef BSD and FSCALE.
34342 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
34344 2003-08-03 Paul Eggert <eggert@twinsun.com>
34346 * lib/stdbool_.h (_Bool): Make it signed char, instead of
34347 an enum type, so that it's guaranteed to promote to int. See:
34348 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
34350 2003-08-03 Karl Berry <karl@gnu.org>
34352 * config/depcomp: update from automake.
34354 2003-07-31 Paul Eggert <eggert@twinsun.com>
34356 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
34357 (strerror): Don't assume that a printable int fits in 14 bytes.
34359 2003-07-31 Bruno Haible <bruno@clisp.org>
34361 * modules/getpass-gnu: New file.
34362 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
34364 2003-07-31 Bruno Haible <bruno@clisp.org>
34366 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
34368 2003-07-24 Karl Berry <karl@gnu.org>
34370 * config/missing: update from automake.
34372 2003-07-24 Derek Robert Price <derek@ximbiot.com>
34373 Bruno Haible <bruno@clisp.org>
34375 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
34376 * lib/getline.c (getline, getdelim): Likewise.
34377 Remove _GNU_SOURCE define; now it's defined in config.h through
34380 2003-07-23 Karl Berry <karl@gnu.org>
34382 * config/config.sub: update from prep.
34384 2003-07-22 Paul Eggert <eggert@twinsun.com>
34386 * modules/xalloc (Depends-on): Add exitfail.
34387 * modules/xmemcoll: Likewise.
34389 2003-07-22 Paul Eggert <eggert@twinsun.com>
34391 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
34392 over-parenthesization in macros.
34394 Sync with coreutils.
34396 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
34399 Use `exit_failure' for xalloc and xmemcoll instead of their own
34400 private exit-failure variables.
34401 * lib/xalloc.h (xalloc_exit_failure): Remove.
34402 * lib/xmalloc.c: Likewise. Include exitfail.h.
34403 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
34404 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
34405 * lib/xmemcoll.c: Likewise. Include exitfail.h.
34406 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
34408 2003-07-20 Jim Meyering <jim@meyering.net>
34410 * modules/closeout (Depends-on): Add exitfail.
34411 Suggestion from Bruno Haible.
34413 2003-07-19 Karl Berry <karl@gnu.org>
34415 * config/config.sub: update from prep.
34417 2003-07-18 Paul Eggert <eggert@twinsun.com>
34419 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
34421 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
34422 to test that it can stand by itself. Include "exitfail.h".
34423 Clients should set exit_failure instead.
34424 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
34426 2003-07-18 Bruno Haible <bruno@clisp.org>
34428 * modules/getndelim2: New file.
34429 * modules/getline: Share files with module getndelim2.
34430 * modules/getnline: Depend on getndelim2 instead of sharing files with
34431 it. Add getnline.c to lib_SOURCES.
34432 * MODULES.html.sh (func_all_modules): Add getndelim2.
34434 2003-07-18 Bruno Haible <bruno@clisp.org>
34436 * m4/getndelim2.m4: New file.
34437 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
34438 invoke gl_PREREQ_GETNDELIM2.
34439 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
34440 gl_PREREQ_GETNDELIM2.
34441 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
34444 2003-07-18 Bruno Haible <bruno@clisp.org>
34446 * lib/getndelim2.h: New file.
34447 * lib/getndelim2.c: Make into a module of its own. Include config.h,
34449 (getndelim2): Make non-static. Change return type to ssize_t.
34450 * lib/getline.h: Change argument names.
34451 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
34452 * lib/getnline.c: Include getndelim2.h.
34454 2003-07-18 Andreas Schwab <schwab@suse.de>
34456 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
34458 2003-07-17 Karl Berry <karl@gnu.org>
34460 * config/config.sub: update from prep.
34462 2003-07-17 Bruno Haible <bruno@clisp.org>
34464 * modules/getnline: New file.
34465 * modules/getline: Add lib/getndelim2.c to source file list.
34466 * MODULES.html.sh (func_all_modules): Add getnline.
34468 2003-07-17 Bruno Haible <bruno@clisp.org>
34470 * m4/getnline.m4: New file.
34472 2003-07-17 Bruno Haible <bruno@clisp.org>
34474 * m4/Makefile.am.in: Remove file.
34475 * m4/Makefile.am: Remove file.
34476 * m4/Makefile.in: Remove file.
34478 2003-07-17 Bruno Haible <bruno@clisp.org>
34480 * lib/getnline.h: New file.
34481 * lib/getnline.c: New file.
34482 * lib/getndelim2.c: New file, extracted from getline.c.
34483 (getndelim2): Renamed from getdelim2, with added nmax argument.
34484 * lib/getline.c: Include getndelim2.c.
34485 (getdelim2): Moved out to getndelim2.c.
34486 (getline, getdelim): Update.
34488 2003-07-17 Bruno Haible <bruno@clisp.org>
34490 * lib/Makefile.am: Remove file.
34491 * lib/Makefile.in: Remove file.
34493 2003-07-17 Bruno Haible <bruno@clisp.org>
34495 * configure.in: Remove file.
34496 * Makefile.in: Remove file.
34498 2003-07-17 Bruno Haible <bruno@clisp.org>
34500 * MODULES.html.sh: Put the </BODY> right before </HTML>.
34502 2003-07-16 Karl Berry <karl@gnu.org>
34504 * config/srclist-update: was running fixlicense twice, which caused
34505 texinfo.tex to be nullified for some reason. Simplify,
34506 $gplsrc is no longer needed as far as I can see?
34508 2003-07-16 Jim Meyering <jim@meyering.net>
34510 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
34512 2003-07-15 Paul Eggert <eggert@twinsun.com>
34514 * config/srclist.txt: Get the following files from gettext-runtime/intl
34515 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
34516 ref-del.sin. From Bruno Haible.
34517 * config/srclist-update (fixfile): Change grep pattern again, since the
34518 previous fix didn't work (there was another trailing $). Use
34519 '[$]' to escape the $s.
34521 2003-07-15 Karl Berry <karl@gnu.org>
34523 * lib/vasnprintf.c: update from gettext.
34525 2003-07-15 Karl Berry <karl@gnu.org>
34527 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
34528 gets expanded when surrounded by '$'.
34530 2003-07-15 Jim Meyering <jim@meyering.net>
34532 * modules/save-cwd: Don't depend on error. From Derek Price.
34534 2003-07-15 Jim Meyering <jim@meyering.net>
34536 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
34538 2003-07-14 Simon Josefsson <jas@extundo.com>
34540 * modules/mempcpy: New file.
34541 * MODULES.html.sh (func_all_modules): Add mempcpy.
34543 2003-07-14 Simon Josefsson <jas@extundo.com>
34545 * m4/mempcpy.m4: New file.
34547 2003-07-14 Simon Josefsson <jas@extundo.com>
34549 * lib/mempcpy.h: New file.
34550 * lib/mempcpy.c: New file.
34552 2003-07-14 Paul Eggert <eggert@twinsun.com>
34554 * modules/getdate, modules/posixtm: Depend on mktime.
34556 2003-07-14 Paul Eggert <eggert@twinsun.com>
34558 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
34559 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
34560 unicodeio.c, unicodeio.h, unlocked-io.h:
34561 Switch from LGPL to GPL.
34563 2003-07-14 Paul Eggert <eggert@twinsun.com>
34565 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
34566 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
34567 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
34568 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
34569 vasprintf.c, vasprintf.h: Regenerate. These files are now being
34570 updated automatically by ../config/srclist-update. This changes
34571 their license from LPGL to GPL.
34573 2003-07-14 Paul Eggert <eggert@twinsun.com>
34575 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
34576 assumed to refer to the root of the most recent stable gettext version.
34577 * config/srclistvars.sh: Add defaults for eggert.
34578 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
34579 Match "This program" as well as "The program". This is needed
34582 2003-07-14 Jim Meyering <jim@meyering.net>
34584 Don't emit diagnostics. Let callers do that.
34585 * lib/save-cwd.c: Don't include "error.h".
34586 (save_cwd): Don't call error. Ensure that errno is valid
34587 when returning nonzero.
34589 * lib/save-cwd.h (restore_cwd): Update prototype.
34590 * lib/save-cwd.c (restore_cwd): Remove two parameters.
34591 Simplify. Don't call error upon failure. Let callers do that.
34592 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
34593 when auditing is enabled. But don't bother updating the #if.
34595 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
34597 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
34598 it breaks C++ compilation.
34599 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
34601 2003-07-10 Simon Josefsson <jas@extundo.com>
34603 * modules/strchrnul (Makefile.am): Add strchrnul.h.
34605 2003-07-10 Jim Meyering <jim@meyering.net>
34607 * m4/clock_time.m4: Remove trailing blank.
34608 * m4/intmax_t.m4: Likewise.
34610 2003-07-10 Jim Meyering <jim@meyering.net>
34612 * lib/vasnprintf.c: Remove trailing blanks.
34613 Make cpp indentation consistent.
34615 2003-07-09 Paul Eggert <eggert@twinsun.com>
34617 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
34618 posixver.c, strftime.c, strnlen.c, strverscmp.c:
34619 Switch from LGPL to GPL.
34621 2003-07-09 Paul Eggert <eggert@twinsun.com>
34623 * config/srclist.txt: Sort sublists. Add
34624 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
34625 that differ from gnulib for one reason or another; we'd like this list
34626 to be smaller but for now let's document what we have.
34628 2003-07-08 Paul Eggert <eggert@twinsun.com>
34630 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
34631 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
34632 and sweeter "eval x=$x".
34633 * config/srclist.txt: Get lib/argp* from glibc.
34635 2003-07-07 Paul Eggert <eggert@twinsun.com>
34637 * lib/mktime.c: Fix some boundary cases and remove need for floating
34640 Issue a compile-time diagnostic if time_t is floating point, or if
34641 two's complement arithmetic is not in effect, or if arithmetic
34642 right shift does not propagate the sign. These assumptions were
34643 all in the original code but they weren't checked.
34645 (TIME_T_MIDPOINT, verify): New macros.
34646 (__isleap): Remove; it has integer overflow problems.
34647 (leapyear): New function, without those problems.
34648 (ydhms_tm_diff): Remove; splitting into two parts.
34649 (ydhms_diff): New function, containing the arithmetic part of
34650 the old ydhms_tm_diff function. Issue a compile-time
34651 diagnostic if we are not using C99 integer division.
34652 Avoid casts when possible.
34653 (guess_time_tm): New function, containing the checking part of
34654 the old ydhms_tm_diff function. Return the new value, rather than
34655 the difference between it and the old. Accept a new argument T
34656 so that *T specifies the old value. Check for overflow in the result.
34658 (__mktime_internal): Use a time_t offset, not a long int offset.
34659 This undoes the 2003-06-04 change, which is no longer needed now
34660 that we have better overflow checking.
34661 (localtime_offset): Likewise.
34663 (__mktime_internal): Avoid harmful overflow on hosts where time_t
34664 and long are 64-bit but int is only 32-bit.
34665 (ydhms_diff): Use long int to store year1 and yday1.
34666 Issue a compile-time diagnostic if long int is not wide enough.
34668 (__mktime_internal): Use long int to store adjusted year and yday.
34669 Use plain C rather than preprocessor commands, if that doesn't
34671 Check for overflow (and try to repair) after each probe
34672 rather than checking only at the very end. This avoids some bugs
34673 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
34674 does not equal GMT offset at maximum time).
34675 Use integer to check for overflow rather than floating point; this
34676 is more portable to non-IEEE hosts, and is a tad faster.
34677 When we detect that we are oscillating between two values,
34678 don't check whether tm_isdst has the requested value, since
34679 we already know the answer. When tm_isdst has the wrong value,
34680 use a different heuristic to find the right one, based on the
34681 extreme values actually observed in practice in tz2003a,
34682 rather than the (overly optimistic) "previous 3 calendar quarters".
34684 (not_equal_tm, print_tm, check_result): Use "const T" rather than
34685 "T const" to accommodate glibc style.
34686 (check_result): Use less-confusing report format. "long" -> "long int.
34688 Don't loop if the iteration overflows time_t.
34689 Allow a negative step in the iteration.
34691 2003-07-06 Karl Berry <karl@gnu.org>
34693 * config/depcomp: update from automake.
34694 * config/config.sub: update from prep.
34696 2003-07-03 Karl Berry <karl@gnu.org>
34698 * config/config.guess: update from prep.
34700 2003-07-01 Paul Eggert <eggert@twinsun.com>
34702 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
34703 xreadlink.c now includes it unconditionally.
34705 2003-07-01 Paul Eggert <eggert@twinsun.com>
34707 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
34708 having it depend on HAVE_SYS_TYPES_H.
34710 2003-07-01 Bruno Haible <bruno@clisp.org>
34712 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
34713 <sys/types.h> should be sufficient.
34714 Reported by Paul Eggert.
34716 2003-06-26 Karl Berry <karl@gnu.org>
34718 * config/depcomp: update from automake.
34720 2003-06-26 Bruno Haible <bruno@clisp.org>
34722 * modules/human: Depend on module stdbool.
34724 2003-06-25 Bruno Haible <bruno@clisp.org>
34726 * modules/readlink: New file.
34727 * modules/xreadlink: Depend on it.
34728 * MODULES.html.sh (func_all_modules): Add readlink.
34730 2003-06-25 Bruno Haible <bruno@clisp.org>
34732 * m4/readlink.m4: New file.
34734 2003-06-25 Bruno Haible <bruno@clisp.org>
34736 * lib/readlink.c: New file.
34738 2003-06-22 Karl Berry <karl@gnu.org>
34740 * config/srclist.txt: update mkinstalldirs from automake.
34741 * config/mkinstalldirs: update.
34743 2003-06-22 Bruno Haible <bruno@clisp.org>
34745 Portability to mingw32.
34746 * m4/ssize_t.m4: New file, from GNU gettext.
34747 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
34748 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
34750 2003-06-22 Bruno Haible <bruno@clisp.org>
34752 * modules/safe-read: Add m4/ssize_t.m4.
34753 * modules/xreadlink: Add m4/ssize_t.m4.
34755 2003-06-20 Bruno Haible <bruno@clisp.org>
34757 Assume C89, so PARAMS isn't needed.
34758 * lib/unicodeio.h (PARAMS): Remove.
34759 * lib/unicodeio.c: Don't use PARAMS.
34761 2003-06-18 Karl Berry <karl@gnu.org>
34763 * config/config.{guess,sub}: update from prep.
34765 2003-06-18 Jim Meyering <jim@meyering.net>
34767 Merge changes from coreutils.
34768 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
34769 Remove explicit declarations of xmalloc and realloc.
34771 (read_utmp): Remove anachronistic cast of xmalloc.
34773 2003-06-17 Paul Eggert <eggert@twinsun.com>
34775 Assume C89, so PARAMS isn't needed.
34776 * lib/backupfile.h (PARAMS): Remove. All uses removed.
34777 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
34778 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
34779 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
34780 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
34781 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
34782 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
34783 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
34784 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
34785 lib/xstrtod.h, lib/xstrtol.h: Likewise.
34786 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
34787 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
34788 no longer needed. Anyway, config.h should always be included before any
34791 2003-06-11 Simon Josefsson <jas@extundo.com>
34793 * modules/sysexits: New file.
34794 * MODULES.html.sh (func_all_modules): Add sysexits.
34796 2003-06-11 Simon Josefsson <jas@extundo.com>
34798 * lib/sysexit_.h: New file.
34800 2003-06-11 Derek Price <derek@ximbiot.com>
34802 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
34805 2003-06-11 Bruno Haible <bruno@clisp.org>
34807 * m4/sysexits.m4: New file.
34809 2003-06-10 Simon Josefsson <jas@extundo.com>
34811 * lib/argp.h: New file, from glibc.
34812 * lib/argp-ba.c: New file, from glibc.
34813 * lib/argp-eexst.c: New file, from glibc.
34814 * lib/argp-fmtstream.c: New file, from glibc.
34815 * lib/argp-fmtstream.h: New file, from glibc.
34816 * lib/argp-fs-xinl.c: New file, from glibc.
34817 * lib/argp-help.c: New file, from glibc.
34818 * lib/argp-namefrob.h: New file, from glibc.
34819 * lib/argp-parse.c: New file, from glibc.
34820 * lib/argp-pv.c: New file, from glibc.
34821 * lib/argp-pvh.c: New file, from glibc.
34822 * lib/argp-xinl.c: New file, from glibc.
34824 2003-06-10 Simon Josefsson <jas@extundo.com>
34826 * modules/strchrnul: New file.
34828 2003-06-10 Simon Josefsson <jas@extundo.com>
34830 * modules/argp: New file.
34832 2003-06-10 Simon Josefsson <jas@extundo.com>
34834 * m4/strchrnul.m4: New file.
34836 2003-06-10 Simon Josefsson <jas@extundo.com>
34838 * lib/strchrnul.h: New file.
34839 * lib/strchrnul.c: New file.
34841 2003-06-10 Bruno Haible <bruno@clisp.org>
34843 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
34845 2003-06-07 Karl Berry <karl@gnu.org>
34847 * config/config.{guess,sub}: update from prep.
34849 2003-06-07 Jim Meyering <jim@meyering.net>
34851 * modules/strtod: Use $(...) notation, not @...@ for
34852 AC_REPLACE'd variables.
34853 * modules/localcharset: Likewise.
34855 2003-06-07 Jim Meyering <jim@meyering.net>
34857 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
34858 in place of my name in the copyright comment.
34859 Remove definition and uses of __P.
34862 * lib/stat.c: Don't declare xmalloc explicitly.
34863 Instead, include "xalloc.h".
34864 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
34865 xrealloc, and xcalloc return values.
34866 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
34868 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
34870 2003-06-07 Bruno Haible <bruno@clisp.org>
34872 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
34873 avoid AC_CONFIG_LINKS.
34874 * modules/fnmatch (Makefile.am): Use explicit creation rule for
34875 fnmatch.h, to avoid AC_CONFIG_LINKS.
34876 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
34878 2003-06-07 Bruno Haible <bruno@clisp.org>
34880 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
34881 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
34882 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
34884 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
34885 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
34888 2003-06-06 Jim Meyering <jim@meyering.net>
34890 Merge from coreutils.
34891 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
34892 Consolidate declarations and initializations of *_base* locals.
34894 Merge from coreutils.
34895 This avoids a core dump on systems without GNU putenv,
34896 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
34897 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
34898 (unsetenv): New static function, from GNU libc.
34899 (rpl_putenv): Use it.
34901 * lib/modechange.c: Remove trailing blanks.
34903 Merge from coreutils.
34904 * lib/fsusage.c: Remove declaration of statfs.
34905 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
34907 * lib/posixtm.c: Include <stdbool.h> unconditionally.
34909 2003-06-06 Jim Meyering <jim@meyering.net>
34911 * lib/stdbool_.h: Renamed from stdbool.h.in.
34913 2003-06-06 Jim Meyering <jim@meyering.net>
34914 Bruno Haible <bruno@clisp.org>
34916 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
34917 Adjust Makefile.am snippet not to redirect directly to target.
34918 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
34920 2003-06-05 Paul Eggert <eggert@twinsun.com>
34922 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
34923 mismatch, look in future quarters as well as past. This fixes a
34924 bug when processing fall-backwards gaps immediately after a long
34925 period of daylight-saving time.
34927 * lib/mktime.c: Assume freestanding C89 or better.
34928 (HAVE_LIMITS_H): Remove. Assume it's 1.
34929 (__P): Remove; not used.
34930 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
34931 (mktime, not_equal_tm, print_tm, check_result,
34932 main): Use prototypes. Use const * where appropriate.
34933 (main): Fix typo in testing code that uncovered by above changes.
34934 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
34936 2003-06-04 Paul Eggert <eggert@twinsun.com>
34938 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
34939 locale.h, localeconv. This merges changes from coreutils.
34941 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
34942 It can be removed after the next Autoconf is released.
34943 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
34946 2003-06-04 Paul Eggert <eggert@twinsun.com>
34948 * lib/mktime.c: Fix Debian bug 177940
34949 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
34950 (localtime_offset): Now long int, not time_t, because we want it
34951 to be guaranteed to be signed. All uses changed.
34952 (__mktime_internal): If overflow would occur when adding offset,
34955 Merge 'human' changes from coreutils. Rewrite to support
34956 locale-specific notations like thousands separators.
34957 * lib/human.c: Simplify authorship notice.
34958 Include human.h immediately after config.h.
34959 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
34960 <limits.h>: Do not include, since human.h does.
34961 (SIZE_MAX, UINTMAX_MAX): New macros.
34962 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
34963 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
34964 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
34965 (power_letter): Renamed from suffixes.
34966 (generate_suffix_backwards): Remove.
34967 (adjust_value): Now takes int style (because of human.h changes)
34968 and long double value (for greater precision on some platforms).
34969 (group_number): New function.
34970 (human_readable): Use it. Use integer options, not enum.
34971 Put the options before the sizes in the arg list.
34972 Support all the new options.
34973 The old human_readable function has been removed;
34974 use inttostr.h instead.
34975 (human_readable, default_block_size, humblock):
34976 Use uintmax_t, not int, for block sizes.
34977 (human_readable_inexact, block_size_types): Remove.
34978 (block_size_opts): New constant.
34979 (human_options): Renamed from human_block_size, with new signature
34980 that allows block sizes up to UINTMAX_MAX. All callers changed.
34981 * lib/human.h: Add copyright and authorship notice.
34982 Include <limits.h> and <stdbool.h> unconditionally.
34983 (PARAMS): Remove. All uses removed.
34984 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
34985 (enum human_inexact_style): Remove tag; now a nameless enum.
34986 (human_floor, human_ceiling, human_round_to_even): Now have
34987 values 2, 0, 1 rather than -1, 1, 0.
34988 (human_group_digits, human_suppress_point_zero, human_autoscale,
34989 human_base_1024, human_SI, human_B): New constants.
34990 (human_readable_inexact, human_block_size): Remove.
34991 (human_readable): Size args are now uintmax_t, not int.
34992 (human_options): New decl.
34994 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
34995 unnecessary now that we assume C89 or better. This change
34996 imported from coreutils.
34998 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
34999 arbitrarily. This is the same patch as 2003-05-28, but it got lost
35000 in the 2003-05-30 sync from glibc.
35002 .h files should stand alone, but we shouldn't include <sys/types.h>
35003 if we can get away with just <stddef.h>.
35005 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
35006 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
35007 rather than <sys/types.h>, as we merely need size_t.
35008 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
35010 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
35011 Include <stdio.h>, to get FILE.
35012 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
35013 memcasecmp.h has included <stddef.h> and all we need is size_t.
35014 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
35015 our interface, instead of including <sys/types.h>
35017 2003-06-04 Paul Eggert <eggert@twinsun.com>
35019 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
35020 now, as glibc mktime is buggy on non-glibc systems.
35022 2003-06-03 Karl Berry <karl@gnu.org>
35024 * config/config.sub: update from prep.
35026 2003-06-02 Paul Eggert <eggert@twinsun.com>
35029 Fix some minor time-related bugs with POSIX time arguments.
35030 Some valid time stamps were being rejected (notably -1, and
35031 time stamps before 1900 on 64-bit hosts). And some invalid
35032 time stamps were being accepted, e.g. September 31.
35034 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
35035 that we can return (time_t) -1 successfully.
35036 * lib/posixtm.c: Likewise.
35037 [HAVE_STDBOOL_H]: Include <stdbool.h>.
35038 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
35039 (t): Remove static var.
35040 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
35041 of static var. All uses changed.
35042 (year): Do not reject years before 1900; they can occur with
35044 (posix_time_parse): Do not check for out-of-range components;
35045 that is now the caller's responsibility, since our checks were
35046 only approximations.
35047 (posixtime): Use mktime to check for out-of-range components,
35048 since it knows them exactly.
35049 If mktime returns (time_t) -1, check whether an error actually occurred
35050 by invoking localtime on -1.
35051 (main) [TEST_POSIXTIME]: Check for input data errors, and report
35052 posixtime failures better.
35053 Improve the test data (in comments only).
35055 2003-06-02 Karl Berry <karl@gnu.org>
35057 * config/mkinstalldirs (version): new variable.
35058 (--version): new option.
35059 (usage): improve message.
35061 2003-05-30 Karl Berry <karl@gnu.org>
35063 * lib/mktime.c: update from libc.
35065 2003-05-30 Bruno Haible <bruno@clisp.org>
35067 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
35068 * config/config.rpath: Upgrade to gettext-0.12.1.
35070 2003-05-30 Bruno Haible <bruno@clisp.org>
35072 * m4/gettext.m4: Upgrade to gettext-0.12.1.
35073 * m4/nls.m4: New file, from gettext-0.12.1.
35074 * m4/po.m4: New file, from gettext-0.12.1.
35075 * m4/progtest.m4: Upgrade to gettext-0.12.1.
35077 2003-05-30 Bruno Haible <bruno@clisp.org>
35079 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
35080 * lib/localcharset.h: Likewise.
35081 * lib/localcharset.c: Likewise.
35083 2003-05-29 Karl Berry <karl@gnu.org>
35085 * config/config.rpath: update from gettext.
35087 2003-05-28 Paul Eggert <eggert@twinsun.com>
35089 Assume the headers required for C89 freestanding compilers.
35090 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
35091 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
35092 * m4/human.m4 (gl_HUMAN): Likewise.
35093 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
35094 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
35095 * m4/userspec.m4 (gl_USERSPEC): Likewise.
35096 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
35097 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
35098 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
35100 2003-05-28 Paul Eggert <eggert@twinsun.com>
35102 Assume the headers required for C89 freestanding compilers.
35103 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
35104 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
35105 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
35106 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
35107 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
35108 define, since <limits.h> is guaranteed to do that.
35109 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
35110 * lib/exclude.c: Include <stdbool.h> unconditionally.
35111 * lib/tempname.c: Include <stddef.h> unconditionally.
35112 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
35113 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
35114 <stddef.h> does that.
35115 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
35116 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
35117 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
35119 * lib/xstrtol.c: Likewise.
35120 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
35121 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
35123 * lib/addext.c (addext): Use assignment rather than cast, to avoid
35124 warnings on some platforms.
35126 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
35129 2003-05-26 Jim Meyering <jim@meyering.net>
35131 Merge in a change from coreutils:
35132 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
35133 that is guaranteed to be `no'. Use `no_such_member' to indicate
35134 that condition, rather than `-1' which is slightly misleading.
35135 Change the name of the cache variable to have the gl_ prefix.
35136 Prompted by a patch from Richard Dawe for DJGPP.
35138 2003-05-24 Karl Berry <karl@gnu.org>
35140 * config/config.guess: update from prep.
35142 2003-05-22 Karl Berry <karl@gnu.org>
35144 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
35146 2003-05-20 Karl Berry <karl@gnu.org>
35148 * config/config.guess: update from prep.
35150 2003-05-18 Karl Berry <karl@gnu.org>
35152 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
35153 might actually be set by the user.
35155 * config/depcomp, install-sh, mdate-sh: update from automake.
35157 2003-05-17 Bruno Haible <bruno@clisp.org>
35159 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
35160 invalid expansion for AC_EGREP_CPP.
35161 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
35162 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
35163 Suggested by Akim Demaille <akim@epita.fr> in
35164 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
35166 2003-05-12 Jim Meyering <jim@meyering.net>
35168 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
35169 the space-padded-by-default conversion specifiers, %e, %k, %l.
35171 2003-05-12 Bruno Haible <bruno@clisp.org>
35173 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
35174 the string is longer than 4 KB.
35176 2003-05-11 Karl Berry <karl@gnu.org>
35178 * config/config.{guess,sub}: update from prep.
35180 2003-05-09 Bruno Haible <bruno@clisp.org>
35182 * modules/error: Add m4/strerror_r.m4 to file list.
35184 2003-05-03 Bruno Haible <bruno@clisp.org>
35186 Upgrade to Unicode-4.0.
35187 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
35188 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
35189 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
35190 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
35191 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
35192 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
35193 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
35194 Change width of U+E0100..U+E01EF from 1 to 0.
35196 2003-04-25 Jim Meyering <jim@meyering.net>
35198 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
35199 of type size_t, not int.
35201 2003-04-25 Bruno Haible <bruno@clisp.org>
35203 * lib/copy-file.c: Include <stddef.h>, for size_t.
35205 2003-04-21 Paul Eggert <eggert@twinsun.com>
35207 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
35208 code which expansion is under static control. Patch imported from
35209 Akim Demaille's patch to Bison; see
35210 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
35212 2003-04-14 Bruno Haible <bruno@clisp.org>
35214 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
35216 2003-04-11 Jim Meyering <jim@meyering.net>
35218 Merge changes from Coreutils.
35220 2003-03-22 Jim Meyering <jim@meyering.net>
35222 * lib/strftime.c (widen): Cast alloca return value to proper type.
35224 2003-01-19 Ulrich Drepper <drepper@redhat.com>
35227 * lib/strftime.c (my_strftime): Handle very large width
35228 specifications for numeric values correctly. Improve checks for
35231 2003-01-19 Jim Meyering <jim@meyering.net>
35233 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
35235 (nl_get_alt_digit) [! defined my_strftime]: Define.
35236 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
35237 _nl_get_alt_digit and _nl_get_walt_digit.
35239 * lib/strftime.c (my_strftime): Merge in locale-related changes from
35240 libc. These changes have no effect outside of _LIBC.
35242 2003-04-10 Bruno Haible <bruno@clisp.org>
35244 * modules/findprog: New file.
35245 * MODULES.html.sh (func_all_modules): Add it.
35247 2003-04-10 Bruno Haible <bruno@clisp.org>
35249 * m4/findprog.m4: New file.
35250 * m4/eaccess.m4: New file.
35252 2003-04-10 Bruno Haible <bruno@clisp.org>
35254 * lib/findprog.h: New file, from GNU gettext.
35255 * lib/findprog.c: New file, from GNU gettext.
35257 2003-04-05 Jim Meyering <jim@meyering.net>
35259 Merge changes from Coreutils.
35261 * lib/exclude.h (PARAMS): Remove definition and uses.
35262 * lib/exclude.c: Remove uses of `PARAMS'.
35264 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
35265 Add test-cases for DOS filenames. Declare program_name.
35266 (main): Set up program_name. Patch by Rich Dawe.
35268 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
35270 Use mntctl's return value to drive the entry-processing loop, since
35271 we can't rely on the value of the vmt_length member in the last
35272 entry. On some systems doing so could result in exhausting
35273 virtual memory. Based in part on a patch from Mike Jetzer.
35275 2003-04-04 Bruno Haible <bruno@clisp.org>
35277 * modules/linebreak: New file.
35278 * MODULES.html.sh (func_all_modules): Add it.
35280 2003-04-04 Bruno Haible <bruno@clisp.org>
35282 * m4/linebreak.m4: New file.
35284 2003-04-04 Bruno Haible <bruno@clisp.org>
35286 * lib/linebreak.h: New file, from GNU gettext.
35287 * lib/linebreak.c: New file, from GNU gettext with slight
35289 * lib/lbrkprop.h: New file, from GNU gettext.
35291 2003-04-03 Bruno Haible <bruno@clisp.org>
35293 * modules/utf8-ucs4: New file.
35294 * modules/utf16-ucs4: New file.
35295 * modules/ucs4-utf8: New file.
35296 * modules/ucs4-utf16: New file.
35297 * MODULES.html.sh (func_all_modules): Add them.
35299 2003-04-03 Bruno Haible <bruno@clisp.org>
35301 * m4/utf-ucs4.m4: New file.
35302 * m4/ucs4-utf.m4: New file.
35304 2003-04-03 Bruno Haible <bruno@clisp.org>
35306 * lib/utf8-ucs4.h: New file, from GNU gettext.
35307 * lib/utf16-ucs4.h: New file, from GNU gettext.
35308 * lib/ucs4-utf8.h: New file, from GNU gettext.
35309 * lib/ucs4-utf16.h: New file, from GNU gettext.
35311 2003-04-02 Bruno Haible <bruno@clisp.org>
35313 * modules/binary-io: New file.
35314 * MODULES.html.sh (func_all_modules): Add it.
35316 2003-04-02 Bruno Haible <bruno@clisp.org>
35318 * lib/binary-io.h: New file, from GNU gettext.
35320 2003-04-01 Bruno Haible <bruno@clisp.org>
35322 * modules/pathname: New file.
35323 * MODULES.html.sh (func_all_modules): Add it.
35325 2003-04-01 Bruno Haible <bruno@clisp.org>
35327 * lib/pathname.h: New file, from GNU gettext.
35328 * lib/concatpath.c: New file, from GNU gettext.
35330 2003-03-30 Bruno Haible <bruno@clisp.org>
35332 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
35334 2003-03-30 Bruno Haible <bruno@clisp.org>
35336 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
35337 function chown() doesn't exist.
35339 2003-03-28 Bruno Haible <bruno@clisp.org>
35341 * modules/copy-file: New file.
35342 * MODULES.html.sh (func_all_modules): Add it.
35344 2003-03-28 Bruno Haible <bruno@clisp.org>
35346 * m4/copy-file.m4: New file.
35348 2003-03-28 Bruno Haible <bruno@clisp.org>
35350 * lib/copy-file.h: New file, from GNU gettext.
35351 * lib/copy-file.c: New file, from GNU gettext.
35353 2003-03-18 Jim Meyering <jim@meyering.net>
35355 * lib/quote.c (quote_n): Fix typo in comment.
35357 2003-03-18 Bruno Haible <bruno@clisp.org>
35359 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
35361 * m4/onceonly_2_57.m4: Likewise.
35363 2003-03-17 Bruno Haible <bruno@clisp.org>
35365 * m4/onceonly.m4: Require autoconf 2.54 or newer.
35366 (m4_quote): Remove macro.
35367 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
35369 2003-03-14 Jim Meyering <jim@meyering.net>
35371 Merge changes from Coreutils.
35372 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
35373 to be const, in order to avoid warnings.
35374 (obstack_room): Likewise.
35375 (obstack_empty_p): Likewise.
35377 2003-03-14 Bruno Haible <bruno@clisp.org>
35379 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
35380 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
35382 2003-03-13 Paul Eggert <eggert@twinsun.com>
35384 Merge changes from Bison.
35385 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
35386 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
35387 when compiling Bison 1.875's `bitset bset = obstack_alloc
35388 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
35389 * lib/hash.c: Include <stdbool.h> unconditionally.
35391 2003-03-13 Paul Eggert <eggert@twinsun.com>
35393 * m4/onceonly.m4 (m4_quote): New macro.
35394 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
35395 Quote AC_FOREACH variable-expansions properly.
35397 2003-03-13 Paul Eggert <eggert@twinsun.com>
35399 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
35401 2003-03-09 Paul Eggert <eggert@twinsun.com>
35403 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
35404 Reported by Bruce Becker; see:
35405 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
35407 2003-03-03 Paul Eggert <eggert@twinsun.com>
35408 Bruno Haible <bruno@clisp.org>
35410 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
35411 Reported by John Hughes, see
35412 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
35414 2003-02-20 Bruno Haible <bruno@clisp.org>
35416 * MODULES.html.sh (func_all_modules): Add poll.
35418 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
35420 * modules/poll: New file.
35422 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
35424 * lib/poll_.h: New file.
35425 * lib/poll.c: New file.
35427 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
35429 * m4/poll.m4: New file.
35431 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
35433 * modules/mathl: New file.
35435 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
35437 * lib/mathl.h: New file.
35438 * lib/acosl.c: New file.
35439 * lib/asinl.c: New file.
35440 * lib/atanl.c: New file.
35441 * lib/ceill.c: New file.
35442 * lib/cosl.c: New file.
35443 * lib/expl.c: New file.
35444 * lib/floorl.c: New file.
35445 * lib/frexpl.c: New file.
35446 * lib/ldexpl.c: New file.
35447 * lib/logl.c: New file.
35448 * lib/sincosl.c: New file.
35449 * lib/sinl.c: New file.
35450 * lib/sqrtl.c: New file.
35451 * lib/tanl.c: New file.
35452 * lib/trigl.c: New file.
35453 * lib/trigl.h: New file.
35455 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
35457 * m4/mathl.m4: New file.
35459 2003-02-18 Bruno Haible <bruno@clisp.org>
35461 * MODULES.html.sh (func_all_modules): Add mathl.
35463 2003-02-17 Bruno Haible <bruno@clisp.org>
35465 * modules/mkdtemp: New module.
35466 * MODULES.html.sh (func_all_modules): Add it.
35468 2003-02-17 Bruno Haible <bruno@clisp.org>
35470 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
35472 2003-02-17 Bruno Haible <bruno@clisp.org>
35474 * lib/mkdtemp.h: New file, from GNU gettext.
35475 * lib/mkdtemp.c: New file, from GNU gettext.
35477 2003-02-02 Jim Meyering <jim@meyering.net>
35479 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
35482 2003-01-31 Bruno Haible <bruno@clisp.org>
35484 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
35486 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
35488 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
35490 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
35493 2003-01-31 Bruno Haible <bruno@clisp.org>
35495 * lib/rename.c: #undef rename before defining rpl_rename.
35496 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
35498 2003-01-30 Bruno Haible <bruno@clisp.org>
35500 * modules/vasnprintf, modules/vasprintf: New modules.
35501 * MODULES.html.sh (func_all_modules): Add them.
35503 2003-01-30 Bruno Haible <bruno@clisp.org>
35505 * m4/signed.m4: New file, from GNU gettext.
35506 * m4/longdouble.m4: New file, from GNU gettext.
35507 * m4/wchar_t.m4: New file, from GNU gettext.
35508 * m4/wint_t.m4: New file, from GNU gettext.
35509 * m4/vasnprintf.m4: New file.
35510 * m4/vasprintf.m4: New file.
35512 2003-01-30 Bruno Haible <bruno@clisp.org>
35514 * lib/printf-args.h: New file, from GNU gettext.
35515 * lib/printf-args.c: New file, from GNU gettext.
35516 * lib/printf-parse.h: New file, from GNU gettext.
35517 * lib/printf-parse.c: New file, from GNU gettext.
35518 * lib/vasnprintf.h: New file, from GNU gettext.
35519 * lib/vasnprintf.c: New file, from GNU gettext.
35520 * lib/asnprintf.c: New file, from GNU gettext.
35521 * lib/vasprintf.h: New file, from GNU gettext with modifications.
35522 * lib/vasprintf.c: New file, from GNU gettext.
35523 * lib/asprintf.c: New file, from GNU gettext.
35525 2003-01-29 Bruno Haible <bruno@clisp.org>
35527 * modules/stpncpy: New module.
35528 * MODULES.html.sh (func_all_modules): Add it.
35530 2003-01-29 Bruno Haible <bruno@clisp.org>
35532 * m4/stpncpy.m4: New file.
35534 2003-01-29 Bruno Haible <bruno@clisp.org>
35536 * lib/stpncpy.h: New file, from GNU gettext with modifications.
35537 * lib/stpncpy.c: New file, from GNU gettext with modifications.
35539 2003-01-28 Bruno Haible <bruno@clisp.org>
35541 * modules/c-ctype: New module.
35542 * MODULES.html.sh (func_all_modules): Add it.
35544 2003-01-28 Bruno Haible <bruno@clisp.org>
35546 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
35548 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
35551 2003-01-27 Bruno Haible <bruno@clisp.org>
35553 * modules/xsetenv: New module.
35554 * MODULES.html.sh (func_all_modules): Add it.
35556 2003-01-27 Bruno Haible <bruno@clisp.org>
35558 * lib/xsetenv.h: New file, from GNU gettext.
35559 * lib/xsetenv.c: New file, from GNU gettext.
35561 2003-01-23 Jim Meyering <jim@meyering.net>
35563 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
35564 from working on systems without dirfd (at least Irix and OSF1/Tru64).
35566 2003-01-23 Bruno Haible <bruno@clisp.org>
35568 * modules/minmax: New module.
35569 * MODULES.html.sh (func_all_modules): Add it.
35571 2003-01-23 Bruno Haible <bruno@clisp.org>
35573 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
35576 2003-01-22 Bruno Haible <bruno@clisp.org>
35578 * modules/exit: New module.
35579 * MODULES.html.sh (func_all_modules): Add it.
35581 2003-01-22 Bruno Haible <bruno@clisp.org>
35583 * lib/exit.h: New file, from GNU gettext.
35585 2003-01-19 Bruno Haible <bruno@clisp.org>
35587 * gnulib-tool: Recognize option --extract-maintainer.
35588 (func_get_maintainer): New function.
35589 * modules/*: Add Maintainer entry.
35591 2003-01-16 Jim Meyering <jim@meyering.net>
35593 * m4/regex.m4: The `regex' struct is both input and output.
35594 Initialize it before each use. Patch by Tim Waugh.
35596 2003-01-16 Bruno Haible <bruno@clisp.org>
35598 * MODULES.html.sh: Add a table of contents. Add the module name as
35599 leftmost column. Add hyperlinks.
35601 2003-01-15 Bruno Haible <bruno@clisp.org>
35603 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
35605 2003-01-15 Bruno Haible <bruno@clisp.org>
35607 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
35608 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
35611 2003-01-15 Bruno Haible <bruno@clisp.org>
35613 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
35615 2003-01-15 Bruno Haible <bruno@clisp.org>
35617 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
35618 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
35620 2003-01-14 Jim Meyering <jim@meyering.net>
35622 * lib/same.c (same_name): Tweak a comment.
35624 2003-01-14 Bruno Haible <bruno@clisp.org>
35626 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
35627 when a string comparison is sufficient.
35629 2003-01-14 Bruno Haible <bruno@clisp.org>
35631 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
35634 2003-01-14 Bruno Haible <bruno@clisp.org>
35636 * lib/hash-pjw.c: Add comment about low quality of this function.
35638 2003-01-13 Bruno Haible <bruno@clisp.org>
35640 * modules/stpcpy: Distribute lib/stpcpy.h.
35641 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
35643 2003-01-13 Bruno Haible <bruno@clisp.org>
35645 * modules/*: Add a description.
35646 * modules/strpbrk: Fix Makefile.am snippet.
35647 * modules/strtoimax: Fix dependencies.
35648 * modules/strtoumax: Likewise.
35650 2003-01-13 Bruno Haible <bruno@clisp.org>
35652 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
35653 * modules/alloca (Makefile.am): All object files depend on alloca.h.
35654 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
35656 2003-01-13 Bruno Haible <bruno@clisp.org>
35658 * gnulib-tool (func_create_testdir): Store config/* files in the main
35660 * config.rpath: Move to ...
35661 * config/config.rpath: ... here.
35662 * modules/gettext: Contains config/config.rpath, not config.rpath.
35663 * modules/iconv: Likewise.
35665 2003-01-12 Paul Eggert <eggert@twinsun.com>
35667 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
35668 to avoid collisions with libcurses and libreadline.
35670 * m4/getstr.m4: Remove.
35671 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
35673 2003-01-12 Paul Eggert <eggert@twinsun.com>
35675 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
35676 to avoid collisions with libcurses and libreadline.
35678 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
35679 * lib/getstr.h, getstr.c: Remove.
35680 * lib/getline.c: Include "getline.h", to check interface.
35681 Move body of old getstr.c here: this defines MIN_CHUNK and
35682 declares getdelim2, which is renamed from getstr.
35683 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
35685 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
35687 * lib/linebuffer.h: Likewise.
35688 (readline): Remove backward-compatibility macro.
35690 2003-01-12 Paul Eggert <eggert@twinsun.com>
35692 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
35693 to avoid collisions with libcurses and libreadline.
35695 * MODULES.html.sh: Remove getstr.
35696 * modules/getline: Depend on unlocked-io, not getstr.
35698 2003-01-12 Jim Meyering <jim@meyering.net>
35700 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
35702 2003-01-10 Bruno Haible <bruno@clisp.org>
35704 * modules/alloca: Change Makefile.am requirements. Simplify Include
35705 requirements. Add lib/alloca_.h to file list.
35707 2003-01-10 Bruno Haible <bruno@clisp.org>
35709 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
35711 2003-01-10 Bruno Haible <bruno@clisp.org>
35713 * lib/alloca_.h: New file.
35714 * lib/getdate.y: Unconditionally include alloca.h.
35715 * lib/makepath.c: Likewise.
35716 * lib/setenv.c: Likewise.
35717 * lib/userspec.c: Likewise.
35719 2003-01-09 Karl Berry <karl@gnu.org>
35721 * MODULES.html.sh: include `dirname $0` in PATH, to find
35724 2003-01-09 Bruno Haible <bruno@clisp.org>
35726 * modules/stdbool: Change configure.ac, Makefile.am requirements.
35727 Simplify Include requirements. Add lib/stdbool.h.in to file list.
35729 2003-01-09 Bruno Haible <bruno@clisp.org>
35731 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
35733 2003-01-09 Bruno Haible <bruno@clisp.org>
35735 * lib/stdbool.h.in: New file.
35737 2003-01-09 Bruno Haible <bruno@clisp.org>
35739 * gnulib-tool (func_all_modules): Ignore files ending in ~.
35740 * MODULES.html.sh: Likewise.
35742 2003-01-08 Jim Meyering <jim@meyering.net>
35744 * lib/full-write.c: Undefine and define-away `const' after inclusion
35745 of errno.h, not before. Suggestion from Bruno Haible.
35747 2003-01-08 Bruno Haible <bruno@clisp.org>
35749 * modules/full-read: Depend on full-write.
35751 2003-01-08 Bruno Haible <bruno@clisp.org>
35753 * lib/safe-read.c: Include specification header first, to ensure its
35755 * lib/full-write.c: Likewise.
35757 2003-01-07 Jim Meyering <jim@meyering.net>
35759 * lib/full-write.c: Rework so that it may serve to define full_read,
35761 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
35763 2003-01-07 Bruno Haible <bruno@clisp.org>
35765 * lib/strtoimax.c: Include <stdint.h> as an alternative to
35767 * lib/xstrtol.h: Likewise.
35768 * lib/xstrtoimax.c: Likewise.
35769 * lib/xstrtoumax.c: Likewise.
35770 * lib/human.h: Likewise.
35772 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
35773 on systems that have <inttypes.h> but not <stdint.h>.
35775 2003-01-07 Bruno Haible <bruno@clisp.org>
35777 * MODULES.html.sh: Add copyright notice.
35778 (missed_files): Omit CVS directory entries.
35779 (func_module): Make it work with sed-3.02.
35780 * MODULES.txt: Remove file.
35782 2003-01-06 Jim Meyering <jim@meyering.net>
35784 * lib/version-etc.c: Update year in translatable copyright string.
35786 2003-01-03 Karl Berry <karl@gnu.org>
35788 * config/config.{guess,sub}: update from prep.
35790 2003-01-02 Karl Berry <karl@gnu.org>
35792 * doc/COPYING.DOC: belatedly updated to 1.2.
35794 2003-01-01 Karl Berry <karl@gnu.org>
35796 * gnulib-tool (func_verify_module): report module name $module in
35797 error message, not $1.
35798 * gnulib-tool (create-testdir): don't complain if destdir couldn't
35799 be created, only if it doesn't exist.
35800 * gnulib-tool (last_checkin_date): don't expand the $Date here.
35802 2002-12-31 Paul Eggert <eggert@twinsun.com>
35804 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
35806 2002-12-31 Paul Eggert <eggert@twinsun.com>
35808 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
35809 memcmp if strcoll doesn't work.
35811 2002-12-31 Bruno Haible <bruno@clisp.org>
35813 * lib/utime.c (utime_null): No need to call ftruncate if the file was
35816 2002-12-31 Bruno Haible <bruno@clisp.org>
35818 * lib/memcoll.c (STRCOLL): New macro.
35821 2002-12-31 Bruno Haible <bruno@clisp.org>
35823 * lib/localcharset.h: New file.
35824 * lib/localcharset.c: Include it.
35825 * lib/unicodeio.c: Likewise.
35827 2002-12-31 Bruno Haible <bruno@clisp.org>
35829 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
35830 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
35832 2002-12-31 Bruno Haible <bruno@clisp.org>
35834 * lib/getline.h: Include <stddef.h>, for size_t.
35836 * lib/unicodeio.h: Include <stddef.h>, for size_t.
35837 * lib/unicodeio.c: Don't include <stddef.h>.
35839 2002-12-31 Bruno Haible <bruno@clisp.org>
35841 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
35844 2002-12-24 Karl Berry <karl@gnu.org>
35846 * config/config.guess: update from prep.
35848 2002-12-24 Bruno Haible <bruno@clisp.org>
35850 General infrasructure.
35851 * m4/README: Rewritten.
35852 * m4/onceonly.m4: New file.
35853 * m4/onceonly_2_57.m4: New file.
35856 * m4/atexit.m4: New file.
35859 * m4/strtod.m4: New file.
35862 * m4/strtol.m4: New file.
35865 * m4/strtoul.m4: New file.
35868 * m4/memchr.m4: New file.
35871 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
35872 (jm_FUNC_MEMCMP): Invoke it.
35875 * m4/memcpy.m4: New file.
35878 * m4/memmove.m4: New file.
35881 * m4/memset.m4: New file.
35884 * m4/strcspn.m4: New file.
35887 * m4/strpbrk.m4: New file.
35890 * m4/strstr.m4: New file.
35893 * m4/strerror.m4: New file.
35896 * m4/mktime.m4: Renamed from jm-mktime.m4.
35897 (gl_PREREQ_MKTIME): New macro.
35898 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
35901 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
35902 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
35903 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
35906 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
35907 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
35908 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
35911 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
35912 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
35913 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
35915 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
35918 * m4/xalloc.m4: New file.
35921 * m4/alloca.m4: New file.
35924 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
35925 (jm_FUNC_PUTENV): Invoke it.
35928 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
35929 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
35930 when invoked twice.
35931 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
35935 * m4/memrchr.m4: New file.
35938 * m4/stpcpy.m4: New file.
35941 * m4/strcase.m4: New file.
35944 * m4/strdup.m4: New file.
35947 * m4/strnlen.m4: New file.
35950 * m4/strndup.m4: New file.
35953 * m4/xstrtod.m4: New file.
35956 * m4/xstrtol.m4: New file.
35959 * m4/getdate.m4: New file.
35961 Module unlocked-io.
35962 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
35963 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
35964 * m4/jm-glibc-io.m4n: Remove file.
35966 Module long-options.
35967 * m4/long-options.m4: New file.
35970 * m4/md5.m4: New file.
35973 * m4/sha.m4: New file.
35976 * m4/getstr.m4: New file.
35979 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
35980 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
35981 <sys/types.h>, for size_t. Use the function name gnu_getline, not
35982 simply getline. Infoke gl_PREREQ_GETLINE.
35985 * m4/obstack.m4: New file.
35988 * m4/hash.m4: New file.
35991 * m4/readtokens.m4: New file.
35994 * m4/strverscmp.m4: New file.
35997 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
36001 * m4/strtoll.m4: New file.
36004 * m4/strtoull.m4: New file.
36007 * m4/strtoimax.m4: New file.
36010 * m4/strtoumax.m4: New file.
36013 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
36014 jm_AC_PREREQ_XSTRTOIMAX.
36015 Moved the strtol prerequisites to strtol.m4.
36016 Moved the strtoll prerequisites to strtoll.m4.
36017 Moved the strtoimax prerequisites to strtoimax.m4.
36020 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
36021 jm_AC_PREREQ_XSTRTOUMAX.
36022 Moved the strtoul prerequisites to strtoul.m4.
36023 Moved the strtoull prerequisites to strtoull.m4.
36024 Moved the strtoumax prerequisites to strtoumax.m4.
36027 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
36028 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
36031 * m4/dup2.m4: New file.
36034 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
36035 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
36038 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
36039 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
36041 Module gettimeofday.
36042 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
36043 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
36044 gl_PREREQ_GETTIMEOFDAY.
36047 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
36048 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
36051 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
36052 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
36053 jm_AC_TYPE_UINTMAX_T.
36054 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
36057 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
36058 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
36061 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
36062 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
36065 * m4/timespec.m4 (gl_TIMESPEC): New macro.
36066 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
36067 * m4/st_mtim.m4: Indentation.
36070 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
36071 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
36072 gl_PREREQ_NANOSLEEP.
36075 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
36076 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
36077 (gl_REGEX): New macro.
36080 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
36081 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
36084 * m4/rmdir.m4: New file.
36087 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
36088 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
36089 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
36092 * m4/dirname.m4: New file.
36095 * m4/getopt.m4: New file.
36097 Module unistd-safer.
36098 * m4/unistd-safer.m4: New file.
36101 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
36103 (gl_PREREQ_FNMATCH_EXTRA): New macro.
36104 (gl_FUNC_FNMATCH_POSIX): New macro.
36105 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
36106 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
36110 * m4/exclude.m4: New file.
36113 * m4/human.m4: New file.
36119 * m4/backupfile.m4: New file.
36120 * m4/d-ino.m4: Indentation.
36123 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
36124 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
36125 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
36128 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
36132 * m4/euidaccess.m4: New file.
36135 * m4/file-type.m4: New file.
36138 * m4/fileblocks.m4: New file.
36141 * m4/filemode.m4: New file.
36144 * m4/isdir.m4: New file.
36147 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
36148 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
36151 * m4/makepath.m4: New file.
36154 * m4/modechange.m4: New file.
36157 * m4/mountlist.m4: New file.
36158 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
36161 Module path-concat.
36162 * m4/path-concat.m4: New file.
36165 * m4/pathmax.m4: New file.
36168 * m4/same.m4: New file.
36171 * m4/save-cwd.m4: New file.
36174 * m4/savedir.m4: New file.
36177 * m4/xgetcwd.m4: New file.
36178 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
36181 * m4/xreadlink.m4: New file.
36184 * m4/safe-read.m4: New file.
36187 * m4/safe-write.m4: New file.
36190 * m4/closeout.m4: New file.
36192 Module stdio-safer.
36193 * m4/stdio-safer.m4: New file.
36196 * m4/getpass.m4: New file.
36199 * m4/getugroups.m4: New file.
36201 Module group-member.
36202 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
36203 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
36206 * m4/idcache.m4: New file.
36209 * m4/userspec.m4: New file.
36212 * m4/clock_time.m4: New file.
36213 * m4/gettime.m4: New file.
36216 * m4/settime.m4: New file.
36219 * m4/posixtm.m4: New file.
36221 Module gethostname.
36222 * m4/gethostname.m4: New file.
36225 * m4/canon-host.m4: New file.
36228 * m4/codeset.m4: New file, from gettext-0.11.5.
36229 * m4/gettext.m4: New file, from gettext-0.11.5.
36230 * m4/glibc21.m4: New file, from gettext-0.11.5.
36231 * m4/iconv.m4: New file, from gettext-0.11.5.
36232 * m4/intdiv0.m4: New file, from gettext-0.11.5.
36233 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
36234 * m4/inttypes.m4: New file, from gettext-0.11.5.
36235 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
36236 * m4/isc-posix.m4: New file, from gettext-0.11.5.
36237 * m4/lcmessage.m4: New file, from gettext-0.11.5.
36238 * m4/lib-ld.m4: New file, from gettext-0.11.5.
36239 * m4/lib-link.m4: New file, from gettext-0.11.5.
36240 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
36241 * m4/progtest.m4: New file, from gettext-0.11.5.
36242 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
36243 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
36244 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
36246 Module localcharset.
36247 * m4/localcharset.m4: New file.
36249 Module hard-locale.
36250 * m4/hard-locale.m4: New file.
36253 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
36255 * m4/mbrtowc.m4: Add comment.
36258 * m4/memcasecmp.m4: New file.
36261 * m4/memcoll.m4: New file.
36264 * m4/unicodeio.m4: New file.
36267 * m4/rpmatch.m4: New file.
36270 * m4/yesno.m4: New file.
36273 * m4/exitfail.m4: New file.
36276 * m4/c-stack.m4 (gl_C_STACK): New macro.
36277 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
36280 * m4/error.m4 (gl_ERROR): New macro.
36281 (jm_PREREQ_ERROR): Use onceonly macros.
36284 * m4/fatal.m4: New file.
36287 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
36288 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
36290 Module getpagesize.
36291 * m4/getpagesize.m4: New file.
36293 Module getusershell.
36294 * m4/getusershell.m4: New file.
36297 * m4/physmem.m4: New file.
36300 * m4/posixver.m4: New file.
36303 * m4/quotearg.m4: New file.
36306 * m4/quote.m4: New file.
36309 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
36312 * m4/sig2str.m4: New file.
36315 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
36317 * m4/intmax_t.m4: New file.
36318 * m4/d-type.m4: Indentation.
36319 * m4/jm-macros.m4: Update.
36320 * m4/prereq.m4 (jm_PREREQ): Update.
36321 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
36322 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
36323 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
36324 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
36325 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
36326 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
36327 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
36328 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
36329 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
36330 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
36331 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
36332 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
36333 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
36334 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
36335 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
36336 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
36337 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
36338 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
36339 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
36341 2002-12-24 Bruno Haible <bruno@clisp.org>
36343 * MODULES.txt: Update according to m4/ changes.
36346 * config.rpath: New file, from gettext-0.11.5.
36348 * modules/*: New module descriptions.
36349 * gnulib-tool: New file.
36350 * MODULES.html.sh: New file.
36352 2002-12-21 Karl Berry <karl@gnu.org>
36354 * doc/fdl.texi: update to version 1.2.
36356 2002-12-19 Karl Berry <karl@gnu.org>
36358 * config/config.guess: update from prep.
36360 2002-12-18 Bruno Haible <bruno@clisp.org>
36362 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
36363 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
36365 2002-12-17 Bruno Haible <bruno@clisp.org>
36367 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
36368 stdlib.h, string.h.
36370 2002-12-17 Bruno Haible <bruno@clisp.org>
36372 * lib/canon-host.c (strdup): Remove unused declaration.
36374 * lib/fsusage.c: Include full_read.h.
36375 (get_fs_usage): Use full_read instead of safe_read.
36377 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
36379 2002-12-12 Karl Berry <karl@gnu.org>
36381 * config/config.guess: update from prep.
36383 2002-12-11 Bruno Haible <bruno@clisp.org>
36385 * m4/setenv.m4: New file, from gettext-0.11.5.
36387 2002-12-11 Bruno Haible <bruno@clisp.org>
36389 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
36391 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
36394 2002-12-11 Bruno Haible <bruno@clisp.org>
36396 * setenv.c (alloca): Fall back to malloc.
36397 (freea): New macro.
36398 (setenv): Use freea() to free memory allocated with alloca().
36400 2002-11-13 Bruno Haible <bruno@clisp.org>
36402 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
36403 function declarations.
36404 * unsetenv.c (unsetenv): Likewise.
36406 2002-03-04 Bruno Haible <bruno@clisp.org>
36408 Portability to AIX 4.3.3.
36409 * unsetenv.c: New file, extracted from setenv.c.
36410 * setenv.c: Move the unsetenv() function to unsetenv.c.
36412 2001-12-20 Bruno Haible <bruno@clisp.org>
36414 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
36415 use malloc instead. For SunOS 4.
36417 2001-12-11 Bruno Haible <bruno@clisp.org>
36419 * setenv.c: Declare alloca.
36420 (compar_fn_t): New typedef.
36421 (KNOWN_VALUE, STORE_VALUE): Use it.
36423 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
36426 2002-12-10 Paul Eggert <eggert@twinsun.com>
36428 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
36429 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
36430 Choose values that are less likely to collide with system fnmatch
36432 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
36433 defined (e.g., a pure POSIX system).
36434 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
36435 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
36437 2002-12-06 Paul Eggert <eggert@twinsun.com>
36439 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
36440 a pain in practice to deal with generated m4 files. This change
36441 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
36443 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
36444 and jm-glibc-io.m4, as they are no longer a special case.
36445 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
36446 kludge and the auto-generation stuff. Check only whether the
36447 functions are declared, not whether they exist, since older hosts
36448 that don't declare the functions can't use the optimization anyway.
36450 2002-12-06 Jim Meyering <jim@meyering.net>
36452 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
36454 Merge in changes from libc's misc/error.c, in preparation
36455 for the merge of gnulib's changes back into libc.
36457 * lib/error.c (_): Define only if not already defined.
36458 Move definition to follow all #include directives.
36459 Include unlocked-io.h only if !_LIBC.
36460 [_LIBC]: Include <libio/libioP.h>.
36461 [USE_IN_LIBIO]: Include <libio/iolibio.h>
36462 (fflush): Tweak definition to use INTUSE.
36465 2002-12-05 Paul Eggert <eggert@twinsun.com>
36467 * lib/alloca.c [defined emacs]: Include "lisp.h".
36468 (xalloc_die) [defined emacs]: New macro.
36469 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
36470 [! defined emacs]: Include <xalloc.h>.
36471 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
36472 (pointer): Typedef to POINTER_TYPE *.
36473 (malloc): Remove decl; we now always use xmalloc.
36474 (alloca): Use old-style definition, since Emacs needs this.
36475 Check for arithmetic overflow when computing combined size.
36477 2002-12-04 Paul Eggert <eggert@twinsun.com>
36479 Do not generate unlocked-io.h automatically, since it's easier to
36480 maintain it by hand.
36482 * lib/unlocked-io.h: New file, from GNU diffutils,
36483 but with proper copyright notice and attribution.
36484 * lib/gen-uio: Remove.
36485 * lib/Makefile.am: Add copyright notice.
36486 (libfetish_a_SOURCES): Add unlocked-io.h.
36487 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
36488 (DISTCLEANFILES, io_functions): Remove macros.
36489 (EXTRA_DIST): Remove gen_uio.
36490 (unlocked-io.h): Remove rule.
36492 2002-12-04 Jim Meyering <jim@meyering.net>
36494 Reflect the fact that stat.c and lstat.c are no longer generated.
36495 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
36496 (DISTCLEANFILES): Likewise.
36497 (EXTRA_DIST): Likewise.
36498 (all_local): Don't depend on stat.c or lstat.c.
36499 (stat.c, lstat.c): Remove rules.
36500 (EXTRA_DIST): Remove xstat.in.
36502 * lib/xstat.in: Remove file. Contents moved into stat.c.
36503 * lib/stat.c: New file. Contents mostly from xstat.in.
36504 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
36505 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
36507 * lib/safe-read.c: Rework so that it may serve to define safe_write,
36509 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
36511 2002-12-03 Jim Meyering <jim@meyering.net>
36513 * lib/safe-read.c, safe-write.c: Change variable names and comments,
36514 but not semantics, to minimize the differences between these two files.
36515 (safe_read): Change comment to mention SAFE_READ_ERROR.
36517 * lib/safe-read.c (IS_EINTR): Define.
36518 (safe_read): Use IS_EINTR in place of in-function cpp directives.
36520 2002-12-02 Jim Meyering <jim@meyering.net>
36522 * lib/safe-read.c (EINTR): Define.
36523 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
36524 (INT_MAX): Provide fallback.
36525 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
36527 * lib/safe-read.h (SAFE_READ_ERROR): Define.
36529 2002-12-02 Bruno Haible <bruno@clisp.org>
36531 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
36532 Define, taken from safe-read.c.
36533 (INT_MAX): Provide fallback.
36534 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
36535 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
36537 * lib/safe-read.c (EINTR): Remove definition.
36538 (safe_read): Don't use EINTR if it is absent.
36540 2002-12-01 Jim Meyering <jim@meyering.net>
36542 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
36544 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
36546 2002-11-27 Paul Eggert <eggert@twinsun.com>
36548 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
36549 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
36550 with `if (! (value < limit)) abort ();', for readability.
36552 2002-11-26 Karl Berry <karl@gnu.org>
36554 * lib/strdup.c: copy from libc again, with jim's ok.
36555 * lib/.cppi-disable: re-add strdup.c
36557 2002-11-25 Karl Berry <karl@gnu.org>
36559 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
36560 instead of "strtol.c".
36562 2002-11-25 Karl Berry <karl@gnu.org>
36564 * config/install-sh: update from automake for variable quoting, $0 in
36567 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
36568 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
36571 2002-11-25 Jim Meyering <jim@meyering.net>
36573 * lib/mktime.c: Sync from libc, now that it has the latest fix.
36575 2002-11-24 Karl Berry <karl@gnu.org>
36577 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
36578 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
36580 2002-11-24 Jim Meyering <jim@meyering.net>
36582 Update from coreutils:
36584 * lib/mktime.c: Merge in changes from libc.
36586 Avoid a link-time failure on some Linux systems.
36587 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
36589 (__mon_yday): Declare with the STATIC attribute.
36590 (__mktime_internal): Likewise.
36591 Based on a report from Greg Schafer.
36593 2002-11-23 Jim Meyering <jim@meyering.net>
36595 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
36596 Use `unsigned', not `int', as type of index.
36598 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
36600 * lib/fsusage.c: Remove unneeded parentheses around operands of
36603 2002-11-22 Paul Eggert <eggert@twinsun.com>
36605 * lib/quotearg.h: Allow multiple inclusion by surrounding with
36606 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
36607 so that we can be included first.
36608 (PARAMS): Remove; we now assume C89 or later. All uses removed.
36609 * lib/quotearg.c: Include quotearg.h immediately after config.h.
36610 No need to include stddef.h or sys/types.h any more.
36611 Surround local include files with "", not "<>".
36612 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
36613 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
36614 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
36615 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
36616 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
36617 (ISPRINT): Remove; no longer needed now that we assume C89.
36619 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
36622 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
36623 quotearg_char): Use SIZE_MAX rather than
36624 (size_t) -1 when we are talking about "infinity".
36626 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
36628 2002-11-22 Paul Eggert <eggert@twinsun.com>
36630 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
36631 hint that one should use `if (! x) abort ();' rather than `assert
36632 (x);', and anyway it's one less thing to worry about configuring.
36633 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
36634 hash_rehash, hash_insert): Use abort rather than assert.
36636 2002-11-22 Bruno Haible <bruno@clisp.org>
36638 * lib/safe-read.h: Assume C89. Add comments.
36639 (safe_read): Change return type to size_t.
36640 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
36641 byte counts > SSIZE_MAX correctly.
36642 * lib/safe-write.h: New file.
36643 * lib/safe-write.c: New file.
36644 * lib/full-read.h: New file.
36645 * lib/full-read.c: New file.
36646 * lib/full-write.h: Assume C89. Add comments.
36647 * lib/full-write.c: Include safe-write.h.
36648 (full_write): Rewritten to use safe_write.
36649 Suggested by Jim Meyering and Paul Eggert.
36651 2002-11-21 Jim Meyering <jim@meyering.net>
36653 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
36655 Merge in changes from the coreutils.
36657 2002-09-25 Paul Eggert <eggert@twinsun.com>
36658 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
36660 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
36661 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
36662 int. Work more efficiently if X is the same width as uintmax_t.
36663 Do not compare X to -1, to avoid bogus compiler warning.
36664 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
36665 Don't assume that f_frsize and f_bsize are the same type.
36667 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
36668 warning on FreeBSD.
36670 * lib/makepath.c (make_path): Restore umask *before* creating the final
36672 (make_path): Minor reformatting.
36674 * lib/xmalloc.c: Adjust to work with new autoconf macros,
36675 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
36676 HAVE_MALLOC/HAVE_REALLOC.
36678 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
36679 dummy ones. At least on GNU/Linux systems, `auto' means something
36681 From Michael Stone.
36683 2002-11-21 Bruno Haible <bruno@clisp.org>
36685 Remove case insensitive option matching.
36686 * lib/argmatch.h (argcasematch): Remove declaration.
36687 (ARGCASEMATCH): Remove macro.
36688 (__xargmatch_internal): Remove case_sensitive argument.
36689 (XARGMATCH): Update.
36690 (XARGCASEMATCH): Remove macro.
36691 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
36692 case_sensitive argument.
36693 (argcasematch): Remove function.
36694 (__xargmatch_internal): Remove case_sensitive argument.
36695 (main): Use XARGMATCH instead of XARGCASEMATCH.
36697 * lib/xmalloc.c: Change compile-time error message. Add comment about
36698 required autoconf version.
36700 2002-11-20 Paul Eggert <eggert@twinsun.com>
36702 Merge argmatch cleanups from Bison. Assume C89.
36704 * lib/argmatch.c: Include config.h here, not in argmatch.h.
36705 Include stdlib.h, for EXIT_FAILURE.
36706 Always include <string.h>, since we assume C89.
36707 (EXIT_FAILURE): Remove pre-C89 bug workaround.
36708 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
36709 Include <stddef.h> instead, since it's all we need for size_t.
36710 (PARAMS): Remove. All uses removed.
36711 (ARRAY_CARDINALITY): Do not bother to #undef.
36712 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
36713 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
36714 Remove unnecessary parentheses.
36715 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
36716 Insert necessary parentheses.
36717 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
36718 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
36720 2002-11-19 Bruno Haible <bruno@clisp.org>
36722 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
36723 * lib/mbswidth.h: Include <stddef.h>, for size_t.
36725 * lib/mbswidth.h (PARAMS): Remove macro.
36726 (mbswidth, mbsnwidth): Use ANSI C function declarations.
36727 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
36729 * lib/gcd.h (PARAMS): Remove macro.
36730 (gcd): Use ANSI C function declarations.
36731 * lib/gcd.c (gcd): Likewise.
36733 2002-11-15 Bruno Haible <bruno@clisp.org>
36735 * lib/strcspn.c: Include <stddef.h>.
36736 (strcspn): Use ANSI C function declaration. Change return type to
36738 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
36739 (strpbrk): Use NULL.
36740 * lib/strpbrk.h (PARAMS): Remove macro.
36741 (strpbrk): Use ANSI C function declaration.
36742 * lib/strstr.c: Don't include <sys/types.h>.
36743 * lib/strstr.h (PARAMS): Remove macro.
36744 (strstr): Use ANSI C function declarations.
36746 2002-11-14 Karl Berry <karl@gnu.org>
36748 * config/mkinstalldirs: `do' on separate line, instead of
36751 2002-11-06 Bruno Haible <bruno@clisp.org>
36753 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
36754 * lib/gcd.c (gcd): Likewise.
36756 2002-11-05 Bruno Haible <bruno@clisp.org>
36758 * lib/gcd.h: New file, from gettext-0.11.5.
36759 * lib/gcd.c: New file, from gettext-0.11.5.
36761 2002-11-05 Bruno Haible <bruno@clisp.org>
36763 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
36764 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
36765 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
36766 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
36768 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
36770 * lib/makepath.c: Include gettext.h instead of <locale.h> and
36773 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
36774 * lib/human.c: Include gettext.h instead of <libintl.h>.
36775 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
36776 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
36777 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
36778 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
36779 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
36780 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
36781 (textdomain): Remove definition.
36782 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
36784 * lib/long-options.c: Remove include of <libintl.h> and definition of
36786 * lib/same.c: Remove include of <libintl.h> and definition of _.
36788 2002-11-04 Owen Taylor <otaylor@redhat.com>
36790 * lib/config.charset: A few additions for Solaris.
36792 2002-11-04 Bruno Haible <haible@clisp.cons.org>
36794 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
36795 * lib/localcharset.c (locale_charset): Declare as extern "C".
36797 2002-11-04 Bruno Haible <haible@clisp.cons.org>
36799 * lib/config.charset: msdos in uk_UA uses CP1125.
36801 2002-11-04 Bruno Haible <bruno@clisp.org>
36803 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
36804 * lib/strcase.h: New file, from GNU gettext-0.11.5.
36805 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
36806 * lib/strstr.h: New file, from GNU gettext-0.11.5.
36807 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
36809 2002-11-04 Bruno Haible <bruno@clisp.org>
36811 * lib/localcharset.c (locale_charset): Don't return an empty string.
36813 2002-11-04 Bruno Haible <bruno@clisp.org>
36815 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
36818 2002-11-04 Bruno Haible <bruno@clisp.org>
36820 * lib/config.charset: Update for newest glibc. Add canonical names
36821 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
36823 2002-11-04 Bruno Haible <bruno@clisp.org>
36825 * lib/config.charset: Add support for NetBSD.
36827 2002-11-04 Bruno Haible <bruno@clisp.org>
36829 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
36831 2002-11-01 Bruno Haible <bruno@clisp.org>
36833 * configure.in: Add AC_CONFIG_AUX_DIR call.
36834 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
36836 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
36838 2002-09-28 Karl Berry <karl@gnu.org>
36840 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
36841 installed automake until the next release, since changes have been
36844 2002-09-25 Karl Berry <karl@gnu.org>
36846 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
36847 * lib/getopt*: copy from libc/posix.
36848 * lib/gettext.h: copy from gettext.
36849 * lib/.cppi-disable: add strdup.c, gettext.h.
36851 2002-09-25 Karl Berry <karl@gnu.org>
36853 * config/srclist.txt: enable gettext.h check.
36854 * config/config.{guess,sub}: update from prep.
36855 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
36856 from automake 1.6.3.
36859 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
36861 * regex.c (PATFETCH): Remove the translating fetch.
36862 (PATFETCH_RAW): Rename to PATFETCH.
36863 (set_image_of_range): New fun.
36864 (SET_RANGE_TABLE_WORK_AREA): Use it.
36865 (regex_compile): Don't translate the pattern chars so eagerly.
36866 Only do it when inserting an `exactn' bytecode or when handling
36868 (mutually_exclusive_p): Avoid empty statement.
36870 2002-07-06 Jim Meyering <meyering@lucent.com>
36872 * m4/README: Don't mention Makefile.am.in.
36873 Outline how I've tested changes to .m4 files. Yep, it's a pain.
36875 2002-07-01 Jim Meyering <meyering@lucent.com>
36877 * lib/c-stack.c: Include sys/time.h.
36878 From Volker Borchert.
36880 2002-06-26 Paul Eggert <eggert@twinsun.com>
36882 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
36884 2002-06-26 Paul Eggert <eggert@twinsun.com>
36886 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
36887 New macro. Use it uniformly instead of
36888 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
36889 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
36890 reported by Vin Shelton.
36892 2002-06-22 Paul Eggert <eggert@twinsun.com>
36894 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
36895 Do not assume SA_SIGINFO behavior.
36896 Bug reported by Jim Meyering on NetBSD 1.5.2.
36898 2002-06-22 Jim Meyering <meyering@lucent.com>
36900 * m4/c-stack.m4: New file, from diffutils-2.8.2.
36901 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
36903 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
36904 now that configure.ac uses AC_GNU_SOURCE.
36905 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
36906 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
36908 Update to latest tools. Suggestions from Paul Eggert.
36909 * m4/stdbool.m4: New file, from diffutils-2.8.2.
36910 * m4/gnu-source.m4: Update from diffutils-2.8.2.
36911 * m4/fnmatch.m4: Likewise.
36912 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
36913 to AC_HEADER_STDBOOL
36915 2002-06-22 Jim Meyering <meyering@lucent.com>
36917 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
36918 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
36920 2002-06-22 Jim Meyering <meyering@lucent.com>
36922 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
36924 * lib/exitfail.c, exitfail.h: Likewise.
36925 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
36927 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
36929 (EXTRA_DIST): Add fnmatch_loop.c.
36930 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
36932 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
36933 * lib/fnmatch.c: Update from diffutils-2.8.2.
36934 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
36935 * lib/fnmatch.h: Remove file.
36937 2002-06-21 Jim Meyering <meyering@lucent.com>
36939 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
36940 * m4/mbrtowc.m4: Likewise.
36942 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
36943 * m4/mbswidth.m4: Reflect name change:
36944 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
36945 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
36947 * m4/lib-link.m4: Update from gettext-0.11.2.
36948 * m4/gettext.m4: Likewise.
36950 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
36951 From Alfred M. Szmidt.
36953 2002-06-18 Paul Eggert <eggert@twinsun.com>
36955 * lib/file-type.h: Report an error if neither S_ISREG nor
36956 S_IFREG is defined, instead of using a test specific to glibc
36957 2.2. This should be safe, since POSIX requires S_ISREG and
36958 Unix Version 7 had S_IFREG. We don't need to check for
36959 <sys/types.h> since we don't use any symbols that it defines.
36961 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
36963 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
36964 $@-t, so that each temporary file name is unique and valid in the first
36965 8 characters, for operation under DOS.
36967 2002-06-15 Paul Eggert <eggert@twinsun.com>
36969 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
36971 2002-06-15 Jim Meyering <meyering@lucent.com>
36973 Work even with DJGPP 2.03, which lacks support for symlinks.
36975 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
36977 * lib/lchown.c (S_ISLNK): Likewise.
36979 2002-06-15 Jim Meyering <meyering@lucent.com>
36981 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
36982 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
36983 have been included before this file.
36985 2002-06-14 Jim Meyering <meyering@lucent.com>
36987 * lib/file-type.h: Use the version from diffutils-2.8.2.
36988 * lib/file-type.c: Likewise.
36990 2002-06-07 Jim Meyering <meyering@lucent.com>
36992 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
36993 They're needed at least for NetBSD 1.5.2.
36994 ($statxfs_includes): Include those same headers.
36995 ($statxfs_includes): Include sys/vfs.h if available.
36996 ($statxfs_includes): Likewise for sys/statvfs.h.
36997 Check for the following members in both structs statfs and statvfs:
36998 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
37000 2002-06-01 Jim Meyering <meyering@lucent.com>
37002 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
37003 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
37005 2002-05-28 Jim Meyering <meyering@lucent.com>
37007 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
37008 Reported by Volker Borchert.
37010 2002-05-27 Jim Meyering <meyering@lucent.com>
37012 Fix a problem seen only on nonconforming systems whereby ls.c's
37013 use of localtime, and then of gettimeofday would cause trouble:
37014 the localtime call used to initialize rpl_gettimeofday's save
37015 mechanism would clobber ls's current local time information so
37016 that in any long listing the first file would always be listed
37017 with date 1970-01-01. Analysis by Volker Borchert.
37019 * lib/gettimeofday.c (localtime): Undefine.
37020 (rpl_localtime): New function.
37022 2002-05-27 Jim Meyering <meyering@lucent.com>
37024 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
37027 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
37028 use the replacement function; it wouldn't resolve at link time.
37029 Reported by Volker Borchert.
37031 2002-05-22 Jim Meyering <meyering@lucent.com>
37033 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
37035 * lib/file-type.h: New file.
37036 * lib/file-type.c (file_type): New file/function. Extracted from
37039 2002-04-30 Jim Meyering <meyering@lucent.com>
37041 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
37043 2002-04-29 Paul Eggert <eggert@twinsun.com>
37045 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
37047 2002-04-29 Paul Eggert <eggert@twinsun.com>
37049 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
37050 Do not check for alloca.h (no longer used) or stdbool.h (was never
37051 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
37053 2002-04-29 Paul Eggert <eggert@twinsun.com>
37055 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
37057 2002-04-29 Jim Meyering <meyering@lucent.com>
37059 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
37060 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
37061 Use AC_FUNC_STRNLEN here instead.
37063 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
37064 With autoconf-2.53a, it's part of AC_PROG_CC.
37066 2002-04-28 Paul Eggert <eggert@twinsun.com>
37068 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
37069 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
37071 2002-04-28 Paul Eggert <eggert@twinsun.com>
37073 * lib/sig2str.h, lib/sig2str.c: New files.
37074 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
37076 2002-04-28 Paul Eggert <eggert@twinsun.com>
37078 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
37079 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
37080 of 127, since 64 is the largest conceivable number for ancient
37082 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
37084 2002-04-28 Jim Meyering <meyering@lucent.com>
37086 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
37088 2002-04-24 Jim Meyering <meyering@lucent.com>
37090 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
37091 (jm_PREREQ): Use it.
37093 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
37094 mach/mach.h fcntl.h.
37095 Check for this function: setlocale.
37097 2002-04-24 Jim Meyering <meyering@lucent.com>
37099 * lib/gettext.h: New file, from Gettext.
37100 * lib/Makefile.am (INCLUDES): Remove -I../intl.
37101 (libfetish_a_SOURCES): Add gettext.h.
37103 2002-04-16 Jim Meyering <meyering@lucent.com>
37105 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
37106 ut_pid, ut_id, ut_exit.
37108 2002-04-16 Jim Meyering <meyering@lucent.com>
37110 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
37111 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
37112 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
37114 2002-04-12 Jim Meyering <meyering@lucent.com>
37116 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
37117 now-bogus check for f_type in sys/mount.h. Instead, just test for the
37118 existence of the getmntinfo function. Needed for Darwin 5.3.
37120 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
37121 This is necessary at least on Darwin 5.3.
37123 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
37124 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
37125 strnlen.o in the library, and that makes some versions of ranlib
37128 2002-04-12 Jim Meyering <meyering@lucent.com>
37130 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
37132 2002-04-09 Jim Meyering <meyering@lucent.com>
37134 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
37135 to be more precise. Rather than saying we're checking whether the
37136 function `works', say what we're testing.
37137 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
37138 Reported by Bruno Haible.
37140 2002-03-10 Jim Meyering <meyering@lucent.com>
37142 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
37143 Suggestion from Santiago Vila.
37145 2002-03-08 Jim Meyering <meyering@lucent.com>
37147 * lib/rename.c: Mention that this wrapper is needed also on
37148 mips-dec-ultrix4.4 systems.
37150 2002-03-02 Jim Meyering <meyering@lucent.com>
37152 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
37153 not HAVE_CLOCK_SETTIME.
37155 2002-02-27 Paul Eggert <eggert@twinsun.com>
37157 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
37158 Check for clock_settime.
37160 2002-02-27 Paul Eggert <eggert@twinsun.com>
37162 * lib/nanosleep.h: Rename to....
37163 * lib/timespec.h: New name for nanosleep.h. All uses changed.
37165 * lib/gettime.c: New file.
37166 * lib/settime.c: New file.
37167 * lib/stime.c: Remove.
37169 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
37170 timespec.h. Remove nanosleep.h.
37172 2002-02-25 Paul Eggert <eggert@twinsun.com>
37174 * m4/acl.m4: New file.
37175 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
37176 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
37178 2002-02-25 Paul Eggert <eggert@twinsun.com>
37180 * lib/acl.c, lib/acl.h: New files.
37181 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
37183 2002-02-24 Jim Meyering <meyering@lucent.com>
37185 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
37186 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
37187 cause trouble. Reported by Nelson Beebe.
37189 2002-02-23 Paul Eggert <eggert@twinsun.com>
37191 * lib/path-concat.c (xpath_concat): Reorder code to pacify
37192 compilers that don't know that xalloc_die never returns.
37194 2002-02-20 Jim Meyering <meyering@lucent.com>
37196 * lib/getdate.c: Regenerate using bison-1.33.
37198 2002-02-17 Jim Meyering <meyering@lucent.com>
37200 * config/config.guess (main): Don't use `head -1'; it's no longer
37201 portable. Use `sed 1q' instead.
37203 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
37205 * m4/codeset.m4: Upgrade to gettext-0.11.
37206 * m4/gettext.m4: Upgrade to gettext-0.11.
37207 * m4/glibc21.m4: Upgrade to gettext-0.11.
37208 * m4/iconv.m4: Upgrade to gettext-0.11.
37209 * m4/isc-posix.m4: Upgrade to gettext-0.11.
37210 * m4/lcmessage.m4: Upgrade to gettext-0.11.
37211 * m4/lib-ld.m4: New file, from gettext-0.11.
37212 * m4/lib-link.m4: New file, from gettext-0.11.
37213 * m4/lib-prefix.m4: New file, from gettext-0.11.
37214 * m4/progtest.m4: Upgrade to gettext-0.11.
37216 2002-02-15 Paul Eggert <eggert@twinsun.com>
37218 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
37219 (jm_PREREQ): Use it.
37221 2002-02-15 Paul Eggert <eggert@twinsun.com>
37223 * lib/posixver.c, lib/posixver.h: New files.
37224 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
37226 2002-02-02 Paul Eggert <eggert@twinsun.com>
37227 Bruno Haible <bruno@clisp.org>
37229 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
37230 (fwrite_success_callback): New declaration.
37231 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
37232 print_unicode_char. Call failure callback instead of error.
37233 (fwrite_success_callback): New function.
37234 (exit_failure_callback): New function.
37235 (fallback_failure_callback): New function.
37236 (print_unicode_char): Call unicode_to_mb.
37238 2002-01-26 Jim Meyering <meyering@lucent.com>
37240 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
37241 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
37243 2002-01-26 Jim Meyering <meyering@lucent.com>
37245 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
37247 2002-01-22 Paul Eggert <eggert@twinsun.com>
37249 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
37251 2002-01-22 Jim Meyering <meyering@lucent.com>
37253 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
37254 Otherwise, some versions of automake would omit the rule that makes
37255 Makefile from Makefile.in.
37257 2002-01-21 Paul Eggert <eggert@twinsun.com>
37259 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
37260 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
37261 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
37262 (memcoll): Set errno to zero if there is no error.
37264 * lib/quotearg.c (quotearg_buffer_restyled):
37265 Fix bug with quoting buffers containing NUL when backslashing escapes.
37266 This bug was exposed by the other changes in this patch.
37267 (quotearg_n_options): New arg ARGSIZE.
37268 All callers changed.
37269 (quoting_options_from_style): New function.
37270 (quotearg_n_style): Use it.
37271 (quotearg_n_style_mem): New function.
37273 * lib/quotearg.h (quotearg_n_style_mem): New function.
37275 2002-01-19 Jim Meyering <meyering@lucent.com>
37277 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
37278 Remove useless quotes: DF_PROG="df".
37279 * m4/strnlen.m4: New file.
37281 2002-01-16 Paul Eggert <eggert@twinsun.com>
37283 * lib/backupfile.c (ISDIGIT): Comment fix.
37284 * lib/getdate.y (ISDIGIT): Likewise.
37285 * lib/posixtm.c (ISDIGIT, year): Likewise.
37286 * lib/strverscmp.c (ISDIGIT): Likewise.
37287 * lib/userspec.c (ISDIGIT): Likewise.
37289 2002-01-16 Jim Meyering <meyering@lucent.com>
37291 * lib/getdate.y: Add three semicolons, each just before a closing
37292 brace. Bison (as of version 1.31) no longer papers over that mistake.
37294 2002-01-05 Jim Meyering <meyering@lucent.com>
37296 * lib/version-etc.c (version_etc_copyright): Update copyright year.
37298 2001-12-19 Paul Eggert <eggert@twinsun.com>
37300 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
37301 not silently exit merely because the output buffer happens to
37302 have nothing pending.
37304 2001-12-18 Paul Eggert <eggert@twinsun.com>
37306 See the big note in ../ChangeLog.
37307 * lib/human.c (suffixes): Prefer K to k for 1024.
37308 (generate_suffix_backwards): New function.
37309 (human_readable_inexact): Use it.
37310 * lib/xstrtol.c (__xstrtol): If there is no number but there
37311 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
37312 Accept 'K' as well as 'k'.
37314 2001-12-15 Jim Meyering <meyering@lucent.com>
37316 * lib/regex.h (__restrict_arr): Update from libc.
37318 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
37319 as `remote' if the name starts with `//'. Suggested by Michael Stone.
37322 2001-12-14 Jim Meyering <meyering@lucent.com>
37324 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
37325 Suggestion from Bruno Haible.
37327 2001-12-10 Jim Meyering <meyering@lucent.com>
37329 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
37330 xrealloc, Instead, include "xalloc.h".
37331 (initbuffer): Don't cast xmalloc return value to char*.
37332 (readline): Reword comment.
37333 Don't cast xrealloc return value to char*
37334 Return NULL, not 0.
37336 2001-12-09 Jim Meyering <meyering@lucent.com>
37338 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
37339 about `signed and unsigned type in conditional expression'.
37340 * lib/posixtm.c (posix_time_parse): Likewise.
37342 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
37344 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
37345 to avoid a pedantic warning.
37347 * lib/getstr.c: Don't include assert.h.
37348 (getstr): Remove warning-evoking assertions.
37349 Return -1 if offset parameter is out of bounds.
37350 Change the type of a local from int to size_t.
37352 * lib/strftime.c (my_strftime_localtime_r): Include this function
37353 definition in the `#if ! HAVE_TM_GMTOFF' block.
37355 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
37356 Include xalloc.h instead.
37358 2001-12-02 Jim Meyering <meyering@lucent.com>
37360 * lib/tempname.c: Don't declare getenv, thus reverting the change of
37361 2001-11-18. It's no longer necessary, now that stdlib.h is always
37364 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
37365 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
37367 2001-11-30 Akim Demaille <akim@epita.fr>
37369 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
37370 before being defined.
37372 2001-11-27 Paul Eggert <eggert@twinsun.com>
37374 * lib/quotearg.h (quotearg_n, quotearg_n_style):
37375 First arg is int, not unsigned.
37376 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
37377 (SIZE_MAX, UINT_MAX): New macros.
37378 (quotearg_n_options): Abort if N is negative.
37379 Avoid overflow check on hosts where size_t is 64 bits and int
37380 is 32 bits, as overflow is impossible there.
37381 Fix off-by-one typo that caused unnecessary reallocation.
37383 2001-11-27 Jim Meyering <meyering@lucent.com>
37385 * lib/tempname.c: Merge with version from libc.
37386 * lib/regex.c: Likewise.
37388 * lib/tempname.c: Include stdlib.h unconditionally. On some old
37389 systems for which STDC_HEADERS is 0, it was not included, resulting in
37390 a warning about an integer-to-pointer conversion problem with getenv.
37391 Reported by Volker Borchert.
37393 2001-11-26 Jim Meyering <meyering@lucent.com>
37395 * lib/gtod.h: Remove file.
37396 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
37397 * lib/gettimeofday.c: Don't include gtod.h.
37398 (GTOD_init): Remove function.
37399 (rpl_gettimeofday): Do its job here instead, rather than aborting.
37400 Suggestion from Volker Borchert.
37402 2001-11-23 Jim Meyering <meyering@lucent.com>
37404 * lib/hash.h (struct hash_table): Don't define here. Merely declare
37406 * lib/hash.c (struct hash_table): Define it here instead.
37408 2001-11-22 Jim Meyering <meyering@lucent.com>
37410 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
37412 2001-11-20 Jim Meyering <meyering@lucent.com>
37414 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
37415 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
37417 2001-11-19 Jim Meyering <meyering@lucent.com>
37419 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
37420 directory. Use "conftestXXXXXX" as the template.
37421 Suggestion from Paul Eggert.
37423 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
37424 immediately, so the test doesn't mistakenly hit the max-open-files
37427 2001-11-18 Paul Eggert <eggert@twinsun.com>
37429 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
37430 (TEMPORARIES): New macro.
37431 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
37432 removes an artificial limitation (e.g. HP-UX 10.20, where
37435 2001-11-18 Jim Meyering <meyering@lucent.com>
37437 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
37439 2001-11-18 Jim Meyering <meyering@lucent.com>
37441 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
37444 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
37445 files will be created before anything else.
37447 2001-11-17 Paul Eggert <eggert@twinsun.com>
37449 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
37450 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
37452 2001-11-17 Jim Meyering <meyering@lucent.com>
37454 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
37455 Prompted by a report from Bob Proulx.
37457 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
37458 Instead, require UTILS_FUNC_MKSTEMP.
37460 2001-11-17 Jim Meyering <meyering@lucent.com>
37462 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
37463 Now, that's done as part of AC_FUNC_STRTOD.
37465 2001-11-17 Jim Meyering <meyering@lucent.com>
37467 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
37468 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
37469 rather than group writable. Patch by Juan F. Codagnone.
37471 * lib/readtokens.c: Remove explicit declarations of xmalloc and
37472 xrealloc, Instead, include "xalloc.h".
37474 * lib/mountlist.c: Include unlocked-io.h after all system headers.
37475 Remove explicit declarations of xmalloc, xrealloc,
37476 and xstrdup. Instead, include "xalloc.h".
37478 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
37480 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
37482 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
37484 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
37485 Reported by Padraig Brady.
37487 * lib/mkstemp.c: #undef mkstemp.
37489 (rpl_mkstemp): Rename from mkstemp.
37492 2001-11-16 Jim Meyering <meyering@lucent.com>
37494 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
37495 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
37496 determine the amount of total physical memory, use pstat_getstatic.
37497 HPUX-11 doesn't define _SC_PHYS_PAGES.
37498 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
37499 If sysconf couldn't be used to determine the amount of available
37500 physical memory, use both pstat_getstatic and pstat_getdynamic.
37501 Based on a patch from Bob Proulx.
37503 2001-11-10 Jim Meyering <meyering@lucent.com>
37505 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
37506 (jm_PREREQ): Use it.
37508 2001-11-09 Jim Meyering <meyering@lucent.com>
37510 * m4/jm-macros.m4: Require autoconf-2.52f.
37511 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
37512 Use these AC_-prefixed names, not the AM_-prefixed ones.
37514 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
37516 2001-11-05 Jim Meyering <meyering@lucent.com>
37518 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
37520 2001-11-04 Jim Meyering <meyering@lucent.com>
37522 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
37525 2001-11-03 Jim Meyering <meyering@lucent.com>
37527 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
37530 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
37531 know the name of the variable in the macro definition.
37533 2001-11-03 Jim Meyering <meyering@lucent.com>
37535 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
37536 in argmatch_to_argument call.
37538 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
37541 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
37542 e.g., a fault due to an attempt to free a NULL pointer.
37544 2001-11-01 Jim Meyering <meyering@lucent.com>
37546 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
37547 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
37549 2001-11-01 Jim Meyering <meyering@lucent.com>
37551 * lib/dirfd.c, lib/dirfd.h: New files.
37552 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
37554 * lib/hash.c (hash_print) [TESTING]: Clean up.
37556 2001-10-22 Paul Eggert <eggert@twinsun.com>
37558 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
37559 to avoid a warning if -Wall.
37561 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
37564 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
37565 (per RMS's instructions, this is now the canonical source)
37566 * lgpl/, gpl/: New directories.
37568 2001-10-21 Paul Eggert <eggert@twinsun.com>
37570 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
37572 2001-10-21 Jim Meyering <meyering@lucent.com>
37574 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
37575 this code would end up calling gettext even in packages built
37576 with --disable-nls.
37577 * lib/getopt.c (_): Likewise.
37578 * lib/regex.c (_): Likewise.
37580 2001-10-20 Paul Eggert <eggert@twinsun.com>
37582 * m4/error.m4 (jm_PREREQ_ERROR):
37583 Do not invoke AC_CHECK_FUNCS with strerror_r, as
37584 AC_FUNC_STRERROR_R does that.
37585 Check for strerror declaration.
37587 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
37588 are supposed to have them these days.
37589 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
37590 Merge changes from latest Autoconf CVS.
37591 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
37592 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
37593 POSIX decided to standardize on the int flavor of strerror_r.
37595 2001-10-20 Paul Eggert <eggert@twinsun.com>
37597 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
37598 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
37599 Use strerror_r that is only a macro, even if it is not a function.
37600 (strerror): Check for HAVE_DECL_STRERROR before declaring.
37601 (private_strerror): Use prototypes, not old-style function definition.
37602 (print_errno_message): New function.
37603 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
37604 char*-flavored one.
37605 (error_tail, error, error_at_line): Use it.
37607 2001-10-11 Jim Meyering <meyering@lucent.com>
37609 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
37610 and quote_n (1, ... to avoid clobbering a buffer.
37612 2001-10-05 Jim Meyering <meyering@lucent.com>
37614 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
37616 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
37617 * lib/hash-pjw.h: New file.
37619 2001-09-30 Jim Meyering <meyering@lucent.com>
37621 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
37622 `struct fsstat' has the `f_fstypename' member.
37623 Use that to define FS_TYPE, which is now used to make
37624 the getfsstat link test tighter.
37626 2001-09-30 Jim Meyering <meyering@lucent.com>
37628 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
37629 Include <sys/ucred.h>, for Apple Darwin.
37630 Include sys/mount.h and sys/fs_types.h only if available.
37632 (read_filesystem_list): Use FS_TYPE.
37634 2001-09-29 Paul Eggert <eggert@twinsun.com>
37636 * lib/exclude.c (excluded_filename): 0 -> false, since it's
37639 2001-09-29 Jim Meyering <meyering@lucent.com>
37641 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
37642 [one-argument getmntent function]): Include stdio.h before mntent.h.
37643 SunOS 4.1.x needs it for the declaration of `FILE'.
37644 Patch by Volker Borchert.
37646 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
37647 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
37648 sys/fs_types.h, and make the link-test for getfsstat guard #include
37649 directives with appropriate #if HAVE_*_H tests so that we can
37650 detect getfsstat on Apple Darwin1.3.7 systems.
37651 Reported by Nelson Beebe.
37652 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
37654 2001-09-28 Paul Eggert <eggert@twinsun.com>
37656 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
37657 #defines strtoimax. Also treat the other strto* functions
37660 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
37661 Check for strtoul and strtoumax,
37662 as those declarations are made even in the signed case.
37663 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
37664 Likewise, for strtol and strtoimax.
37666 2001-09-28 Paul Eggert <eggert@twinsun.com>
37668 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
37669 #defines strtoimax. Also treat the other strto* functions
37672 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
37673 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
37674 (strtoimax, strtoumax): Do not declare if already defined as a macro.
37676 2001-09-26 Jim Meyering <meyering@lucent.com>
37678 Most macros in unlocked-io.h had the wrong number of arguments.
37679 * lib/gen-uio: New script.
37680 (USE_UNLOCKED_IO): Define to 1 if not already defined.
37681 * lib/unlocked-io.hin: Remove file.
37682 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
37683 rather than trying to embed it here.
37684 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
37685 Reported by Padraig Brady.
37687 2001-09-25 Volker Borchert <bt@teknon.de>
37689 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
37692 2001-09-24 Jim Meyering <meyering@lucent.com>
37694 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
37696 2001-09-23 Jim Meyering <meyering@lucent.com>
37698 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
37699 instead of the mere test for existence of mntent.h. The latter
37700 would get a false-positive on AIX 3.4 systems.
37701 In the outer getmntent if-block, don't die if neither of the getmntent
37702 tests succeeds. Instead, just fall through and continue with the
37705 2001-09-23 Jim Meyering <meyering@lucent.com>
37707 * lib/mountlist.c: Remove useless parentheses in #if directives.
37708 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
37709 the deprecated MOUNTED symbol is no longer defined in mntent.h.
37711 2001-09-22 Jim Meyering <meyering@lucent.com>
37713 * m4/gettext.m4: New file. From gettext.
37714 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
37715 * m4/progtest.m4: Likewise
37716 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
37717 * m4/glibc21.m4: Likewise.
37719 * m4/libintl.m4: Remove. No longer used.
37721 2001-09-22 Jim Meyering <meyering@lucent.com>
37723 * lib/localcharset.c: Update from latest gettext.
37724 * lib/config.charset: Likewise.
37726 2001-09-20 Jim Meyering <meyering@lucent.com>
37728 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
37730 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
37733 2001-09-20 Jim Meyering <meyering@lucent.com>
37735 * lib/xstrtol.c (strtoimax): Guard declaration with
37736 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
37737 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
37738 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
37739 (strtoumax): Likewise, for completeness (it wasn't necessary).
37741 2001-09-17 Paul Eggert <eggert@twinsun.com>
37743 * lib/strtoimax.c (HAVE_LONG_LONG):
37744 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
37745 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
37746 to work around bug in IBM C compiler.
37748 2001-09-17 Jim Meyering <meyering@lucent.com>
37750 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
37751 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
37752 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
37753 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
37754 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
37755 whenever the right hand side need not be expanded by the shell.
37757 2001-09-16 Paul Eggert <eggert@twinsun.com>
37759 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
37760 library. It's not correct, as some older glibcs are buggy.
37761 fnmatch wasn't fixed until glibc 2.2.
37763 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
37764 special shell magic here.
37766 2001-09-16 Jim Meyering <meyering@lucent.com>
37768 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
37769 * m4/jm-macros.m4: Require it.
37771 2001-09-16 Jim Meyering <meyering@lucent.com>
37773 * lib/mkdir.c: New file.
37775 2001-09-15 Jim Meyering <meyering@lucent.com>
37777 * m4/jm-macros.m4: Check for help2man.
37779 2001-09-11 Jim Meyering <meyering@lucent.com>
37781 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
37782 The body, by Paul Eggert, was moved here from configure.in.
37783 * m4/jm-macros.m4: Require UTILS_HOST_OS.
37785 2001-09-04 Paul Eggert <eggert@twinsun.com>
37787 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
37788 (jm_PREREQ): Use it.
37790 2001-09-04 Paul Eggert <eggert@twinsun.com>
37792 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
37793 Use ssize_t, not int, to store result of readlink.
37794 Check for ssize_t overflow as well as size_t overflow,
37795 as POSIX says the result of readlink is implementation-defined
37796 when ssize_t overflows.
37797 Remove unnecessary cast to char*.
37798 Use free+malloc instead of realloc, as the storage doesn't need
37799 to be preserved and it's clearer and can be more efficient that way.
37800 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
37801 * lib/xreadlink.h (xreadlink): Update prototype.
37803 2001-09-04 Paul Eggert <eggert@twinsun.com>
37805 * lib/xgetcwd.c: Revert some of the previous change; intead,
37806 fix the HAVE_GETCWD_NULL code to behave more like the
37807 !HAVE_GETCWD_NULL code used to.
37809 Include "xalloc.h".
37810 (xgetcwd): Do not return NULL when memory is exhausted; instead,
37813 2001-09-03 Paul Eggert <eggert@twinsun.com>
37815 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
37816 sys/param.h, as pathmax.h includes them.
37818 2001-09-03 Paul Eggert <eggert@twinsun.com>
37820 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
37821 (jm_PREREQ_XGETCWD): New macro.
37823 * m4/getcwd.m4: New file.
37825 2001-09-03 Paul Eggert <eggert@twinsun.com>
37827 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
37828 like the HAVE_GETCWD_NULL code.
37829 Include pathmax.h if not HAVE_GETCWD.
37830 Do not include xalloc.h.
37831 (INITIAL_BUFFER_SIZE): New symbol.
37832 Do not use xmalloc / xrealloc, since the caller is responsible for
37833 handling errors. Preserve errno around `free' during failure.
37834 Do not overrun buffer when using getwd.
37836 2001-09-03 Paul Eggert <eggert@twinsun.com>
37838 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
37839 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
37842 2001-09-03 Paul Eggert <eggert@twinsun.com>
37844 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
37845 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
37846 spotted by Jim Meyering.
37848 2001-09-03 Jim Meyering <meyering@lucent.com>
37850 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
37853 2001-09-02 Jim Meyering <meyering@lucent.com>
37855 * lib/error.c: Update from GNU libc.
37857 2001-09-01 Jim Meyering <meyering@lucent.com>
37859 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
37862 2001-09-01 Jim Meyering <meyering@lucent.com>
37864 * lib/xreadlink.c: New file.
37865 * lib/xreadlink.h: New file.
37866 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
37869 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
37870 doesn't conflict with sparc Solaris 7's definition in
37871 /usr/include/sys/int_types.h.
37873 * lib/exclude.c: Use `""', not `<>' to #include non-system header
37875 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
37876 and strncasecmp as r-values. Unixware didn't have declarations.
37878 2001-08-31 Paul Eggert <eggert@twinsun.com>
37880 * lib/xstrtol.h: Add copyright notice.
37881 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
37882 LONGINT_INVALID_SUFFIX_CHAR.
37884 2001-08-31 Paul Eggert <eggert@twinsun.com>
37886 * lib/xstrtol.c (strtoimax): New decl.
37888 2001-08-31 Paul Eggert <eggert@twinsun.com>
37890 * lib/xgetcwd.c: Don't include pathmax.h.
37891 Include stdlib.h and unistd.h if available.
37893 (xmalloc, xstrdup, free): Remove decls.
37894 (xgetcwd): Don't assume sizes fit in unsigned.
37895 Check for overflow when computing sizes.
37896 Simplify reallocation code.
37898 2001-08-31 Paul Eggert <eggert@twinsun.com>
37900 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
37901 a directory's st_size can have an arbitrary value, so the old
37902 usage could waste an arbitrary amount of memory. All uses
37904 * lib/savedir.h: Update prototype.
37906 2001-08-31 Paul Eggert <eggert@twinsun.com>
37908 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
37910 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
37913 Also, make the following further changes to make this file's
37914 configuration more similar to that of strtol.c:
37915 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
37916 (strtoumax, uintmax_t, strtoull, strtol): Remove.
37917 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
37918 (strtoimax): Renamed from strtoumax. All uses of unsigned values
37919 changed to signed values.
37921 And make the following changes as well:
37922 Fix copyright notice, as 1999 was missing.
37923 (verify): New macro.
37924 (strtoimax): Check sizes at compile-time, not run-time.
37925 Prefer strtol to strtoll if both work.
37926 (main): Remove; it was not that useful and was a pain to maintain.
37928 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
37930 2001-08-31 Jim Meyering <meyering@lucent.com>
37932 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
37933 Use an initial, malloc'd, buffer of length 128 rather than
37934 a statically allocated one of length 1024.
37936 2001-08-30 Paul Eggert <eggert@twinsun.com>
37938 Simplify code, partly by assuming autoconf 2.52 semantics.
37940 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
37942 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
37943 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
37945 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
37946 Move AC_REQUIRE to next-to-top level, to avoid confusion.
37947 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
37948 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
37949 jm_AC_HEADER_INTTYPES_H.
37950 * m4/jm-macros.m4 (jm_MACROS): Likewise.
37952 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
37954 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
37955 Quote first arg of AC_DEFUN.
37956 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
37957 since they are needed to parse the include file even if we need
37958 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
37959 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
37960 but with opposite signedness.
37962 2001-08-30 Paul Eggert <eggert@twinsun.com>
37964 Merge 'exclude' changes from tar 1.13.22.
37965 This fixes one or two unlikely storage allocation overflow bugs,
37966 but doesn't change user-visible behavior otherwise.
37968 2001-08-30 Paul Eggert <eggert@twinsun.com>
37970 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
37971 (jm_PREREQ_EXCLUDE): New macro.
37973 2001-08-30 Paul Eggert <eggert@twinsun.com>
37975 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
37978 2001-08-30 Paul Eggert <eggert@twinsun.com>
37980 * lib/hash.c: Remove '2001' from copyright notice.
37982 2001-08-30 Paul Eggert <eggert@twinsun.com>
37984 * lib/full-write.h: New file.
37985 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
37986 * lib/full-write.c: Correct credits, as cccp.c no longer
37987 exists and anyway it was so heavily changed from the old cccp
37988 code as to be unrecognizable. Include full-write.h.
37989 (full_write) Return size_t, with short writes meaning failure.
37990 All callers changed. This fixes a bug with large buffers
37992 * lib/utime.c: Include full-write.h.
37994 2001-08-30 Paul Eggert <eggert@twinsun.com>
37996 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
37997 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
37998 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
37999 Include if available.
38000 (<xalloc.h>): Include
38001 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
38002 (verify): New macro. Use it to verify that EXCLUDE macros do not
38003 collide with FNM macros.
38004 (struct patopts): New struct.
38005 (struct exclude): Use it, as exclude patterns now come with options.
38006 (new_exclude): Support above changes.
38007 (new_exclude, add_exclude_file):
38008 Initial size must now be a power of two to simplify overflow checking.
38009 (free_exclude, fnmatch_no_wildcards): New function.
38010 (excluded_filename): No longer requires options arg, as the options
38011 are determined by add_exclude. Now returns bool, not int.
38012 (excluded_filename, add_exclude):
38013 Add support for the fancy new exclusion options.
38014 (add_exclude, add_exclude_file): Now takes int options arg.
38015 Check for arithmetic overflow when computing sizes.
38016 (add_exclude_file): xrealloc might modify errno, so don't
38017 realloc until after errno might be used.
38019 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
38021 (free_exclude): New decl.
38022 (add_exclude, add_exclude_file): Now takes int options arg.
38023 (excluded_filename): No longer requires options arg, as the options
38024 are determined by add_exclude. Now returns bool, not int.
38026 2001-08-30 Paul Eggert <eggert@twinsun.com>
38028 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
38030 2001-08-27 Jim Meyering <meyering@lucent.com>
38032 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
38034 * lib/version-etc.c (N_): Remove definition.
38035 Revert most of last change.
38036 Instead, simply don't mark the `Copyright...' string for translation.
38037 Based on advice from Paul Eggert.
38039 * lib/strtoxmax.c: Tweak comment.
38041 2001-08-26 Jim Meyering <meyering@lucent.com>
38043 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
38045 * m4/xstrtoimax.m4: New file.
38046 * m4/xstrtoumax.m4: Add comments explaining why we
38047 AC_REPLACE_FUNCS(strtol).
38049 2001-08-26 Jim Meyering <meyering@lucent.com>
38051 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
38052 of copyright with `%s' so translators don't get an untranslated
38054 (COPYRIGHT_YEAR): Define.
38055 (version_etc): Use fprintf rather than fputs.
38056 Suggestion from Ulrich Drepper.
38058 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
38060 * lib/strtoll.c: New file, from GNU libc.
38061 * lib/xstrtoimax.c: New file.
38063 * lib/xstrtol.h: Add xstrtoimax.
38064 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
38065 * lib/strtoimax.c: New file. Likewise, but first define
38068 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
38070 * lib/strtoxmax.c: ... then renamed to this.
38072 2001-08-18 Paul Eggert <eggert@twinsun.com>
38074 * m4/inttypes.m4: Add AC_PREREQ(2.13).
38075 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
38076 (jm_AC_TYPE_INTMAX_T): New macro.
38077 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
38079 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
38081 * m4/longlong.m4: Renamed from ulonglong.m4.
38082 * m4/inttypes.m4: Renamed from inttypes_h.m4.
38083 * m4/uintmax_t.m4: Removed.
38085 2001-08-13 Paul Eggert <eggert@twinsun.com>
38087 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
38088 Port to Solaris 8, where 'sed' requires a space after the 'r'
38089 command, and where sh dislikes "$/". Clean up the spacing a bit.
38090 Redirect output to $tmp just once.
38092 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
38094 * lib/addext.c (<errno.h>): Include.
38095 (errno): Declare if not defined.
38096 (addext): Work correctly when pathconf returns -1 and leaves
38097 errno alone because there is no limit. Also, work even if
38098 pathconf returns a value greater than SIZE_MAX.
38100 2001-08-12 Jim Meyering <meyering@lucent.com>
38102 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
38103 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
38104 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
38105 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
38106 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
38107 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
38108 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
38109 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
38110 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
38111 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
38112 utime.m4, utimes.m4, xstrtoumax.m4:
38113 Quote the first argument in each use of AC_DEFUN.
38115 2001-08-12 Jim Meyering <meyering@lucent.com>
38117 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
38118 Simply `return getcwd (NULL, 0);'.
38119 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
38120 Use 1300 as initial value for length, not PATH_MAX.
38122 * lib/pathmax.h: Clean up cpp syntax.
38124 2001-08-12 Jim Meyering <meyering@lucent.com>
38126 * lib/gettimeofday.c: New file.
38127 * lib/gtod.h: New file.
38128 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
38130 2001-08-05 Jim Meyering <meyering@lucent.com>
38132 * m4/jm-macros.m4: Require autoconf-2.52.
38134 2001-08-04 Jim Meyering <meyering@lucent.com>
38136 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
38137 stmt, to get in sync with glibc.
38139 2001-08-03 Paul Eggert <eggert@twinsun.com>
38141 The following changes are from gettext 0.10.39 as maintained by
38144 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
38145 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
38146 with inverted sense. All uses changed.
38148 * lib/mbswidth.c: Don't include <limits.h>.
38149 Include <stdlib.h> and <string.h> unconditionally.
38150 (iswcntrl, mbsinit, ISCNTRL): New macros.
38151 (mbsnwidth): Use K&R style function declarations.
38152 Don't bother checking for MB_LEN_MAX == 1, since the compiler
38153 can optimize it when MB_CUR_MAX == 1.
38154 The width of control characters is zero, not 1.
38156 2001-08-03 Paul Eggert <eggert@twinsun.com>
38158 The following changes are from gettext 0.10.39 as maintained by
38159 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
38161 * m4/codeset.m4: Upgrade to serial AM1.
38162 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
38163 all uses changed. Quote first arg of AC_DEFUN.
38164 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
38166 * m4/iconv.m4: Upgrade to serial AM2.
38167 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
38168 Add --with-libconv-prefix.
38169 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
38170 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
38171 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
38172 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
38173 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
38175 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
38176 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
38177 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
38178 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
38179 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
38180 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
38181 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
38182 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
38183 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
38185 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
38188 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
38189 not the default value.
38191 2001-06-25 Bruno Haible <haible@clisp.cons.org>
38192 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
38193 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
38194 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
38195 Also check for iswcntrl, used for wcwidth fallback.
38196 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
38199 2001-08-03 Jim Meyering <meyering@lucent.com>
38201 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
38202 as it was in the original. Reported by Paul Eggert.
38204 2001-07-16 Jim Meyering <meyering@lucent.com>
38206 * m4/gettimeofday.m4: New file.
38207 Prompted by a report from Bernhard Baehr.
38209 2001-07-15 Jim Meyering <meyering@lucent.com>
38211 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
38212 stuff. Now it's in ../Makefile.cfg.
38214 2001-07-15 Jim Meyering <meyering@lucent.com>
38216 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
38217 (BUILT_SOURCES): Add unlocked-io.h.
38218 (io_functions): Define.
38219 (unlocked-io.h): New rule.
38220 (DISTCLEANFILES): Add unlocked-io.h.
38221 (all-local): Depend on unlocked-io.h, to ensure it is created.
38223 * lib/unlocked-io.hin: New file
38225 * lib/regex.c: Update from glibc.
38227 2001-07-05 Jim Meyering <meyering@lucent.com>
38229 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
38231 (libfetish_a_SOURCES): Put all .h files here instead.
38232 Remove a thus-exposed (better checks in automake) duplicate and
38233 two unnecessary .h files.
38235 2001-07-04 Jim Meyering <meyering@lucent.com>
38237 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
38238 that generates jm-glibc-io.m4 so that it doesn't trigger any make
38241 2001-07-02 Jim Meyering <meyering@lucent.com>
38243 The following changes were prompted by suggestions from Bruno Haible.
38245 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
38247 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
38248 definition of EXTRA_DIST.
38249 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
38250 ensure that the generated file is created/updated whenever the list
38251 of $(unlocked_functions) is changed.
38252 (jm-glibc-io.m4): New rule.
38253 (unlocked-io.h): New rule -- currently unused.
38255 2001-06-24 Jim Meyering <meyering@lucent.com>
38257 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
38258 unmatched right bracket, rather than kludging it with an extra,
38259 falsely-matching quote in a comment. Patch by Akim Demaille.
38261 2001-06-11 Jim Meyering <meyering@lucent.com>
38263 * lib/regex.c: Update from GNU libc.
38265 2001-05-27 Jim Meyering <meyering@lucent.com>
38267 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
38268 Check for ut_type in struct utmp.
38270 2001-05-27 Jim Meyering <meyering@lucent.com>
38272 * lib/readutmp.h (UT_TYPE): Define.
38274 2001-05-24 Jim Meyering <meyering@lucent.com>
38276 * lib/argmatch.c: Include "quote.h".
38277 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
38278 quote function. Reported by Göran Uddeborg.
38280 2001-05-22 Jim Meyering <meyering@lucent.com>
38282 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
38283 now that we use the package-supplied version unconditionally.
38284 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
38286 2001-05-21 Jim Meyering <meyering@lucent.com>
38288 * m4/regex.m4: Change a couple backticks to single quotes to avoid
38289 shell syntax errors.
38291 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
38293 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
38295 2001-05-20 Paul Eggert <eggert@twinsun.com>
38297 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
38298 Don't bother to check library strftime, since
38299 we'll be using our own my_strftime function anyway.
38300 Define my_strftime instead of strftime.
38302 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
38304 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
38305 which is not yet declared.
38307 2001-05-15 Jim Meyering <meyering@lucent.com>
38309 * m4/regex.m4: Use proper quoting so brackets appear in the test
38311 Reported by, and with help from, Bruno Haible.
38313 2001-05-13 Jim Meyering <meyering@lucent.com>
38315 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
38318 2001-05-11 Paul Eggert <eggert@twinsun.com>
38320 dirname code cleanup. base_name now behaves more compatibly
38321 with POSIX basename when given file names that have trailing
38322 slashes, and similarly for dir_name. Add new primitives
38323 base_len and dir_len. Put the directory-name-related decls
38326 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
38327 * lib/backupfile.c (base_name): Likewise.
38328 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
38329 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
38330 * lib/makepath.c (strip_trailing_slashes): Likewise.
38331 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
38332 ISSLASH): Likewise.
38333 * lib/rename.c (strip_trailing_slashes): Likewise.
38334 * lib/same.c (base_name): Likewise.
38335 * lib/stripslash.c (ISSLASH): Likewise.
38337 * lib/addext.c: Include <dirname.h> after size_t is defined.
38338 * lib/backupfile.c: Likewise.
38340 * lib/addext.c (addext): Use base_len to trim redundant
38341 trailing slashes instead of doing it ourselves.
38342 But do not trim the last slash if it is not redundant.
38344 * lib/backupfile.c (find_backup_file_name,
38345 max_backup_version): Use base_len instead of rolling it ourselves.
38346 Handle the case of "" and (on DOS) "C:" correctly.
38348 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
38349 needed. Include <string.h>, <dirname.h>.
38350 (base_name): Allow file names ending in slashes, other than names
38351 that are all slashes. In this case, return the basename followed
38352 by the slashes. This is more general, and can be used in places
38353 where the original base_name purposely had an assertion failure.
38354 (base_len): New function.
38356 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
38357 Do not include <assert.h>; no longer needed.
38359 (memrchr): Remove decl.
38360 (dir_name_r): Remove.
38361 (dir_len): Renamed from dirlen. All callers changed.
38362 Rewrite in terms of base_name, for simplicity and consistency.
38363 (dir_name): Never return NULL. All callers changed.
38364 Do not include <stdlib.h> in test program; no longer needed.
38365 return 0; is fine for test program.
38367 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
38369 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
38371 * lib/path-concat.c (path_concat): Use base_len to compute
38372 base length, not strlen; this means we cannot rely on memcpy
38375 * lib/same.c (STREQ): Remove.
38376 (same_name): Handle the case where the basename ends in trailing '/'.
38378 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
38379 a slash was stripped. Do not strip the last slash after a
38380 file system prefix.
38382 2001-05-11 Paul Eggert <eggert@twinsun.com>
38384 * lib/Makefile.am (libfetish_a_SOURCES):
38385 Add strftime.c, since we now compile it on all hosts.
38387 * lib/strftime.c (my_strftime):
38388 Define to nstrftime if emacs, but only if my_strftime is not defined.
38389 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
38390 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
38391 Add one more extra argument: a nanoseconds value.
38394 (my_strftime function): Add %N format.
38395 (emacs_strftimeu): Renamed from emacs_strftime,
38396 with extra ut argument.
38398 2001-05-09 Paul Eggert <eggert@twinsun.com>
38400 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
38402 2001-04-21 Jim Meyering <meyering@lucent.com>
38404 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
38407 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
38409 * m4/ftruncate.m4: Check for chsize.
38410 Link with ftruncate.o unconditionally if ftruncate is missing.
38411 This was required when cross-compiling to i586-mingw32msvc.
38413 2001-04-08 Jim Meyering <meyering@lucent.com>
38415 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
38416 recomputed; that's necessary when the offset spans a DST transition.
38417 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
38419 2001-04-02 Jim Meyering <meyering@lucent.com>
38421 * lib/regex.h, regex.c: Update from GNU libc.
38423 2001-03-24 Jim Meyering <meyering@lucent.com>
38425 * m4/jm-macros.m4: Require autoconf-2.49d.
38427 2001-03-20 Bruno Haible <haible@clisp.cons.org>
38429 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
38431 2001-03-19 Paul Eggert <eggert@twinsun.com>
38433 * lib/version-etc.c (version_etc_copyright): Update to 2001.
38435 2001-03-17 Jim Meyering <meyering@lucent.com>
38437 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
38438 now that the version in autoconf is equivalent.
38439 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
38441 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
38442 Suggestion from Akim Demaille.
38444 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
38445 (jm_PREREQ_TEMPNAME): New function.
38447 2001-03-16 Paul Eggert <eggert@twinsun.com>
38449 * lib/tempname.c (uint64_t): Define to uintmax_t if
38450 not defined, and if UINT64_MAX is not defined.
38451 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
38452 Reported by John David Anglin.
38454 2001-03-15 Bruno Haible <haible@clisp.cons.org>
38456 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
38457 resolve alias if codeset is empty.
38458 * lib/config.charset (BeOS): Use wildcard syntax.
38460 2001-03-13 Jim Meyering <meyering@lucent.com>
38462 * lib/path-concat.c (path_concat)
38463 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
38464 concatenating e.g., `C:' and `foo'.
38467 2001-03-06 Bruno Haible <haible@clisp.cons.org>
38469 * lib/localcharset.c (locale_charset): Don't use
38470 setlocale(LC_CTYPE,NULL). Don't return NULL.
38471 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
38473 2001-03-06 Bruno Haible <haible@clisp.cons.org>
38475 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
38476 support for DOS/DJGPP.
38478 2001-03-01 Paul Eggert <eggert@twinsun.com>
38480 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
38481 lacks mkstemp. Compile our own tempname.c if we compile our own
38482 mkstemp.c, as mkstemp relies on tempname.
38484 2001-03-01 Jim Meyering <meyering@lucent.com>
38486 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
38487 AH_VERBATIM really does output its argument verbatim.
38489 2001-02-28 Paul Eggert <eggert@twinsun.com>
38491 * lib/Makefile.am (libfetish_a_SOURCES):
38492 Add dup-safer.c, fopen-safer.c.
38493 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
38495 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
38496 * lib/unistd-safer.h: New files.
38498 2001-02-25 Paul Eggert <eggert@twinsun.com>
38500 The mkstemp replacement is taken from glibc 2.2.2, with some
38501 portability fixes for use outside glibc, as follows:
38503 * lib/tempname.c (struct_stat64): New macro.
38504 (direxists, __gen_tempname): Use it.
38505 This avoids a portability problem with Solaris 8.
38507 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
38508 (<stddef.h>, <stdint.h>, <string.h>):
38509 Include only if STDC_HEADERS || _LIBC.
38510 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
38511 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
38512 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
38513 (__set_errno): Define this macro if <errno.h> doesn't.
38514 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
38515 Define these macros if <stdio.h> doesn't.
38516 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
38517 Define these macros if <sys/stat.h>
38518 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
38519 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
38520 __xstat64): Define if not _LIBC.
38521 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
38522 (__gen_tempname): Invoke gettimeofday only if
38523 HAVE_GETTIMEOFDAY || _LIBC;
38524 otherwise, fall back on plain "time".
38525 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
38527 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
38529 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
38531 2001-02-18 Paul Eggert <eggert@twinsun.com>
38533 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
38535 2001-02-17 Paul Eggert <eggert@twinsun.com>
38537 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
38538 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
38539 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
38540 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
38542 2001-02-17 Paul Eggert <eggert@twinsun.com>
38544 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
38545 Remove workaround macros for hosts that have mbrtowc but not
38546 mbstate_t, as we now insist on proper declarations for both
38547 before using mbrtowc.
38549 2001-02-17 Jim Meyering <meyering@lucent.com>
38551 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
38552 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
38553 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
38556 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
38557 rather than AC_CACHE_VAL.
38559 2001-02-17 Jim Meyering <meyering@lucent.com>
38561 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
38562 around included file name.
38564 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
38566 * lib/strftime.c: Update from GNU libc (the only changes were to
38569 2001-02-17 Jim Meyering <meyering@lucent.com>
38571 * lib/regex.c: Update from libc.
38573 2001-02-17 Bruno Haible <haible@clisp.cons.org>
38575 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
38578 2001-02-16 Paul Eggert <eggert@twinsun.com>
38580 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
38581 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
38582 Reported by Mark Hounschell via Paul Eggert.
38584 2001-02-07 Jim Meyering <meyering@lucent.com>
38586 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
38588 2001-02-05 Jim Meyering <meyering@lucent.com>
38590 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
38591 it includes the patch required for `large file' support with at least
38592 HP-UX's 10.20 /bin/cc.
38594 2001-02-03 Jim Meyering <meyering@lucent.com>
38596 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
38597 AS_IF, now that it works once again (mysteriously).
38598 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
38600 2001-01-30 Jim Meyering <meyering@lucent.com>
38602 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
38603 * m4/chown.m4: Rename conftestchown to conftest.chown.
38604 * m4/rename.m4: s/conftestdir/conftest.d1/ and
38605 s/conftestdir2/conftest.d2/.
38606 * m4/utimes.m4: s/conftestdata/conftest.data/
38607 Inspired by Pavel Roskin's change in autoconf.
38609 2001-01-30 Bruno Haible <haible@clisp.cons.org>
38611 * lib/config.charset: Update for FreeBSD 4.2.
38613 2001-01-27 Jim Meyering <meyering@lucent.com>
38615 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
38617 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
38619 2001-01-26 Jim Meyering <meyering@lucent.com>
38621 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
38622 quotearg.c includes it.
38624 2001-01-26 Jim Meyering <meyering@lucent.com>
38626 * lib/quotearg.c: Include stddef.h.
38627 * lib/quote.c: Include stddef.h.
38628 Reported by Axel Kittenberger.
38630 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
38631 line in double quotes so that it evokes a better diagnostic.
38632 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
38633 Reported by Axel Kittenberger.
38635 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
38637 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
38638 as if it was a `charset'.
38640 2001-01-21 Bruno Haible <haible@clisp.cons.org>
38642 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
38645 2001-01-21 Bruno Haible <haible@clisp.cons.org>
38647 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
38648 to avoid a warning. Add back 'const' to inptr.
38650 2001-01-20 Jim Meyering <meyering@lucent.com>
38652 Be sure that headers are checked before used in code compiled
38653 for the type checks.
38654 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
38655 In place of that, invoke jm_CHECK_ALL_TYPES.
38656 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
38657 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
38658 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
38659 The check for ssize_t was mistakenly run before the test for unistd.h.
38661 The configure-time check for stdbool.h was missing.
38662 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
38663 (jm_PREREQ_HASH): New function.
38665 2001-01-17 Jim Meyering <meyering@lucent.com>
38667 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
38668 for autoconf-2.49c.
38669 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
38671 2001-01-16 Jim Meyering <meyering@lucent.com>
38673 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
38676 2001-01-14 Jim Meyering <meyering@lucent.com>
38678 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
38679 foo and bar. Create conftestdir/ in the script, not in the C code.
38680 Remove directories in the script, not in the C code.
38681 Remove conftestdir{,2} before trying to create the directory.
38682 Make the entire configure script fail if the mkdir fails.
38684 2001-01-14 Jim Meyering <meyering@lucent.com>
38686 * lib/rename.c: New file. From Volker Borchert.
38687 Include stdlib.h, string.h or strings.h, and xalloc.h.
38688 Use strip_trailing_slashes rather than open-coding it.
38690 2001-01-03 Paul Eggert <eggert@twinsun.com>
38692 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
38694 2001-01-03 Jim Meyering <meyering@lucent.com>
38696 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
38697 of local `inptr' to avoid warning with some system declarations of
38700 2001-01-02 Volker Borchert <bt@teknon.de>
38702 * m4/rename.m4: New file.
38703 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
38705 2001-01-01 Jim Meyering <meyering@lucent.com>
38707 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
38708 even on systems with utmpx.h. It's necessary for the declaration of
38709 utmp's ut_user member. Reported by Andreas Jaeger.
38711 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
38712 available. They are required for the declarations of getgrgid and
38714 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
38715 Reported by Andreas Jaeger.
38717 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
38719 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
38720 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
38721 so `make install' also works in VPATH builds.
38723 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
38725 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
38726 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
38727 can be used in subdirectories.
38729 2000-12-29 Paul Eggert <eggert@twinsun.com>
38731 * lib/modechange.c: Do not assume that mode_t uses the
38732 traditional octal encoding. E.g. "chmod 1 FOO" should set
38733 the other-execute bit of FOO even if S_IXOTH != 1.
38735 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
38736 WOTH, XOTH, ALLM): New macros.
38737 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
38738 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
38740 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
38741 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
38743 No need to use uintmax_t; unsigned long is long enough.
38744 Don't bother to get suffix since we don't use it.
38746 2000-12-26 Jim Meyering <meyering@lucent.com>
38748 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
38749 better with autoheader.
38751 2000-12-24 Jim Meyering <meyering@lucent.com>
38753 * lib/hash.c (is_prime): Return explicit boolean values.
38754 (hash_get_first): Return NULL to appease Irix5.6's 89.
38755 Reported by Nelson Beebe.
38757 2000-12-19 Bruno Haible <haible@clisp.cons.org>
38759 * lib/localcharset.c (locale_charset): Add support for Win32.
38761 2000-12-18 Paul Eggert <eggert@twinsun.com>
38763 * lib/physmem.h, lib/physmem.c: New files.
38765 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
38766 (noinst_HEADERS): Add physmem.h.
38768 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
38769 't' for compatibility with Solaris 8 sort.
38771 2000-12-18 Bruno Haible <haible@clisp.cons.org>
38773 * lib/config.charset: Add support for BeOS.
38775 2000-12-17 Jim Meyering <meyering@lucent.com>
38777 * m4/dos.m4 (jm_AC_DOS): New file and macro.
38778 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
38780 2000-12-16 Jim Meyering <meyering@lucent.com>
38782 This bug had a serious impact on chown: `chown N:M FILE' (for integer
38783 N and M) would have treated it like `chown N:N FILE'.
38785 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
38787 2000-12-16 Jim Meyering <meyering@lucent.com>
38789 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
38790 SHELLS_FILE to a file name that's useful on djgpp systems.
38792 (ADDITIONAL_DEFAULT_SHELLS): Define.
38793 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
38794 Based mostly on a patch from Prashant TR.
38796 2000-12-16 Bruno Haible <haible@clisp.cons.org>
38798 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
38799 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
38800 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
38802 2000-12-08 Andreas Schwab <schwab@suse.de>
38804 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
38805 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
38807 2000-12-07 Jim Meyering <meyering@lucent.com>
38809 * lib/stripslash.c (ISSLASH): Define.
38810 (strip_trailing_slashes): Use ISSLASH rather than comparing against
38814 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
38815 (dir_name_r): Declare this function as static.
38816 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
38817 manifest itself on a name containing a mix of slashes and
38819 Make this function work with names starting with a DOS-style
38820 drive letter and colon prefix.
38821 (dir_name): Append `.' if necessary.
38822 Based mostly on patches from Prashant TR and Eli Zaretskii.
38824 * lib/dirname.h (dir_name_r): Remove prototype.
38826 2000-12-06 Paul Eggert <eggert@twinsun.com>
38828 * m4/off_t-format.m4: Remove this file.
38829 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
38831 2000-12-06 Jim Meyering <meyering@lucent.com>
38833 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
38834 replacement strtoull, we may well need the replacement strtoul, too.
38835 Check for declarations of strtoul and strtoull.
38836 Check for strtol. Mainly as a cue to cause automake to include
38837 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
38838 Check for limits.h -- strtol.c needs it.
38840 2000-12-05 Jim Meyering <meyering@lucent.com>
38842 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
38844 2000-12-04 Jim Meyering <meyering@lucent.com>
38846 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
38847 Also include memory.h, stdlib.h, unistd.h if appropriate.
38848 Reported by Andreas Jaeger (conflicting declaration of malloc).
38850 2000-12-02 Jim Meyering <meyering@lucent.com>
38852 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
38853 * m4/jm-macros.m4 (jm_MACROS): require it.
38855 2000-12-02 Jim Meyering <meyering@lucent.com>
38857 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
38859 2000-12-01 Paul Eggert <eggert@twinsun.com>
38861 * lib/memrchr.c: Include <config.h> before any system include file.
38863 2000-11-30 Jim Meyering <meyering@lucent.com>
38865 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
38867 2000-11-30 Jim Meyering <meyering@lucent.com>
38869 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
38871 2000-11-29 Paul Eggert <eggert@twinsun.com>
38873 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
38875 2000-11-26 Jim Meyering <meyering@lucent.com>
38877 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
38879 2000-11-22 Paul Eggert <eggert@twinsun.com>
38881 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
38882 size of (size_t) -1; it's not portable.
38884 2000-11-17 Jim Meyering <meyering@lucent.com>
38886 * lib/strstr.c: Update from GNU libc.
38888 2000-11-17 Akim Demaille <akim@epita.fr>
38890 * lib/obstack.h: Formatting changes.
38891 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
38892 prevent type checking.
38893 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
38894 cast the value to (void *): assigning a `foo *' to a `void *'
38896 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
38898 2000-11-16 Jim Meyering <meyering@lucent.com>
38900 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
38902 2000-11-11 Jim Meyering <meyering@lucent.com>
38904 * lib/error.c: Add a couple #includes, merging from GNU libc version.
38906 2000-11-10 Jim Meyering <meyering@lucent.com>
38908 * lib/obstack.h: Update from GNU libc.
38909 * lib/obstack.c: Likewise.
38911 2000-11-08 Bruno Haible <haible@clisp.cons.org>
38913 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
38915 2000-11-06 Paul Eggert <eggert@twinsun.com>
38917 * lib/getusershell.c (setusershell): Use rewind rather than
38918 fseek/fseeko, to avoid configuration hassles with fseeko.
38919 Don't bother opening SHELLS_FILE if shellstream is NULL;
38920 it's not necessary.
38922 2000-11-05 Jim Meyering <meyering@lucent.com>
38924 * lib/makepath.h (make_dir): Declare.
38925 * lib/makepath.c (make_dir): Remove `static' attribute.
38928 2000-11-04 Jim Meyering <meyering@lucent.com>
38930 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
38932 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
38934 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
38935 last one in a bucket, advance to the next bucket.
38937 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
38939 * lib/fnmatch.c: Do not comment out all the code if we are using
38940 the GNU C library, because in some cases we are replacing buggy
38941 code in the GNU C library itself.
38943 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
38945 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
38946 (regex_compile): Catch bogus \(\1\).
38948 2000-10-30 Paul Eggert <eggert@twinsun.com>
38950 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
38951 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
38952 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
38954 2000-10-30 Paul Eggert <eggert@twinsun.com>
38956 * lib/error.h, getline.h, modechange.h:
38957 Remove "2000" from Copyright line, as the file hasn't been
38958 changed this year other than in the copyright notice.
38960 * lib/xalloc.h: Add "2000" to Copyright line, as this file
38961 was changed this year.
38963 2000-10-29 Jim Meyering <meyering@lucent.com>
38965 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
38967 * m4/ls-mntd-fs.m4: Likewise
38969 2000-10-29 Jim Meyering <meyering@lucent.com>
38971 * lib/xstat.in: Fix grammar in comment.
38973 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
38975 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
38976 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
38977 doesn't define __restrict_arr.
38979 2000-10-28 Jim Meyering <meyering@lucent.com>
38981 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
38982 (jm_PREREQ_MEMCHR): New function.
38984 2000-10-28 Jim Meyering <meyering@lucent.com>
38986 * lib/memchr.c: Update from libc.
38987 Adjust for portability:
38988 [HAVE_STDLIB_H]: Include stdlib.h.
38989 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
38990 Undef __memchr, too.
38991 [!weak_alias]: Define __memchr to memchr.
38993 * lib/regex.c: Update from libc.
38994 * lib/regex.h: Likewise.
38995 * lib/getopt1.c: Likewise.
38996 * lib/memcmp.c: Likewise.
38998 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
38999 Avoid using fseek, when possible -- it's broken by design.
39000 Patch by Ulrich Drepper.
39002 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
39004 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
39005 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
39006 Giving in to popular pressure to shut up the compiler with casts.
39008 2000-10-26 Jim Meyering <meyering@lucent.com>
39010 * lib/strftime.c: Update from libc.
39012 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
39014 * regex.c: More `unsigned char' -> `re_char' changes.
39015 Also change several `int' into `re_wchar_t'.
39016 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
39017 (PUSH_FAILURE_POINTER): Don't cast any more.
39018 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
39019 We want GCC to complain, since this piece of code makes
39020 re_match non-reentrant, which *should* be fixed.
39021 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
39022 (EXTEND_BUFFER): Use RETALLOC.
39023 (SET_LIST_BIT): Don't cast.
39024 (re_wchar_t): New type.
39025 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
39026 that those two functions will always properly return.
39027 (IMMEDIATE_QUIT_CHECK): Cast to void.
39028 (analyse_first): Use recursion rather than an explicit stack.
39029 (re_compile_fastmap): Can't fail anymore.
39030 (re_search_2): Don't check re_compile_fastmap for failure.
39031 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
39032 Now also sets the new value (passed in a new argument).
39033 (re_match_2_internal): Use it.
39034 Also, use a new var `reg' of type size_t when looping through regs
39035 rather than reuse the inappropriate `mcnt'.
39037 2000-10-25 Jim Meyering <meyering@lucent.com>
39039 * lib/obstack.c: Update from libc.
39041 2000-10-24 Kenichi Handa <handa@etl.go.jp>
39043 * regex.c (regex_compile): Change the way of handling a range from
39044 a char less than 256 to a char not less than 256.
39046 2000-10-24 Andrew Innes <andrewi@gnu.org>
39048 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
39050 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
39051 so that re_search functions only quit when callers expect them to.
39053 2000-10-23 Jim Meyering <meyering@lucent.com>
39055 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
39056 wrong. That set_locale call must not have any side effects.
39059 2000-10-22 Jim Meyering <meyering@lucent.com>
39061 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
39062 [CYCLIC]: Remove now-unused definition.
39064 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
39065 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
39066 Suggestion from Ulrich Drepper.
39068 2000-10-21 Jim Meyering <meyering@lucent.com>
39070 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
39071 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
39072 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
39074 2000-10-21 Jim Meyering <meyering@lucent.com>
39076 * lib/dirname.c (memrchr): Declare if necessary.
39077 (dir_name): Remove the restriction that there be no
39078 trailing slashes. Now, this code skips past them, effectively
39080 [TEST_DIRNAME] (main): New unit tests.
39082 * lib/memrchr.c: New file from GNU libc.
39083 Undef __memrchr, too.
39084 [!weak_alias]: Define __memrchr to memrchr.
39085 Guard weak_alias use with `#ifdef weak_alias'.
39087 2000-10-21 Jim Meyering <meyering@lucent.com>
39089 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
39090 (dir_name): Use dir_name_r.
39091 * lib/dirname.h (dir_name_r): Declare it.
39093 2000-10-17 Jim Meyering <meyering@lucent.com>
39095 * lib/quote.h (PARAMS): Define and use.
39096 Reported by Akim Demaille.
39098 * lib/getopt.c: Update from libc.
39100 2000-10-16 Jim Meyering <meyering@lucent.com>
39102 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
39106 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
39108 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
39110 2000-09-25 Jim Meyering <meyering@lucent.com>
39112 * lib/md5.h (rol): Define (from GnuPG).
39114 * lib/sha.c: Give credit (GnuPG) where due.
39115 (M): Use rol rather than open-coding it.
39116 Add a FIXME comment.
39118 2000-09-21 Jim Meyering <meyering@lucent.com>
39120 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
39121 Reported by Michael Stone.
39123 2000-09-20 Jim Meyering <meyering@lucent.com>
39125 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
39126 (noinst_HEADERS): Add sha.h.
39127 Based on code from Scott G. Miller and from GnuPG.
39129 2000-09-18 Jim Meyering <meyering@lucent.com>
39131 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
39132 LIBS. Otherwise, everyone ends up linking with -lelf for some
39134 Reported by Mike Stone.
39136 2000-09-15 Jim Meyering <meyering@lucent.com>
39138 * lib/regex.c: Update from libc.
39140 2000-09-10 Jim Meyering <meyering@lucent.com>
39142 * lib/getopt.c (_getopt_internal): Update from glibc.
39144 2000-09-09 Jim Meyering <meyering@lucent.com>
39146 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
39147 think it should be used as a general replacement for isascii.
39148 * lib/fnmatch.c: Likewise.
39149 * lib/mbswidth.c: Likewise
39150 * lib/regex.c: Likewise.
39153 * lib/userspec.c: Include sys/param.h and limits.h.
39155 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
39156 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
39157 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
39158 UID, GID. Check range.
39160 2000-09-06 Jim Meyering <meyering@lucent.com>
39162 * lib/getopt.c (_getopt_internal): Update from glibc.
39164 2000-08-30 Jim Meyering <meyering@lucent.com>
39166 * lib/strftime.c: Merge in changes from GNU libc.
39168 2000-08-26 Jim Meyering <meyering@lucent.com>
39170 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
39171 * m4/fpending.m4: New file.
39173 2000-08-26 Jim Meyering <meyering@lucent.com>
39175 * lib/closeout.c: Include "__fpending.h".
39176 (close_stdout_status): Return right away if there's nothing to flush.
39178 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
39179 * lib/__fpending.c: New file.
39180 * lib/__fpending.h: New file.
39182 2000-08-20 Jim Meyering <meyering@lucent.com>
39184 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
39185 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
39186 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
39188 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
39190 Improve fileutils installation on systems where running
39191 programs (like install) can't be unlinked.
39192 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
39193 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
39195 2000-08-07 Paul Eggert <eggert@twinsun.com>
39197 Standardize on "memory exhausted" instead of "Memory exhausted"
39198 or "virtual memory exhausted".
39199 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
39200 "virtual memory exhausted".
39201 * lib/same.c (same_name): Invoke xalloc_die instead of printing
39203 * lib/userspec.c (parse_user_spec): Likewise.
39204 * lib/bumpalloc.h: comment fix
39205 * lib/same.c, userspec.c: Include xalloc.h.
39207 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
39208 not char *const and pointing to a constant array.
39209 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
39210 (xrealloc): Comment fix.
39212 * lib/userspec.c (parse_user_spec):
39213 Don't translate a message until just before returning,
39214 to avoid unnecessary translation.
39216 2000-08-07 Jim Meyering <meyering@lucent.com>
39218 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
39219 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
39220 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
39221 getgroups.c, gethostname.c, getopt.h, group-member.c,
39222 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
39223 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
39224 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
39225 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
39226 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
39227 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
39228 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
39229 yesno.c: Back out Copyright date changes for each file with no change
39230 this year. This eases coordination with other programs using the same
39231 source code modules. From Paul Eggert.
39233 2000-08-06 Paul Eggert <eggert@twinsun.com>
39235 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
39236 not char, for compatibility with glibc 2.1.3 strftime.c.
39238 2000-08-03 Greg McGary <greg@mcgary.org>
39240 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
39241 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
39242 (EXTEND_BUFFER): Use them.
39244 2000-08-01 Jim Meyering <meyering@lucent.com>
39246 * lib/dirname.c (ISSLASH): Define.
39247 (BACKSLASH_IS_PATH_SEPARATOR): Define.
39248 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
39249 both `\' and `/' may be use as path separators.
39250 Based on a patch from Prashant TR.
39252 2000-07-31 Paul Eggert <eggert@twinsun.com>
39254 * lib/quotearg.c (quotearg_n_options): Don't make the initial
39255 slot vector a constant, since it might get modified.
39257 2000-07-31 Jim Meyering <meyering@lucent.com>
39259 * lib/xmalloc.c: Use `virtual memory exhausted', not
39260 `Memory exhausted'.
39261 * lib/obstack.c (print_and_abort): Likewise.
39263 2000-07-30 Paul Eggert <eggert@twinsun.com>
39265 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
39266 buffer, so that the caller can always quote one small
39267 component of a "memory exhausted" message in slot 0.
39268 From a suggestion by Jim Meyering.
39270 2000-07-30 Jim Meyering <meyering@lucent.com>
39272 * lib/makepath.c (make_path): Quote the other instance, too.
39274 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
39275 (STATIC_BUF_SIZE): Define.
39276 (quotearg_n_options): Use only statically allocated storage when
39277 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
39278 than STATIC_BUF_SIZE.
39280 2000-07-29 Jim Meyering <meyering@lucent.com>
39282 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
39283 * lib/dirname.c (dir_name): Likewise.
39285 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
39288 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
39289 (dir_name): Assert that there are no trailing slashes.
39291 2000-07-29 Bruno Haible <haible@clisp.cons.org>
39293 * lib/mbswidth.h (mbswidth): Add a flags argument.
39294 (mbswidth): New declaration.
39295 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
39296 * lib/mbswidth.c (mbswidth): Add a flags argument.
39297 (mbsnwidth): New function.
39299 2000-07-24 Jim Meyering <meyering@lucent.com>
39301 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
39303 2000-07-23 Paul Eggert <eggert@twinsun.com>
39305 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
39307 2000-07-23 Paul Eggert <eggert@twinsun.com>
39309 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
39310 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
39311 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
39312 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
39313 invoke multibyte primitives.
39315 2000-07-23 Paul Eggert <eggert@twinsun.com>
39318 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
39319 so that mbstate_t is always defined.
39321 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
39322 be 1 in at least one GCC installation, and this configuration
39323 error is likely to be common. Ignoring MB_LEN_MAX hurts
39324 performance on hosts that have mbrtowc but have only unibyte
39325 locales, but I assume these hosts are rare.
39327 2000-07-23 Paul Eggert <eggert@twinsun.com>
39329 * lib/mbswidth.c (_XOPEN_SOURCE):
39330 Don't define; this causes problems on Solaris 7.
39331 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
39333 2000-07-23 Jim Meyering <meyering@lucent.com>
39335 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
39336 too: getgrgid, getpwuid, getuid.
39338 2000-07-23 Jim Meyering <meyering@lucent.com>
39340 * lib/basename.c (base_name): Add an assertion.
39342 2000-07-23 Bruno Haible <haible@clisp.cons.org>
39344 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
39345 shadow its mbsinit function.
39347 2000-07-17 Bruno Haible <haible@clisp.cons.org>
39349 * lib/mbswidth.h: New file.
39350 * lib/mbswidth.c: New file.
39351 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
39352 (noinst_HEADERS): Add mbswidth.h.
39354 2000-07-17 Bruno Haible <haible@clisp.cons.org>
39356 * lib/config.charset: Add support for FreeBSD. Improve support for
39359 2000-07-16 Bruno Haible <haible@clisp.cons.org>
39361 * m4/mbswidth.m4: New file.
39362 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
39364 2000-07-15 Jim Meyering <meyering@lucent.com>
39366 * lib/makepath.c: Include quote.h.
39367 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
39368 corresponding argument in a `quote (...)' call.
39369 Give better diagnostics.
39371 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
39372 (noinst_HEADERS): Add quote.h.
39374 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
39375 from tar's src/misc.c.
39376 * lib/quote.h: New file. Prototypes for same.
39378 2000-07-14 Paul Eggert <eggert@twinsun.com>
39380 From a suggestion by Bruno Haible.
39381 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
39382 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
39383 to decide whether to define the BeOS workaround macro;
39384 this adjusts to the change to AC_MBSTATE_T.
39386 2000-07-14 Jim Meyering <meyering@lucent.com>
39388 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
39389 jm_AC_TYPE_UINTMAX_T.
39391 2000-07-13 Paul Eggert <eggert@twinsun.com>
39393 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
39395 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
39396 quotearg_buffer_restyled): Add support for
39397 clocale_quoting_style. Undo previous change to
39398 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
39399 and "{RIGHT QUOTATION MARK}" msgids.
39401 2000-07-10 Paul Eggert <eggert@twinsun.com>
39403 From a suggestion by Bruno Haible.
39404 * m4/mbstate_t.m4 (AC_MBSTATE_T):
39405 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
39406 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
39407 and mbstate_t, to a single-part test that simply defines mbstate_t.
39408 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
39409 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
39411 2000-07-10 Jim Meyering <meyering@lucent.com>
39413 * m4/strerror_r.m4: Mirror the correction made in autoconf.
39415 * m4/gnu-source.m4: Output to confdefs.h directly.
39416 Suggestion from Akim Demaille.
39418 2000-07-09 Paul Eggert <eggert@twinsun.com>
39420 The old behavior of quoting `like this' doesn't look good with
39421 newer, ISO-style fonts. See:
39422 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
39424 Instead, quote "like this" by default. Let the translator
39425 tailor the locale-specific quoting behavior by providing
39426 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
39428 * lib/quotearg.c (N_): New macro.
39429 (gettext_default): New function.
39430 (quotearg_buffer_restyled): Use
39431 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
39432 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
39434 2000-07-09 Jim Meyering <meyering@lucent.com>
39436 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
39437 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
39439 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
39440 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
39442 2000-07-09 Jim Meyering <meyering@lucent.com>
39444 * lib/Most files: Update copyright dates to include 2000.
39446 2000-07-08 Jim Meyering <meyering@lucent.com>
39448 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
39450 (xgethostname): Remove now-unnecessary #ifdef.
39451 Move declaration of `err' into loop where it's used.
39453 2000-07-05 Paul Eggert <eggert@twinsun.com>
39454 and Bruno Haible <haible@clisp.cons.org>
39456 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
39457 only if the test for an object-type mbstate_t fails. This
39458 prevents us from mistakenly reporting that mbstate_t is a
39459 system object type after we "#define mbstate_t int" to work
39462 2000-07-05 Paul Eggert <eggert@twinsun.com>
39463 and Bruno Haible <haible@clisp.cons.org>
39465 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
39467 2000-07-05 Bruno Haible <haible@clisp.cons.org>
39469 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
39471 Include <ctype.h> for use of isalpha.
39473 2000-07-05 Bruno Haible <haible@clisp.cons.org>
39475 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
39476 by allocating a larger buffer. Test the gethostname return value for
39477 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
39478 returns an error and ENAMETOOLONG isn't defined.
39480 2000-07-05 Bruno Haible <haible@clisp.cons.org>
39482 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
39485 2000-07-04 Jim Meyering <meyering@lucent.com>
39487 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
39488 of the deprecated AC_CHECKING.
39490 2000-07-04 Jim Meyering <meyering@lucent.com>
39492 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
39493 Reported by Bruno Haible.
39495 2000-07-04 Jim Meyering <meyering@lucent.com>
39497 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
39498 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
39501 2000-07-03 Paul Eggert <eggert@twinsun.com>
39503 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
39504 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
39506 2000-07-03 Paul Eggert <eggert@twinsun.com>
39507 and Bruno Haible <haible@clisp.cons.org>
39509 * lib/quotearg.c (mbrtowc):
39510 Assign to *pwc, and return 1 only if result is nonzero.
39511 (iswprint): Use ISPRINT when substituting our own mbrtowc.
39513 2000-07-03 Jim Meyering <meyering@lucent.com>
39515 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
39517 2000-07-03 Jim Meyering <meyering@lucent.com>
39519 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
39520 This is necessary to get a definition of e.g., UTMP_FILE on
39524 2000-07-02 Jim Meyering <meyering@lucent.com>
39526 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
39528 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
39529 AC_LIBOBJ(function_name).
39530 * m4/chown.m4: Likewise.
39531 * m4/fnmatch.m4: Likewise.
39532 * m4/ftruncate.m4: Likewise.
39533 * m4/getgroups.m4: Likewise.
39534 * m4/getline.m4: Likewise.
39535 * m4/group-member.m4: Likewise.
39536 * m4/jm-macros.m4: Likewise.
39537 * m4/lstat.m4: Likewise.
39538 * m4/malloc.m4: Likewise.
39539 * m4/memcmp.m4: Likewise.
39540 * m4/nanosleep.m4: Likewise.
39541 * m4/putenv.m4: Likewise.
39542 * m4/realloc.m4: Likewise.
39543 * m4/regex.m4: Likewise.
39544 * m4/stat.m4: Likewise.
39545 * m4/strftime.m4: Likewise.
39547 2000-07-02 Jim Meyering <meyering@lucent.com>
39549 * lib/quotearg.c (mbstate_t): Don't define here.
39551 2000-07-02 Jim Meyering <meyering@lucent.com>
39553 * lib/nanosleep.c (SIGCONT): Define if not already defined.
39555 2000-07-01 Jim Meyering <meyering@lucent.com>
39557 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
39559 2000-07-01 Jim Meyering <meyering@lucent.com>
39561 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
39564 2000-07-01 Bruno Haible <haible@clisp.cons.org>
39566 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
39567 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
39569 2000-07-01 Bruno Haible <haible@clisp.cons.org>
39571 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
39572 per change in ../m4/ls-mntd-fs.m4.
39573 (read_filesystem_list): Ignore symbolic links.
39575 2000-06-29 Jim Meyering <meyering@lucent.com>
39577 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
39578 for declaration of strcmp.
39580 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
39582 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
39583 Avoid warning by casting result to `char *' to remove `const'.
39585 2000-06-28 Jim Meyering <meyering@lucent.com>
39587 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
39588 included by quotearg.c, for which we perform this test. From
39591 2000-06-27 Bruno Haible <haible@clisp.cons.org>
39593 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
39594 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
39595 <utmpx.h> exists, put readutmp.o into LIBOBJS.
39597 2000-06-27 Bruno Haible <haible@clisp.cons.org>
39599 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
39601 2000-06-26 Paul Eggert <eggert@twinsun.com>
39603 savedir now sets errno on failure and invokes xmalloc to get memory.
39604 Fix a couple of other minor bugs while we're at it.
39606 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
39607 (NAMLEN): Remove macro.
39608 (malloc, realloc): Remove decls.
39609 (stpcpy): Likewise.
39610 ("xalloc.h"): Include.
39611 (NAME_SIZE_DEFAULT): New macro.
39612 (savedir): Use xmalloc / xrealloc to allocate memory.
39613 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
39614 Skip "" directory entries.
39615 Use strlen to calculate directory entry length, since the old method
39616 is rarely used these days and isn't worth supporting.
39617 Don't use a pointer after freeing it.
39618 Check for integer overflow when calculating allocation size.
39619 Use memcpy to copy entries, instead of stpcpy.
39620 Set errno properly when returning NULL.
39621 Check for readdir error.
39623 2000-06-26 Jim Meyering <meyering@lucent.com>
39625 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
39627 2000-06-25 Jim Meyering <meyering@lucent.com>
39629 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
39630 Linux header bug when _XOPEN_SOURCE is defined to 500.
39632 2000-06-25 Bruno Haible <haible@clisp.cons.org>
39634 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
39637 2000-06-25 Bruno Haible <haible@clisp.cons.org>
39639 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
39641 Don't include <stdlib.h>. Don't declare malloc, realloc.
39643 2000-06-24 Jim Meyering <meyering@lucent.com>
39645 * m4/strerror_r.m4: Revive this file -- to try out an experimental
39646 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
39647 for which strerror does return char*, but which lacks a conveniently
39648 accessible declaration of the function. If the compile-test says
39649 strerror_r doesn't work, then resort to a `run'-test that works on
39650 BeOS and segfaults on DEC Unix.
39652 2000-06-24 Jim Meyering <meyering@lucent.com>
39654 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
39656 2000-06-23 Paul Eggert <eggert@twinsun.com>
39658 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
39659 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
39661 2000-06-23 Paul Eggert <eggert@twinsun.com>
39663 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
39664 (mbrtowc, mbstate_t): Define substitutes if
39665 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
39666 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
39667 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
39669 2000-06-23 Jim Meyering <meyering@lucent.com>
39671 * m4/afs.m4: Add missing AC_MSG_RESULT.
39672 Reported by Bruno Haible.
39674 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
39675 Suggestion from Bruno Haible.
39677 2000-06-23 Jim Meyering <meyering@lucent.com>
39679 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
39681 2000-06-21 Jim Meyering <meyering@lucent.com>
39683 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
39685 2000-06-21 Jim Meyering <meyering@lucent.com>
39687 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
39688 (noinst_HEADERS): Add getstr.h.
39690 * lib/getline.c (getstr): Move into a separate file.
39691 * lib/getstr.c (getstr): New file, extracted from getline.c, with
39692 the following changes: new parameter, delim2; both delim[12]
39693 parameters have type `int', not `char'. The latter would lose
39694 with 8-bit delimiters.
39695 * lib/getstr.h: New file.
39697 2000-06-21 Bruno Haible <haible@clisp.cons.org>
39699 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
39700 than 1024, return a memory chunk of least possible size, instead
39701 of size PATH_MAX + 2. In the loop, increment the size proportionally.
39702 Use free/xmalloc instead of xrealloc to avoid copying for very long
39705 2000-06-21 Bruno Haible <haible@clisp.cons.org>
39707 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
39710 2000-06-21 Bruno Haible <haible@clisp.cons.org>
39712 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
39713 address, not strdup. Include <stdlib.h> and don't declare free().
39715 2000-06-19 Jim Meyering <meyering@lucent.com>
39717 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
39719 2000-06-18 Jim Meyering <meyering@lucent.com>
39721 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
39723 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
39724 `checking whether...' message to be consistent with that of the
39727 2000-06-18 Jim Meyering <meyering@lucent.com>
39729 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
39730 Besides, these days every porting target provides a mkdir function.
39732 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
39733 needed. (this snippet comes from src/system.h).
39735 2000-06-16 Bruno Haible <haible@clisp.cons.org>
39737 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
39739 2000-06-15 Paul Eggert <eggert@twinsun.com>
39741 * lib/human.c (adjust_value): New function.
39742 (human_readable_inexact): Apply rounding style even when
39743 printing approximate values.
39745 2000-06-14 Paul Eggert <eggert@twinsun.com>
39747 * lib/human.c (human_readable_inexact): Allow an input block
39748 size that is not a multiple of the output block size, and vice versa.
39749 Reported by Piergiorgio Sartor.
39751 2000-06-14 Paul Eggert <eggert@twinsun.com>
39753 * lib/getdate.y (get_date): Apply relative times after time
39754 zone indicator, not before. Reported by Todd A. Jacobs.
39756 2000-06-13 Jim Meyering <meyering@lucent.com>
39758 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
39760 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
39762 2000-06-12 Paul Eggert <eggert@twinsun.com>
39764 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
39766 2000-06-12 Jim Meyering <meyering@lucent.com>
39768 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
39769 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
39771 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
39772 the optional argument, `lib'.
39774 2000-06-08 Jim Meyering <meyering@lucent.com>
39776 * m4/largefile.m4: Remove file (now that it's part of autoconf).
39778 2000-06-04 Paul Eggert <eggert@twinsun.com>
39780 Rewrite largefile configuration so that we don't need to run
39781 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
39782 AC_CANONICAL_HOST in configure.in -- jmm]
39784 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
39785 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
39786 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
39787 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
39788 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
39790 Instead of inspecting the output of getconf, try to compile the
39791 test program without and with the macro definition.
39792 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
39793 for getconf. Instead, check for the needed flags by compiling
39796 2000-06-04 Paul Eggert <eggert@twinsun.com>
39798 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
39800 2000-06-04 Jim Meyering <meyering@lucent.com>
39802 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
39803 SunOS 4.1.4 for which gid_t is an unsigned type.
39805 2000-06-03 Jim Meyering <meyering@lucent.com>
39807 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
39808 now that autoconf requires that.
39810 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
39811 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
39812 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
39814 2000-06-03 Jim Meyering <meyering@lucent.com>
39816 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
39818 2000-06-03 Bruno Haible <haible@clisp.cons.org>
39820 * m4/glibc21.m4: New file.
39821 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
39823 2000-06-03 Bruno Haible <haible@clisp.cons.org>
39825 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
39826 newer, don't install charset.alias.
39827 * lib/config.charset: Change the Linux/glibc rules so they become empty
39828 on glibc-2.1 or newer.
39830 2000-06-02 Jim Meyering <meyering@lucent.com>
39832 * lib/mountlist.c: Back out last change. Instead, do this...
39833 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
39834 me_dummy member using the same `ignore'-testing code.
39835 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
39839 2000-05-29 Jim Meyering <meyering@lucent.com>
39841 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
39842 mounts with the `ignore' attribute. Based on a patch from
39845 2000-05-28 Jim Meyering <meyering@lucent.com>
39847 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
39848 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39849 * m4/stat.m4: Likewise.
39850 * m4/lstat.m4: Likewise.
39851 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
39853 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
39854 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
39856 2000-05-26 Jim Meyering <meyering@lucent.com>
39858 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
39860 2000-05-24 Jim Meyering <meyering@lucent.com>
39862 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
39863 autoconf requires that.
39864 * m4/lib-check.m4: Likewise.
39865 * m4/jm-macros.m4: Likewise.
39866 * m4/strftime.m4: Likewise.
39868 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
39869 AC_CHECK_DECLS, now that autoconf requires that.
39871 2000-05-22 Jim Meyering <meyering@lucent.com>
39873 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39874 * m4/lstat.m4: Likewise.
39876 2000-05-22 Jim Meyering <meyering@lucent.com>
39878 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
39880 2000-05-20 Jim Meyering <meyering@lucent.com>
39882 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
39883 (jm_PREREQ): Use it.
39885 2000-05-18 Jim Meyering <meyering@lucent.com>
39887 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
39888 back, too, since it may have been modified by allocate_entry.
39889 (hash_delete): Rewrite to use neither the assignment operator
39890 nor the comma operator in an if-expression.
39892 2000-05-15 Paul Eggert <eggert@twinsun.com>
39895 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
39896 Remove; no longer needed.
39897 "quotearg.h": Add include.
39898 (file_name): Do not bother to explicitly initialize to NULL; it's less
39899 efficient on some hosts.
39900 (close_stdout_status): Remove test as to whether stdout was already
39901 closed; it breaks for the case "echo x | sort >&-".
39902 Quote file name colons.
39903 Do not assume that _("write error") lacks format strings.
39905 2000-05-15 Jim Meyering <meyering@lucent.com>
39907 * lib/version-etc.c (version_etc_copyright): Update the copyright
39908 string used in all --version output.
39910 2000-05-14 Jim Meyering <meyering@lucent.com>
39912 * lib/closeout.c (close_stdout_set_file_name): New function.
39913 (close_stdout_status): Use new file-scoped global.
39914 Return right away if fstat says the stdout file descriptor is invalid.
39915 * lib/closeout.h (close_stdout_set_file_name): Declare.
39917 2000-05-10 Jim Meyering <meyering@lucent.com>
39919 * lib/closeout.c [default_exit_status]: New file-scoped variable.
39920 (close_stdout_set_status): New function.
39921 * lib/closeout.h (close_stdout_set_status): Declare.
39923 2000-05-09 Jim Meyering <meyering@lucent.com>
39925 * m4/gettext.m4: Rename this...
39926 * m4/libintl.m4: ...to this.
39928 2000-05-08 Jim Meyering <meyering@lucent.com>
39930 * lib/long-options.c: Don't include closeout.h.
39931 (parse_long_options): Don't call close_stdout for --version.
39933 2000-05-06 Paul Eggert <eggert@twinsun.com>
39935 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
39936 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
39937 2.1.3 bug. This avoids a clash when files like regex.c define
39940 2000-05-06 Jim Meyering <meyering@lucent.com>
39942 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
39943 (AC_REPLACE_FUNCS): Add strnlen.
39945 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
39946 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
39948 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
39949 AC_SEARCH_LIBS call for nanosleep.
39950 (LIB_NANOSLEEP): Set and AC_SUBST.
39952 2000-05-06 Jim Meyering <meyering@lucent.com>
39954 * lib/strnlen.c: Undefine __strnlen and strnlen.
39955 [!weak_alias]: Define __strnlen to strnlen.
39957 * lib/atexit.c: New file, from libiberty.
39959 2000-05-06 Jim Meyering <meyering@lucent.com>
39961 * lib/closeout.c (close_stdout_status): Also check for errors on the
39964 2000-05-05 Jim Meyering <meyering@lucent.com>
39966 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
39967 AC_SEARCH_LIBS call for clock_gettime.
39968 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
39970 * m4/search-libs.m4: Update from autoconf.
39972 su doesn't work on Solaris 2.6.
39973 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
39974 <shadow.h>. Reported by Dragos Harabor.
39976 2000-05-05 Bruno Haible <haible@clisp.cons.org>
39978 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
39979 memcpy instead of xmalloc, xrealloc, path_concat.
39980 (locale_charset): Treat empty environment variables as absent.
39981 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
39983 2000-05-04 Jim Meyering <meyering@lucent.com>
39985 * lib/getopt.c: Update from glibc.
39986 * lib/obstack.c: Likewise.
39987 * lib/obstack.h: Likewise.
39988 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
39991 * lib/regex.h: Likewise.
39992 * lib/strndup.c: Likewise.
39993 * lib/strnlen.c: New file, from glibc.
39995 2000-05-03 Jim Meyering <meyering@lucent.com>
39997 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
39999 2000-05-02 Paul Eggert <eggert@twinsun.com>
40001 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
40002 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
40003 compile-time test, rather than inspecting host and OS, to
40004 decide whether to define _LARGEFILE_SOURCE.
40006 2000-05-01 Jim Meyering <meyering@lucent.com>
40008 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
40010 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
40011 Based on a patch from Bruno Haible.
40013 2000-05-01 Jim Meyering <meyering@lucent.com>
40015 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
40017 2000-04-29 Jim Meyering <meyering@lucent.com>
40019 * lib/path-concat.c: Declare strdup only if it's not defined.
40020 * lib/canon-host.c: Likewise.
40022 2000-04-28 Jim Meyering <meyering@lucent.com>
40024 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
40025 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
40026 is included first, then limits.h is included by locale.h by libintl.h.
40027 From John David Anglin.
40029 2000-04-25 Jim Meyering <meyering@lucent.com>
40031 * lib/makepath.c (S_IRWXUGO): Define.
40032 (make_path): Always perform explicit chmod if MODE specifies any
40033 of the `special' permission bits. Prompted by a bug report against
40034 install from Mate Wierdl and Joost van Baal.
40036 2000-04-18 Jim Meyering <meyering@lucent.com>
40038 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
40039 (jm_PREREQ): Use it.
40041 2000-04-18 Jim Meyering <meyering@lucent.com>
40043 * lib/README: New file.
40045 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
40046 getpagesize. For BeOS. Based on a patch from Bruno Haible.
40048 2000-04-17 Jim Meyering <meyering@lucent.com>
40051 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
40052 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
40053 Suggestion from Akim Demaille.
40055 2000-04-17 Jim Meyering <meyering@lucent.com>
40057 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
40058 the definition of it to rpl_strftime also defined-away the system's
40061 2000-04-15 Jim Meyering <meyering@lucent.com>
40063 Use `C' to denote so-called `contiguous' files, the same way
40065 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
40066 (ftypelet): Use S_ISCTG.
40067 From Michael Deutschmann.
40069 2000-04-14 Jim Meyering <meyering@lucent.com>
40071 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
40072 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
40075 2000-04-14 Jim Meyering <meyering@lucent.com>
40077 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
40079 2000-04-13 Jim Meyering <meyering@lucent.com>
40081 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
40082 AH_VERBATIM to insert required #ifndef into config.h.in.
40083 Suggestion from Akim Demaille.
40085 2000-04-12 Jim Meyering <meyering@lucent.com>
40087 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
40088 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
40089 Christian Krackowizer.
40091 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
40092 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
40093 (AC_SYS_LARGEFILE): Require.
40094 (AM_C_PROTOTYPES): Require.
40096 2000-04-08 Jim Meyering <meyering@lucent.com>
40098 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
40099 names don't conflict. Reported by Eli Zaretskii.
40101 2000-04-07 Jim Meyering <meyering@lucent.com>
40103 * lib/putenv.c: Move inclusion of errno.h so it follows that of
40104 sys/types.h, to work around system header problems on AIX 3.2.5.
40107 2000-04-07 Bruno Haible <haible@clisp.cons.org>
40109 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
40110 bug. Deal with the different error behavior of Irix iconv.
40112 2000-04-05 Paul Eggert <eggert@twinsun.com>
40114 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
40115 IRIX if the installer said otherwise.
40117 2000-04-05 Jim Meyering <meyering@lucent.com>
40119 Portability tweaks required for ultrix4.3.
40120 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
40121 (jm_CHECK_DECLS): Add getutent to the list of functions.
40122 (_jm_DECL_HEADERS): Add utmpx.h.
40123 From John David Anglin.
40125 * m4/strftime.m4: Back out the 2000-04-02 change.
40126 Instead of that change, simply undefine putenv in the test program.
40128 2000-04-05 Jim Meyering <meyering@lucent.com>
40130 Portability tweaks required for ultrix4.3.
40131 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
40133 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
40134 * lib/canon-host.c: Declare strdup.
40135 * lib/path-concat.c: Likewise.
40136 From John David Anglin.
40138 2000-04-04 Jim Meyering <meyering@lucent.com>
40140 Be more DOS 8.3-friendly.
40141 * lib/ref-add.sin: Renamed from ref-add.sed.in.
40142 * lib/ref-del.sin: Renamed from ref-del.sed.in.
40143 * lib/Makefile.am: Reflect renaming.
40144 Reported by Eli Zaretskii.
40146 Use a temporary file name that won't clash with `charset.alias'
40147 in the DOS 8.3 name space.
40148 * lib/Makefile.am (charset_tmp): Define.
40149 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
40150 (uninstall-local): Likewise.
40151 Reported by Eli Zaretskii.
40153 2000-04-03 Jim Meyering <meyering@lucent.com>
40155 * m4/gettext.m4: Fix typo in comment.
40157 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
40158 textutils/configure.in). Suggestion from Paul Eggert.
40159 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
40161 2000-04-02 Paul Eggert <eggert@twinsun.com>
40163 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
40164 variable in the shell rather than using putenv, which isn't
40165 portable. This avoids the configure-time inter-test dependency
40166 on the potentially-renamed putenv function.
40168 2000-03-30 Paul Eggert <eggert@twinsun.com>
40170 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
40171 before checking struct stat.st_blksize, so that
40172 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
40174 2000-03-29 Paul Eggert <eggert@twinsun.com>
40176 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
40177 since strftime.c uses HAVE_STRFTIME to decide whether to use
40178 the underlying strftime.
40180 2000-03-29 Paul Eggert <eggert@twinsun.com>
40182 * lib/time/strftime.c (my_strftime): Make sure we call the system
40183 strftime, not ourselves, when invoking the underlying strftime.
40185 2000-03-24 Jim Meyering <meyering@lucent.com>
40187 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
40188 (charset_alias): Define.
40189 (install-exec-local): Factor out common code.
40190 (uninstall-local): Split lines longer than 80.
40191 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
40192 (SUFFIXES): Define.
40193 (.sed.in.sed): New rule. Don't redirect directly to $@.
40194 (CLEANFILES): Add ref-add.sed and ref-del.sed.
40196 2000-03-19 Bruno Haible <haible@clisp.cons.org>
40198 * lib/config.charset: Output a line containing "Packages using this
40200 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
40201 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
40202 ref-del.sed): New rules.
40204 2000-03-17 Jim Meyering <meyering@lucent.com>
40206 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
40207 Otherwise, include <strings.h>
40209 2000-03-17 Bruno Haible <haible@clisp.cons.org>
40211 * lib/unicodeio.c (utf8_wctomb): New function.
40212 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
40213 format instead of in UCS-4 with platform dependent endianness.
40215 2000-03-10 Jim Meyering <meyering@lucent.com>
40217 * m4/lib-check.m4: Look for getspnam in -lgen, too.
40218 From Marco Franzen.
40220 2000-03-07 Paul Eggert <eggert@twinsun.com>
40222 * lib/savedir.c (savedir): Work even if directory size is
40223 negative; this can happen with some screwy NFS configurations.
40225 2000-03-06 Jim Meyering <meyering@lucent.com>
40227 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
40228 if it's NULL (because we ran out of memory). From Bruno Haible.
40230 2000-03-05 Jim Meyering <meyering@lucent.com>
40232 * lib/localcharset.c ("path-concat.h"): Include.
40233 (get_charset_aliases): Use path_concat instead of ANSI string
40236 * lib/unicodeio.h (PARAMS): Define.
40237 Use it to guard prototype.
40239 2000-03-04 Jim Meyering <meyering@lucent.com>
40241 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
40242 for lib/localcharset.c.
40244 2000-03-04 Jim Meyering <meyering@lucent.com>
40246 * lib/Makefile.am (install-exec-local): Create $(libdir) before
40247 installing into it.
40248 (uninstall-local): Uncomment this rule so `make distcheck' works
40251 * lib/unicodeio.c (<errno.h>): Include it.
40252 (errno): Declare if not defined.
40254 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
40256 * lib/config.charset: New version, incorporating remarks from a linux
40257 i18n mailing list. From Bruno Haible.
40259 2000-03-04 Bruno Haible <haible@clisp.cons.org>
40261 * m4/codeset.m4: New file.
40262 * m4/iconv.m4: New file.
40263 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
40265 2000-03-03 Jim Meyering <meyering@lucent.com>
40267 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
40269 2000-03-02 Jim Meyering <meyering@lucent.com>
40271 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
40272 the messages come out on separate lines.
40274 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
40275 rather than jm_CHECK_DECLARATIONS.
40276 * m4/decl.m4: Remove now-unused file.
40278 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
40281 2000-03-02 Jim Meyering <meyering@lucent.com>
40283 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
40285 2000-03-01 Jim Meyering <meyering@lucent.com>
40287 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
40288 * lib/unicodeio.c: Likewise.
40290 2000-03-01 Bruno Haible <haible@clisp.cons.org>
40292 * lib/config.charset: New file.
40293 * lib/localcharset.c: New file.
40294 * lib/unicodeio.h, lib/unicodeio.c: New files.
40295 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
40296 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
40297 (noinst_HEADERS): Add unicodeio.h.
40298 (all-local, install-exec-local, charset.alias): New targets.
40300 2000-02-28 Paul Eggert <eggert@twinsun.com>
40302 * lib/quotearg.c (ALERT_CHAR): New macro.
40303 (quotearg_buffer_restyled): Use it.
40305 2000-02-27 Jim Meyering <meyering@lucent.com>
40307 * m4/check-decl.m4: Add getenv to the list.
40309 2000-02-27 Jim Meyering <meyering@lucent.com>
40311 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
40312 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
40314 * lib/backupfile.c: Guard inclusion of stdlib.h with
40315 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
40316 Declare malloc if needed.
40318 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
40319 `#ifndef HAVE_DECL..'
40320 now that autoconf always defines the HAVE_DECL_ symbols.
40321 * lib/human.c: Likewise.
40322 * lib/same.c: Likewise.
40323 * lib/strtoumax.c: Likewise.
40325 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
40326 declaration check was not run.
40327 * lib/hash.c: Likewise.
40328 * lib/human.c: Likewise.
40329 * lib/same.c: Likewise.
40330 * lib/strtoumax.c: Likewise.
40332 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
40333 `.', then first look up the entire `.'-containing string as a login
40336 2000-02-23 Jim Meyering <meyering@lucent.com>
40338 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
40339 in place of my hack.
40341 2000-02-18 Paul Eggert <eggert@twinsun.com>
40343 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
40344 (textint): New typedef.
40345 (parser_control): Member year changed from int to textint.
40347 (YYSTYPE): Removed; replaced by %union with int and textint members.
40348 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
40349 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
40350 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
40351 (tSNUMBER, tUNUMBER): Now of type <textintval>.
40352 (date, number, to_year): Use width of number in digits, not its value,
40353 to determine whether it's a 2-digit year, or a 2-digit time.
40354 (yylex): Store number of digits of numeric tokens.
40355 Reported by John Kendall.
40357 (parser_control): Changed from struct parser_control to typedef (for
40358 consistency). All uses changed.
40360 (tID): Removed; not used.
40361 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
40363 2000-02-14 Paul Eggert <eggert@twinsun.com>
40365 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
40366 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
40368 2000-02-12 Jim Meyering <meyering@lucent.com>
40370 * lib/userspec.c (ISDIGIT): Define it.
40371 (isdigit): Remove definition.
40372 (is_number): Use ISDIGIT, not isdigit.
40373 <libintl.h>: Include.
40374 (_ and N_): Define.
40375 (parse_user_spec): Mark translatable strings.
40377 2000-02-10 Jim Meyering <meyering@lucent.com>
40379 With these changes, nanosleep.[ch] are finally enough like the other
40380 lib/* replacement files to compile on a few more losing systems.
40382 * lib/nanosleep.h: Don't include config.h.
40383 Remove prototype from declaration of nanosleep.
40384 (PARAMS): Remove now-unneeded definition.
40385 * lib/nanosleep.c: #undef nanosleep.
40386 (rpl_nanosleep): Rename from nanosleep.
40388 2000-02-10 Jim Meyering <meyering@lucent.com>
40390 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
40391 gnu_nanosleep to rpl_nanosleep.
40393 2000-02-09 Jim Meyering <meyering@lucent.com>
40395 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
40396 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
40398 2000-02-08 Akim Demaille <akim@epita.fr>
40400 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
40401 `[' and `]' and remove uses of `changequote'.
40402 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
40403 (AC_SYS_LARGEFILE): Likewise.
40404 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
40405 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
40407 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
40408 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
40409 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
40410 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
40412 2000-02-05 Jim Meyering <meyering@lucent.com>
40414 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
40415 Remove explicit use of AC_HEADER_TIME. It is required by
40416 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
40417 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
40418 in autoconf whereby the expansion of the latter ended up preceding
40419 the expansion of its prerequisite, AC_HEADER_TIME.
40420 Reported by Volker Borchert.
40422 2000-02-03 Jim Meyering <meyering@lucent.com>
40424 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
40426 2000-02-03 Jim Meyering <meyering@lucent.com>
40428 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
40429 rather than with `#if HAVE_UTMPNAME'.
40431 2000-02-02 Jim Meyering <meyering@lucent.com>
40433 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
40434 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
40435 Reported by Eli Zaretskii.
40437 2000-02-01 Jim Meyering <meyering@lucent.com>
40439 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
40441 2000-01-31 Jim Meyering <meyering@lucent.com>
40443 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
40444 functions. Add the time.h and sys/time.h headers along with the
40445 AC_REQUIRE'ment of AC_HEADER_TIME.
40447 2000-01-31 Jim Meyering <meyering@lucent.com>
40449 * lib/nanosleep.h (nanosleep): Guard declaration with
40450 `#if ! HAVE_DECL_NANOSLEEP'.
40451 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
40452 the declaration in that vendor's sys/timers.h.
40453 Reported by Christian Krackowizer.
40455 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
40456 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
40457 (ISPRINT): Likewise.
40458 Reported by Tom Tromey.
40460 2000-01-30 Jim Meyering <meyering@lucent.com>
40462 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
40464 * m4/prereq.m4 (utmp_includes): Define.
40465 Check for ut_user and ut_name members in both struct utmpx
40468 2000-01-30 Jim Meyering <meyering@lucent.com>
40470 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
40471 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
40472 header files where only utmpx.ut_user is declared.
40474 * lib/readutmp.h (UT_USER): Define.
40476 2000-01-29 Jim Meyering <meyering@lucent.com>
40478 * m4/lib-check.m4: New file containing library-related checks from
40479 fileutils and sh-utils (textutils had none).
40481 2000-01-28 Jim Meyering <meyering@lucent.com>
40483 * m4/perl.m4: Change format of warning message to look more like that
40484 from the missing script. Suggestion from François Pinard.
40486 2000-01-25 Jim Meyering <meyering@lucent.com>
40488 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
40489 well as time.h in the compile check.
40490 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
40491 Fix typo in cross-compiling case: s/yes/no/.
40493 2000-01-23 Jim Meyering <meyering@lucent.com>
40495 * m4/jm-macros.m4: Move df-related tests here from
40496 fileutils/configure.in
40498 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
40499 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
40501 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
40502 s/space/ac_fsusage_space/.
40503 (jm_FILE_SYSTEM_USAGE): Take two parameters.
40505 * m4/ftruncate.m4: New file (derived from part of
40506 fileutils/configure.in).
40507 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
40508 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
40510 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
40511 AC_SUBST these here, rather than just in sh-util/configure.in, so
40512 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
40514 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
40515 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
40516 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
40517 (AC_SUBST(POW_LIBM)): Likewise.
40518 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
40520 2000-01-23 Jim Meyering <meyering@lucent.com>
40522 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
40525 2000-01-22 Jim Meyering <meyering@lucent.com>
40527 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
40529 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
40531 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
40533 (AC_CHECK_HEADERS): Likewise for sh-utils.
40534 (AC_CHECK_HEADERS): Likewise for textutils.
40535 Merge the three lists of headers.
40537 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
40538 from fileutils' configure.in.
40540 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
40541 code. Moved tests into their own function (_jm_DECL_HEADERS) in
40544 * m4/check-decl.m4: Use #if rather than #ifdef.
40545 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
40546 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
40547 (_jm_DECL_HEADERS): Define new function.
40548 (jm_CHECK_DECLARATIONS): Require it.
40550 2000-01-22 Jim Meyering <meyering@lucent.com>
40552 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
40553 [! HAVE_DECL_STRTOULL]: Declare strtoull.
40554 Required for some AIX systems. Reported by Christian Krackowizer.
40555 [TESTING] (main): New function.
40557 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
40558 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
40561 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
40564 * lib/strverscmp.c (ISDIGIT): Define.
40565 (strverscmp): Use ISDIGIT, not isdigit.
40567 2000-01-19 Jim Meyering <meyering@lucent.com>
40569 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
40570 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
40571 defines `struct timespec' in <sys/time.h>
40573 * m4/c-bs-a.m4: Remove uses of changequote altogether.
40574 Thanks to Akim for explaining.
40576 2000-01-17 Paul Eggert <eggert@twinsun.com>
40578 * lib/nanosleep.c (nanosleep):
40579 Don't use SA_INTERRUPT to decide whether to call sigaction, as
40580 POSIX.1 doesn't require SA_INTERRUPT and some systems
40581 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
40582 it's been part of POSIX.1 since day 1 (in 1988).
40584 2000-01-17 Jim Meyering <meyering@lucent.com>
40586 * lib/interlock: Remove unused file. Reported by François Pinard.
40588 2000-01-16 Paul Eggert <eggert@twinsun.com>
40590 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
40591 alert, backslash, formfeed, and vertical tab unnecessarily in
40592 shell quoting style.
40594 2000-01-16 Jim Meyering <meyering@lucent.com>
40596 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
40597 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
40598 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
40599 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
40601 2000-01-16 Jim Meyering <meyering@lucent.com>
40603 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
40604 because the latter didn't work.
40606 2000-01-15 Jim Meyering <meyering@lucent.com>
40608 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
40609 (AC_REPLACE_FUNCS): Add memcpy and memset.
40610 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
40612 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
40614 2000-01-12 Jim Meyering <meyering@lucent.com>
40616 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
40617 (jm_PREREQ): Use it.
40618 (jm_PREREQ_READUTMP): New macro.
40619 (jm_PREREQ): Use it.
40621 2000-01-11 Paul Eggert <eggert@twinsun.com>
40623 Quote multibyte characters correctly.
40624 * m4/c-bs-a.m4: New file.
40625 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
40626 (jm_PREREQ): Use it.
40628 2000-01-11 Paul Eggert <eggert@twinsun.com>
40630 * m4/uintmax_t.m4: Port to autoconf 2.13.
40632 2000-01-08 Jim Meyering <meyering@ascend.com>
40634 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
40635 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
40637 2000-01-04 Jim Meyering <meyering@ascend.com>
40639 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
40640 jm_STRUCT_DIRENT_D_TYPE.
40641 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
40642 jm_STRUCT_DIRENT_D_INO.
40643 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
40645 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
40647 * m4/utime.m4: Likewise.
40649 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
40650 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
40652 2000-01-03 Paul Eggert <eggert@twinsun.com>
40654 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
40655 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
40657 2000-01-02 Jim Meyering <meyering@ascend.com>
40659 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
40660 remember if this is necessary.
40662 1999-12-26 Jim Meyering <meyering@ascend.com>
40664 * m4/jm-macros.m4: Use it here.
40665 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
40667 1999-12-23 Jim Meyering <meyering@ascend.com>
40669 * m4/jm-macros.m4: Check for clock_gettime (moved from
40670 fileutils/configure.in)
40671 Check for gettimeofday.
40673 1999-12-20 Jim Meyering <meyering@ascend.com>
40675 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
40676 autoconf-2.14a-1999-12-20.
40678 1999-12-19 Jim Meyering <meyering@ascend.com>
40680 * m4/lstat-slash.m4: New file.
40681 * m4/jm-macros.m4: Use the new macro:
40682 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
40684 1999-12-07 Jim Meyering <meyering@ascend.com>
40686 * m4/perl.m4: Require that File::Compare be available, too.
40687 Too many systems seem to lack it.
40689 * m4/strftime.m4: Add checks for most of the cpp macros tested in
40690 GNU's strftime.c. Prompted by a patch from Paul Eggert.
40692 1999-11-18 Paul Eggert <eggert@twinsun.com>
40694 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
40695 problem with the QNX 4.25 shell, which doesn't propagate exit
40696 status of failed commands inside shell assignments.
40698 1999-11-17 Jim Meyering <meyering@ascend.com>
40700 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
40702 1999-11-07 Jim Meyering <meyering@ascend.com>
40704 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
40706 1999-11-06 Jim Meyering <meyering@ascend.com>
40708 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
40709 * m4/jm-macros.m4 (jm_MACROS): Use it here.
40711 1999-11-05 Jim Meyering <meyering@ascend.com>
40713 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
40714 configure.in of textutils, fileutils, and sh-utils into this one
40715 (shared between those packages) file.
40716 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
40717 AC_STRUCT_ST_BLKSIZE.
40719 1999-11-03 Jim Meyering <meyering@ascend.com>
40721 * m4/ssize_t.m4: Remove file. No longer needed since the new version
40722 of AC_CHECK_TYPE checks includes unistd.h.
40723 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
40724 Suggestion from Akim Demaille.
40726 1999-10-30 Jim Meyering <meyering@ascend.com>
40728 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
40730 * m4/ls-mntd-fs.m4: Likewise.
40731 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
40732 * m4/jm-winsz1.m4: Likewise.
40734 * m4/const.m4: Remove file, since the fix made it into the experimental
40735 version of autoconf.
40736 * m4/mktime.m4: Likewise.
40738 * m4/check-type.m4: Remove file, now that the latest version of
40739 AC_CHECK_TYPE takes a third arg to specify additional #includes.
40741 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
40742 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
40745 1999-10-04 Jim Meyering <meyering@ascend.com>
40747 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
40749 1999-09-22 Paul Eggert <eggert@twinsun.com>
40751 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
40752 2.95.1 bug with HP-UX 10.20.
40754 1999-09-17 Jim Meyering <meyering@ascend.com>
40756 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
40757 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
40758 due to missing strdup (against sh-utils-2.0).
40760 1999-08-29 Jim Meyering <meyering@ascend.com>
40762 * m4/jm-macros.m4: Require jm_BISON.
40763 * m4/bison.m4: New file.
40765 1999-08-17 Paul Eggert <eggert@twinsun.com>
40767 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
40768 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
40770 1999-08-05 Jim Meyering <meyering@ascend.com>
40772 * m4/getline.m4: Rename test file from conftestdata to conftest.data
40773 to avoid conflicts with `conftest' on 8+3 filesystems.
40774 Suggestion from Eli Zaretskii.
40776 1999-08-04 Jim Meyering <meyering@ascend.com>
40778 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
40779 fileutils and sh-utils (textutils's getline test was inadequate).
40780 (AM_FUNC_GETLINE): Run this test.
40781 (AC_CHECK_FUNCS): Check for getdelim.
40782 Reported by Bob Proulx.
40784 1999-08-02 Jim Meyering <meyering@ascend.com>
40786 * m4/jm-macros.m4: Add a comment.
40788 1999-08-01 Paul Eggert <eggert@twinsun.com>
40790 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
40791 <inttypes.h> defines strtoumax as a macro (and not as a
40794 1999-08-01 Paul Eggert <eggert@twinsun.com>
40796 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
40797 that we can shift, multiply and divide unsigned long long
40798 values; Ultrix cc can't do it.
40800 1999-08-01 Paul Eggert <eggert@twinsun.com>
40802 * m4/mktime.m4: New file, which is a preview of what should appear
40803 in the next public autoconf release.
40805 1999-08-01 Paul Eggert <eggert@twinsun.com>
40807 * m4/lfs.m4: Remove this file.
40808 * m4/largefile.m4: New file. It contains the old contents of
40809 lfs.m4, except that all names with prefix AC_LFS have been
40810 changed to use the prefix AC_SYS_LARGEFILE instead, to be
40811 compatible with future autoconf versions. Also, some minor m4
40812 quoting problems have been fixed.
40814 1999-08-01 Paul Eggert <eggert@twinsun.com>
40816 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
40817 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
40818 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
40819 and simplify the shell code.
40821 1999-08-01 Jim Meyering <meyering@ascend.com>
40823 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
40826 1999-07-20 Jim Meyering <meyering@ascend.com>
40828 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
40830 1999-07-15 Jim Meyering <meyering@ascend.com>
40832 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
40834 1999-05-22 Jim Meyering <meyering@ascend.com>
40836 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
40838 1999-05-20 Jim Meyering <meyering@ascend.com>
40840 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
40841 Add a colon after each `then' in case $4 is empty.
40843 1999-05-16 Jim Meyering <meyering@ascend.com>
40845 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
40847 1999-05-10 Jim Meyering <meyering@ascend.com>
40849 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
40851 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
40854 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
40856 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
40858 1999-05-04 Paul Eggert <eggert@twinsun.com>
40860 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
40861 not CPPFLAGS, so that linking works correctly in IRIX.
40863 1999-04-30 Paul Eggert <eggert@twinsun.com>
40865 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
40867 1999-04-20 Paul Eggert <eggert@twinsun.com>
40869 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
40870 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
40871 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
40872 jm_AC_TYPE_UNSIGNED_LONG_LONG.
40873 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
40875 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
40877 1999-04-20 Jim Meyering <meyering@ascend.com>
40879 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
40880 AC_REPLACE xstroull if necessary. From Paul Eggert.
40881 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
40883 1999-04-18 Jim Meyering <meyering@ascend.com>
40885 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
40886 * m4/jm-macros.m4: Use it.
40888 1999-04-06 Jim Meyering <meyering@ascend.com>
40890 * m4/strftime.m4: Remove test for %f.
40892 1999-03-29 Jim Meyering <meyering@ascend.com>
40894 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
40895 superset of the AC_TYPE_* checks in the textutils, fileutils,
40896 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
40899 1999-03-28 Jim Meyering <meyering@ascend.com>
40901 * m4/jm-macros.m4: Define GNU_PACKAGE here.
40902 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
40903 replaced e.g., in the *.sh files of the sh-utils.
40905 1999-03-20 Jim Meyering <meyering@ascend.com>
40907 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
40908 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
40909 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
40911 1999-03-19 Jim Meyering <meyering@ascend.com>
40913 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
40915 1999-03-12 Jim Meyering <meyering@ascend.com>
40917 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
40919 1999-03-07 Jim Meyering <meyering@ascend.com>
40921 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
40924 1999-02-17 Jim Meyering <meyering@ascend.com>
40926 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
40927 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
40929 1999-02-07 Jim Meyering <meyering@ascend.com>
40931 * m4/group-member.m4: New file -- extracted from sh-utils'
40934 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
40935 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
40937 1999-02-06 Jim Meyering <meyering@ascend.com>
40939 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
40940 * m4/fnmatch.m4: Likewise.
40941 * m4/getgroups.m4: Likewise.
40942 * m4/lstat.m4: Likewise.
40943 * m4/malloc.m4: Likewise.
40944 * m4/putenv.m4: Likewise.
40945 * m4/realloc.m4: Likewise.
40946 * m4/regex.m4: Likewise.
40947 * m4/stat.m4: Likewise.
40948 * m4/strftime.m4: Likewise.
40949 Suggestion from Alain Magloire.
40951 * m4/chown.m4: Use `.$ac_objext', not `.o'.
40952 * m4/fnmatch.m4: Likewise.
40953 * m4/getgroups.m4: Likewise.
40954 * m4/getline.m4: Likewise.
40955 * m4/lstat.m4: Likewise.
40956 * m4/malloc.m4: Likewise.
40957 * m4/memcmp.m4: Likewise.
40958 * m4/putenv.m4: Likewise.
40959 * m4/realloc.m4: Likewise.
40960 * m4/regex.m4: Likewise.
40961 * m4/stat.m4: Likewise.
40962 * m4/strftime.m4: Likewise.
40963 Suggestion from Alain Magloire.
40965 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
40968 * m4/regex.m4: Add a run-time Test for proper operation of
40969 re_compile_pattern.
40971 1999-01-31 Jim Meyering <meyering@ascend.com>
40973 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
40975 1999-01-30 Jim Meyering <meyering@ascend.com>
40977 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
40979 * m4/jm-mktime.m4: Make this a wrapper around the official
40980 AM_FUNC_MKTIME rather than my private copy, now that the official one
40982 * m4/mktime.m4: Remove file.
40984 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
40985 * m4/uptime.m4: Likewise.
40986 * m4/uintmax_t.m4: Likewise.
40988 1999-01-28 Jim Meyering <meyering@ascend.com>
40990 * m4/jm-macros.m4: Use jm_AFS.
40991 * m4/afs.m4: New file (from fileutils' configure.in).
40993 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
40994 * m4/chown.m4: Likewise.
40995 * m4/d-ino.m4: Likewise.
40996 * m4/d-type.m4: Likewise.
40997 * m4/fnmatch.m4: Likewise.
40998 * m4/getgroups.m4: Likewise.
40999 * m4/gettext.m4: Likewise.
41000 * m4/jm-mktime.m4: Likewise.
41001 * m4/jm-winsz2.m4: Likewise.
41002 * m4/lcmessage.m4: Likewise.
41003 * m4/ls-mntd-fs.m4: Likewise.
41004 * m4/malloc.m4: Likewise.
41005 * m4/memcmp.m4: Likewise.
41006 * m4/putenv.m4: Likewise.
41007 * m4/realloc.m4: Likewise.
41008 * m4/st_mtim.m4: Likewise.
41009 * m4/strftime.m4: Likewise.
41011 1999-01-16 Jim Meyering <meyering@ascend.com>
41013 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
41014 (ARGMATCH_DIE_DECL): Define.
41016 1999-01-12 Jim Meyering <meyering@ascend.com>
41018 * m4/Makefile.am.in: Rewrite to avoid using fmt.
41019 Reported by Lars Hecking.
41021 1999-01-10 Jim Meyering <meyering@ascend.com>
41023 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
41025 * m4/inttypes_h.m4: Likewise.
41026 * m4/lstat.m4: Likewise.
41027 * m4/malloc.m4: Likewise.
41028 * m4/readdir.m4: Likewise.
41029 * m4/realloc.m4: Likewise.
41030 * m4/st_dm_mode.m4: Likewise.
41031 * m4/stat.m4: Likewise.
41032 * m4/utimbuf.m4: Likewise.
41033 * m4/utimes.m4: Likewise.
41035 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
41036 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
41037 comments in config.h.in are meaningful.
41039 * m4/jm-macros.m4: Require autoconf-2.13 here.
41041 * m4/regex.m4: By default, don't use the included regex.c on systems
41042 with glibc 2. Suggestion from Uli Drepper.
41044 1999-01-02 Jim Meyering <meyering@ascend.com>
41046 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
41048 1998-12-18 Jim Meyering <meyering@ascend.com>
41050 * m4/Makefile.am.in (Makefile.am): Simplify rule.
41051 Based on a suggestion from Lars Hecking.
41053 1998-11-16 Paul Eggert <eggert@twinsun.com>
41055 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
41057 1998-11-16 Jim Meyering <meyering@ascend.com>
41059 * m4/lfs.m4: Double-quote the `uname...` expression.
41061 1998-11-14 Jim Meyering <meyering@ascend.com>
41063 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
41064 * m4/stat.m4: Likewise.
41066 1998-11-03 Jim Meyering <meyering@ascend.com>
41068 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
41069 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
41071 1998-10-18 Jim Meyering <meyering@ascend.com>
41073 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
41075 1998-10-17 Jim Meyering <meyering@ascend.com>
41077 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
41078 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
41079 calls for those previously hard-coded headers. Instead, take a new
41081 (jm_CHECK_DECLARATIONS): Reflect interface change.
41082 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
41083 (jm_CHECK_DECL_LOCALTIME_R): New macro.
41085 * m4/mktime.m4: Test for spring-forward gap before long-running test.
41087 1998-10-14 Jim Meyering <meyering@ascend.com>
41089 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
41090 instead of "TZ=America/Vancouver". From Paul Eggert.
41092 1998-10-11 Jim Meyering <meyering@ascend.com>
41094 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
41095 This adds a test for a recently added compatibility fix for mktime.c.
41096 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
41098 1998-09-27 Jim Meyering <meyering@ascend.com>
41100 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
41102 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
41103 ../configure.in, including a change from Gordon Matzigkeit to allow
41104 cross-compiling for the Hurd.
41106 * m4/glibc.m4: New file/macro to test for the GNU C Library
41107 versions 1 and 2. From Gordon Matzigkeit.
41110 1998-09-21 Jim Meyering <meyering@ascend.com>
41112 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
41114 1998-08-18 Paul Eggert <eggert@twinsun.com>
41116 Port nanosecond-resolution times to UnixWare 2.1.2 and
41117 pedantic Solaris 2.6.
41119 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
41121 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
41122 Generate name of ns member, instead of just 1 or undef.
41123 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
41125 1998-08-15 Jim Meyering <meyering@ascend.com>
41127 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
41128 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
41129 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
41130 instead of jm_TYPE_SSIZE_T.
41132 1998-08-12 Jim Meyering <meyering@ascend.com>
41134 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
41136 1998-08-02 Jim Meyering <meyering@ascend.com>
41138 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
41139 in acconfig.h manually.
41141 1998-07-31 Paul Eggert <eggert@twinsun.com>
41143 * m4/st_mtim.m4: New file.
41145 1998-07-28 Jim Meyering <meyering@ascend.com>
41147 * m4/utimes.m4: Undef stat.
41149 1998-07-25 Jim Meyering <meyering@ascend.com>
41151 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
41152 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
41154 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
41156 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
41157 uid and gid actually remain unchanged.
41159 1998-07-07 Jim Meyering <meyering@ascend.com>
41161 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
41163 1998-07-04 Jim Meyering <meyering@ascend.com>
41165 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
41166 to prove that this macro can be used in packages without regex.c.
41168 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
41170 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
41173 1998-07-03 Jim Meyering <meyering@ascend.com>
41175 * m4/gettext.m4: Add -lintl if it's found to be necessary.
41177 * m4/gettext.m4: New file -- from gettext-0.10.35.
41178 * m4/lcmessage.m4: Likewise.
41179 * m4/progtest.m4: Likewise.
41181 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
41182 * m4/jm-macros.m4: Require the new macro.
41184 1998-06-29 Jim Meyering <meyering@ascend.com>
41186 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
41187 for the definition of NGROUPS (used in a system header included
41190 1998-06-28 Jim Meyering <meyering@ascend.com>
41192 * m4/ls-mntd-fs.m4: New file.
41193 * m4/fstypename.m4: New file.
41195 * m4/jm-macros.m4: Require the new macro.
41196 * m4/jm-glibc-io.m4: New file.
41198 1998-05-19 Jim Meyering <meyering@ascend.com>
41200 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
41201 * m4/lchown.m4: New file.
41203 * m4/Makefile.am.in: New file.
41204 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
41206 1998-05-14 Jim Meyering <meyering@ascend.com>
41208 * m4/Makefile.am (EXTRA_DIST): Add them.
41209 * m4/jm-macros.m4: New file.
41210 * m4/utimbuf.m4: New file.
41212 1998-05-12 Jim Meyering <meyering@ascend.com>
41214 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
41216 1998-05-11 Jim Meyering <meyering@ascend.com>
41218 * m4/isc-posix.m4: New file.
41220 1998-05-10 Jim Meyering <meyering@ascend.com>
41222 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
41224 1998-05-09 Jim Meyering <meyering@ascend.com>
41226 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
41227 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
41230 * m4/ssize_t.m4: New file.
41231 * m4/mktime.m4: Remove file -- the new automake has this now.
41233 1998-04-26 Jim Meyering <meyering@ascend.com>
41235 * m4/assert.m4: New file.
41236 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
41238 1998-04-05 Jim Meyering <meyering@ascend.com>
41240 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
41241 (jm_PREREQ): Use it here.
41243 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
41245 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
41248 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
41250 * m4/prereq.m4: New file.
41251 * m4/error.m4: New file.
41252 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
41254 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
41256 * m4/getline.m4: Don't set am_cv_func_working_getline before the
41257 cache-check for the same variable -- that defeated the purpose of
41258 the test; the test program was never run. This was a problem only
41259 on systems with losing getline functions -- HP-UX 10.20 is one.
41260 Reported by Bjorn Helgaas.
41262 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
41264 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
41266 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
41268 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
41270 * m4/const.m4: New file. Use an initializer in this declaration
41271 typedef int charset[2]; const charset x;
41272 Reported by Bob Glickstein.
41274 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
41276 * m4/chown.m4: Fix reversed types on -1 args to chown.
41279 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
41281 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
41282 Add lseek and memchr.
41284 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
41285 T.E.Dickey <dickey@clark.net> said that some older preprocessors
41286 have a 20-character limit on names.
41288 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
41290 * m4/inttypes_h.m4: New file.
41291 * m4/uintmax_t.m4: New file.
41292 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
41301 Copyright (C) 1997-2008 Free Software Foundation, Inc.
41303 Copying and distribution of this file, with or without
41304 modification, are permitted provided the copyright notice
41305 and this notice are preserved.