platform/upstream/coreutils.git
29 years agoDon't hard-code /tmp.
Jim Meyering [Fri, 5 May 1995 04:16:12 +0000 (04:16 +0000)]
Don't hard-code /tmp.
[DEFAULT_TMPDIR]: Use this instead.

29 years ago.
Jim Meyering [Tue, 2 May 1995 04:04:39 +0000 (04:04 +0000)]
.

29 years ago(quote_filename): Never return NULL when quoting filenames
Jim Meyering [Tue, 2 May 1995 04:04:32 +0000 (04:04 +0000)]
(quote_filename): Never return NULL when quoting filenames
as C-strings.  --quote-name was quoting only strings containing
at least one C-quotable character.  Reported by David J. MacKenzie.

29 years ago(usage): Fix per kb's suggestions.
Jim Meyering [Sun, 30 Apr 1995 12:57:50 +0000 (12:57 +0000)]
(usage): Fix per kb's suggestions.

29 years agoUse __-protected versions of `format' and `printf' only with gcc-2.7 and later.
Jim Meyering [Thu, 27 Apr 1995 17:04:23 +0000 (17:04 +0000)]
Use __-protected versions of `format' and `printf' only with gcc-2.7 and later.

29 years agomerge with 1.11.f
Jim Meyering [Thu, 27 Apr 1995 06:06:46 +0000 (06:06 +0000)]
merge with 1.11.f

29 years ago(REGEX_FREE): Add back the `while (0)' hack
Jim Meyering [Thu, 27 Apr 1995 05:23:35 +0000 (05:23 +0000)]
(REGEX_FREE): Add back the `while (0)' hack
Put back ifdefs to protect unnecessary decl.

29 years agoLatest from RMS.
Jim Meyering [Thu, 27 Apr 1995 04:54:07 +0000 (04:54 +0000)]
Latest from RMS.

29 years ago.
Jim Meyering [Thu, 27 Apr 1995 04:51:57 +0000 (04:51 +0000)]
.

29 years ago(EMACS_INT): Define it to int. (BIG KLUDGE)
Jim Meyering [Wed, 26 Apr 1995 17:19:13 +0000 (17:19 +0000)]
(EMACS_INT): Define it to int.  (BIG KLUDGE)

29 years ago(REGEX_FREE): Define to `while (0) /* empty */' rather than nothing.
Jim Meyering [Wed, 26 Apr 1995 17:18:27 +0000 (17:18 +0000)]
(REGEX_FREE): Define to `while (0) /* empty */' rather than nothing.
Otherwise, some uses got warnings about empty if-clause.

Declare failure_stack_ptr only #ifdef REL_ALLOC.

29 years agoNew version from FSF.
Jim Meyering [Wed, 26 Apr 1995 17:02:38 +0000 (17:02 +0000)]
New version from FSF.

29 years ago(tempname): AND-off high bits of pid so that its decimal
Jim Meyering [Wed, 26 Apr 1995 16:12:01 +0000 (16:12 +0000)]
(tempname): AND-off high bits of pid so that its decimal
string representation is no longer than five digits.
From Hans Verkuil (hans@wyst.hobby.nl)

29 years ago.
Jim Meyering [Tue, 25 Apr 1995 05:40:06 +0000 (05:40 +0000)]
.

29 years agoProtect format and printf with __*__.
Jim Meyering [Mon, 24 Apr 1995 16:25:29 +0000 (16:25 +0000)]
Protect format and printf with __*__.

29 years agoFix mostly per Franc,ois' suggestions.
Jim Meyering [Sat, 22 Apr 1995 05:54:18 +0000 (05:54 +0000)]
Fix mostly per Franc,ois' suggestions.

29 years agoUpdate and add copyright.
Jim Meyering [Fri, 21 Apr 1995 17:29:15 +0000 (17:29 +0000)]
Update and add copyright.

29 years ago.
Jim Meyering [Fri, 21 Apr 1995 06:24:54 +0000 (06:24 +0000)]
.

29 years ago.
Jim Meyering [Fri, 21 Apr 1995 04:22:00 +0000 (04:22 +0000)]
.

29 years ago(add_tabstop): Give correct size when reallocating tab_list buffer.
Jim Meyering [Fri, 21 Apr 1995 04:12:33 +0000 (04:12 +0000)]
(add_tabstop): Give correct size when reallocating tab_list buffer.
From Geoff Odhner (geoff@franklin.com).

