platform/upstream/coreutils.git
26 years ago*** empty log message ***
Jim Meyering [Sat, 24 Jan 1998 23:33:18 +0000 (23:33 +0000)]
*** empty log message ***

26 years ago(parse_obsolescent_option): Do not interpret `-f -n 1 ...'
Jim Meyering [Sat, 24 Jan 1998 23:33:02 +0000 (23:33 +0000)]
(parse_obsolescent_option): Do not interpret `-f -n 1 ...'
as obsolescent options.
Accept new option: --sleep-interval=SECONDS (-s).
(parse_options): Recognize it.
(usage): Describe it.
(tail_forever): Use it.
(dump_remainder): Use it.

26 years ago(f-1): Add test for option-processing of `-f -n 1'.
Jim Meyering [Sat, 24 Jan 1998 23:32:43 +0000 (23:32 +0000)]
(f-1): Add test for option-processing of `-f -n 1'.

26 years ago.
Jim Meyering [Sat, 24 Jan 1998 16:48:52 +0000 (16:48 +0000)]
.

26 years ago*** empty log message ***
Jim Meyering [Sat, 24 Jan 1998 16:27:26 +0000 (16:27 +0000)]
*** empty log message ***

26 years ago*** empty log message ***
Jim Meyering [Sat, 24 Jan 1998 16:22:11 +0000 (16:22 +0000)]
*** empty log message ***

26 years ago(test_failure): Note that the SunOS4.1.4 failure
Jim Meyering [Sat, 24 Jan 1998 16:21:48 +0000 (16:21 +0000)]
(test_failure): Note that the SunOS4.1.4 failure
of the ctime test is expected.
Rename does not update ctime; link does -- so use ln, not mv.

26 years ago*** empty log message ***
Jim Meyering [Sat, 24 Jan 1998 15:13:58 +0000 (15:13 +0000)]
*** empty log message ***

26 years ago*** empty log message ***
Jim Meyering [Sat, 24 Jan 1998 14:50:28 +0000 (14:50 +0000)]
*** empty log message ***

26 years ago*** empty log message ***
Jim Meyering [Sat, 24 Jan 1998 14:50:16 +0000 (14:50 +0000)]
*** empty log message ***

26 years ago*** empty log message ***
Jim Meyering [Sat, 24 Jan 1998 14:49:30 +0000 (14:49 +0000)]
*** empty log message ***

26 years ago*** empty log message ***
Jim Meyering [Sat, 24 Jan 1998 09:55:10 +0000 (09:55 +0000)]
*** empty log message ***

26 years ago.
Jim Meyering [Sat, 24 Jan 1998 08:46:29 +0000 (08:46 +0000)]
.

26 years ago*** empty log message ***
Jim Meyering [Sat, 24 Jan 1998 08:46:21 +0000 (08:46 +0000)]
*** empty log message ***

26 years ago(TYPE_MINIMUM): Add extra outer cast to work around
Jim Meyering [Sat, 24 Jan 1998 08:45:55 +0000 (08:45 +0000)]
(TYPE_MINIMUM): Add extra outer cast to work around
bug in Cray C 5.0.3.0 when T == time_t.

26 years agoAdjust expected output for changed format of `rm --verbose'.
Jim Meyering [Sat, 24 Jan 1998 08:43:46 +0000 (08:43 +0000)]
Adjust expected output for changed format of `rm --verbose'.

26 years ago*** empty log message ***
Jim Meyering [Fri, 23 Jan 1998 22:09:18 +0000 (22:09 +0000)]
*** empty log message ***

26 years ago(__mktime_internal): Work around bug in Irix4.0.5's
Jim Meyering [Fri, 23 Jan 1998 22:02:54 +0000 (22:02 +0000)]
(__mktime_internal): Work around bug in Irix4.0.5's
C compiler.  From Kaveh Ghazi.
(TYPE_MINIMUM): Define.
(TYPE_MAXIMUM): Define.
(TIME_T_MIN): Use TYPE_MINIMUM.
(TIME_T_MAX): Use TYPE_MAXIMUM.

