gnulib.git
22 years ago*** empty log message ***
Jim Meyering [Sat, 1 Sep 2001 07:29:08 +0000 (07:29 +0000)]
*** empty log message ***

22 years agoUse `""', not `<>' to #include non-system header files.
Jim Meyering [Sat, 1 Sep 2001 07:28:51 +0000 (07:28 +0000)]
Use `""', not `<>' to #include non-system header files.
(fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
and strncasecmp as r-values.  Unixware didn't have declarations.

22 years agofix typo
Jim Meyering [Sat, 1 Sep 2001 06:13:08 +0000 (06:13 +0000)]
fix typo

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

22 years ago(xgetcwd): Reorganize to avoid some duplication.
Jim Meyering [Fri, 31 Aug 2001 11:39:16 +0000 (11:39 +0000)]
(xgetcwd): Reorganize to avoid some duplication.
Use an initial, malloc'd, buffer of length 128 rather than
a statically allocated one of length 1024.

22 years ago*** empty log message ***
Jim Meyering [Fri, 31 Aug 2001 10:36:23 +0000 (10:36 +0000)]
*** empty log message ***

22 years agoDon't include pathmax.h.
Jim Meyering [Fri, 31 Aug 2001 10:36:12 +0000 (10:36 +0000)]
Don't include pathmax.h.
Include stdlib.h and unistd.h if available.
Include xalloc.h.
(xmalloc, xstrdup, free): Remove decls.
(xgetcwd): Don't assume sizes fit in unsigned.
Check for overflow when computing sizes.
Simplify reallocation code.

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

22 years ago(jm_MACROS):Don't require jm_AC_HEADER_INTTYPES_H.
Jim Meyering [Fri, 31 Aug 2001 10:21:56 +0000 (10:21 +0000)]
(jm_MACROS):Don't require jm_AC_HEADER_INTTYPES_H.

22 years ago(jm_PREREQ_HUMAN): Don't require jm_AC_HEADER_INTTYPES_H.
Jim Meyering [Fri, 31 Aug 2001 10:20:17 +0000 (10:20 +0000)]
(jm_PREREQ_HUMAN): Don't require jm_AC_HEADER_INTTYPES_H.
Update comment.

22 years ago(jm_AC_PREREQ_XSTRTOUMAX):
Jim Meyering [Fri, 31 Aug 2001 10:18:21 +0000 (10:18 +0000)]
(jm_AC_PREREQ_XSTRTOUMAX):
Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
since they are needed to parse the include file even if we need
only xstrtoumax.  Simplify logic behind the args to AC_REPLACE.

22 years ago(jm_AC_PREREQ_XSTRTOIMAX):
Jim Meyering [Fri, 31 Aug 2001 10:14:52 +0000 (10:14 +0000)]
(jm_AC_PREREQ_XSTRTOIMAX):
Quote first arg of AC_DEFUN.
Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
since they are needed to parse the include file even if we need
only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.

22 years ago(AC_PREREQ): Bump to 2.52.
Jim Meyering [Fri, 31 Aug 2001 10:12:12 +0000 (10:12 +0000)]
(AC_PREREQ): Bump to 2.52.
(jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
All uses removed.
(jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
Move AC_REQUIRE to next-to-top level, to avoid confusion.
Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.

22 years agoRemove, as it duplicates inttypes.m4.
Jim Meyering [Fri, 31 Aug 2001 10:05:52 +0000 (10:05 +0000)]
Remove, as it duplicates inttypes.m4.

22 years ago.
Jim Meyering [Fri, 31 Aug 2001 10:04:15 +0000 (10:04 +0000)]
.

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

22 years agoInclude strtoimax.c, not strtouxmax.c.
Jim Meyering [Fri, 31 Aug 2001 09:39:10 +0000 (09:39 +0000)]
Include strtoimax.c, not strtouxmax.c.

22 years agoRenamed from strtoxmax.c, removing the old strtoimax.c.
Jim Meyering [Fri, 31 Aug 2001 09:37:58 +0000 (09:37 +0000)]
Renamed from strtoxmax.c, removing the old strtoimax.c.

Also, make the following further changes to make this file's
configuration more similar to that of strtol.c:
(UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
(strtoumax, uintmax_t, strtoull, strtol): Remove.
(intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
(strtoimax): Renamed from strtoumax.  All uses of unsigned values
changed to signed values.

And make the following changes as well:
Fix copyright notice, as 1999 was missing.
(verify): New macro.
(strtoimax): Check sizes at compile-time, not run-time.
Prefer strtol to strtoll if both work.
(main): Remove; it was not that useful and was a pain to maintain.

22 years ago.
Jim Meyering [Fri, 31 Aug 2001 09:30:02 +0000 (09:30 +0000)]
.

22 years ago(libfetish_a_SOURCES): Remove strtoxmax.c.
Jim Meyering [Fri, 31 Aug 2001 09:29:44 +0000 (09:29 +0000)]
(libfetish_a_SOURCES): Remove strtoxmax.c.

22 years ago(savedir): Remove size parameter, as POSIX says that
Jim Meyering [Fri, 31 Aug 2001 09:09:53 +0000 (09:09 +0000)]
(savedir): Remove size parameter, as POSIX says that
a directory's st_size can have an arbitrary value, so the old
usage could waste an arbitrary amount of memory.  All uses
changed.

22 years agoUpdate prototype.
Jim Meyering [Fri, 31 Aug 2001 09:09:35 +0000 (09:09 +0000)]
Update prototype.

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

22 years ago(strtoimax): New decl.
Jim Meyering [Fri, 31 Aug 2001 08:17:45 +0000 (08:17 +0000)]
(strtoimax): New decl.

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

22 years ago* lib/xstrtol.h: Add copyright notice.
Jim Meyering [Fri, 31 Aug 2001 08:15:10 +0000 (08:15 +0000)]
* lib/xstrtol.h: Add copyright notice.
(_DECLARE_XSTRTOL): Improve quality of diagnostic for
LONGINT_INVALID_SUFFIX_CHAR.

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

22 years agoBSD/OS 4.1 wchar.h requires FILE and struct tm to be declared.
Jim Meyering [Fri, 31 Aug 2001 07:51:13 +0000 (07:51 +0000)]
BSD/OS 4.1 wchar.h requires FILE and struct tm to be declared.

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

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)]
.