29 years ago.
Jim Meyering [Wed, 19 Apr 1995 03:58:38 +0000 (03:58 +0000)]
.

29 years ago.
Jim Meyering [Sat, 15 Apr 1995 13:15:02 +0000 (13:15 +0000)]
.

29 years ago(next_file_name): Don't reuse X as an index.
Jim Meyering [Fri, 14 Apr 1995 04:29:41 +0000 (04:29 +0000)]
(next_file_name): Don't reuse X as an index.
Declare new variable I instead.

29 years ago(write_block): Declare index I as unsigned int, not int.
Jim Meyering [Fri, 14 Apr 1995 04:27:46 +0000 (04:27 +0000)]
(write_block): Declare index I as unsigned int, not int.
(get_lcm): Likewise.
(dump_strings): Likewise.
(main): Likewise.
(dump): Cast BYTES_PER_BLOCK to off_t in MIN expression.
(dump_strings): Declare bufsize to be of type size_t, not int.

29 years agoRemove block of redundant comments describing options.
Jim Meyering [Fri, 14 Apr 1995 04:23:22 +0000 (04:23 +0000)]
Remove block of redundant comments describing options.
(usage): Remove reference to -l option.  It's not valid.

29 years ago.
Jim Meyering [Tue, 4 Apr 1995 21:19:44 +0000 (21:19 +0000)]
.

29 years ago.
Jim Meyering [Mon, 3 Apr 1995 13:53:18 +0000 (13:53 +0000)]
.

29 years ago.
Jim Meyering [Mon, 3 Apr 1995 13:52:54 +0000 (13:52 +0000)]
.

29 years ago(fold_file): Declare offset_out size_t.
Jim Meyering [Sat, 25 Mar 1995 21:09:34 +0000 (21:09 +0000)]
(fold_file): Declare offset_out size_t.

29 years ago(set_fields): Declare index unsigned.
Jim Meyering [Sat, 25 Mar 1995 21:08:36 +0000 (21:08 +0000)]
(set_fields): Declare index unsigned.

29 years agoDeclare as `unsigned int' all variables that were just `unsigned'.
Jim Meyering [Fri, 24 Mar 1995 23:40:41 +0000 (23:40 +0000)]
Declare as `unsigned int' all variables that were just `unsigned'.
(make_filename): Change type of arg to unsigned int.
(split_file): Change type of indices to unsigned int.

29 years agomerge with 1.11.e
Jim Meyering [Tue, 21 Mar 1995 03:50:10 +0000 (03:50 +0000)]
merge with 1.11.e

29 years ago.
Jim Meyering [Tue, 21 Mar 1995 03:45:22 +0000 (03:45 +0000)]
.

29 years ago(usage): Add ellipsis after `[OPTION]'.
Jim Meyering [Tue, 21 Mar 1995 03:45:15 +0000 (03:45 +0000)]
(usage): Add ellipsis after `[OPTION]'.
Use FILE, not deprecated PATH.  From Karl Berry.

29 years ago.
Jim Meyering [Tue, 21 Mar 1995 01:58:18 +0000 (01:58 +0000)]
.

29 years agomerge with 1.11.d
Jim Meyering [Tue, 21 Mar 1995 01:43:35 +0000 (01:43 +0000)]
merge with 1.11.d

29 years ago.
Jim Meyering [Mon, 20 Mar 1995 15:10:37 +0000 (15:10 +0000)]
.

29 years agosync from FSF
Jim Meyering [Mon, 20 Mar 1995 15:09:56 +0000 (15:09 +0000)]
sync from FSF

29 years ago.
Jim Meyering [Mon, 20 Mar 1995 14:26:41 +0000 (14:26 +0000)]
.

29 years agoversion.texi: Put only version number in VERSION definition.
Jim Meyering [Fri, 17 Mar 1995 04:07:19 +0000 (04:07 +0000)]
version.texi: Put only version number in VERSION definition.

29 years ago.
Jim Meyering [Fri, 17 Mar 1995 04:05:46 +0000 (04:05 +0000)]
.

29 years agoDetect when -N argument is too large to fit in an off_t.
Jim Meyering [Thu, 16 Mar 1995 21:54:02 +0000 (21:54 +0000)]
Detect when -N argument is too large to fit in an off_t.

