platform/upstream/coreutils.git
27 years agodeclare stpcpy
Jim Meyering [Sun, 6 Jul 1997 21:24:10 +0000 (21:24 +0000)]
declare stpcpy

27 years agoAdd new option: --sort=version (-v).
Jim Meyering [Sun, 6 Jul 1997 21:23:42 +0000 (21:23 +0000)]
Add new option: --sort=version (-v).

27 years ago(libfu_a_SOURCES): Add strverscmp.c.
Jim Meyering [Sun, 6 Jul 1997 14:47:50 +0000 (14:47 +0000)]
(libfu_a_SOURCES): Add strverscmp.c.
(noinst_HEADERS): Add strverscmp.h.

27 years ago*** empty log message ***
Jim Meyering [Sun, 6 Jul 1997 13:52:12 +0000 (13:52 +0000)]
*** empty log message ***

27 years ago(print_long_format): Reflect changes in semantics of getuser, getgroup.
Jim Meyering [Sun, 6 Jul 1997 13:51:16 +0000 (13:51 +0000)]
(print_long_format): Reflect changes in semantics of getuser, getgroup.

27 years ago(getuser): Return NULL (rather than stringified uid) upon lookup failure.
Jim Meyering [Sun, 6 Jul 1997 13:50:29 +0000 (13:50 +0000)]
(getuser): Return NULL (rather than stringified uid) upon lookup failure.
(getgroup): Likewise.
(getuidbyname) [NOT_USED]: #ifdef-out unused function.
(getgidbyname) [NOT_USED]: #ifdef-out unused function.

27 years agoChange some #ifdef to #if.
Jim Meyering [Sun, 6 Jul 1997 11:57:38 +0000 (11:57 +0000)]
Change some #ifdef to #if.
Indent a cpp directive.

27 years ago*** empty log message ***
Jim Meyering [Sat, 5 Jul 1997 22:52:33 +0000 (22:52 +0000)]
*** empty log message ***

27 years ago*** empty log message ***
Jim Meyering [Sat, 5 Jul 1997 22:50:58 +0000 (22:50 +0000)]
*** empty log message ***

27 years ago(parse_obsolescent_option): If POSIXLY_CORRECT is set, give
Jim Meyering [Sat, 5 Jul 1997 22:50:32 +0000 (22:50 +0000)]
(parse_obsolescent_option): If POSIXLY_CORRECT is set, give
a diagnostic and fail when there are two or more non-option arguments.

27 years ago.
Jim Meyering [Sat, 5 Jul 1997 13:24:11 +0000 (13:24 +0000)]
.

27 years ago*** empty log message ***
Jim Meyering [Sat, 5 Jul 1997 13:23:18 +0000 (13:23 +0000)]
*** empty log message ***

27 years ago*** empty log message ***
Jim Meyering [Sat, 5 Jul 1997 08:26:21 +0000 (08:26 +0000)]
*** empty log message ***

27 years agoRedefine/undef getusershell around inclusion of <unistd.h>
Jim Meyering [Sat, 5 Jul 1997 08:25:58 +0000 (08:25 +0000)]
Redefine/undef getusershell around inclusion of <unistd.h>
(via system.h) so Cray's int-returning prototype doesn't conflict
with our char*-returning one.

27 years ago.
Jim Meyering [Fri, 4 Jul 1997 23:05:22 +0000 (23:05 +0000)]
.

27 years agoregenerate with updated mk-script
Jim Meyering [Fri, 4 Jul 1997 23:04:21 +0000 (23:04 +0000)]
regenerate with updated mk-script

27 years ago*** empty log message ***
Jim Meyering [Fri, 4 Jul 1997 19:12:34 +0000 (19:12 +0000)]
*** empty log message ***

27 years agoRedirect output of cmp to /dev/null.
Jim Meyering [Fri, 4 Jul 1997 19:12:25 +0000 (19:12 +0000)]
Redirect output of cmp to /dev/null.

27 years ago*** empty log message ***
Jim Meyering [Fri, 4 Jul 1997 19:05:12 +0000 (19:05 +0000)]
*** empty log message ***