26 years agoadd curlies
Jim Meyering [Fri, 23 Jan 1998 18:34:12 +0000 (18:34 +0000)]
add curlies

26 years ago.
Jim Meyering [Thu, 22 Jan 1998 23:29:35 +0000 (23:29 +0000)]
.

26 years ago*** empty log message ***
Jim Meyering [Thu, 22 Jan 1998 09:03:08 +0000 (09:03 +0000)]
*** empty log message ***

26 years ago(quit): Declare to be inline to stifle compile warning.
Jim Meyering [Thu, 22 Jan 1998 08:58:12 +0000 (08:58 +0000)]
(quit): Declare to be inline to stifle compile warning.

26 years agoReorder functions to obviate forward dcls.
Jim Meyering [Thu, 22 Jan 1998 08:55:13 +0000 (08:55 +0000)]
Reorder functions to obviate forward dcls.

26 years ago(do_copy): Add unreachable `return 0' to stifle warning.
Jim Meyering [Thu, 22 Jan 1998 08:36:27 +0000 (08:36 +0000)]
(do_copy): Add unreachable `return 0' to stifle warning.

26 years ago.
Jim Meyering [Thu, 22 Jan 1998 08:33:34 +0000 (08:33 +0000)]
.

26 years ago(TESTS_ENVIRONMENT): Add TOUCH.
Jim Meyering [Thu, 22 Jan 1998 08:33:26 +0000 (08:33 +0000)]
(TESTS_ENVIRONMENT): Add TOUCH.

26 years agominor tweaks
Jim Meyering [Thu, 22 Jan 1998 08:33:02 +0000 (08:33 +0000)]
minor tweaks

26 years agoDon't use -f. Do adjust $RM if it's a relative path.
Jim Meyering [Thu, 22 Jan 1998 08:32:22 +0000 (08:32 +0000)]
Don't use -f.  Do adjust $RM if it's a relative path.

26 years agoUse GNU touch to work around problems with NFS caching and/or clock skew.
Jim Meyering [Thu, 22 Jan 1998 08:27:16 +0000 (08:27 +0000)]
Use GNU touch to work around problems with NFS caching and/or clock skew.

26 years ago(copy_internal): Use x->backup_type, not the global.
Jim Meyering [Thu, 22 Jan 1998 08:22:00 +0000 (08:22 +0000)]
(copy_internal): Use x->backup_type, not the global.
(valid_options): Use VALID_BACKUP_TYPE and VALID_SPARSE_MODE.

26 years ago[NDEBUG]: Comment out definition.
Jim Meyering [Thu, 22 Jan 1998 08:19:17 +0000 (08:19 +0000)]
[NDEBUG]: Comment out definition.
(do_copy): Use x->backup_type, not the global.

26 years ago(rm_option_init): New function.
Jim Meyering [Thu, 22 Jan 1998 08:16:09 +0000 (08:16 +0000)]
(rm_option_init): New function.
(cp_option_init): New function.
(copy_reg): Remove now-unused function.
(do_move): Set up for and use `copy.c (copy)' in place of copy_reg.
Set up for and use `remove.c (rm)' in place of unlink.

