gnulib.git
21 years ago(EINTR): Define.
Jim Meyering [Mon, 2 Dec 2002 17:31:49 +0000 (17:31 +0000)]
(EINTR): Define.
(safe_read): Rewrite to iterate IFF the read fails with EINTR.

21 years ago * safe-read.h (SAFE_READ_ERROR): Define.
Jim Meyering [Mon, 2 Dec 2002 06:40:15 +0000 (06:40 +0000)]
* safe-read.h (SAFE_READ_ERROR): Define.

21 years ago(SAFE_READ_ERROR): Define.
Jim Meyering [Mon, 2 Dec 2002 06:40:00 +0000 (06:40 +0000)]
(SAFE_READ_ERROR): Define.

21 years ago * safe-read.c: (safe_read): Also exit the loop when read returns zero.
Jim Meyering [Sun, 1 Dec 2002 21:40:23 +0000 (21:40 +0000)]
* safe-read.c: (safe_read): Also exit the loop when read returns zero.
(CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.

21 years ago(safe_read): Also exit the loop when read returns zero.
Jim Meyering [Sun, 1 Dec 2002 21:40:08 +0000 (21:40 +0000)]
(safe_read): Also exit the loop when read returns zero.
(CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.

21 years agoprep update
Karl Berry [Sun, 1 Dec 2002 14:26:18 +0000 (14:26 +0000)]
prep update

21 years ago* hash.c (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
Paul Eggert [Thu, 28 Nov 2002 00:37:08 +0000 (00:37 +0000)]
* hash.c (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
hash_rehash): Replace `if (limit <= value) abort ();' with
`if (! (value < limit)) abort ();', for readability.

21 years ago(hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
Paul Eggert [Thu, 28 Nov 2002 00:34:24 +0000 (00:34 +0000)]
(hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
hash_rehash): Replace `if (limit <= value) abort ();' with
`if (! (value < limit)) abort ();', for readability.

21 years agocopy strdup.c from libc again.
Karl Berry [Tue, 26 Nov 2002 22:58:57 +0000 (22:58 +0000)]
copy strdup.c from libc again.

21 years agoinstall-sh from automake, automake from cvs instead of installed
Karl Berry [Mon, 25 Nov 2002 22:24:53 +0000 (22:24 +0000)]
install-sh from automake, automake from cvs instead of installed

21 years agoupdate from automake for variable quoting, $0 in
Karl Berry [Mon, 25 Nov 2002 22:24:18 +0000 (22:24 +0000)]
update from automake for variable quoting, $0 in
error msgs, etc.

21 years agoupdate from texinfo
Karl Berry [Mon, 25 Nov 2002 19:09:44 +0000 (19:09 +0000)]
update from texinfo

21 years ago.
Karl Berry [Mon, 25 Nov 2002 16:32:04 +0000 (16:32 +0000)]
.

21 years ago($LIBCSRC/time/mktime.c lib gpl): new entry.
Karl Berry [Mon, 25 Nov 2002 16:31:49 +0000 (16:31 +0000)]
($LIBCSRC/time/mktime.c lib gpl): new entry.

21 years agoReally sync with libc, not with my locally-modified copy.
Jim Meyering [Mon, 25 Nov 2002 15:31:05 +0000 (15:31 +0000)]
Really sync with libc, not with my locally-modified copy.
Thanks, Karl!

21 years agoinitial
Karl Berry [Mon, 25 Nov 2002 14:27:12 +0000 (14:27 +0000)]
initial

21 years ago($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new entry.
Karl Berry [Mon, 25 Nov 2002 14:24:39 +0000 (14:24 +0000)]
($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new entry.

21 years ago.
Karl Berry [Mon, 25 Nov 2002 14:23:57 +0000 (14:23 +0000)]
.

21 years agocopy from libc, meaning we now #include <strtol.c>
Karl Berry [Mon, 25 Nov 2002 14:23:38 +0000 (14:23 +0000)]
copy from libc, meaning we now #include <strtol.c>
instead of "strtol.c".

21 years ago.
Karl Berry [Mon, 25 Nov 2002 14:13:38 +0000 (14:13 +0000)]
.

21 years ago*** empty log message ***
Jim Meyering [Mon, 25 Nov 2002 13:22:47 +0000 (13:22 +0000)]
*** empty log message ***

21 years agoSync from libc, now that it has the latest fix.
Jim Meyering [Mon, 25 Nov 2002 13:22:20 +0000 (13:22 +0000)]
Sync from libc, now that it has the latest fix.

21 years agoremove trailing spaces
Jim Meyering [Mon, 25 Nov 2002 13:17:17 +0000 (13:17 +0000)]
remove trailing spaces

21 years agorestore additional quoting on variables
Karl Berry [Mon, 25 Nov 2002 00:21:32 +0000 (00:21 +0000)]
restore additional quoting on variables

21 years agoaccount for gnulib changing libc files to gpl
Karl Berry [Mon, 25 Nov 2002 00:20:03 +0000 (00:20 +0000)]
account for gnulib changing libc files to gpl

21 years agosome libc files now not copyable, some newly copyable
Karl Berry [Mon, 25 Nov 2002 00:19:45 +0000 (00:19 +0000)]
some libc files now not copyable, some newly copyable

21 years agonew automake release/directory
Karl Berry [Mon, 25 Nov 2002 00:18:50 +0000 (00:18 +0000)]
new automake release/directory

21 years agochange license to gpl.
Karl Berry [Mon, 25 Nov 2002 00:17:33 +0000 (00:17 +0000)]
change license to gpl.

21 years ago.
Jim Meyering [Sun, 24 Nov 2002 10:40:09 +0000 (10:40 +0000)]
.

21 years agoMerge in changes from libc.
Jim Meyering [Sun, 24 Nov 2002 10:39:54 +0000 (10:39 +0000)]
Merge in changes from libc.

21 years ago.
Jim Meyering [Sun, 24 Nov 2002 10:06:26 +0000 (10:06 +0000)]
.

21 years agoAvoid a link-time failure on some Linux systems.
Jim Meyering [Sun, 24 Nov 2002 10:06:16 +0000 (10:06 +0000)]
Avoid a link-time failure on some Linux systems.

(STATIC): Define to be empty (_LIBC) or `static' (otherwise).
(__mon_yday): Declare with the STATIC attribute.
(__mktime_internal): Likewise.

21 years ago.
Jim Meyering [Sat, 23 Nov 2002 16:17:51 +0000 (16:17 +0000)]
.

21 years ago(str2signum, sig2str): Avoid a warning from gcc:
Jim Meyering [Sat, 23 Nov 2002 16:17:34 +0000 (16:17 +0000)]
(str2signum, sig2str): Avoid a warning from gcc:
Use `unsigned', not `int', as type of index.

21 years ago.
Jim Meyering [Sat, 23 Nov 2002 15:47:51 +0000 (15:47 +0000)]
.

21 years ago[@BEGIN_LSTAT_ONLY@]: Include <string.h>.
Jim Meyering [Sat, 23 Nov 2002 15:47:14 +0000 (15:47 +0000)]
[@BEGIN_LSTAT_ONLY@]: Include <string.h>.

21 years ago.
Jim Meyering [Sat, 23 Nov 2002 15:09:07 +0000 (15:09 +0000)]
.

21 years agoRemove unneeded parentheses around operands of `defined'.
Jim Meyering [Sat, 23 Nov 2002 15:08:35 +0000 (15:08 +0000)]
Remove unneeded parentheses around operands of `defined'.

21 years agoAdd copyright date of 2002.
Jim Meyering [Sat, 23 Nov 2002 15:07:14 +0000 (15:07 +0000)]
Add copyright date of 2002.

21 years agoAdd copyright notice.
Paul Eggert [Sat, 23 Nov 2002 07:23:50 +0000 (07:23 +0000)]
Add copyright notice.

21 years agohash.c: Avoid use of <assert.h>.
Paul Eggert [Sat, 23 Nov 2002 07:03:07 +0000 (07:03 +0000)]
hash.c: Avoid use of <assert.h>.

21 years agoAvoid use of <assert.h>, as the GNU Coding Standards hint that one
Paul Eggert [Sat, 23 Nov 2002 07:02:40 +0000 (07:02 +0000)]
Avoid use of <assert.h>, as the GNU Coding Standards hint that one
should use `if (! x) abort ();' rather than `assert (x);', and anyway
it's one less thing to worry about configuring.  (hash_lookup,
hash_get_first, hash_get_next, hash_find_entry, hash_rehash,
hash_insert): Use abort rather than assert.

21 years agoquotearg.c, quotearg.c changes to assume C89 and fix a few bugs
Paul Eggert [Sat, 23 Nov 2002 06:46:25 +0000 (06:46 +0000)]
quotearg.c, quotearg.c changes to assume C89 and fix a few bugs
(merging changes from Bison, tar).

21 years agoInclude quotearg.h immediately after config.h.
Paul Eggert [Sat, 23 Nov 2002 06:45:49 +0000 (06:45 +0000)]
Include quotearg.h immediately after config.h.
No need to include stddef.h or sys/types.h any more.
Surround local include files with "", not "<>".
Assume HAVE_LIMITS_H unconditionally, as we assume C89.
Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
(HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
(mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
(ISPRINT): Remove; no longer needed now that we assume C89.

(clone_quoting_options, quotearg_buffer, quotearg_n_options):
Preserve errno.

(quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
quotearg_char): Use SIZE_MAX rather than
(size_t) -1 when we are talking about "infinity".

(quotearg_buffer_restyled): Fix bug when quoting trigraphs.

21 years agoAllow multiple inclusion by surrounding with
Paul Eggert [Sat, 23 Nov 2002 06:45:22 +0000 (06:45 +0000)]
Allow multiple inclusion by surrounding with
"#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
so that we can be included first.
(PARAMS): Remove; we now assume C89 or later.  All uses removed.

21 years agoOrthogonal approach to read()/write() that handles EINTR and counts > 2^31
Bruno Haible [Fri, 22 Nov 2002 16:25:53 +0000 (16:25 +0000)]
Orthogonal approach to read()/write() that handles EINTR and counts > 2^31
correctly.

21 years agoRemove case insensitive option matching.
Bruno Haible [Thu, 21 Nov 2002 20:15:39 +0000 (20:15 +0000)]
Remove case insensitive option matching.

21 years agoComment tweaks.
Bruno Haible [Thu, 21 Nov 2002 19:16:29 +0000 (19:16 +0000)]
Comment tweaks.

21 years agoComment tweak.
Bruno Haible [Thu, 21 Nov 2002 15:02:25 +0000 (15:02 +0000)]
Comment tweak.

21 years ago*** empty log message ***
Jim Meyering [Thu, 21 Nov 2002 13:33:18 +0000 (13:33 +0000)]
*** empty log message ***

21 years ago(strdup): Tweak comment and initial #if/#include.
Jim Meyering [Thu, 21 Nov 2002 13:33:10 +0000 (13:33 +0000)]
(strdup): Tweak comment and initial #if/#include.

21 years agoRemove strdup.c.
Jim Meyering [Thu, 21 Nov 2002 13:32:12 +0000 (13:32 +0000)]
Remove strdup.c.

21 years ago*** empty log message ***
Jim Meyering [Thu, 21 Nov 2002 13:23:02 +0000 (13:23 +0000)]
*** empty log message ***

21 years ago2002-09-25 Paul Eggert <eggert@twinsun.com>
Jim Meyering [Thu, 21 Nov 2002 13:22:51 +0000 (13:22 +0000)]
2002-09-25  Paul Eggert  <eggert@twinsun.com>

[! HAVE_INTTYPES_H && HAVE_STDINT_H] Include <stdint.h>.
(UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
(PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
int.  Work more efficiently if X is the same width as uintmax_t.
Do not compare X to -1, to avoid bogus compiler warning.
(get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
Don't assume that f_frsize and f_bsize are the same type.

21 years agoupdate copyright date
Jim Meyering [Thu, 21 Nov 2002 09:51:39 +0000 (09:51 +0000)]
update copyright date

21 years ago*** empty log message ***
Jim Meyering [Thu, 21 Nov 2002 09:50:58 +0000 (09:50 +0000)]
*** empty log message ***

21 years ago2002-07-13 Bruno Haible <bruno@clisp.org>
Jim Meyering [Thu, 21 Nov 2002 09:50:43 +0000 (09:50 +0000)]
2002-07-13  Bruno Haible  <bruno@clisp.org>

#undef MNT_IGNORE before defining it, to avoid warning
on FreeBSD.

21 years ago*** empty log message ***
Jim Meyering [Thu, 21 Nov 2002 09:46:15 +0000 (09:46 +0000)]
*** empty log message ***

21 years ago(make_path): Minor reformatting.
Jim Meyering [Thu, 21 Nov 2002 09:46:03 +0000 (09:46 +0000)]
(make_path): Minor reformatting.

21 years ago*** empty log message ***
Jim Meyering [Thu, 21 Nov 2002 09:44:39 +0000 (09:44 +0000)]
*** empty log message ***

21 years ago(make_path): Restore umask *before* creating the final component.
Jim Meyering [Thu, 21 Nov 2002 09:44:27 +0000 (09:44 +0000)]
(make_path): Restore umask *before* creating the final component.

21 years ago*** empty log message ***
Jim Meyering [Thu, 21 Nov 2002 08:43:55 +0000 (08:43 +0000)]
*** empty log message ***

21 years agoAdjust to work with new autoconf macros, AC_FUNC_MALLOC
Jim Meyering [Thu, 21 Nov 2002 08:43:42 +0000 (08:43 +0000)]
Adjust to work with new autoconf macros, AC_FUNC_MALLOC
and AC_FUNC_REALLOC: test #ifndef HAVE_MALLOC/HAVE_REALLOC.

21 years ago*** empty log message ***
Jim Meyering [Thu, 21 Nov 2002 08:35:10 +0000 (08:35 +0000)]
*** empty log message ***

21 years ago(ME_DUMMY): Don't count entries of type `auto' as dummy
Jim Meyering [Thu, 21 Nov 2002 08:32:22 +0000 (08:32 +0000)]
(ME_DUMMY): Don't count entries of type `auto' as dummy
ones.  At least on GNU/Linux systems, `auto' means something else.
From Michael Stone.

21 years agoMerge argmatch cleanups from Bison. Assume C89.
Paul Eggert [Thu, 21 Nov 2002 07:20:15 +0000 (07:20 +0000)]
Merge argmatch cleanups from Bison.  Assume C89.

21 years agoDo not include <config.h> or <sys/types.h>.
Paul Eggert [Thu, 21 Nov 2002 07:19:54 +0000 (07:19 +0000)]
Do not include <config.h> or <sys/types.h>.
Include <stddef.h> instead, since it's all we need for size_t.
(PARAMS): Remove.  All uses removed.
(ARRAY_CARDINALITY): Do not bother to #undef.
(ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
Remove unnecessary parentheses.
(ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
Insert necessary parentheses.
(ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
(ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.

21 years agoInclude config.h here, not in argmatch.h.
Paul Eggert [Thu, 21 Nov 2002 07:19:33 +0000 (07:19 +0000)]
Include config.h here, not in argmatch.h.
Include stdlib.h, for EXIT_FAILURE.
Always include <string.h>, since we assume C89.
(EXIT_FAILURE): Remove pre-C89 bug workaround.

21 years agoStandard specification idiom. Make mbswidth.h self contained.
Bruno Haible [Tue, 19 Nov 2002 13:58:18 +0000 (13:58 +0000)]
Standard specification idiom. Make mbswidth.h self contained.

21 years agoMove to ANSI C.
Bruno Haible [Tue, 19 Nov 2002 13:48:57 +0000 (13:48 +0000)]
Move to ANSI C.

21 years agoMove to ANSI C.
Bruno Haible [Tue, 19 Nov 2002 13:32:42 +0000 (13:32 +0000)]
Move to ANSI C.

21 years ago(_GNU_SOURCE): Don't define.
Dave Love [Mon, 18 Nov 2002 15:40:28 +0000 (15:40 +0000)]
(_GNU_SOURCE): Don't define.

21 years agoMinimize diffs to glibc. Modernize.
Bruno Haible [Fri, 15 Nov 2002 17:36:03 +0000 (17:36 +0000)]
Minimize diffs to glibc. Modernize.

21 years agoAssume ANSI C.
Bruno Haible [Fri, 15 Nov 2002 17:35:33 +0000 (17:35 +0000)]
Assume ANSI C.

21 years ago.
Karl Berry [Thu, 14 Nov 2002 21:06:45 +0000 (21:06 +0000)]
.

21 years ago`do' on separate line, instead of `for var; do'.
Karl Berry [Thu, 14 Nov 2002 21:06:28 +0000 (21:06 +0000)]
`do' on separate line, instead of `for var; do'.

21 years agoupdate from prep
Karl Berry [Thu, 14 Nov 2002 13:48:38 +0000 (13:48 +0000)]
update from prep

21 years agoupdate from prep
Karl Berry [Tue, 12 Nov 2002 14:34:07 +0000 (14:34 +0000)]
update from prep

21 years ago(regexec): Fix pmatch declaration.
Dave Love [Thu, 7 Nov 2002 20:53:33 +0000 (20:53 +0000)]
(regexec): Fix pmatch declaration.

21 years agoChange argument type to 'unsigned long'.
Bruno Haible [Wed, 6 Nov 2002 18:25:27 +0000 (18:25 +0000)]
Change argument type to 'unsigned long'.

21 years agoGreatest common divisor.
Bruno Haible [Tue, 5 Nov 2002 21:51:34 +0000 (21:51 +0000)]
Greatest common divisor.

21 years agoInclude gettext.h instead of <libintl.h> with #ifdefs.
Bruno Haible [Tue, 5 Nov 2002 21:45:29 +0000 (21:45 +0000)]
Include gettext.h instead of <libintl.h> with #ifdefs.

21 years agoupdate from gnuorg
Karl Berry [Tue, 5 Nov 2002 13:47:19 +0000 (13:47 +0000)]
update from gnuorg

21 years agoNew header files.
Bruno Haible [Mon, 4 Nov 2002 15:24:56 +0000 (15:24 +0000)]
New header files.

21 years agoUpdate config.charset and localcharset.c to current gettext version.
Bruno Haible [Mon, 4 Nov 2002 13:53:07 +0000 (13:53 +0000)]
Update config.charset and localcharset.c to current gettext version.

21 years ago * configure.in: Add AC_CONFIG_AUX_DIR call.
Bruno Haible [Fri, 1 Nov 2002 12:18:03 +0000 (12:18 +0000)]
    * configure.in: Add AC_CONFIG_AUX_DIR call.
        (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
        test/Makefile.
        * Makefile.in (subdirs): Add m4, lib. Remove doc, test.

21 years agoupdate from texinfo
Karl Berry [Fri, 1 Nov 2002 01:42:06 +0000 (01:42 +0000)]
update from texinfo

21 years agoupdate from texinfo
Karl Berry [Thu, 31 Oct 2002 01:01:19 +0000 (01:01 +0000)]
update from texinfo

21 years agotimestamp
Karl Berry [Sat, 26 Oct 2002 13:07:56 +0000 (13:07 +0000)]
timestamp

21 years agoupdate from texinfo
Karl Berry [Wed, 23 Oct 2002 00:20:40 +0000 (00:20 +0000)]
update from texinfo

21 years agoupdate
Karl Berry [Tue, 22 Oct 2002 22:38:19 +0000 (22:38 +0000)]
update

21 years agoupdate from texinfo
Karl Berry [Fri, 18 Oct 2002 21:05:28 +0000 (21:05 +0000)]
update from texinfo

21 years agoupdate from texinfo
Karl Berry [Wed, 2 Oct 2002 00:29:19 +0000 (00:29 +0000)]
update from texinfo

21 years agoComment and whitespace changes regarding # define __restrict_arr
Francesco Potortl [Mon, 30 Sep 2002 08:12:11 +0000 (08:12 +0000)]
Comment and whitespace changes regarding # define __restrict_arr

21 years agoupdate from texinfo
Karl Berry [Sun, 29 Sep 2002 22:57:37 +0000 (22:57 +0000)]
update from texinfo

21 years ago.
Karl Berry [Sat, 28 Sep 2002 15:06:54 +0000 (15:06 +0000)]
.

21 years agocan't copy install-sh/mkinstalldirs from installed automake until the
Karl Berry [Sat, 28 Sep 2002 15:06:23 +0000 (15:06 +0000)]
can't copy install-sh/mkinstalldirs from installed automake until the
next release, since changes have been made.

21 years agoupdate from texinfo
Karl Berry [Fri, 27 Sep 2002 20:19:45 +0000 (20:19 +0000)]
update from texinfo

21 years ago(__restrict_arr): Don't define if already defined.
Richard Stallman [Thu, 26 Sep 2002 22:04:14 +0000 (22:04 +0000)]
(__restrict_arr): Don't define if already defined.

21 years agoenable gettext.h check.
Karl Berry [Wed, 25 Sep 2002 15:26:47 +0000 (15:26 +0000)]
enable gettext.h check.