platform/upstream/coreutils.git
22 years ago(jm_MACROS): Remove use of AC_FUNC_STRNLEN.
Jim Meyering [Sun, 28 Apr 2002 23:11:56 +0000 (23:11 +0000)]
(jm_MACROS): Remove use of AC_FUNC_STRNLEN.

22 years agoAdd jm_PREREQ_STRNLEN.
Jim Meyering [Sun, 28 Apr 2002 23:11:45 +0000 (23:11 +0000)]
Add jm_PREREQ_STRNLEN.
Use AC_FUNC_STRNLEN here instead.

22 years agoDon't AC_REQUIRE([AC_PROG_CC_STDC]).
Jim Meyering [Sun, 28 Apr 2002 22:36:42 +0000 (22:36 +0000)]
Don't AC_REQUIRE([AC_PROG_CC_STDC]).
With autoconf-2.53a, it's part of AC_PROG_CC.

22 years ago*** empty log message ***
Jim Meyering [Sun, 28 Apr 2002 21:59:47 +0000 (21:59 +0000)]
*** empty log message ***

22 years agoDon't include xalloc.h.
Jim Meyering [Sun, 28 Apr 2002 21:59:40 +0000 (21:59 +0000)]
Don't include xalloc.h.
It's already included via system.h.

22 years ago.
Jim Meyering [Sun, 28 Apr 2002 21:58:19 +0000 (21:58 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Sun, 28 Apr 2002 21:57:52 +0000 (21:57 +0000)]
*** empty log message ***

22 years agoChange `@code{PROG}' to `@command{PROG}'.
Jim Meyering [Sun, 28 Apr 2002 21:57:40 +0000 (21:57 +0000)]
Change `@code{PROG}' to `@command{PROG}'.

22 years agoChange @code{PROG} to @command{PROG} for the fileutils.
Jim Meyering [Sun, 28 Apr 2002 21:55:03 +0000 (21:55 +0000)]
Change @code{PROG} to @command{PROG} for the fileutils.

22 years agoBegin changing @code{PROG} to @command{PROG}.
Jim Meyering [Sun, 28 Apr 2002 21:46:20 +0000 (21:46 +0000)]
Begin changing @code{PROG} to @command{PROG}.

22 years agoUse @command{(un)?link}, not @code{...} where appropriate
Jim Meyering [Sun, 28 Apr 2002 21:35:55 +0000 (21:35 +0000)]
Use @command{(un)?link}, not @code{...} where appropriate

22 years agoRewrite from scratch. Support everything
Jim Meyering [Sun, 28 Apr 2002 21:32:36 +0000 (21:32 +0000)]
Rewrite from scratch.  Support everything
required by POSIX 1003.1-2001; when this conflicts with Bash,
stick with POSIX.  The conflicts are kill -l output format,
and lower case signal names preceded by `-' (e.g., "kill -hup"
is no longer supported).  Remove -L or --long-list option.
Add -t or --table option.  Rename --sigspec to --signal;
remove --signum and do not advertise obsolescent option -n.
Use str2sig and str2sig to convert between signal names and
numbers.

22 years ago.
Jim Meyering [Sun, 28 Apr 2002 21:31:21 +0000 (21:31 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Sun, 28 Apr 2002 21:30:59 +0000 (21:30 +0000)]
*** empty log message ***

22 years ago(jm_PREREQ): Add jm_PREREQ_SIG2STR.
Jim Meyering [Sun, 28 Apr 2002 21:30:50 +0000 (21:30 +0000)]
(jm_PREREQ): Add jm_PREREQ_SIG2STR.

22 years ago(jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
Jim Meyering [Sun, 28 Apr 2002 21:29:39 +0000 (21:29 +0000)]
(jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).

22 years ago*** empty log message ***
Jim Meyering [Sun, 28 Apr 2002 21:28:56 +0000 (21:28 +0000)]
*** empty log message ***

22 years agoRemove definition of unused WTERMSIG.
Jim Meyering [Sun, 28 Apr 2002 21:20:49 +0000 (21:20 +0000)]
Remove definition of unused WTERMSIG.

22 years agoNew file: from Paul Eggert.
Jim Meyering [Sun, 28 Apr 2002 21:17:45 +0000 (21:17 +0000)]
New file: from Paul Eggert.

22 years ago*** empty log message ***
Jim Meyering [Sun, 28 Apr 2002 21:16:24 +0000 (21:16 +0000)]
*** empty log message ***

22 years ago(libfetish_a_SOURCES): Add sig2str.h.
Jim Meyering [Sun, 28 Apr 2002 21:16:19 +0000 (21:16 +0000)]
(libfetish_a_SOURCES): Add sig2str.h.

22 years ago*** empty log message ***
Jim Meyering [Sun, 28 Apr 2002 21:15:37 +0000 (21:15 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Sun, 28 Apr 2002 21:15:05 +0000 (21:15 +0000)]
*** empty log message ***

22 years ago(kill invocation): Document the above.
Jim Meyering [Sun, 28 Apr 2002 21:14:59 +0000 (21:14 +0000)]
(kill invocation): Document the above.
Document POSIX signals better.

22 years ago*** empty log message ***
Jim Meyering [Sun, 28 Apr 2002 21:07:11 +0000 (21:07 +0000)]
*** empty log message ***

22 years agoAvoid new warnings from gcc.
Jim Meyering [Sun, 28 Apr 2002 21:07:01 +0000 (21:07 +0000)]
Avoid new warnings from gcc.
[struct COLUMN] <name>: Declare member to be const.
(init_fps): Declare local variable `firstname' to be const.

22 years ago.
Jim Meyering [Sun, 28 Apr 2002 18:43:52 +0000 (18:43 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Sun, 28 Apr 2002 17:29:12 +0000 (17:29 +0000)]
*** empty log message ***

22 years ago(integer_expected_error): Add `const' to paramater
Jim Meyering [Sun, 28 Apr 2002 17:12:53 +0000 (17:12 +0000)]
(integer_expected_error): Add `const' to paramater
declarations to avoid new warning from gcc.

22 years ago(test_syntax_error): Add `const' to paramater
Jim Meyering [Sun, 28 Apr 2002 17:09:12 +0000 (17:09 +0000)]
(test_syntax_error): Add `const' to paramater
declarations to avoid new warning from gcc.

22 years ago(cycle_check): Add a comment.
Jim Meyering [Sat, 27 Apr 2002 06:46:18 +0000 (06:46 +0000)]
(cycle_check): Add a comment.

22 years ago(cycle_check): New function containing code factored
Jim Meyering [Sat, 27 Apr 2002 06:33:08 +0000 (06:33 +0000)]
(cycle_check): New function containing code factored
out of remove_dir.  The sole difference is that upon detecting a
cycle, rm now dies unconditionally.  Before, in interactive mode,
it would ask the user whether to continue.
(remove_dir): Call cycle_check.

22 years ago*** empty log message ***
Jim Meyering [Thu, 25 Apr 2002 20:38:20 +0000 (20:38 +0000)]
*** empty log message ***

22 years ago(usage): Adjust ordering to match that of default output.
Jim Meyering [Thu, 25 Apr 2002 20:38:16 +0000 (20:38 +0000)]
(usage): Adjust ordering to match that of default output.

22 years ago*** empty log message ***
Jim Meyering [Thu, 25 Apr 2002 20:16:15 +0000 (20:16 +0000)]
*** empty log message ***

22 years agoremove comment for reverted change
Jim Meyering [Thu, 25 Apr 2002 19:51:40 +0000 (19:51 +0000)]
remove comment for reverted change

22 years ago.
Jim Meyering [Thu, 25 Apr 2002 19:47:08 +0000 (19:47 +0000)]
.

22 years ago.
Jim Meyering [Thu, 25 Apr 2002 18:58:39 +0000 (18:58 +0000)]
.

22 years ago.
Jim Meyering [Thu, 25 Apr 2002 18:58:07 +0000 (18:58 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Thu, 25 Apr 2002 18:03:30 +0000 (18:03 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Thu, 25 Apr 2002 18:03:07 +0000 (18:03 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Thu, 25 Apr 2002 18:02:59 +0000 (18:02 +0000)]
*** empty log message ***

22 years agoAvoid warnings from gcc.
Jim Meyering [Thu, 25 Apr 2002 18:02:52 +0000 (18:02 +0000)]
Avoid warnings from gcc.
Declare input_file and output_file to be `const'.
(skip): Declare `file' parameter to be `const', too.

22 years ago*** empty log message ***
Jim Meyering [Thu, 25 Apr 2002 17:14:28 +0000 (17:14 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Thu, 25 Apr 2002 16:40:18 +0000 (16:40 +0000)]
*** empty log message ***

22 years agoRemove hash table, active_dir_map, used to detect directory cycles.
Jim Meyering [Thu, 25 Apr 2002 16:40:04 +0000 (16:40 +0000)]
Remove hash table, active_dir_map, used to detect directory cycles.
Instead, detect them lazily with just O(1) memory.
Suggestion from Andi Kleen.

(is_power_of_two): New function.
(print_nth_dir, make_active_dir_ent): Remove functions.
(hash_active_dir_ent, hash_compare_active_dir_ents): Likewise.
(remove_dir): Check for cycles here, ...
(rm): ... and don't check for cycles here.

(rm): Call fspec_get_full_mode here, rather than
fspec_get_filetype_mode.  We want to get the dev/ino earlier, and
at the same time as when we get the file type, to avoid the risk
that an attacker would change e.g. a directory to a symlink before
we record its dev/ino.

22 years agoRevert last change.
Jim Meyering [Thu, 25 Apr 2002 16:32:32 +0000 (16:32 +0000)]
Revert last change.

22 years agoRevert last change.
Jim Meyering [Thu, 25 Apr 2002 16:31:41 +0000 (16:31 +0000)]
Revert last change.

22 years ago*** empty log message ***
Jim Meyering [Thu, 25 Apr 2002 16:01:32 +0000 (16:01 +0000)]
*** empty log message ***

22 years ago.
Jim Meyering [Thu, 25 Apr 2002 15:40:12 +0000 (15:40 +0000)]
.

22 years ago*** empty log message ***
Jim Meyering [Thu, 25 Apr 2002 15:39:39 +0000 (15:39 +0000)]
*** empty log message ***

22 years agoRemove ENABLE_NLS-related code.
Jim Meyering [Thu, 25 Apr 2002 15:38:17 +0000 (15:38 +0000)]
Remove ENABLE_NLS-related code.
(_, N_) Remove definitions.
Include "gettext.h" instead.

22 years ago*** empty log message ***
Jim Meyering [Wed, 24 Apr 2002 07:54:51 +0000 (07:54 +0000)]
*** empty log message ***

22 years agofiltered through cppi
Jim Meyering [Wed, 24 Apr 2002 07:54:40 +0000 (07:54 +0000)]
filtered through cppi

22 years ago*** empty log message ***
Jim Meyering [Wed, 24 Apr 2002 07:52:49 +0000 (07:52 +0000)]
*** empty log message ***

22 years ago(INCLUDES): Remove -I../intl.
Jim Meyering [Wed, 24 Apr 2002 07:52:39 +0000 (07:52 +0000)]
(INCLUDES): Remove -I../intl.
(libfetish_a_SOURCES): Add gettext.h.

22 years ago*** empty log message ***
Jim Meyering [Wed, 24 Apr 2002 07:50:53 +0000 (07:50 +0000)]
*** empty log message ***

22 years ago(jm_PREREQ_HARD_LOCALE): New macro.
Jim Meyering [Wed, 24 Apr 2002 07:50:48 +0000 (07:50 +0000)]
(jm_PREREQ_HARD_LOCALE): New macro.
(jm_PREREQ): Use it.

22 years agobump serial # to 9
Jim Meyering [Wed, 24 Apr 2002 07:49:39 +0000 (07:49 +0000)]
bump serial # to 9

22 years agoCheck for these headers: locale.h unistd.h mach/mach.h fcntl.h.
Jim Meyering [Wed, 24 Apr 2002 07:49:00 +0000 (07:49 +0000)]
Check for these headers: locale.h unistd.h mach/mach.h fcntl.h.
Check for this function: setlocale.

22 years ago(rm): Call exit with EXIT_FAILURE, not `1'.
Jim Meyering [Mon, 22 Apr 2002 09:42:00 +0000 (09:42 +0000)]
(rm): Call exit with EXIT_FAILURE, not `1'.

22 years ago*** empty log message ***
Jim Meyering [Mon, 22 Apr 2002 07:36:00 +0000 (07:36 +0000)]
*** empty log message ***

22 years ago(main): Adjust caller of remove_init.
Jim Meyering [Mon, 22 Apr 2002 07:35:54 +0000 (07:35 +0000)]
(main): Adjust caller of remove_init.

22 years ago(do_move): Adjust caller of remove_init.
Jim Meyering [Mon, 22 Apr 2002 07:35:41 +0000 (07:35 +0000)]
(do_move): Adjust caller of remove_init.

22 years ago(remove_init): Adjust prototype.
Jim Meyering [Mon, 22 Apr 2002 07:35:32 +0000 (07:35 +0000)]
(remove_init): Adjust prototype.

22 years ago(rm, remove_init, remove_fini): Don't use or even
Jim Meyering [Mon, 22 Apr 2002 07:35:20 +0000 (07:35 +0000)]
(rm, remove_init, remove_fini): Don't use or even
initialize the active_dir_map unless --recursive (-r) is specified.

22 years agoupdate framework
Jim Meyering [Sat, 20 Apr 2002 14:49:46 +0000 (14:49 +0000)]
update framework

22 years agoupdate framework
Jim Meyering [Fri, 19 Apr 2002 22:57:04 +0000 (22:57 +0000)]
update framework

22 years agoUse this:
Jim Meyering [Fri, 19 Apr 2002 22:50:36 +0000 (22:50 +0000)]
Use this:
  (exit $fail); exit
not this:
  exit $fail

22 years agoupgrade to use better framework
Jim Meyering [Fri, 19 Apr 2002 22:41:59 +0000 (22:41 +0000)]
upgrade to use better framework

22 years agoupgrade to use better framework
Jim Meyering [Fri, 19 Apr 2002 22:39:05 +0000 (22:39 +0000)]
upgrade to use better framework

22 years ago*** empty log message ***
Jim Meyering [Fri, 19 Apr 2002 22:36:11 +0000 (22:36 +0000)]
*** empty log message ***

22 years agoupgrade to use better framework
Jim Meyering [Fri, 19 Apr 2002 22:36:03 +0000 (22:36 +0000)]
upgrade to use better framework

22 years agoclean-up
Jim Meyering [Fri, 19 Apr 2002 21:59:57 +0000 (21:59 +0000)]
clean-up

22 years agoLots of clean-up:
Jim Meyering [Fri, 19 Apr 2002 21:55:30 +0000 (21:55 +0000)]
Lots of clean-up:
  E.g.,

    (exit $fail); exit

    t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
    trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0

22 years ago*** empty log message ***
Jim Meyering [Fri, 19 Apr 2002 21:54:27 +0000 (21:54 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Fri, 19 Apr 2002 21:53:42 +0000 (21:53 +0000)]
*** empty log message ***

22 years agoUse tmpdir named $0.tmp/$$. Create with mkdir -p.
Jim Meyering [Fri, 19 Apr 2002 21:53:01 +0000 (21:53 +0000)]
Use tmpdir named $0.tmp/$$.  Create with mkdir -p.

22 years agoUse better trap, etc.
Jim Meyering [Fri, 19 Apr 2002 21:38:32 +0000 (21:38 +0000)]
Use better trap, etc.

22 years ago*** empty log message ***
Jim Meyering [Fri, 19 Apr 2002 21:18:28 +0000 (21:18 +0000)]
*** empty log message ***

22 years agoUse better trap.
Jim Meyering [Fri, 19 Apr 2002 21:17:45 +0000 (21:17 +0000)]
Use better trap.

22 years agouse better trap
Jim Meyering [Fri, 19 Apr 2002 21:17:08 +0000 (21:17 +0000)]
use better trap

22 years agoSet $tmp the new way.
Jim Meyering [Fri, 19 Apr 2002 20:50:43 +0000 (20:50 +0000)]
Set $tmp the new way.

22 years agoUse `rm', not $RM. Use better trap.
Jim Meyering [Fri, 19 Apr 2002 19:55:21 +0000 (19:55 +0000)]
Use `rm', not $RM.  Use better trap.

22 years agoUse `rm', not $RM. Use better trap.
Jim Meyering [Fri, 19 Apr 2002 19:54:15 +0000 (19:54 +0000)]
Use `rm', not $RM.  Use better trap.

22 years agoUse `rm', not $RM. Use better trap.
Jim Meyering [Fri, 19 Apr 2002 19:53:03 +0000 (19:53 +0000)]
Use `rm', not $RM.  Use better trap.

22 years agodon't fiddle with TMPDIR
Jim Meyering [Fri, 19 Apr 2002 19:51:29 +0000 (19:51 +0000)]
don't fiddle with TMPDIR

22 years agodon't bother with TMPDIR
Jim Meyering [Fri, 19 Apr 2002 19:47:16 +0000 (19:47 +0000)]
don't bother with TMPDIR

22 years agoUse automatically-derived name for temporary
Jim Meyering [Fri, 19 Apr 2002 19:39:45 +0000 (19:39 +0000)]
Use automatically-derived name for temporary
directory.  This is more 8.3-friendly.  Based on a suggestion from Richard Dawe.

22 years ago*** empty log message ***
Jim Meyering [Wed, 17 Apr 2002 08:55:39 +0000 (08:55 +0000)]
*** empty log message ***

22 years ago.
Jim Meyering [Wed, 17 Apr 2002 08:54:38 +0000 (08:54 +0000)]
.

22 years ago(TESTS): Add no-create-missing.
Jim Meyering [Wed, 17 Apr 2002 08:54:32 +0000 (08:54 +0000)]
(TESTS): Add no-create-missing.

22 years ago*** empty log message ***
Jim Meyering [Wed, 17 Apr 2002 08:54:21 +0000 (08:54 +0000)]
*** empty log message ***

22 years ago*** empty log message ***
Jim Meyering [Wed, 17 Apr 2002 08:53:50 +0000 (08:53 +0000)]
*** empty log message ***

22 years ago(touch): Don't report errors for nonexistent files
Jim Meyering [Wed, 17 Apr 2002 08:49:27 +0000 (08:49 +0000)]
(touch): Don't report errors for nonexistent files
when --no-create is in effect.  Based on a patch from TAKAI Kousuke.

22 years ago*** empty log message ***
Jim Meyering [Wed, 17 Apr 2002 08:47:33 +0000 (08:47 +0000)]
*** empty log message ***

22 years agos/POSIX/@sc{posix}/
Jim Meyering [Tue, 16 Apr 2002 11:26:32 +0000 (11:26 +0000)]
s/POSIX/@sc{posix}/

22 years ago*** empty log message ***
Jim Meyering [Tue, 16 Apr 2002 10:43:04 +0000 (10:43 +0000)]
*** empty log message ***

22 years ago(jm_PREREQ_READUTMP): Also check for these members: ut_pid, ut_id, ut_exit.
Jim Meyering [Tue, 16 Apr 2002 10:43:00 +0000 (10:43 +0000)]
(jm_PREREQ_READUTMP): Also check for these members: ut_pid, ut_id, ut_exit.

22 years ago(UT_TYPE): Remove definition (now in who.c).
Jim Meyering [Tue, 16 Apr 2002 10:41:33 +0000 (10:41 +0000)]
(UT_TYPE): Remove definition (now in who.c).
(HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
(HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.