27 years ago.
Jim Meyering [Fri, 4 Jul 1997 19:01:55 +0000 (19:01 +0000)]
.

27 years ago.
Jim Meyering [Fri, 4 Jul 1997 15:02:30 +0000 (15:02 +0000)]
.

27 years agoregenerate with updated ../Makefile.am.in
Jim Meyering [Fri, 4 Jul 1997 15:02:06 +0000 (15:02 +0000)]
regenerate with updated ../Makefile.am.in

27 years agoregenerate with updated mk-script
Jim Meyering [Fri, 4 Jul 1997 15:01:57 +0000 (15:01 +0000)]
regenerate with updated mk-script

27 years ago.
Jim Meyering [Fri, 4 Jul 1997 15:01:06 +0000 (15:01 +0000)]
.

27 years agoregenerate with updated mk-script
Jim Meyering [Fri, 4 Jul 1997 14:43:55 +0000 (14:43 +0000)]
regenerate with updated mk-script

27 years agoregenerate with updated ../Makefile.am.in
Jim Meyering [Fri, 4 Jul 1997 14:43:06 +0000 (14:43 +0000)]
regenerate with updated ../Makefile.am.in

27 years ago.
Jim Meyering [Fri, 4 Jul 1997 14:42:16 +0000 (14:42 +0000)]
.

27 years ago*** empty log message ***
Jim Meyering [Fri, 4 Jul 1997 08:20:55 +0000 (08:20 +0000)]
*** empty log message ***

27 years ago(validate): Create test files in $(srcdir), not in build dir.
Jim Meyering [Fri, 4 Jul 1997 08:09:15 +0000 (08:09 +0000)]
(validate): Create test files in $(srcdir), not in build dir.

27 years ago*** empty log message ***
Jim Meyering [Fri, 4 Jul 1997 07:53:28 +0000 (07:53 +0000)]
*** empty log message ***

27 years ago(apply_attributes): New function.
Jim Meyering [Thu, 3 Jul 1997 12:16:41 +0000 (12:16 +0000)]
(apply_attributes): New function.
(copy_reg): Use apply_attributes instead of open-coding the pieces.
Now, failure to preserve file attributes does not cause mv to change
its exit status, and such failures elicit warning diagnostics.  This
behavior is required by POSIX.  Before, failure to preserve ownership
due to insufficient access was diagnosed only for root.
Prompted by a report from Bengt Martensson.

27 years ago*** empty log message ***
Jim Meyering [Thu, 3 Jul 1997 12:13:31 +0000 (12:13 +0000)]
*** empty log message ***

27 years ago*** empty log message ***
Jim Meyering [Thu, 3 Jul 1997 10:29:48 +0000 (10:29 +0000)]
*** empty log message ***

27 years ago(test_vector): Remove bogus TZ=GMT environment setting.
Jim Meyering [Thu, 3 Jul 1997 10:28:51 +0000 (10:28 +0000)]
(test_vector): Remove bogus TZ=GMT environment setting.

27 years ago.
Jim Meyering [Wed, 2 Jul 1997 16:09:39 +0000 (16:09 +0000)]
.

27 years ago(STRTOX): Convert function header in macro definition
Jim Meyering [Wed, 2 Jul 1997 16:07:44 +0000 (16:07 +0000)]
(STRTOX): Convert function header in macro definition
to K&R-style.  Otherwise, ansi2knr would fail to convert the function
definitions to K&R for old style compilers.  From Kaveh Ghazi.

27 years ago*** empty log message ***
Jim Meyering [Tue, 1 Jul 1997 11:55:55 +0000 (11:55 +0000)]
*** empty log message ***

27 years ago.
Jim Meyering [Tue, 1 Jul 1997 11:50:44 +0000 (11:50 +0000)]
.