29 years ago.
Jim Meyering [Sun, 12 Mar 1995 18:31:55 +0000 (18:31 +0000)]
.

29 years ago.
Jim Meyering [Sun, 12 Mar 1995 18:21:38 +0000 (18:21 +0000)]
.

29 years ago.
Jim Meyering [Sun, 12 Mar 1995 18:12:18 +0000 (18:12 +0000)]
.

29 years agoBetter but-reporting instructions.
Jim Meyering [Sun, 12 Mar 1995 18:07:15 +0000 (18:07 +0000)]
Better but-reporting instructions.
wc tweak: lines->newlines.

29 years agoUndef __P before defining it.
Jim Meyering [Sun, 12 Mar 1995 18:06:08 +0000 (18:06 +0000)]
Undef __P before defining it.

29 years ago.
Jim Meyering [Sun, 12 Mar 1995 18:00:33 +0000 (18:00 +0000)]
.

29 years agoMake source const.
Jim Meyering [Sun, 12 Mar 1995 15:26:36 +0000 (15:26 +0000)]
Make source const.

29 years agoUpdate from glibc.
Jim Meyering [Sun, 12 Mar 1995 15:26:09 +0000 (15:26 +0000)]
Update from glibc.

29 years agoadd 1995 to Copyright dates
Jim Meyering [Fri, 10 Mar 1995 04:15:06 +0000 (04:15 +0000)]
add 1995 to Copyright dates

29 years agoadd 1995 to Copyright dates
Jim Meyering [Thu, 9 Mar 1995 22:33:05 +0000 (22:33 +0000)]
add 1995 to Copyright dates

29 years agoadd 1995 to Copyright dates
Jim Meyering [Thu, 9 Mar 1995 22:20:59 +0000 (22:20 +0000)]
add 1995 to Copyright dates

29 years ago.
Jim Meyering [Mon, 6 Mar 1995 14:20:34 +0000 (14:20 +0000)]
.

29 years agofrom Karl Berry
Jim Meyering [Mon, 6 Mar 1995 14:11:41 +0000 (14:11 +0000)]
from Karl Berry

29 years ago(SET_REGS_MATCHED): Enclose if-stmt in `do {...} while(0)'
Jim Meyering [Tue, 28 Feb 1995 13:54:33 +0000 (13:54 +0000)]
(SET_REGS_MATCHED): Enclose if-stmt in `do {...} while(0)'
instead of using trailing `else' -- otherwise, gcc -Wall complains
of `empty body in an else-statement'.

29 years ago(wc): oops. Add missing dcl of stats.
Jim Meyering [Tue, 28 Feb 1995 12:50:35 +0000 (12:50 +0000)]
(wc): oops.  Add missing dcl of stats.

29 years agoAlways include system headers, but define-away any putenv prototype.
Jim Meyering [Tue, 28 Feb 1995 12:08:03 +0000 (12:08 +0000)]
Always include system headers, but define-away any putenv prototype.

29 years agoRemove sys-dependent cruft and define-away getopt in system headers
Jim Meyering [Tue, 28 Feb 1995 12:06:57 +0000 (12:06 +0000)]
Remove sys-dependent cruft and define-away getopt in system headers
instead.

