Jim Meyering [Sat, 7 Feb 1998 09:50:58 +0000 (09:50 +0000)]
Don't set am_cv_func_working_getline before the
cache-check for the same variable -- that defeated the purpose of
the test; the test program was never run. This was a problem only
on systems with losing getline functions -- HP-UX 10.20 is one.
Reported by Bjorn Helgaas.
Jim Meyering [Sat, 7 Feb 1998 08:13:44 +0000 (08:13 +0000)]
.
Jim Meyering [Sat, 7 Feb 1998 08:13:08 +0000 (08:13 +0000)]
.
Jim Meyering [Fri, 6 Feb 1998 20:48:10 +0000 (20:48 +0000)]
*** empty log message ***
Jim Meyering [Fri, 6 Feb 1998 20:47:23 +0000 (20:47 +0000)]
.
Jim Meyering [Fri, 6 Feb 1998 20:45:51 +0000 (20:45 +0000)]
.
Jim Meyering [Fri, 6 Feb 1998 12:37:16 +0000 (12:37 +0000)]
.
Jim Meyering [Fri, 6 Feb 1998 12:37:07 +0000 (12:37 +0000)]
*** empty log message ***
Jim Meyering [Fri, 6 Feb 1998 12:36:59 +0000 (12:36 +0000)]
(EXTRA_DIST): Add perl.m4.
Jim Meyering [Fri, 6 Feb 1998 12:36:04 +0000 (12:36 +0000)]
.
Jim Meyering [Fri, 6 Feb 1998 10:42:55 +0000 (10:42 +0000)]
*** empty log message ***
Jim Meyering [Fri, 6 Feb 1998 10:32:31 +0000 (10:32 +0000)]
.
Jim Meyering [Wed, 4 Feb 1998 20:28:08 +0000 (20:28 +0000)]
.
Jim Meyering [Wed, 4 Feb 1998 20:19:14 +0000 (20:19 +0000)]
*** empty log message ***
Jim Meyering [Wed, 4 Feb 1998 20:18:09 +0000 (20:18 +0000)]
.
Jim Meyering [Wed, 4 Feb 1998 18:15:05 +0000 (18:15 +0000)]
.
Jim Meyering [Wed, 4 Feb 1998 18:06:31 +0000 (18:06 +0000)]
.
Jim Meyering [Wed, 4 Feb 1998 18:04:39 +0000 (18:04 +0000)]
.
Jim Meyering [Wed, 4 Feb 1998 18:01:23 +0000 (18:01 +0000)]
.
Jim Meyering [Wed, 4 Feb 1998 18:00:57 +0000 (18:00 +0000)]
.
Jim Meyering [Wed, 4 Feb 1998 12:41:35 +0000 (12:41 +0000)]
.
Jim Meyering [Tue, 3 Feb 1998 08:56:02 +0000 (08:56 +0000)]
.
Jim Meyering [Tue, 3 Feb 1998 08:28:43 +0000 (08:28 +0000)]
add comments on #endif's
Jim Meyering [Tue, 3 Feb 1998 08:27:48 +0000 (08:27 +0000)]
(xgetgroups): Guard function defn with #if HAVE_GETGROUPS.
Jim Meyering [Tue, 3 Feb 1998 07:38:23 +0000 (07:38 +0000)]
.
Jim Meyering [Tue, 3 Feb 1998 07:23:13 +0000 (07:23 +0000)]
(sys/types.h): Include to get size_t on some systems.
(NULL): Define if needed.
Jim Meyering [Sun, 1 Feb 1998 09:58:33 +0000 (09:58 +0000)]
*** empty log message ***
Jim Meyering [Sun, 1 Feb 1998 09:56:46 +0000 (09:56 +0000)]
*** empty log message ***
Jim Meyering [Sat, 31 Jan 1998 07:28:56 +0000 (07:28 +0000)]
*** empty log message ***
Jim Meyering [Wed, 28 Jan 1998 08:14:56 +0000 (08:14 +0000)]
*** empty log message ***
Jim Meyering [Wed, 28 Jan 1998 08:09:56 +0000 (08:09 +0000)]
(print_header): Change format to align heading over
last column of `df -i' output. From Andreas Schwab.
Jim Meyering [Sun, 25 Jan 1998 21:21:47 +0000 (21:21 +0000)]
.
Jim Meyering [Sun, 25 Jan 1998 21:20:53 +0000 (21:20 +0000)]
.
Jim Meyering [Sun, 25 Jan 1998 21:07:30 +0000 (21:07 +0000)]
Use $(VERSION) etc. Not @VERSION@.
Jim Meyering [Sun, 25 Jan 1998 20:50:57 +0000 (20:50 +0000)]
.
Jim Meyering [Sun, 25 Jan 1998 14:07:46 +0000 (14:07 +0000)]
(parse_obsolescent_option): -l is an obsolescent option.
Jim Meyering [Sun, 25 Jan 1998 12:20:58 +0000 (12:20 +0000)]
.
Jim Meyering [Sun, 25 Jan 1998 12:19:05 +0000 (12:19 +0000)]
.
Jim Meyering [Sun, 25 Jan 1998 10:51:55 +0000 (10:51 +0000)]
*** empty log message ***
Jim Meyering [Sun, 25 Jan 1998 10:51:21 +0000 (10:51 +0000)]
*** empty log message ***
Jim Meyering [Sun, 25 Jan 1998 09:49:00 +0000 (09:49 +0000)]
.
Jim Meyering [Sun, 25 Jan 1998 09:47:51 +0000 (09:47 +0000)]
.
Jim Meyering [Sun, 25 Jan 1998 09:29:46 +0000 (09:29 +0000)]
*** empty log message ***
Jim Meyering [Sun, 25 Jan 1998 09:28:48 +0000 (09:28 +0000)]
(DO_CHOWN): Don't fail for non-root when chown fails due
not only to lack of permission (EPERM), but also to lack of support
(EINVAL). Reported by Bengt Martensson.
Jim Meyering [Sun, 25 Jan 1998 09:27:57 +0000 (09:27 +0000)]
(re_protect): Don't fail for non-root when chown fails due
not only to lack of permission (EPERM), but also to lack of support
(EINVAL). Reported by Bengt Martensson.
Jim Meyering [Sun, 25 Jan 1998 09:23:26 +0000 (09:23 +0000)]
*** empty log message ***
Jim Meyering [Sun, 25 Jan 1998 08:25:05 +0000 (08:25 +0000)]
(cat): Convert comma-expressions to pairs of
semicolon-terminated stmts.
Add braces around compound if/else stmts.
Jim Meyering [Sat, 24 Jan 1998 23:34:46 +0000 (23:34 +0000)]
add missing `)'
Jim Meyering [Sat, 24 Jan 1998 23:33:18 +0000 (23:33 +0000)]
*** empty log message ***
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.
Jim Meyering [Sat, 24 Jan 1998 23:32:43 +0000 (23:32 +0000)]
(f-1): Add test for option-processing of `-f -n 1'.
Jim Meyering [Sat, 24 Jan 1998 16:48:52 +0000 (16:48 +0000)]
.
Jim Meyering [Sat, 24 Jan 1998 16:27:26 +0000 (16:27 +0000)]
*** empty log message ***
Jim Meyering [Sat, 24 Jan 1998 16:22:11 +0000 (16:22 +0000)]
*** empty log message ***
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.
Jim Meyering [Sat, 24 Jan 1998 15:13:58 +0000 (15:13 +0000)]
*** empty log message ***
Jim Meyering [Sat, 24 Jan 1998 14:50:28 +0000 (14:50 +0000)]
*** empty log message ***
Jim Meyering [Sat, 24 Jan 1998 14:50:16 +0000 (14:50 +0000)]
*** empty log message ***
Jim Meyering [Sat, 24 Jan 1998 14:49:30 +0000 (14:49 +0000)]
*** empty log message ***
Jim Meyering [Sat, 24 Jan 1998 09:55:10 +0000 (09:55 +0000)]
*** empty log message ***
Jim Meyering [Sat, 24 Jan 1998 08:46:29 +0000 (08:46 +0000)]
.
Jim Meyering [Sat, 24 Jan 1998 08:46:21 +0000 (08:46 +0000)]
*** empty log message ***
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.
Jim Meyering [Sat, 24 Jan 1998 08:43:46 +0000 (08:43 +0000)]
Adjust expected output for changed format of `rm --verbose'.
Jim Meyering [Fri, 23 Jan 1998 22:09:18 +0000 (22:09 +0000)]
*** empty log message ***
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.
Jim Meyering [Fri, 23 Jan 1998 18:34:12 +0000 (18:34 +0000)]
add curlies
Jim Meyering [Thu, 22 Jan 1998 23:29:35 +0000 (23:29 +0000)]
.
Jim Meyering [Thu, 22 Jan 1998 09:03:08 +0000 (09:03 +0000)]
*** empty log message ***
Jim Meyering [Thu, 22 Jan 1998 08:58:12 +0000 (08:58 +0000)]
(quit): Declare to be inline to stifle compile warning.
Jim Meyering [Thu, 22 Jan 1998 08:55:13 +0000 (08:55 +0000)]
Reorder functions to obviate forward dcls.
Jim Meyering [Thu, 22 Jan 1998 08:36:27 +0000 (08:36 +0000)]
(do_copy): Add unreachable `return 0' to stifle warning.
Jim Meyering [Thu, 22 Jan 1998 08:33:34 +0000 (08:33 +0000)]
.
Jim Meyering [Thu, 22 Jan 1998 08:33:26 +0000 (08:33 +0000)]
(TESTS_ENVIRONMENT): Add TOUCH.
Jim Meyering [Thu, 22 Jan 1998 08:33:02 +0000 (08:33 +0000)]
minor tweaks
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.
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.
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.
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.
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.
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.
Jim Meyering [Thu, 22 Jan 1998 08:14:17 +0000 (08:14 +0000)]
*** empty log message ***
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.
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.
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.
Jim Meyering [Wed, 21 Jan 1998 16:37:09 +0000 (16:37 +0000)]
*** empty log message ***
Jim Meyering [Wed, 21 Jan 1998 16:16:00 +0000 (16:16 +0000)]
(VALID_SPARSE_MODE): Define.
[struct cp_options] (backup_type): New member.
Jim Meyering [Wed, 21 Jan 1998 15:59:28 +0000 (15:59 +0000)]
.
Jim Meyering [Wed, 21 Jan 1998 15:57:48 +0000 (15:57 +0000)]
Fix copyright
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.
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.
Jim Meyering [Tue, 20 Jan 1998 11:34:38 +0000 (11:34 +0000)]
Use ANSI function definitions.
Jim Meyering [Tue, 20 Jan 1998 11:34:04 +0000 (11:34 +0000)]
[enum backup_type]: Set `none' to 1.
Jim Meyering [Mon, 19 Jan 1998 09:29:27 +0000 (09:29 +0000)]
add `,' in comment
Jim Meyering [Sun, 18 Jan 1998 11:52:44 +0000 (11:52 +0000)]
.
Jim Meyering [Sun, 18 Jan 1998 11:52:38 +0000 (11:52 +0000)]
*** empty log message ***
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);
> ----------------------------^
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.
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.
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.