gnulib.git
22 years agoRemove '2001' from copyright notice.
Jim Meyering [Fri, 31 Aug 2001 07:49:39 +0000 (07:49 +0000)]
Remove '2001' from copyright notice.

22 years agocopyright
Jim Meyering [Fri, 31 Aug 2001 07:35:47 +0000 (07:35 +0000)]
copyright

22 years agoInclude full-write.h.
Jim Meyering [Fri, 31 Aug 2001 07:35:37 +0000 (07:35 +0000)]
Include full-write.h.

22 years ago*** empty log message ***
Jim Meyering [Fri, 31 Aug 2001 07:34:41 +0000 (07:34 +0000)]
*** empty log message ***

22 years ago(libfetish_a_SOURCES): Add full-write.h.
Jim Meyering [Fri, 31 Aug 2001 07:34:13 +0000 (07:34 +0000)]
(libfetish_a_SOURCES): Add full-write.h.

22 years agoCorrect credits, as cccp.c no longer
Jim Meyering [Fri, 31 Aug 2001 07:29:05 +0000 (07:29 +0000)]
Correct credits, as cccp.c no longer
exists and anyway it was so heavily changed from the old cccp
code as to be unrecognizable.  Include full-write.h.
(full_write) Return size_t, with short writes meaning failure.
All callers changed.  This fixes a bug with large buffers
on 64-bit hosts.

22 years ago*** empty log message ***
Jim Meyering [Fri, 31 Aug 2001 07:05:14 +0000 (07:05 +0000)]
*** empty log message ***

22 years ago(jm_PREREQ): Add jm_PREREQ_EXCLUDE.
Jim Meyering [Fri, 31 Aug 2001 07:05:08 +0000 (07:05 +0000)]
(jm_PREREQ): Add jm_PREREQ_EXCLUDE.
(jm_PREREQ_EXCLUDE): New macro.

22 years ago*** empty log message ***
Jim Meyering [Fri, 31 Aug 2001 06:35:13 +0000 (06:35 +0000)]
*** empty log message ***

22 years ago(EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS): New macros.
Jim Meyering [Fri, 31 Aug 2001 06:34:06 +0000 (06:34 +0000)]
(EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS): New macros.
(free_exclude): New decl.
(add_exclude, add_exclude_file): Now takes int options arg.
(excluded_filename): No longer requires options arg, as the options
are determined by add_exclude.  Now returns bool, not int.

22 years agoMerge 'exclude' changes from tar 1.13.22.
Jim Meyering [Fri, 31 Aug 2001 06:33:42 +0000 (06:33 +0000)]
Merge 'exclude' changes from tar 1.13.22.
This fixes one or two unlikely storage allocation overflow bugs,
but doesn't change user-visible behavior otherwise.

