platform/upstream/coreutils.git
23 years ago(gobble_file) [USE_ACL]: Set have_acl member unconditionally
Jim Meyering [Sun, 3 Dec 2000 22:40:31 +0000 (22:40 +0000)]
(gobble_file) [USE_ACL]: Set have_acl member unconditionally
to avoid uninitialized memory reference via FILE_HAS_ACL.

23 years ago*** empty log message ***
Jim Meyering [Sun, 3 Dec 2000 20:46:07 +0000 (20:46 +0000)]
*** empty log message ***

23 years ago(TESTS): Add assert-2.
Jim Meyering [Sun, 3 Dec 2000 20:43:51 +0000 (20:43 +0000)]
(TESTS): Add assert-2.

23 years agoremove instrumentation
Jim Meyering [Sun, 3 Dec 2000 20:37:55 +0000 (20:37 +0000)]
remove instrumentation

23 years agoadd instrumentation to detect some UMRs
Jim Meyering [Sun, 3 Dec 2000 20:37:18 +0000 (20:37 +0000)]
add instrumentation to detect some UMRs

23 years ago*** empty log message ***
Jim Meyering [Sun, 3 Dec 2000 20:36:29 +0000 (20:36 +0000)]
*** empty log message ***

23 years ago(tail_file): Initialize ignore, dev, and ino members,
Jim Meyering [Sun, 3 Dec 2000 20:36:19 +0000 (20:36 +0000)]
(tail_file): Initialize ignore, dev, and ino members,
when tailing forever and the open failed.  Otherwise, we could get
uninitialized memory references of those fields in recheck.