29 years ago(color_indicator[0]): Add missing `['.
Jim Meyering [Mon, 27 Feb 1995 16:37:54 +0000 (16:37 +0000)]
(color_indicator[0]): Add missing `['.

29 years ago.
Jim Meyering [Mon, 27 Feb 1995 14:54:45 +0000 (14:54 +0000)]
.

29 years ago.
Jim Meyering [Mon, 27 Feb 1995 14:51:30 +0000 (14:51 +0000)]
.

29 years ago(userid_compare): K&R'ify function definition.
Jim Meyering [Mon, 27 Feb 1995 14:47:40 +0000 (14:47 +0000)]
(userid_compare): K&R'ify function definition.

29 years ago(correct_password): Use memset instead of bzero.
Jim Meyering [Mon, 27 Feb 1995 14:09:10 +0000 (14:09 +0000)]
(correct_password): Use memset instead of bzero.

29 years ago(main, set_window_size): Use memset instead of bzero.
Jim Meyering [Mon, 27 Feb 1995 14:07:58 +0000 (14:07 +0000)]
(main, set_window_size): Use memset instead of bzero.

29 years agoRemove \n's from error format strings.
Jim Meyering [Mon, 27 Feb 1995 14:05:43 +0000 (14:05 +0000)]
Remove \n's from error format strings.
(main): Let `seq 1 1' work.
Invoke usage always with 1 when failing.

29 years ago(docolon): Use memset instead of bzero.
Jim Meyering [Mon, 27 Feb 1995 06:01:27 +0000 (06:01 +0000)]
(docolon): Use memset instead of bzero.

29 years ago(batch_convert): Remove any trailing newline from offending
Jim Meyering [Mon, 27 Feb 1995 06:00:14 +0000 (06:00 +0000)]
(batch_convert): Remove any trailing newline from offending
line before including it in the `invalid date' error from `date -f'.
Reported by Franc,ois Pinard.

29 years ago(wc): Put back test for S_ISREG. On some systems lseek returns zero for
Jim Meyering [Mon, 27 Feb 1995 00:07:35 +0000 (00:07 +0000)]
(wc): Put back test for S_ISREG.  On some systems lseek returns zero for
non-regular files (esp ttys on SunOS) even when it fails.

29 years ago.
Jim Meyering [Sun, 26 Feb 1995 19:05:34 +0000 (19:05 +0000)]
.

29 years ago.
Jim Meyering [Sun, 26 Feb 1995 05:09:04 +0000 (05:09 +0000)]
.

29 years ago.
Jim Meyering [Fri, 24 Feb 1995 04:31:04 +0000 (04:31 +0000)]
.

29 years ago(restore_cwd): Test whether fchdir return value is non-zero, not negative.
Jim Meyering [Thu, 23 Feb 1995 21:14:12 +0000 (21:14 +0000)]
(restore_cwd): Test whether fchdir return value is non-zero, not negative.
Be consistent!

29 years ago(save_cwd) [!HAVE_FCHDIR]: Avoid a core dump via abort() which occurred
Jim Meyering [Thu, 23 Feb 1995 21:12:11 +0000 (21:12 +0000)]
(save_cwd) [!HAVE_FCHDIR]: Avoid a core dump via abort() which occurred
because cwd->desc was uninitialed.
(restore_cwd) [!HAVE_FCHDIR]: Remove unnecessary redefinition of fchdir.
Both from Bruno Haible.

29 years ago(count_entry): Fix bug in polarity of safe-stat status test.
Jim Meyering [Tue, 21 Feb 1995 05:19:03 +0000 (05:19 +0000)]
(count_entry): Fix bug in polarity of safe-stat status test.

29 years ago(save_cwd, restore_cwd): New functions.
Jim Meyering [Tue, 21 Feb 1995 05:01:08 +0000 (05:01 +0000)]
(save_cwd, restore_cwd): New functions.
(main): Use them instead of in-line versions.
(count_entry): Use them here instead of relying on chdir ("..") --
but only when necessary.  Before, with --dereference (-L),
traversing a symlink caused failure because chdir ("..") didn't
work as expected.  Reported by Bruno Haible.

29 years agoupdate from FSF
Jim Meyering [Thu, 16 Feb 1995 20:25:54 +0000 (20:25 +0000)]
update from FSF

29 years ago(wc): Fix off-by-one error when counting lines.
Jim Meyering [Thu, 16 Feb 1995 00:10:49 +0000 (00:10 +0000)]
(wc): Fix off-by-one error when counting lines.

29 years ago.
Jim Meyering [Sat, 11 Feb 1995 14:15:09 +0000 (14:15 +0000)]
.

29 years ago(SOURCES): Add memcmp.c, memcpy.c, and memset.c.
Jim Meyering [Sat, 11 Feb 1995 14:11:36 +0000 (14:11 +0000)]
(SOURCES): Add memcmp.c, memcpy.c, and memset.c.

29 years ago.
Jim Meyering [Sat, 11 Feb 1995 14:02:02 +0000 (14:02 +0000)]
.

29 years ago(copy): Use memset, not bzero.
Jim Meyering [Sat, 11 Feb 1995 13:58:11 +0000 (13:58 +0000)]
(copy): Use memset, not bzero.
(copy_simple): Use memcpy, not bcopy.

29 years agoRemove index/rindex and bcmp/bcopy/bzero references.
Jim Meyering [Sat, 11 Feb 1995 13:53:39 +0000 (13:53 +0000)]
Remove index/rindex and bcmp/bcopy/bzero references.
Separate errno declaration from STDC_HEADERS.

29 years ago.
Jim Meyering [Sat, 11 Feb 1995 13:36:02 +0000 (13:36 +0000)]
.

29 years agoFix example in comment.
Jim Meyering [Sat, 11 Feb 1995 13:21:46 +0000 (13:21 +0000)]
Fix example in comment.

29 years ago(wc): Eliminate fstat call -- using lseek is sufficient.
Jim Meyering [Fri, 10 Feb 1995 05:53:54 +0000 (05:53 +0000)]
(wc): Eliminate fstat call -- using lseek is sufficient.
Detect/handle case in which CURR position > EOF.

29 years ago(wc): Handle separately the cases in which words need
Jim Meyering [Fri, 10 Feb 1995 05:34:27 +0000 (05:34 +0000)]
(wc): Handle separately the cases in which words need
not be counted.  Suggested by Karl Heuer.
(wc): Use memchr.c instead.

29 years ago(wc): Add a separate loop for counting only lines or lines and bytes.
Jim Meyering [Thu, 9 Feb 1995 17:15:17 +0000 (17:15 +0000)]
(wc): Add a separate loop for counting only lines or lines and bytes.
From Karl Heuer.

29 years ago(wc): Don't overcount the number of bytes when reading from
Jim Meyering [Thu, 9 Feb 1995 17:05:43 +0000 (17:05 +0000)]
(wc): Don't overcount the number of bytes when reading from
a regular file on stdin with file pointer not at BOF.  From Karl Heuer.

29 years ago.
Jim Meyering [Sun, 29 Jan 1995 05:34:15 +0000 (05:34 +0000)]
.

29 years ago(parse_old_offset): Use strchr, not index.
Jim Meyering [Sun, 29 Jan 1995 05:33:05 +0000 (05:33 +0000)]
(parse_old_offset): Use strchr, not index.

29 years ago(extract_regexp): Use strrchr, not rindex.
Jim Meyering [Sun, 29 Jan 1995 05:32:10 +0000 (05:32 +0000)]
(extract_regexp): Use strrchr, not rindex.

29 years ago.
Jim Meyering [Sat, 28 Jan 1995 14:07:41 +0000 (14:07 +0000)]
.

29 years ago.
Jim Meyering [Sat, 28 Jan 1995 13:23:10 +0000 (13:23 +0000)]
.

29 years ago(substr): Don't allocate a byte for trailing NUL in result
Jim Meyering [Sat, 28 Jan 1995 13:22:53 +0000 (13:22 +0000)]
(substr): Don't allocate a byte for trailing NUL in result
since the result needn't be NUL-terminated.  Don't NUL terminate it.

29 years ago(pipe_lines, pipe_bytes): Use memcpy instead of bcopy.
Jim Meyering [Sat, 28 Jan 1995 13:22:25 +0000 (13:22 +0000)]
(pipe_lines, pipe_bytes): Use memcpy instead of bcopy.

29 years ago(append_equiv_class): Use memcpy instead of bcopy.
Jim Meyering [Sat, 28 Jan 1995 13:15:35 +0000 (13:15 +0000)]
(append_equiv_class): Use memcpy instead of bcopy.
(card_of_complement, set_initialize): Use memset, not bzero.

29 years ago(tac): Use memmove instead of bcopy.
Jim Meyering [Sat, 28 Jan 1995 13:09:42 +0000 (13:09 +0000)]
(tac): Use memmove instead of bcopy.
(output): Use memcpy instead of bcopy.

29 years ago(main): Use memset, not bzero.
Jim Meyering [Sat, 28 Jan 1995 13:06:29 +0000 (13:06 +0000)]
(main): Use memset, not bzero.
(line_bytes_split): Use memmove instead of bcopy.

29 years ago(checkfp, mergefps): Use memcpy instead of bcopy.
Jim Meyering [Sat, 28 Jan 1995 13:04:27 +0000 (13:04 +0000)]
(checkfp, mergefps): Use memcpy instead of bcopy.
(fillbuf): Use memmove instead of bcopy.