27 years ago(make_path): Reorder stat-then-mkdir-if-missing
Jim Meyering [Tue, 1 Jul 1997 11:50:39 +0000 (11:50 +0000)]
(make_path): Reorder stat-then-mkdir-if-missing
calls so that mkdir is called first.  Before make_path would first
`stat' a directory, then call mkdir if it didn't exist.  But if
some other process created the directory between the stat & mkdir,
the mkdir would fail with EEXIST.  Diagnosis and suggestion from
Greg McGary.

27 years ago*** empty log message ***
Jim Meyering [Tue, 1 Jul 1997 11:50:08 +0000 (11:50 +0000)]
*** empty log message ***

27 years ago[putenv]: Undefine before including system headers.
Jim Meyering [Tue, 1 Jul 1997 11:30:08 +0000 (11:30 +0000)]
[putenv]: Undefine before including system headers.
Otherwise, the declaration of *rpl_putenv* conflicts with the system
prototype on at least Irix5.3.  From Marcus Daniels.

27 years ago*** empty log message ***
Jim Meyering [Mon, 30 Jun 1997 04:00:48 +0000 (04:00 +0000)]
*** empty log message ***

27 years ago. SH-UTILS-1_16b
Jim Meyering [Mon, 30 Jun 1997 03:53:28 +0000 (03:53 +0000)]
.

27 years ago.
Jim Meyering [Mon, 30 Jun 1997 01:58:23 +0000 (01:58 +0000)]
.

27 years ago*** empty log message ***
Jim Meyering [Sun, 29 Jun 1997 22:26:54 +0000 (22:26 +0000)]
*** empty log message ***

27 years ago(base_name_strip_trailing_slashes): Remove.
Jim Meyering [Sun, 29 Jun 1997 22:26:18 +0000 (22:26 +0000)]
(base_name_strip_trailing_slashes): Remove.

27 years ago(base_name_strip_trailing_slashes): new function.
Jim Meyering [Sun, 29 Jun 1997 22:25:54 +0000 (22:25 +0000)]
(base_name_strip_trailing_slashes): new function.

27 years ago(copy): Add FIXME comment.
Jim Meyering [Sun, 29 Jun 1997 22:24:26 +0000 (22:24 +0000)]
(copy): Add FIXME comment.

27 years ago*** empty log message ***
Jim Meyering [Sun, 29 Jun 1997 22:21:51 +0000 (22:21 +0000)]
*** empty log message ***

27 years ago(copy_reg): New parameter, SOURCE_STATS.
Jim Meyering [Sun, 29 Jun 1997 22:21:42 +0000 (22:21 +0000)]
(copy_reg): New parameter, SOURCE_STATS.
(do_move): Update caller.
(movefile): Take new boolean parameter, DEST_IS_DIR,
to save a stat per moved file when the destination is a directory.
(main): Call movefile with additional argument.
(strip_trailing_slashes_2): New function.
(movefile): Remove trailing slashes from dest.  Otherwise, stat ("b/")
fails with ENOTDIR on systems including Linux w/libc 2.0.30.
Reproduce with `rm -rf a b; mkdir a; touch b; ./mv a b/'.
(do_move): Fix misleading comment.

27 years ago*** empty log message ***
Jim Meyering [Sun, 29 Jun 1997 21:24:26 +0000 (21:24 +0000)]
*** empty log message ***

27 years ago*** empty log message ***
Jim Meyering [Sun, 29 Jun 1997 21:13:33 +0000 (21:13 +0000)]
*** empty log message ***

27 years agoRemove _sys_putenv cruft and just rename the function itself.
Jim Meyering [Sun, 29 Jun 1997 21:05:05 +0000 (21:05 +0000)]
Remove _sys_putenv cruft and just rename the function itself.

27 years ago*** empty log message ***
Jim Meyering [Sun, 29 Jun 1997 20:26:38 +0000 (20:26 +0000)]
*** empty log message ***

27 years ago.
Jim Meyering [Sun, 29 Jun 1997 20:24:27 +0000 (20:24 +0000)]
.

27 years ago*** empty log message ***
Jim Meyering [Sun, 29 Jun 1997 20:21:38 +0000 (20:21 +0000)]
*** empty log message ***

27 years ago*** empty log message ***
Jim Meyering [Sun, 29 Jun 1997 20:19:45 +0000 (20:19 +0000)]
*** empty log message ***