23 years ago*** empty log message ***
Jim Meyering [Sun, 3 Dec 2000 13:10:48 +0000 (13:10 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sun, 3 Dec 2000 12:46:55 +0000 (12:46 +0000)]
*** empty log message ***

23 years ago(alpha): Use rsync rather than scp, so the destination
Jim Meyering [Sun, 3 Dec 2000 12:46:44 +0000 (12:46 +0000)]
(alpha): Use rsync rather than scp, so the destination
file is created only after the successful completion of the copy.

23 years ago.
Jim Meyering [Sun, 3 Dec 2000 12:31:59 +0000 (12:31 +0000)]
.

23 years agouse CHAR_BIT, not BITSPERBYTE TEXTUTILS-2_0_9
Jim Meyering [Sun, 3 Dec 2000 11:00:06 +0000 (11:00 +0000)]
use CHAR_BIT, not BITSPERBYTE

23 years ago*** empty log message ***
Jim Meyering [Sun, 3 Dec 2000 10:59:49 +0000 (10:59 +0000)]
*** empty log message ***

23 years ago(CHAR_BIT): Define.
Jim Meyering [Sun, 3 Dec 2000 10:59:44 +0000 (10:59 +0000)]
(CHAR_BIT): Define.

23 years ago*** empty log message ***
Jim Meyering [Sun, 3 Dec 2000 10:39:03 +0000 (10:39 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sun, 3 Dec 2000 10:22:32 +0000 (10:22 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sun, 3 Dec 2000 10:21:34 +0000 (10:21 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sun, 3 Dec 2000 10:18:09 +0000 (10:18 +0000)]
*** empty log message ***

23 years agoMake od print valid addresses for offsets of 2^32 and larger. (cont'd)
Jim Meyering [Sun, 3 Dec 2000 10:18:04 +0000 (10:18 +0000)]
Make od print valid addresses for offsets of 2^32 and larger. (cont'd)

(MAX_ADDRESS_LENGTH): Don't hard-code as a literal.
Rather, define in terms of the type, off_t.
(string_min): Declare to be of type size_t.
(flag_dump_strings): Declare to be of type int.
(print_s_char): Declare the n_bytes parameter and the local, `i',
to be of type off_t.
(print_char): Likewise.
(print_s_short): Likewise.
(print_short): Likewise.
(print_int): Likewise.
(print_long): Likewise.
(print_long_long): Likewise.
(print_float): Likewise.
(print_double): Likewise.
(print_long_double): Likewise.
(dump_hexl_mode_trailer): Likewise.
(print_named_ascii): Likewise.
(print_ascii): Likewise.
(write_block): Likewise.
(print_ascii): Declare local, `print_function' with a prototype.
Change a few `>' comparisons to the equivalent `<' form.
(parse_options): Declare `tmp' to be of type uintmax_t.
Use xstrtoumax, not xstrtoul.
Fail if the specified offset if larger than OFF_T_MAX.
(dump_strings): Declare local `i' to be of type size_t.
Remove the now-unnecessary cast-to-off_t.
(main) [IF_LINT]: Initialize desired_width to avoid a warning.
Declare `tmp' to be of type uintmax_t.
Use xstrtoumax, not xstrtoul.
Fail if minimum string length is larger than SIZE_MAX.
Fail if specified width is larger than ULONG_MAX.

23 years agoAdd this:
Jim Meyering [Sun, 3 Dec 2000 10:04:30 +0000 (10:04 +0000)]
Add this:
  AC_REQUIRE([AC_TYPE_OFF_T])

23 years ago(OFF_T_MIN): Remove definition.
Jim Meyering [Sun, 3 Dec 2000 08:55:51 +0000 (08:55 +0000)]
(OFF_T_MIN): Remove definition.
(OFF_T_MAX): Likewise.

23 years ago(OFF_T_MIN): Define.
Jim Meyering [Sun, 3 Dec 2000 08:54:37 +0000 (08:54 +0000)]
(OFF_T_MIN): Define.
(OFF_T_MAX): Define.

23 years agoMake od print valid addresses for offsets of 2^32 and larger.
Jim Meyering [Sun, 3 Dec 2000 08:44:12 +0000 (08:44 +0000)]
Make od print valid addresses for offsets of 2^32 and larger.

(format_address): Use off_t, not long unsigned_int as the
parameter type.
(format_address_none): Likewise.  Mark parameter as unused.
(format_address_std): Likewise.
(format_address_label): Likewise.
(print_ascii): Mark format string parameter as unused.
(write_block): Use off_t, not long unsigned_int as offset type.
(expand_address_fmt): New function.
(main): Use it to expand each address format string template.
Reported by Mark Nudelman, via Andreas Jaeger.

23 years ago(parse_options): Use xstrtoumax to parse the byte and line
Jim Meyering [Sun, 3 Dec 2000 08:35:48 +0000 (08:35 +0000)]
(parse_options): Use xstrtoumax to parse the byte and line
offset.  Give a better diagnostic when the requested offset is still
representable but larger than OFF_T_MAX.

23 years ago*** empty log message ***
Jim Meyering [Sat, 2 Dec 2000 22:18:29 +0000 (22:18 +0000)]
*** empty log message ***

23 years ago(valid_format): Move pre-increment to a separate statement to avoid a warning.
Jim Meyering [Sat, 2 Dec 2000 22:18:21 +0000 (22:18 +0000)]
(valid_format): Move pre-increment to a separate statement to avoid a warning.

23 years agoMove dcls of globals used only in main...
Jim Meyering [Sat, 2 Dec 2000 22:16:41 +0000 (22:16 +0000)]
Move dcls of globals used only in main...
(main): ...to here.
(usage): Clarify option descriptions.

23 years agowhoops. rename the use, too -- not just the decl!!
Jim Meyering [Sat, 2 Dec 2000 21:14:41 +0000 (21:14 +0000)]
whoops.  rename the use, too -- not just the decl!!

23 years ago*** empty log message ***
Jim Meyering [Sat, 2 Dec 2000 21:14:09 +0000 (21:14 +0000)]
*** empty log message ***

23 years ago(checkfp): Rename local `buf' to avoid shadowing previous declaration.
Jim Meyering [Sat, 2 Dec 2000 21:14:02 +0000 (21:14 +0000)]
(checkfp): Rename local `buf' to avoid shadowing previous declaration.

23 years ago(skip): Use lseek instead of worrying about fseeko or fseek.
Jim Meyering [Sat, 2 Dec 2000 21:08:01 +0000 (21:08 +0000)]
(skip): Use lseek instead of worrying about fseeko or fseek.
This should be portable, as we seek before doing any I/O.
(fseeko): Remove; no longer used.

23 years agoadd back the parens Paul removed :-)
Jim Meyering [Sat, 2 Dec 2000 20:55:25 +0000 (20:55 +0000)]
add back the parens Paul removed :-)

23 years ago(gobble_file): Do not fall back on lstat if stat
Jim Meyering [Sat, 2 Dec 2000 20:55:02 +0000 (20:55 +0000)]
(gobble_file): Do not fall back on lstat if stat
fails; POSIX.2 does not allow this.  Invoke acl only on
non-symlinks, and only if lstat or stat succeeds.

23 years ago*** empty log message ***
Jim Meyering [Sat, 2 Dec 2000 20:52:09 +0000 (20:52 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 2 Dec 2000 20:45:40 +0000 (20:45 +0000)]
*** empty log message ***

23 years agoMake idempotent, to avoid some obscure warnings.
Jim Meyering [Sat, 2 Dec 2000 20:45:30 +0000 (20:45 +0000)]
Make idempotent, to avoid some obscure warnings.

23 years ago.
Jim Meyering [Sat, 2 Dec 2000 18:52:17 +0000 (18:52 +0000)]
.

23 years ago*** empty log message ***
Jim Meyering [Sat, 2 Dec 2000 18:52:03 +0000 (18:52 +0000)]
*** empty log message ***

23 years ago(OFF_T_PRINTF_FORMAT_STRING): require it.
Jim Meyering [Sat, 2 Dec 2000 18:51:26 +0000 (18:51 +0000)]
(OFF_T_PRINTF_FORMAT_STRING): require it.

23 years ago*** empty log message ***
Jim Meyering [Sat, 2 Dec 2000 18:04:19 +0000 (18:04 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 2 Dec 2000 18:02:05 +0000 (18:02 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 2 Dec 2000 17:44:04 +0000 (17:44 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 2 Dec 2000 17:40:26 +0000 (17:40 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 2 Dec 2000 17:39:59 +0000 (17:39 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 2 Dec 2000 14:53:18 +0000 (14:53 +0000)]
*** empty log message ***

23 years ago(TESTS): Add follow-slink.
Jim Meyering [Sat, 2 Dec 2000 14:53:07 +0000 (14:53 +0000)]
(TESTS): Add follow-slink.

23 years ago*** empty log message ***
Jim Meyering [Sat, 2 Dec 2000 14:52:45 +0000 (14:52 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 2 Dec 2000 14:43:34 +0000 (14:43 +0000)]
*** empty log message ***

23 years ago(NONZERO): Define and use it to make the code a tiny
Jim Meyering [Sat, 2 Dec 2000 14:43:28 +0000 (14:43 +0000)]
(NONZERO): Define and use it to make the code a tiny
bit more readable.

23 years ago*** empty log message ***
Jim Meyering [Sat, 2 Dec 2000 14:28:23 +0000 (14:28 +0000)]
*** empty log message ***

23 years ago(sort invocation): Clarify how -t works when
Jim Meyering [Sat, 2 Dec 2000 14:28:11 +0000 (14:28 +0000)]
(sort invocation): Clarify how -t works when
a sort key specifies a range of fields.  From Karl O. Pinc.

23 years ago*** empty log message ***
Jim Meyering [Sat, 2 Dec 2000 14:10:37 +0000 (14:10 +0000)]
*** empty log message ***

23 years ago.
Jim Meyering [Sat, 2 Dec 2000 14:04:05 +0000 (14:04 +0000)]
.

23 years agoadd test that would fail on NetBSD before the last change
Jim Meyering [Sat, 2 Dec 2000 14:02:34 +0000 (14:02 +0000)]
add test that would fail on NetBSD before the last change

23 years ago*** empty log message ***
Jim Meyering [Sat, 2 Dec 2000 13:22:57 +0000 (13:22 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 2 Dec 2000 13:22:14 +0000 (13:22 +0000)]
*** empty log message ***

23 years ago(main): Remove any trailing slash unconditionally.
Jim Meyering [Sat, 2 Dec 2000 13:20:37 +0000 (13:20 +0000)]
(main): Remove any trailing slash unconditionally.
Reported by Volker Borchert.

23 years ago*** empty log message ***
Jim Meyering [Sat, 2 Dec 2000 12:15:00 +0000 (12:15 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 2 Dec 2000 12:05:15 +0000 (12:05 +0000)]
*** empty log message ***

23 years ago(TESTS): Add skip-seek2
Jim Meyering [Sat, 2 Dec 2000 12:05:03 +0000 (12:05 +0000)]
(TESTS): Add skip-seek2

23 years ago*** empty log message ***
Jim Meyering [Sat, 2 Dec 2000 12:04:32 +0000 (12:04 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sat, 2 Dec 2000 09:58:43 +0000 (09:58 +0000)]
*** empty log message ***

23 years agoInclude <config.h> before any system include file.
Jim Meyering [Sat, 2 Dec 2000 09:58:31 +0000 (09:58 +0000)]
Include <config.h> before any system include file.

23 years ago*** empty log message ***
Jim Meyering [Sat, 2 Dec 2000 08:19:31 +0000 (08:19 +0000)]
*** empty log message ***

23 years ago(skip, dd_copy): Use ssize_t to store result of
Jim Meyering [Sat, 2 Dec 2000 08:19:21 +0000 (08:19 +0000)]
(skip, dd_copy): Use ssize_t to store result of
safe_read, to avoid overflow e.g. on 64-bit Solaris sparc.
(dd_copy): Remove unnecessary cast.

23 years ago*** empty log message ***
Jim Meyering [Sat, 2 Dec 2000 08:14:33 +0000 (08:14 +0000)]
*** empty log message ***

23 years agoUndo most of the changes since 2000-11-24, since we've
Jim Meyering [Sat, 2 Dec 2000 08:12:56 +0000 (08:12 +0000)]
Undo most of the changes since 2000-11-24, since we've
documented a standard way to do it.
(skip_bytes, seek_bytes): Remove.
(usage): Remove B suffix.
(scanargs, skip, dd_copy, main): Remove support for B suffix.

23 years ago*** empty log message ***
Jim Meyering [Thu, 30 Nov 2000 20:36:08 +0000 (20:36 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Thu, 30 Nov 2000 20:35:02 +0000 (20:35 +0000)]
*** empty log message ***

23 years ago(jm_MACROS): Add stdint.h to the list of headers.
Jim Meyering [Thu, 30 Nov 2000 20:34:23 +0000 (20:34 +0000)]
(jm_MACROS): Add stdint.h to the list of headers.

23 years agos/SIZE_T_MAX/SIZE_MAX/.
Jim Meyering [Thu, 30 Nov 2000 20:30:04 +0000 (20:30 +0000)]
s/SIZE_T_MAX/SIZE_MAX/.

23 years agoInclude <stdint.h> if HAVE_STDINT_H.
Jim Meyering [Thu, 30 Nov 2000 20:27:49 +0000 (20:27 +0000)]
Include <stdint.h> if HAVE_STDINT_H.
(SIZE_MAX): Renamed from SIZE_T_MAX, as C99 uses SIZE_MAX.
All uses changed.

23 years ago*** empty log message ***
Jim Meyering [Thu, 30 Nov 2000 11:39:19 +0000 (11:39 +0000)]
*** empty log message ***

23 years ago(SIZE_T_MAX): Define.
Jim Meyering [Thu, 30 Nov 2000 11:39:08 +0000 (11:39 +0000)]
(SIZE_T_MAX): Define.

23 years ago*** empty log message ***
Jim Meyering [Thu, 30 Nov 2000 11:33:57 +0000 (11:33 +0000)]
*** empty log message ***

23 years agoPort GNU "sort" to hosts where sizes don't fit in "int",
Jim Meyering [Thu, 30 Nov 2000 11:33:49 +0000 (11:33 +0000)]
Port GNU "sort" to hosts where sizes don't fit in "int",
e.g. 64-bit Solaris (sparc).

("human.h", "xstrtol.h"): Include.
(struct line): length member is now size_t, not int.
(struct lines): Likewise for used, alloc, limit members.
(struct buffer): Likewise for used, alloc, left, newline_free members.
(struct keyfield): Likewise for sword, schar, eword, echar members.
(sortalloc, mergealloc, linelength): Now size_t, not int.

(initbuf, fillbuf, initlines, begfield, limfield, findlines,
numcompare, getmonth, keycompare, compare, checkfp, mergefps,
sortlines, sort): Accept, return, and use size_t for sizes, not int.

(fillbuf, initlines, findlines, checkfp, sort): Check for overflow
when computing buffer sizes.

(begfield, limfield): Do not index past end of array.

(checkfp): Return a boolean, not a line number, as the line
number may not fit in int.  All callers changed.  Use
uintmax_t for line numbers, not int.

(sort): Don't allocate tmp until we need it (and know the right size).

(parse_field_count): New function.

(main): Use it to check for overflow in field counts.
"outfile" is now a pointer to const.

23 years ago*** empty log message ***
Jim Meyering [Thu, 30 Nov 2000 09:36:04 +0000 (09:36 +0000)]
*** empty log message ***

23 years ago(dir_name_r): Fix typo: int -> size_t.
Jim Meyering [Thu, 30 Nov 2000 09:35:52 +0000 (09:35 +0000)]
(dir_name_r): Fix typo: int -> size_t.

23 years ago*** empty log message ***
Jim Meyering [Thu, 30 Nov 2000 07:45:38 +0000 (07:45 +0000)]
*** empty log message ***

23 years agos/ifval/m4_ifval/ to accommodate new autoconf.
Jim Meyering [Thu, 30 Nov 2000 07:44:58 +0000 (07:44 +0000)]
s/ifval/m4_ifval/ to accommodate new autoconf.

23 years ago.
Jim Meyering [Thu, 30 Nov 2000 07:40:16 +0000 (07:40 +0000)]
.

23 years agoremove useless parens
Jim Meyering [Mon, 27 Nov 2000 09:33:53 +0000 (09:33 +0000)]
remove useless parens

23 years ago*** empty log message ***
Jim Meyering [Mon, 27 Nov 2000 09:04:38 +0000 (09:04 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Mon, 27 Nov 2000 08:47:13 +0000 (08:47 +0000)]
*** empty log message ***

23 years agoadd an echo
Jim Meyering [Mon, 27 Nov 2000 08:45:46 +0000 (08:45 +0000)]
add an echo

23 years ago*** empty log message *** FILEUTILS-4_0_33
Jim Meyering [Mon, 27 Nov 2000 08:32:13 +0000 (08:32 +0000)]
*** empty log message ***

23 years agoUse touch with `-d tomorrow' to avoid race condition.
Jim Meyering [Mon, 27 Nov 2000 08:01:57 +0000 (08:01 +0000)]
Use touch with `-d tomorrow' to avoid race condition.

23 years ago*** empty log message ***
Jim Meyering [Mon, 27 Nov 2000 08:00:53 +0000 (08:00 +0000)]
*** empty log message ***

23 years agouse abs_srcdir
Jim Meyering [Mon, 27 Nov 2000 07:01:39 +0000 (07:01 +0000)]
use abs_srcdir

23 years ago.
Jim Meyering [Sun, 26 Nov 2000 23:30:27 +0000 (23:30 +0000)]
.

23 years ago*** empty log message ***
Jim Meyering [Sun, 26 Nov 2000 23:13:28 +0000 (23:13 +0000)]
*** empty log message ***

23 years agoInclude config.h, stdio.h, sys/types.h. and system.h here instead.
Jim Meyering [Sun, 26 Nov 2000 23:13:11 +0000 (23:13 +0000)]
Include config.h, stdio.h, sys/types.h. and system.h here instead.

23 years agoInclude config.h, stdio.h, sys/types.h. and system.h here instead.
Jim Meyering [Sun, 26 Nov 2000 23:12:44 +0000 (23:12 +0000)]
Include config.h, stdio.h, sys/types.h. and system.h here instead.

23 years agodon't include system.h here
Jim Meyering [Sun, 26 Nov 2000 23:10:55 +0000 (23:10 +0000)]
don't include system.h here

23 years ago*** empty log message ***
Jim Meyering [Sun, 26 Nov 2000 23:10:25 +0000 (23:10 +0000)]
*** empty log message ***

23 years ago.
Jim Meyering [Sun, 26 Nov 2000 23:08:17 +0000 (23:08 +0000)]
.

23 years ago*** empty log message ***
Jim Meyering [Sun, 26 Nov 2000 23:05:02 +0000 (23:05 +0000)]
*** empty log message ***

23 years ago*** empty log message ***
Jim Meyering [Sun, 26 Nov 2000 23:04:55 +0000 (23:04 +0000)]
*** empty log message ***

23 years ago(_compare_files): New function.
Jim Meyering [Sun, 26 Nov 2000 23:04:39 +0000 (23:04 +0000)]
(_compare_files): New function.
(_process_file_spec): Likewise.
(_at_replace): Likewise.
(run_tests): Support new keywords, AUX and CMP and associated
syntax and semantics.

23 years ago*** empty log message ***
Jim Meyering [Sun, 26 Nov 2000 23:01:58 +0000 (23:01 +0000)]
*** empty log message ***