26 years agoRemove and minimally librarify guts for use in mv.c.
Jim Meyering [Thu, 22 Jan 1998 08:14:52 +0000 (08:14 +0000)]
Remove and minimally librarify guts for use in mv.c.
(main): Pass options (`&x') to rm.
Call remove_init and remove_fini instead of open-coding them.

26 years ago*** empty log message ***
Jim Meyering [Thu, 22 Jan 1998 08:14:17 +0000 (08:14 +0000)]
*** empty log message ***

26 years agoNew file. Contains guts of old rm.c.
Jim Meyering [Thu, 22 Jan 1998 08:13:57 +0000 (08:13 +0000)]
New file.  Contains guts of old rm.c.
(remove_init): New function.
(remove_fini): New function.

26 years agoDeclare new global, backup_type.
Jim Meyering [Thu, 22 Jan 1998 08:13:12 +0000 (08:13 +0000)]
Declare new global, backup_type.
(main): Initialize backup_type unconditionally.
(do_link): Call find_backup_file_name with new argument, backup_type.

26 years agoDeclare new global, backup_type.
Jim Meyering [Thu, 22 Jan 1998 08:12:24 +0000 (08:12 +0000)]
Declare new global, backup_type.
(main): Initialize backup_type unconditionally.
(copy_file): Call find_backup_file_name with new backup_type, argument.

26 years ago*** empty log message ***
Jim Meyering [Wed, 21 Jan 1998 16:37:09 +0000 (16:37 +0000)]
*** empty log message ***

26 years ago(VALID_SPARSE_MODE): Define.
Jim Meyering [Wed, 21 Jan 1998 16:16:00 +0000 (16:16 +0000)]
(VALID_SPARSE_MODE): Define.
[struct cp_options] (backup_type): New member.

26 years ago.
Jim Meyering [Wed, 21 Jan 1998 15:59:28 +0000 (15:59 +0000)]
.

26 years agoFix copyright
Jim Meyering [Wed, 21 Jan 1998 15:57:48 +0000 (15:57 +0000)]
Fix copyright

26 years agoUse ANSI function definitions.
Jim Meyering [Wed, 21 Jan 1998 15:57:18 +0000 (15:57 +0000)]
Use ANSI function definitions.
Remove global declaration of backup_type.
(simple_backup_suffix): Default to `~', not `.orig'.
Use PARAMS, not __BACKUPFILE_P.
(find_backup_file_name): Add parameter, backup_type.

26 years agoRemove extern declaration of backup_type.
Jim Meyering [Wed, 21 Jan 1998 15:55:12 +0000 (15:55 +0000)]
Remove extern declaration of backup_type.
Use PARAMS, not __BACKUPFILE_P.
(VALID_BACKUP_TYPE): Define.
(find_backup_file_name): Adjust prototype.

26 years agoUse ANSI function definitions.
Jim Meyering [Tue, 20 Jan 1998 11:34:38 +0000 (11:34 +0000)]
Use ANSI function definitions.

26 years ago[enum backup_type]: Set `none' to 1.
Jim Meyering [Tue, 20 Jan 1998 11:34:04 +0000 (11:34 +0000)]
[enum backup_type]: Set `none' to 1.

26 years agoadd `,' in comment
Jim Meyering [Mon, 19 Jan 1998 09:29:27 +0000 (09:29 +0000)]
add `,' in comment

26 years ago.
Jim Meyering [Sun, 18 Jan 1998 11:52:44 +0000 (11:52 +0000)]
.

26 years ago*** empty log message ***
Jim Meyering [Sun, 18 Jan 1998 11:52:38 +0000 (11:52 +0000)]
*** empty log message ***

26 years ago(strncoll, strncoll_s2_readonly, look_for_fraction, numcompare):
Jim Meyering [Sun, 18 Jan 1998 11:51:08 +0000 (11:51 +0000)]
(strncoll, strncoll_s2_readonly, look_for_fraction, numcompare):
Remove the `unsigned' from some `unsigned char*' parameter types.
Add casts via UCHAR where necessary to avoid problems with unwanted
sign extension.  Based on a patch from Kaveh Ghazi to appease Irix4's
cc compiler.
e.g.,
 > cc -DLOCALEDIR=\"/caip/u3/ghazi/foobar/share/locale\" -DHAVE_CONFIG_H
 >      -I.. -I../../src -I../../lib -I../intl -c ../../src/sort.c
 > accom: Error: ../../src/sort.c, line 500: prototype parameter 1 type
 >      must have all of the actual arguments qualifiers (except the
 >      outermost) and pointed-to types must be compatible (ANSI
 >      3.3.2.2,3.3.16.1)
 >              diff = strcoll (s1, s2);
 >        ----------------------------^
 > accom: Error: ../../src/sort.c, line 500: Argument 1 Type Doesn't
 >      Match prototype description; prototype: pointer to const char is
 >      different from actual: pointer to unsigned char
 >              diff = strcoll (s1, s2);
 >        ----------------------------^
 > accom: Error: ../../src/sort.c, line 500: prototype parameter 2 type
 >      must have all of the actual arguments qualifiers (except the
 >      outermost) and pointed-to types must be compatible (ANSI
 >      3.3.2.2,3.3.16.1)
 >              diff = strcoll (s1, s2);
 >        ----------------------------^
 > accom: Error: ../../src/sort.c, line 500: Argument 2 Type Doesn't
 >      Match prototype description; prototype: pointer to const char is
 >      different from actual: pointer to unsigned char
 >              diff = strcoll (s1, s2);
 >        ----------------------------^

26 years ago(next_file_name): Rewrite. This removes an artificial limit (albeit
Jim Meyering [Sun, 18 Jan 1998 11:18:08 +0000 (11:18 +0000)]
(next_file_name): Rewrite.  This removes an artificial limit (albeit
already high, at INT_MAX :-) on the number of files split could create.
Reported by Ralf W. Stephan.

26 years agoGuard inclusion of langinfo.h also with HAVE_LANGINFO_H,
Jim Meyering [Fri, 16 Jan 1998 23:29:24 +0000 (23:29 +0000)]
Guard inclusion of langinfo.h also with HAVE_LANGINFO_H,
for Irix-4.0.5.  From Kaveh Ghazi.

26 years ago(mergefps): Add braces to avoid ambiguous `else' statement.
Jim Meyering [Fri, 16 Jan 1998 23:23:04 +0000 (23:23 +0000)]
(mergefps): Add braces to avoid ambiguous `else' statement.
(nls_set_fraction): Likewise.

26 years ago.
Jim Meyering [Fri, 16 Jan 1998 11:18:05 +0000 (11:18 +0000)]
.

26 years ago.
Jim Meyering [Fri, 16 Jan 1998 11:17:02 +0000 (11:17 +0000)]
.

26 years agoMake PARAMS-defining conditionals consistent.
Jim Meyering [Fri, 16 Jan 1998 08:52:30 +0000 (08:52 +0000)]
Make PARAMS-defining conditionals consistent.

26 years agoMake PARAMS-defining conditionals consistent.
Jim Meyering [Fri, 16 Jan 1998 08:51:39 +0000 (08:51 +0000)]
Make PARAMS-defining conditionals consistent.

26 years ago(fail-0): Disable test. It depends on
Jim Meyering [Fri, 16 Jan 1998 08:04:19 +0000 (08:04 +0000)]
(fail-0): Disable test.  It depends on
sizeof(long) being 32 bits.  Reported by Kaveh Ghazi.

26 years ago(print_header): Fix inode format header to line it up
Jim Meyering [Wed, 14 Jan 1998 08:52:56 +0000 (08:52 +0000)]
(print_header): Fix inode format header to line it up
with the rest of the output.

26 years agoSet errno to ENOENT, not EINVAL. This is consistent
Jim Meyering [Tue, 13 Jan 1998 10:08:11 +0000 (10:08 +0000)]
Set errno to ENOENT, not EINVAL.  This is consistent
with most other implementations.

26 years ago*** empty log message ***
Jim Meyering [Tue, 13 Jan 1998 09:53:15 +0000 (09:53 +0000)]
*** empty log message ***

26 years ago*** empty log message ***
Jim Meyering [Mon, 12 Jan 1998 09:00:10 +0000 (09:00 +0000)]
*** empty log message ***

26 years ago*** empty log message ***
Jim Meyering [Mon, 12 Jan 1998 08:55:42 +0000 (08:55 +0000)]
*** empty log message ***

26 years ago*** empty log message ***
Jim Meyering [Mon, 12 Jan 1998 08:55:01 +0000 (08:55 +0000)]
*** empty log message ***

26 years ago*** empty log message ***
Jim Meyering [Mon, 12 Jan 1998 08:53:18 +0000 (08:53 +0000)]
*** empty log message ***

26 years agoInclude sys/param.h only #if HAVE_SYS_PARAM_H.
Jim Meyering [Mon, 12 Jan 1998 08:13:39 +0000 (08:13 +0000)]
Include sys/param.h only #if HAVE_SYS_PARAM_H.
Move function-spanning `#if ...BSIZE' stmt to follow inclusion of
sys/param.h since BSIZE is sometimes defined in sys/param.h.
Based on a patch from Philippe De Muyter.

26 years ago*** empty log message *** TEXTUTILS-1_22d
Jim Meyering [Sun, 11 Jan 1998 09:24:17 +0000 (09:24 +0000)]
*** empty log message ***

26 years ago. FILEUTILS-3_16k
Jim Meyering [Sun, 11 Jan 1998 09:14:29 +0000 (09:14 +0000)]
.

26 years ago.
Jim Meyering [Sun, 11 Jan 1998 09:14:02 +0000 (09:14 +0000)]
.

26 years ago*** empty log message ***
Jim Meyering [Sun, 11 Jan 1998 09:12:30 +0000 (09:12 +0000)]
*** empty log message ***

26 years ago.
Jim Meyering [Sun, 11 Jan 1998 08:02:39 +0000 (08:02 +0000)]
.

26 years ago*** empty log message ***
Jim Meyering [Sat, 10 Jan 1998 22:13:49 +0000 (22:13 +0000)]
*** empty log message ***

26 years agoCHAR_BIT SCHAR_MAX UCHAR_MAX SHRT_MAX INT_MAX UINT_MAX LONG_MAX ULONG_MAX
Jim Meyering [Sat, 10 Jan 1998 22:12:03 +0000 (22:12 +0000)]
CHAR_BIT SCHAR_MAX UCHAR_MAX SHRT_MAX INT_MAX UINT_MAX LONG_MAX ULONG_MAX
Remove definitions of those symbols.
* src/csplit.c: Move inclusion of regex.h/rx.h to follow system.h
since it now includes limit.h which defines RE_DUP_MAX.
* src/nl.c: Likewise.
* src/tac.c: Likewise.

26 years ago.
Jim Meyering [Sat, 10 Jan 1998 20:53:56 +0000 (20:53 +0000)]
.

26 years agoinitialize fail to 0
Jim Meyering [Sat, 10 Jan 1998 16:25:46 +0000 (16:25 +0000)]
initialize fail to 0

26 years ago.
Jim Meyering [Sat, 10 Jan 1998 16:24:46 +0000 (16:24 +0000)]
.

26 years ago(EXTRA_DIST): Add const.m4.
Jim Meyering [Sat, 10 Jan 1998 16:24:26 +0000 (16:24 +0000)]
(EXTRA_DIST): Add const.m4.

26 years ago.
Jim Meyering [Sat, 10 Jan 1998 15:57:57 +0000 (15:57 +0000)]
.

26 years ago*** empty log message ***
Jim Meyering [Sat, 10 Jan 1998 15:09:46 +0000 (15:09 +0000)]
*** empty log message ***

26 years ago*** empty log message ***
Jim Meyering [Sat, 10 Jan 1998 15:08:00 +0000 (15:08 +0000)]
*** empty log message ***

26 years ago*** empty log message ***
Jim Meyering [Sat, 10 Jan 1998 15:04:32 +0000 (15:04 +0000)]
*** empty log message ***

26 years ago(usage): Describe -D.
Jim Meyering [Sat, 10 Jan 1998 15:03:58 +0000 (15:03 +0000)]
(usage): Describe -D.

26 years ago.
Jim Meyering [Sat, 10 Jan 1998 14:25:27 +0000 (14:25 +0000)]
.

26 years ago*** empty log message ***
Jim Meyering [Sat, 10 Jan 1998 14:23:08 +0000 (14:23 +0000)]
*** empty log message ***

26 years ago(batch_convert): Use memcpy when we don't need return value.
Jim Meyering [Sat, 10 Jan 1998 14:21:35 +0000 (14:21 +0000)]
(batch_convert): Use memcpy when we don't need return value.

26 years ago.
Jim Meyering [Sat, 10 Jan 1998 13:36:47 +0000 (13:36 +0000)]
.

26 years ago*** empty log message ***
Jim Meyering [Sat, 10 Jan 1998 13:36:09 +0000 (13:36 +0000)]
*** empty log message ***

26 years ago(usage): Correct descriptions of --sort, --time, and -t.
Jim Meyering [Sat, 10 Jan 1998 12:53:09 +0000 (12:53 +0000)]
(usage): Correct descriptions of --sort, --time, and -t.
Suggestions from Andreas Schwab.

26 years ago(decode_switches) [-u]: Fix bug whereby -u had no effect
Jim Meyering [Sat, 10 Jan 1998 12:07:50 +0000 (12:07 +0000)]
(decode_switches) [-u]: Fix bug whereby -u had no effect
without -l or -t.  Now, -u (like -c) implies --sort=time.
Suggestion from Andreas Schwab.

26 years ago*** empty log message ***
Jim Meyering [Sat, 10 Jan 1998 11:56:26 +0000 (11:56 +0000)]
*** empty log message ***

26 years ago*** empty log message ***
Jim Meyering [Sat, 10 Jan 1998 11:54:39 +0000 (11:54 +0000)]
*** empty log message ***

26 years agouse sh-script test, not Test.pm framework
Jim Meyering [Sat, 10 Jan 1998 11:27:24 +0000 (11:27 +0000)]
use sh-script test, not Test.pm framework

26 years ago*** empty log message ***
Jim Meyering [Sat, 10 Jan 1998 11:24:51 +0000 (11:24 +0000)]
*** empty log message ***

26 years ago.
Jim Meyering [Sat, 10 Jan 1998 11:00:46 +0000 (11:00 +0000)]
.

26 years ago*** empty log message ***
Jim Meyering [Sat, 10 Jan 1998 10:36:41 +0000 (10:36 +0000)]
*** empty log message ***

26 years ago(make_path): Reformat 3 if-stmts to test `if (newly_created_dir)' only once.
Jim Meyering [Sat, 10 Jan 1998 10:28:37 +0000 (10:28 +0000)]
(make_path): Reformat 3 if-stmts to test `if (newly_created_dir)' only once.
Suggestion from Andreas Schwab.

26 years ago(make_path): Put only newly created directories on the LEADING_DIRS list.
Jim Meyering [Sat, 10 Jan 1998 10:22:30 +0000 (10:22 +0000)]
(make_path): Put only newly created directories on the LEADING_DIRS list.

26 years ago*** empty log message ***
Jim Meyering [Thu, 8 Jan 1998 23:17:20 +0000 (23:17 +0000)]
*** empty log message ***

26 years ago*** empty log message ***
Jim Meyering [Thu, 8 Jan 1998 23:16:14 +0000 (23:16 +0000)]
*** empty log message ***

26 years ago*** empty log message ***
Jim Meyering [Thu, 8 Jan 1998 22:58:18 +0000 (22:58 +0000)]
*** empty log message ***

26 years ago(tac_stream): Don't perform arithmetic on now-void pointer
Jim Meyering [Thu, 8 Jan 1998 22:58:03 +0000 (22:58 +0000)]
(tac_stream): Don't perform arithmetic on now-void pointer
result of xrealloc (until recently it was char*).