(bool): Declare, perhaps by including stdbool.h.
(<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
(<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
Include if available.
(<xalloc.h>): Include
(SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
(verify): New macro.  Use it to verify that EXCLUDE macros do not
collide with FNM macros.
(struct patopts): New struct.
(struct exclude): Use it, as exclude patterns now come with options.
(new_exclude): Support above changes.
(new_exclude, add_exclude_file):
Initial size must now be a power of two to simplify overflow checking.
(free_exclude, fnmatch_no_wildcards): New function.
(excluded_filename): No longer requires options arg, as the options
are determined by add_exclude.  Now returns bool, not int.
(excluded_filename, add_exclude):
Add support for the fancy new exclusion options.
(add_exclude, add_exclude_file): Now takes int options arg.
Check for arithmetic overflow when computing sizes.
(add_exclude_file): xrealloc might modify errno, so don't
realloc until after errno might be used.

22 years ago*** empty log message ***
Jim Meyering [Thu, 30 Aug 2001 19:19:10 +0000 (19:19 +0000)]
*** empty log message ***

22 years ago(alloca): Arg is of type size_t, not unsigned.
Jim Meyering [Thu, 30 Aug 2001 19:19:02 +0000 (19:19 +0000)]
(alloca): Arg is of type size_t, not unsigned.

22 years ago#define STRTOUXMAX_UNSIGNED
Jim Meyering [Mon, 27 Aug 2001 21:25:15 +0000 (21:25 +0000)]
#define STRTOUXMAX_UNSIGNED

22 years agowhoops. Don't define anything here. imax is the default
Jim Meyering [Mon, 27 Aug 2001 21:24:59 +0000 (21:24 +0000)]
whoops.  Don't define anything here.  imax is the default

22 years ago.
Jim Meyering [Mon, 27 Aug 2001 08:55:04 +0000 (08:55 +0000)]
.

22 years agoremove xstrtoxmax.c
Jim Meyering [Mon, 27 Aug 2001 08:54:19 +0000 (08:54 +0000)]
remove xstrtoxmax.c

22 years ago*** empty log message ***
Jim Meyering [Mon, 27 Aug 2001 08:52:46 +0000 (08:52 +0000)]
*** empty log message ***

22 years ago(libfetish_a_SOURCES): Add strtoxmax.c
Jim Meyering [Mon, 27 Aug 2001 08:52:40 +0000 (08:52 +0000)]
(libfetish_a_SOURCES): Add strtoxmax.c

22 years agoActually remove the definition of N_.
Jim Meyering [Mon, 27 Aug 2001 08:50:19 +0000 (08:50 +0000)]
Actually remove the definition of N_.

22 years ago(N_): Remove definition.
Jim Meyering [Mon, 27 Aug 2001 08:50:04 +0000 (08:50 +0000)]
(N_): Remove definition.
Revert most of last change.
Instead, simply don't mark the `Copyright...' string for translation.
Based on advice from Paul Eggert.

22 years ago*** empty log message ***
Jim Meyering [Mon, 27 Aug 2001 08:46:16 +0000 (08:46 +0000)]
*** empty log message ***

22 years agoTweak comment.
Jim Meyering [Mon, 27 Aug 2001 08:46:08 +0000 (08:46 +0000)]
Tweak comment.

22 years agoinclude strtoxmax.c
Jim Meyering [Mon, 27 Aug 2001 08:44:27 +0000 (08:44 +0000)]
include strtoxmax.c

22 years agorenamed to strtoxmax.c
Jim Meyering [Mon, 27 Aug 2001 08:43:54 +0000 (08:43 +0000)]
renamed to strtoxmax.c

22 years agorenamed from strtouxmax.c
Jim Meyering [Mon, 27 Aug 2001 08:31:30 +0000 (08:31 +0000)]
renamed from strtouxmax.c

22 years ago(version_etc_copyright_fmt): Replace literal year
Jim Meyering [Sun, 26 Aug 2001 18:26:01 +0000 (18:26 +0000)]
(version_etc_copyright_fmt): Replace literal year
of copyright with `%s' so translators don't get an untranslated message in 2002.
(COPYRIGHT_YEAR): Define.
(version_etc): Use fprintf rather than fputs.

22 years ago.
Jim Meyering [Sun, 26 Aug 2001 10:54:59 +0000 (10:54 +0000)]
.

22 years ago.
Jim Meyering [Sun, 26 Aug 2001 10:43:00 +0000 (10:43 +0000)]
.

22 years agoAdd xstrtoimax.
Jim Meyering [Sun, 26 Aug 2001 10:42:50 +0000 (10:42 +0000)]
Add xstrtoimax.

22 years ago*** empty log message ***
Jim Meyering [Sun, 26 Aug 2001 10:41:57 +0000 (10:41 +0000)]
*** empty log message ***

22 years ago(libfetish_a_SOURCES): Add xstrtoimax.c.
Jim Meyering [Sun, 26 Aug 2001 10:41:52 +0000 (10:41 +0000)]
(libfetish_a_SOURCES): Add xstrtoimax.c.

22 years ago.
Jim Meyering [Sun, 26 Aug 2001 07:33:20 +0000 (07:33 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Sun, 26 Aug 2001 07:28:44 +0000 (07:28 +0000)]
*** empty log message ***

22 years agoNew file, from GNU libc.
Jim Meyering [Sun, 26 Aug 2001 07:28:06 +0000 (07:28 +0000)]
New file, from GNU libc.

22 years ago*** empty log message ***
Jim Meyering [Sun, 26 Aug 2001 07:20:57 +0000 (07:20 +0000)]
*** empty log message ***

22 years agoRequire jm_AC_PREREQ_XSTRTOIMAX.
Jim Meyering [Sun, 26 Aug 2001 07:20:50 +0000 (07:20 +0000)]
Require jm_AC_PREREQ_XSTRTOIMAX.

22 years agoresync with xstrtoumax.m4
Jim Meyering [Sun, 26 Aug 2001 07:20:05 +0000 (07:20 +0000)]
resync with xstrtoumax.m4

22 years agobump serial number
Jim Meyering [Sun, 26 Aug 2001 07:19:43 +0000 (07:19 +0000)]
bump serial number

22 years agoAdd comments explaining why we AC_REPLACE_FUNCS(strtol).
Jim Meyering [Sun, 26 Aug 2001 07:19:28 +0000 (07:19 +0000)]
Add comments explaining why we AC_REPLACE_FUNCS(strtol).

22 years ago*** empty log message ***
Jim Meyering [Sun, 26 Aug 2001 07:03:07 +0000 (07:03 +0000)]
*** empty log message ***

22 years agoStub. Just #define STRTOUXMAX_SIGNED, then
Jim Meyering [Sun, 26 Aug 2001 07:00:08 +0000 (07:00 +0000)]
Stub.  Just #define STRTOUXMAX_SIGNED, then
#include "strtouxmax.c"

22 years agoNow this file is just a stub.
Jim Meyering [Sun, 26 Aug 2001 06:59:12 +0000 (06:59 +0000)]
Now this file is just a stub.

22 years agoRenamed from a factored strtoumax.c.
Jim Meyering [Sun, 26 Aug 2001 06:58:10 +0000 (06:58 +0000)]
Renamed from a factored strtoumax.c.

22 years agoFactored to work both for unsigned and signed types, ...
Jim Meyering [Sun, 26 Aug 2001 06:53:56 +0000 (06:53 +0000)]
Factored to work both for unsigned and signed types, ...

22 years ago.
Jim Meyering [Fri, 24 Aug 2001 08:11:30 +0000 (08:11 +0000)]
.

22 years agoupdate from libc
Jim Meyering [Fri, 24 Aug 2001 06:39:29 +0000 (06:39 +0000)]
update from libc

22 years agoupdate from glibc
Jim Meyering [Thu, 23 Aug 2001 06:43:44 +0000 (06:43 +0000)]
update from glibc

22 years ago.
Jim Meyering [Sat, 18 Aug 2001 19:29:31 +0000 (19:29 +0000)]
.

22 years ago.
Jim Meyering [Sat, 18 Aug 2001 19:00:40 +0000 (19:00 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Sat, 18 Aug 2001 15:59:27 +0000 (15:59 +0000)]
*** empty log message ***

22 years agoAdd AC_PREREQ(2.13).
Jim Meyering [Sat, 18 Aug 2001 15:59:02 +0000 (15:59 +0000)]
Add AC_PREREQ(2.13).
(jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
(jm_AC_TYPE_INTMAX_T): New macro.
(jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.

22 years ago(jm_AC_TYPE_LONG_LONG): New macro.
Jim Meyering [Sat, 18 Aug 2001 15:55:38 +0000 (15:55 +0000)]
(jm_AC_TYPE_LONG_LONG): New macro.

22 years agorenamed from ulonglong.m4
Jim Meyering [Sat, 18 Aug 2001 15:54:36 +0000 (15:54 +0000)]
renamed from ulonglong.m4

22 years agorenamed to longlong.m4
Jim Meyering [Sat, 18 Aug 2001 15:54:35 +0000 (15:54 +0000)]
renamed to longlong.m4

22 years agorenamed from inttypes_h.m4
Jim Meyering [Sat, 18 Aug 2001 15:54:09 +0000 (15:54 +0000)]
renamed from inttypes_h.m4

22 years agorenamed to inttypes.m4
Jim Meyering [Sat, 18 Aug 2001 15:54:08 +0000 (15:54 +0000)]
renamed to inttypes.m4

22 years ago.
Jim Meyering [Tue, 14 Aug 2001 07:47:25 +0000 (07:47 +0000)]
.

22 years ago.
Jim Meyering [Tue, 14 Aug 2001 06:59:30 +0000 (06:59 +0000)]
.

22 years agowhoops. remove the backslash, too.
Jim Meyering [Mon, 13 Aug 2001 20:14:36 +0000 (20:14 +0000)]
whoops.  remove the backslash, too.

22 years ago*** empty log message ***
Jim Meyering [Mon, 13 Aug 2001 20:11:15 +0000 (20:11 +0000)]
*** empty log message ***

22 years ago(unlocked-io.h): Do not append "_unlocked" twice.
Jim Meyering [Mon, 13 Aug 2001 20:11:03 +0000 (20:11 +0000)]
(unlocked-io.h): Do not append "_unlocked" twice.
Port to Solaris 8, where 'sed' requires a space after the 'r'
command, and where sh dislikes "$/".  Clean up the spacing a bit.
Redirect output to $tmp just once.

22 years ago*** empty log message ***
Jim Meyering [Mon, 13 Aug 2001 06:30:14 +0000 (06:30 +0000)]
*** empty log message ***

22 years ago(<errno.h>): Include.
Jim Meyering [Mon, 13 Aug 2001 06:30:10 +0000 (06:30 +0000)]
(<errno.h>): Include.
(errno): Declare if not defined.
(addext): Work correctly when pathconf returns -1 and leaves
errno alone because there is no limit.  Also, work even if
pathconf returns a value greater than SIZE_MAX.

22 years ago*** empty log message ***
Jim Meyering [Sun, 12 Aug 2001 20:11:49 +0000 (20:11 +0000)]
*** empty log message ***

22 years ago(xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
Jim Meyering [Sun, 12 Aug 2001 20:11:39 +0000 (20:11 +0000)]
(xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
Simply `return getcwd (NULL, 0);'.
[! (defined __GLIBC__ && __GLIBC__ >= 2)]:
Use 1300 as initial value for length, not PATH_MAX.

22 years agoClean up cpp syntax.
Jim Meyering [Sun, 12 Aug 2001 18:49:13 +0000 (18:49 +0000)]
Clean up cpp syntax.

22 years ago.
Jim Meyering [Sun, 12 Aug 2001 17:50:42 +0000 (17:50 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Sun, 12 Aug 2001 13:26:08 +0000 (13:26 +0000)]
*** empty log message ***

22 years agoQuote the first argument in each use of AC_DEFUN.
Jim Meyering [Sun, 12 Aug 2001 13:26:00 +0000 (13:26 +0000)]
Quote the first argument in each use of AC_DEFUN.

22 years ago.
Jim Meyering [Sun, 12 Aug 2001 13:10:59 +0000 (13:10 +0000)]
.

22 years agoupdate from libc
Jim Meyering [Sun, 12 Aug 2001 13:02:20 +0000 (13:02 +0000)]
update from libc

22 years agoupdate from libc
Jim Meyering [Sun, 12 Aug 2001 12:49:11 +0000 (12:49 +0000)]
update from libc

22 years ago(libfetish_a_SOURCES): Add gtod.h.
Jim Meyering [Sun, 12 Aug 2001 08:33:25 +0000 (08:33 +0000)]
(libfetish_a_SOURCES): Add gtod.h.

22 years ago*** empty log message ***
Jim Meyering [Sun, 12 Aug 2001 08:31:50 +0000 (08:31 +0000)]
*** empty log message ***

22 years agoremove unused cruft
Jim Meyering [Sun, 12 Aug 2001 08:30:36 +0000 (08:30 +0000)]
remove unused cruft

22 years agoyes/no were reversed
Jim Meyering [Sun, 12 Aug 2001 08:30:03 +0000 (08:30 +0000)]
yes/no were reversed

22 years ago.
Jim Meyering [Mon, 6 Aug 2001 09:49:24 +0000 (09:49 +0000)]
.

22 years agoRequire autoconf-2.52.
Jim Meyering [Sun, 5 Aug 2001 03:40:52 +0000 (03:40 +0000)]
Require autoconf-2.52.

22 years ago*** empty log message ***
Jim Meyering [Sat, 4 Aug 2001 17:52:45 +0000 (17:52 +0000)]
*** empty log message ***

22 years ago(__attribute__): Remove `|| __STRICT_ANSI__' from #if stmt,
Jim Meyering [Sat, 4 Aug 2001 17:52:38 +0000 (17:52 +0000)]
(__attribute__): Remove `|| __STRICT_ANSI__' from #if stmt,
to get in sync with glibc.

22 years ago*** empty log message ***
Jim Meyering [Sat, 4 Aug 2001 17:07:43 +0000 (17:07 +0000)]
*** empty log message ***

22 years agoDon't include <limits.h>.
Jim Meyering [Sat, 4 Aug 2001 17:07:37 +0000 (17:07 +0000)]
Don't include <limits.h>.
Include <stdlib.h> and <string.h> unconditionally.
(iswcntrl, mbsinit, ISCNTRL): New macros.
(mbsnwidth): Use K&R style function declarations.
Don't bother checking for MB_LEN_MAX == 1, since the compiler
can optimize it when MB_CUR_MAX == 1.
The width of control characters is zero, not 1.

22 years ago(MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
Jim Meyering [Sat, 4 Aug 2001 17:06:05 +0000 (17:06 +0000)]
(MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
with inverted sense.  All uses changed.

22 years ago.
Jim Meyering [Sat, 4 Aug 2001 17:03:30 +0000 (17:03 +0000)]
.

22 years ago(jm_MACROS): Reflect s/jm_/AM_/ renamings.
Jim Meyering [Sat, 4 Aug 2001 17:02:18 +0000 (17:02 +0000)]
(jm_MACROS): Reflect s/jm_/AM_/ renamings.

22 years ago(jm_PREREQ_MBSWIDTH): No longer requires AM_C_PROTOTYPES.
Jim Meyering [Sat, 4 Aug 2001 17:00:11 +0000 (17:00 +0000)]
(jm_PREREQ_MBSWIDTH): No longer requires AM_C_PROTOTYPES.
Check for iswcntrl, mbsinit.  Use AC_TRY_COMPILE, not AC_CHECK_DECLS,
for portability to Autoconf 2.13.

22 years ago(jm_AC_TYPE_UNSIGNED_LONG_LONG): Quote first arg of AC_DEFUN.
Jim Meyering [Sat, 4 Aug 2001 16:59:23 +0000 (16:59 +0000)]
(jm_AC_TYPE_UNSIGNED_LONG_LONG): Quote first arg of AC_DEFUN.

22 years ago(jm_AC_TYPE_UINTMAX_T): Quote first arg of AC_DEFUN.
Jim Meyering [Sat, 4 Aug 2001 16:59:09 +0000 (16:59 +0000)]
(jm_AC_TYPE_UINTMAX_T): Quote first arg of AC_DEFUN.

22 years ago(AM_PATH_PROG_WITH_TEST): Quote first arg of AC_DEFUN.
Jim Meyering [Sat, 4 Aug 2001 16:58:55 +0000 (16:58 +0000)]
(AM_PATH_PROG_WITH_TEST): Quote first arg of AC_DEFUN.
(AM_PATH_PROG_WITH_TEST): Output "no" only if $1 isn't $4.

22 years ago(AM_LC_MESSAGES): Quote first arg of AC_DEFUN.
Jim Meyering [Sat, 4 Aug 2001 16:58:42 +0000 (16:58 +0000)]
(AM_LC_MESSAGES): Quote first arg of AC_DEFUN.

22 years ago(AC_ISC_POSIX): Quote first arg of AC_DEFUN.
Jim Meyering [Sat, 4 Aug 2001 16:58:23 +0000 (16:58 +0000)]
(AC_ISC_POSIX): Quote first arg of AC_DEFUN.

22 years ago(jm_AC_HEADER_INTTYPES_H): Quote first arg of AC_DEFUN.
Jim Meyering [Sat, 4 Aug 2001 16:58:07 +0000 (16:58 +0000)]
(jm_AC_HEADER_INTTYPES_H): Quote first arg of AC_DEFUN.

22 years ago(jm_GLIBC21): Quote first arg of AC_DEFUN.
Jim Meyering [Sat, 4 Aug 2001 16:57:45 +0000 (16:57 +0000)]
(jm_GLIBC21): Quote first arg of AC_DEFUN.

22 years ago(AM_FUNC_GETLINE): Quote first arg of AC_DEFUN.
Jim Meyering [Sat, 4 Aug 2001 16:56:32 +0000 (16:56 +0000)]
(AM_FUNC_GETLINE): Quote first arg of AC_DEFUN.
(AM_FUNC_GETLINE): Don't bother checking for string.h any more.

22 years ago(AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
Jim Meyering [Sat, 4 Aug 2001 16:56:18 +0000 (16:56 +0000)]
(AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.

22 years agoUpgrade to serial AM2.
Jim Meyering [Sat, 4 Aug 2001 16:55:58 +0000 (16:55 +0000)]
Upgrade to serial AM2.
(AM_ICONV): Renamed from jm_ICONV; all uses changed.
Add --with-libconv-prefix.
Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
(am_cv_func_iconv): Renamed from jm_cv_func_iconv.
(am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
(am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.

22 years agoUpgrade to serial AM1.
Jim Meyering [Sat, 4 Aug 2001 16:55:36 +0000 (16:55 +0000)]
Upgrade to serial AM1.
(AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
all uses changed.  Quote first arg of AC_DEFUN.
(am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.

22 years ago.
Jim Meyering [Fri, 3 Aug 2001 10:42:40 +0000 (10:42 +0000)]
.

22 years ago(jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
Jim Meyering [Fri, 3 Aug 2001 10:09:06 +0000 (10:09 +0000)]
(jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
as it was in the original.  Reported by Paul Eggert.