27 years agofix it right
Jim Meyering [Sun, 29 Jun 1997 20:18:58 +0000 (20:18 +0000)]
fix it right

27 years agoDefine-away putenv only if it's not already defined.
Jim Meyering [Sun, 29 Jun 1997 20:12:52 +0000 (20:12 +0000)]
Define-away putenv only if it's not already defined.

27 years ago.
Jim Meyering [Sun, 29 Jun 1997 13:52:16 +0000 (13:52 +0000)]
.

27 years ago*** empty log message ***
Jim Meyering [Sun, 29 Jun 1997 13:50:57 +0000 (13:50 +0000)]
*** empty log message ***

27 years ago*** empty log message ***
Jim Meyering [Sun, 29 Jun 1997 13:49:53 +0000 (13:49 +0000)]
*** empty log message ***

27 years ago.
Jim Meyering [Sun, 29 Jun 1997 13:34:51 +0000 (13:34 +0000)]
.

27 years agoSet and export LANGUAGE, LC_ALL, and LANG
Jim Meyering [Sun, 29 Jun 1997 12:19:43 +0000 (12:19 +0000)]
Set and export LANGUAGE, LC_ALL, and LANG
so tests get english strings.  From Ulrich Drepper.

27 years ago.
Jim Meyering [Sun, 29 Jun 1997 03:27:24 +0000 (03:27 +0000)]
.

27 years agoMove the OPENOPTS def from end to beginning of else clause so it's closer
Jim Meyering [Sun, 29 Jun 1997 01:56:36 +0000 (01:56 +0000)]
Move the OPENOPTS def from end to beginning of else clause so it's closer
to the one in the then clause.

27 years agoupdate from automake-1.2 SH-UTILS-1_16a
Jim Meyering [Wed, 25 Jun 1997 17:05:56 +0000 (17:05 +0000)]
update from automake-1.2

27 years ago.
Jim Meyering [Wed, 25 Jun 1997 17:01:22 +0000 (17:01 +0000)]
.

27 years ago.
Jim Meyering [Wed, 25 Jun 1997 16:08:03 +0000 (16:08 +0000)]
.

27 years ago.
Jim Meyering [Wed, 25 Jun 1997 15:38:35 +0000 (15:38 +0000)]
.

27 years agoUse variable width columns when printing in multi-column mode.
Jim Meyering [Sun, 22 Jun 1997 19:52:24 +0000 (19:52 +0000)]
Use variable width columns when printing in multi-column mode.
(init_col_info): New function.
(print_current_files): Call init_col_info if format is
`many_per_line' or `horizontal'.
(print_many_per_line): Calculate optimum column widths.
(print_horizontal): Likewise.
From Ulrich Drepper.

27 years ago*** empty log message ***
Jim Meyering [Sun, 22 Jun 1997 04:04:07 +0000 (04:04 +0000)]
*** empty log message ***

27 years ago.
Jim Meyering [Sun, 22 Jun 1997 04:01:43 +0000 (04:01 +0000)]
.

27 years ago.
Jim Meyering [Sun, 22 Jun 1997 03:51:36 +0000 (03:51 +0000)]
.

27 years ago.
Jim Meyering [Sun, 22 Jun 1997 03:50:14 +0000 (03:50 +0000)]
.

27 years ago.
Jim Meyering [Sun, 22 Jun 1997 03:49:51 +0000 (03:49 +0000)]
.

27 years ago*** empty log message ***
Jim Meyering [Sun, 22 Jun 1997 03:38:08 +0000 (03:38 +0000)]
*** empty log message ***

27 years ago.
Jim Meyering [Sun, 22 Jun 1997 03:32:37 +0000 (03:32 +0000)]
.

27 years ago.
Jim Meyering [Mon, 16 Jun 1997 18:02:08 +0000 (18:02 +0000)]
.

27 years ago.
Jim Meyering [Mon, 16 Jun 1997 18:01:32 +0000 (18:01 +0000)]
.

27 years agocomment
Jim Meyering [Mon, 16 Jun 1997 17:50:23 +0000 (17:50 +0000)]
comment

