platform/upstream/coreutils.git
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:55:52 +0000 (09:55 +0000)]
*** empty log message ***

22 years ago(bool): Remove typedef, now that it's in system.h.
Jim Meyering [Fri, 31 Aug 2001 09:55:26 +0000 (09:55 +0000)]
(bool): Remove typedef, now that it's in system.h.
(TRUE): Define to `true', not 1.
(FALSE): Define to `false', not 0.

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

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(copy_dir): Remove st_size argument.
Jim Meyering [Fri, 31 Aug 2001 09:19:40 +0000 (09:19 +0000)]
(copy_dir): Remove st_size argument.

22 years ago(count_entry): Remove st_size argument.
Jim Meyering [Fri, 31 Aug 2001 09:18:13 +0000 (09:18 +0000)]
(count_entry): Remove st_size argument.

22 years ago(change_dir_mode): Remove statp arg; no longer needed.
Jim Meyering [Fri, 31 Aug 2001 09:16:54 +0000 (09:16 +0000)]
(change_dir_mode): Remove statp arg; no longer needed.

22 years ago(change_dir_owner): Remove statp arg; no longer needed.
Jim Meyering [Fri, 31 Aug 2001 09:15:59 +0000 (09:15 +0000)]
(change_dir_owner): Remove statp arg; no longer needed.

22 years agoDo not include savedir.h; not used.
Jim Meyering [Fri, 31 Aug 2001 09:11:04 +0000 (09:11 +0000)]
Do not include savedir.h; not used.

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 ago*** empty log message ***
Jim Meyering [Fri, 31 Aug 2001 07:46:38 +0000 (07:46 +0000)]
*** empty log message ***

22 years agoInclude full-write.h.
Jim Meyering [Fri, 31 Aug 2001 07:46:28 +0000 (07:46 +0000)]
Include full-write.h.
(full_write): Remove decl; not needed.

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

22 years agoInclude full-write.h.
Jim Meyering [Fri, 31 Aug 2001 07:45:12 +0000 (07:45 +0000)]
Include full-write.h.
(full_write): Remove decl; not needed.
(simple_cat, cat): Don't assume read and write size fits in int.

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

22 years ago(full_write): Remove decl; not needed.
Jim Meyering [Fri, 31 Aug 2001 07:42:30 +0000 (07:42 +0000)]
(full_write): Remove decl; not needed.

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

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(full_write): Remove decl; not needed.
Jim Meyering [Fri, 31 Aug 2001 07:22:06 +0000 (07:22 +0000)]
(full_write): Remove decl; not needed.

22 years ago(full_write): Remove decl; not needed.
Jim Meyering [Fri, 31 Aug 2001 07:21:23 +0000 (07:21 +0000)]
(full_write): Remove decl; not needed.

22 years agoInclude full-write.h.
Jim Meyering [Fri, 31 Aug 2001 07:19:24 +0000 (07:19 +0000)]
Include full-write.h.
(full_write): Remove decl; not needed.
(open_fd): Don't assume read and write size fits in int.

22 years agoInclude full-write.h.
Jim Meyering [Fri, 31 Aug 2001 07:15:14 +0000 (07:15 +0000)]
Include full-write.h.
(full_write): Remove decl; not needed.
(copy_reg): Don't assume read and write size fits in int.

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* src/remove.c: Move true/false definitions and include from here...
Jim Meyering [Fri, 31 Aug 2001 06:50:44 +0000 (06:50 +0000)]
* src/remove.c: Move true/false definitions and include from here...
* src/system.h: ...to here.

22 years agocopyright
Jim Meyering [Fri, 31 Aug 2001 06:46:52 +0000 (06:46 +0000)]
copyright

22 years ago(count_entry, main): Reflect changes to the exclude functions.
Jim Meyering [Fri, 31 Aug 2001 06:46:39 +0000 (06:46 +0000)]
(count_entry, main): Reflect changes to the exclude functions.

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*** empty log message ***
Jim Meyering [Tue, 28 Aug 2001 08:33:05 +0000 (08:33 +0000)]
*** empty log message ***

22 years ago(main): Diagnose an invalid width option.
Jim Meyering [Tue, 28 Aug 2001 08:32:51 +0000 (08:32 +0000)]
(main): Diagnose an invalid width option.

22 years ago*** empty log message ***
Jim Meyering [Tue, 28 Aug 2001 08:18:29 +0000 (08:18 +0000)]
*** empty log message ***

22 years ago(main): Correct the diagnostic for invalid argument to -w.
Jim Meyering [Tue, 28 Aug 2001 08:18:19 +0000 (08:18 +0000)]
(main): Correct the diagnostic for invalid argument to -w.

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*** empty log message ***
Jim Meyering [Mon, 27 Aug 2001 08:56:01 +0000 (08:56 +0000)]
*** empty log message ***

22 years agoUndo last change. Instead, simply remove `N_('.
Jim Meyering [Mon, 27 Aug 2001 08:55:54 +0000 (08:55 +0000)]
Undo last change.  Instead, simply remove `N_('.

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(copyright-check): Update to reflect fact that
Jim Meyering [Sun, 26 Aug 2001 18:27:00 +0000 (18:27 +0000)]
(copyright-check): Update to reflect fact that
the copyright year is now defined separately.

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

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:46:20 +0000 (10:46 +0000)]
.

22 years ago.
Jim Meyering [Sun, 26 Aug 2001 10:43:53 +0000 (10:43 +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:06:48 +0000 (07:06 +0000)]
*** empty log message ***

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

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.