27 years ago.
Jim Meyering [Mon, 16 Jun 1997 17:42:33 +0000 (17:42 +0000)]
.

27 years ago(eval6): Accept new unary operator, quote.
Jim Meyering [Mon, 16 Jun 1997 17:01:24 +0000 (17:01 +0000)]
(eval6): Accept new unary operator, quote.
From Karl Heuer.

27 years ago*** empty log message ***
Jim Meyering [Mon, 16 Jun 1997 16:58:28 +0000 (16:58 +0000)]
*** empty log message ***

27 years ago.
Jim Meyering [Mon, 16 Jun 1997 16:57:55 +0000 (16:57 +0000)]
.

27 years ago(EXTRA_DIST): Add putenv.m4.
Jim Meyering [Mon, 16 Jun 1997 16:57:02 +0000 (16:57 +0000)]
(EXTRA_DIST): Add putenv.m4.

27 years ago.
Jim Meyering [Mon, 16 Jun 1997 16:45:15 +0000 (16:45 +0000)]
.

27 years agoadd copyright
Jim Meyering [Mon, 16 Jun 1997 16:15:30 +0000 (16:15 +0000)]
add copyright

27 years agotweak error message
Jim Meyering [Mon, 16 Jun 1997 16:12:04 +0000 (16:12 +0000)]
tweak error message

27 years ago(full_write): Add comment regarding failure due to bug in
Jim Meyering [Sun, 15 Jun 1997 15:06:52 +0000 (15:06 +0000)]
(full_write): Add comment regarding failure due to bug in
Linux Slackware 1.2.13 kernel.

27 years ago.
Jim Meyering [Sun, 15 Jun 1997 13:35:02 +0000 (13:35 +0000)]
.

27 years agoRewrite using save-cwd.c and chdir to remove quadratic component of complexity.
Jim Meyering [Sun, 15 Jun 1997 13:34:47 +0000 (13:34 +0000)]
Rewrite using save-cwd.c and chdir to remove quadratic component of complexity.
Before, it processed O(n^2) directory name components via stat and mkdir.
Now it's O(n).  This makes mkdir -p a lot more efficient when creating
directories with very many components.  On a Linux 2.0.30 ext2fs filesystem
this command: mkdir -p `perl -e 'print "a/" x 500'`  now runs in 0.77 seconds
(user+sys).  Contrast that with the 9.5(!) seconds it took before.

27 years agoAdd test that -o 0 works.
Jim Meyering [Sun, 15 Jun 1997 11:47:46 +0000 (11:47 +0000)]
Add test that -o 0 works.

27 years ago*** empty log message ***
Jim Meyering [Sun, 15 Jun 1997 11:42:55 +0000 (11:42 +0000)]
*** empty log message ***

27 years ago(init_header) [T_BUF_FMT]: Output the 4-digit year (not the
Jim Meyering [Sun, 15 Jun 1997 11:40:47 +0000 (11:40 +0000)]
(init_header) [T_BUF_FMT]: Output the 4-digit year (not the
2-digit abbreviation) in each page header.  Reported by Noah Friedman.

27 years ago*** empty log message ***
Jim Meyering [Sat, 14 Jun 1997 19:33:13 +0000 (19:33 +0000)]
*** empty log message ***

27 years ago*** empty log message ***
Jim Meyering [Sat, 14 Jun 1997 17:32:00 +0000 (17:32 +0000)]
*** empty log message ***

27 years ago(cut_fields): Detect when the input is empty and handle
Jim Meyering [Sat, 14 Jun 1997 17:31:40 +0000 (17:31 +0000)]
(cut_fields): Detect when the input is empty and handle
that special case.  Before `cut -f1 </dev/null' would improperly
output a single newline.  Reported by Phil Richards.

27 years ago.
Jim Meyering [Sat, 14 Jun 1997 16:45:00 +0000 (16:45 +0000)]
.

27 years ago.
Jim Meyering [Sat, 14 Jun 1997 16:36:22 +0000 (16:36 +0000)]
.