Jim Meyering [Sat, 11 Jan 2003 09:32:48 +0000 (09:32 +0000)]
Don't test HAVE_ERRNO_H. It's not necessary.
Don't test HAVE_STDDEF_H. It's not necessary.
Use definition of PTR_INT_TYPE from obstack.h.
Jim Meyering [Sat, 11 Jan 2003 08:29:46 +0000 (08:29 +0000)]
From Dmitry Levin.
Jim Meyering [Sat, 11 Jan 2003 08:16:56 +0000 (08:16 +0000)]
(AC_FUNC_CANONICALIZE_FILE_NAME): New file and macro.
Jim Meyering [Sat, 11 Jan 2003 08:16:46 +0000 (08:16 +0000)]
Require AC_FUNC_CANONICALIZE_FILE_NAME.
Jim Meyering [Fri, 10 Jan 2003 23:17:23 +0000 (23:17 +0000)]
*** empty log message ***
Jim Meyering [Fri, 10 Jan 2003 23:07:12 +0000 (23:07 +0000)]
*** empty log message ***
Jim Meyering [Fri, 10 Jan 2003 23:07:04 +0000 (23:07 +0000)]
Don't include xalloc.h.
It's already included via system.h.
Jim Meyering [Fri, 10 Jan 2003 23:03:18 +0000 (23:03 +0000)]
*** empty log message ***
Jim Meyering [Fri, 10 Jan 2003 23:03:13 +0000 (23:03 +0000)]
Add src/readlink.c.
Jim Meyering [Fri, 10 Jan 2003 22:55:49 +0000 (22:55 +0000)]
*** empty log message ***
Jim Meyering [Fri, 10 Jan 2003 22:55:33 +0000 (22:55 +0000)]
Include "xgetcwd.h".
Jim Meyering [Fri, 10 Jan 2003 22:48:28 +0000 (22:48 +0000)]
*** empty log message ***
Jim Meyering [Fri, 10 Jan 2003 22:48:02 +0000 (22:48 +0000)]
Include "xgetcwd.h".
Jim Meyering [Fri, 10 Jan 2003 22:47:38 +0000 (22:47 +0000)]
(libfetish_a_SOURCES): Add xgetcwd.h.
Jim Meyering [Fri, 10 Jan 2003 22:46:11 +0000 (22:46 +0000)]
Remove uses of PARAMS.
Jim Meyering [Fri, 10 Jan 2003 22:45:14 +0000 (22:45 +0000)]
Include xgetcwd.h.
Jim Meyering [Fri, 10 Jan 2003 22:32:08 +0000 (22:32 +0000)]
*** empty log message ***
Jim Meyering [Fri, 10 Jan 2003 21:46:37 +0000 (21:46 +0000)]
Don't declare functions declared by xalloc.h.
Include "xalloc.h" instead.
Jim Meyering [Fri, 10 Jan 2003 21:45:21 +0000 (21:45 +0000)]
Don't declare directly functions declared by xalloc.h.
Include "xalloc.h" instead.
Jim Meyering [Fri, 10 Jan 2003 21:44:56 +0000 (21:44 +0000)]
Don't declare directly functions declared by xalloc.h.
Include "xalloc.h" instead.
Jim Meyering [Fri, 10 Jan 2003 21:38:20 +0000 (21:38 +0000)]
Don't declare xmalloc directly.
Include "xalloc.h" instead.
Jim Meyering [Fri, 10 Jan 2003 21:37:19 +0000 (21:37 +0000)]
.
Jim Meyering [Fri, 10 Jan 2003 13:21:14 +0000 (13:21 +0000)]
.
Jim Meyering [Fri, 10 Jan 2003 08:41:28 +0000 (08:41 +0000)]
Remove declaration of xstrdup.
Instead, include "xalloc.h".
Jim Meyering [Thu, 9 Jan 2003 20:59:09 +0000 (20:59 +0000)]
.
Jim Meyering [Thu, 9 Jan 2003 20:53:40 +0000 (20:53 +0000)]
Document readlink.
Jim Meyering [Thu, 9 Jan 2003 20:45:06 +0000 (20:45 +0000)]
copyright
Jim Meyering [Thu, 9 Jan 2003 20:43:05 +0000 (20:43 +0000)]
*** empty log message ***
Jim Meyering [Thu, 9 Jan 2003 20:42:33 +0000 (20:42 +0000)]
Include other part of Dmitry's patch.
(dist_man_MANS): Add readlink.1.
Jim Meyering [Thu, 9 Jan 2003 20:39:43 +0000 (20:39 +0000)]
*** empty log message ***
Jim Meyering [Thu, 9 Jan 2003 20:39:04 +0000 (20:39 +0000)]
*** empty log message ***
Jim Meyering [Thu, 9 Jan 2003 20:38:48 +0000 (20:38 +0000)]
Add readlink.
Jim Meyering [Thu, 9 Jan 2003 20:37:41 +0000 (20:37 +0000)]
Add readlink.
Jim Meyering [Thu, 9 Jan 2003 20:36:55 +0000 (20:36 +0000)]
*** empty log message ***
Jim Meyering [Thu, 9 Jan 2003 20:36:37 +0000 (20:36 +0000)]
(bin_PROGRAMS): Add readlink.
Jim Meyering [Thu, 9 Jan 2003 20:35:13 +0000 (20:35 +0000)]
New program, by Dmitry V. Levin.
Jim Meyering [Thu, 9 Jan 2003 20:30:40 +0000 (20:30 +0000)]
(out-delim1, ..., out-delim5): Test new functionality.
Jim Meyering [Thu, 9 Jan 2003 20:16:58 +0000 (20:16 +0000)]
When selecting ranges of byte offsets (as opposed to ranges of fields)
and when --output-delimiter=STRING is specified, output STRING between
ranges of selected bytes.
(RANGE_START_SENTINEL): Define.
(output_delimiter_specified): New global.
(print_kth): Add parameter. Adjust all callers.
(set_fields): Mark each range-start index with RANGE_START_SENTINEL.
(cut_bytes): When requested, output STRING between ranges of
selected bytes.
(main): Make a diagnostic a little clearer.
Based on a patch from Jan Nieuwenhuizen.
Jim Meyering [Thu, 9 Jan 2003 20:14:08 +0000 (20:14 +0000)]
*** empty log message ***
Jim Meyering [Thu, 9 Jan 2003 19:30:28 +0000 (19:30 +0000)]
*** empty log message ***
Jim Meyering [Thu, 9 Jan 2003 19:30:22 +0000 (19:30 +0000)]
(set_fields): Make code agree with comment:
Don't merge abutting ranges like 4- and 2-3. This makes no
difference currently, but is required to support an upcoming change.
Jim Meyering [Wed, 8 Jan 2003 17:36:51 +0000 (17:36 +0000)]
*** empty log message ***
Jim Meyering [Wed, 8 Jan 2003 17:36:35 +0000 (17:36 +0000)]
Undefine and define-away `const' after inclusion
of errno.h, not before. Suggestion from Bruno Haible.
Jim Meyering [Tue, 7 Jan 2003 22:40:34 +0000 (22:40 +0000)]
*** empty log message ***
Jim Meyering [Tue, 7 Jan 2003 17:12:16 +0000 (17:12 +0000)]
*** empty log message ***
Jim Meyering [Tue, 7 Jan 2003 17:12:11 +0000 (17:12 +0000)]
(set_fields): Fix typo in comment.
Jim Meyering [Tue, 7 Jan 2003 16:36:45 +0000 (16:36 +0000)]
tweak comment
Jim Meyering [Tue, 7 Jan 2003 16:06:56 +0000 (16:06 +0000)]
add a comment
Jim Meyering [Tue, 7 Jan 2003 15:59:48 +0000 (15:59 +0000)]
*** empty log message ***
Jim Meyering [Tue, 7 Jan 2003 15:54:53 +0000 (15:54 +0000)]
*** empty log message ***
Jim Meyering [Tue, 7 Jan 2003 15:36:17 +0000 (15:36 +0000)]
(TESTS): Add not-owner.
Jim Meyering [Tue, 7 Jan 2003 15:34:51 +0000 (15:34 +0000)]
*** empty log message ***
Jim Meyering [Tue, 7 Jan 2003 15:34:34 +0000 (15:34 +0000)]
Remove the test for non-owner diagnostic.
Now, this tests only the nonexistent-directory diagnostic.
Jim Meyering [Tue, 7 Jan 2003 15:34:20 +0000 (15:34 +0000)]
New test, mostly extracted from fail-diag.
Jim Meyering [Tue, 7 Jan 2003 14:44:54 +0000 (14:44 +0000)]
*** empty log message ***
Jim Meyering [Tue, 7 Jan 2003 14:44:45 +0000 (14:44 +0000)]
Fix typo: s/ld/ls/.
Jim Meyering [Tue, 7 Jan 2003 14:12:30 +0000 (14:12 +0000)]
.
Jim Meyering [Tue, 7 Jan 2003 14:09:37 +0000 (14:09 +0000)]
tweak comment
Jim Meyering [Tue, 7 Jan 2003 14:03:21 +0000 (14:03 +0000)]
*** empty log message ***
Jim Meyering [Tue, 7 Jan 2003 14:03:15 +0000 (14:03 +0000)]
Rework so that it may serve to define full_read, too.
Jim Meyering [Tue, 7 Jan 2003 14:03:05 +0000 (14:03 +0000)]
Simply #define FULL_READ and include full-write.c.
Jim Meyering [Mon, 6 Jan 2003 13:17:48 +0000 (13:17 +0000)]
2002-12-10 Paul Eggert <eggert@twinsun.com>
Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
(FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
defined (e.g., a pure POSIX system).
(EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
Jim Meyering [Mon, 6 Jan 2003 13:17:27 +0000 (13:17 +0000)]
2002-12-10 Paul Eggert <eggert@twinsun.com>
Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
(EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
Choose values that are less likely to collide with system fnmatch
options.
Jim Meyering [Mon, 6 Jan 2003 13:14:55 +0000 (13:14 +0000)]
(libfetish_a_SOURCES): Add full-read.c and full-read.h.
Jim Meyering [Mon, 6 Jan 2003 13:08:59 +0000 (13:08 +0000)]
.
Jim Meyering [Mon, 6 Jan 2003 13:08:19 +0000 (13:08 +0000)]
Include full_read.h.
(get_fs_usage): Use full_read instead of safe_read.
Jim Meyering [Mon, 6 Jan 2003 13:05:24 +0000 (13:05 +0000)]
*** empty log message ***
Jim Meyering [Mon, 6 Jan 2003 13:04:50 +0000 (13:04 +0000)]
(strdup): Remove unused declaration.
Jim Meyering [Mon, 6 Jan 2003 13:02:33 +0000 (13:02 +0000)]
(get_date): Test HAVE_STRUCT_TM_TM_ZONE, not HAVE_TM_ZONE.
Jim Meyering [Mon, 6 Jan 2003 12:58:35 +0000 (12:58 +0000)]
(utime_null): No need to call ftruncate if the file was
nonempty. Patch by Bruno Haible.
(utime_null): Use SAFE_READ_ERROR.
Jim Meyering [Sat, 4 Jan 2003 10:51:46 +0000 (10:51 +0000)]
*** empty log message ***
Jim Meyering [Sat, 4 Jan 2003 10:51:31 +0000 (10:51 +0000)]
Update copyright date.
Jim Meyering [Sat, 4 Jan 2003 10:46:56 +0000 (10:46 +0000)]
(TESTS): Add no-deref.
Jim Meyering [Sat, 4 Jan 2003 10:45:42 +0000 (10:45 +0000)]
.
Jim Meyering [Sat, 4 Jan 2003 10:36:24 +0000 (10:36 +0000)]
*** empty log message ***
Jim Meyering [Sat, 4 Jan 2003 10:35:13 +0000 (10:35 +0000)]
*** empty log message ***
Jim Meyering [Sat, 4 Jan 2003 10:34:59 +0000 (10:34 +0000)]
Remove use of PARAMS.
Jim Meyering [Sat, 4 Jan 2003 10:33:01 +0000 (10:33 +0000)]
Remove use of PARAMS.
Jim Meyering [Sat, 4 Jan 2003 10:32:21 +0000 (10:32 +0000)]
Remove use of PARAMS.
Jim Meyering [Sat, 4 Jan 2003 10:08:07 +0000 (10:08 +0000)]
*** empty log message ***
Jim Meyering [Sat, 4 Jan 2003 10:07:44 +0000 (10:07 +0000)]
rm could be tricked into mistakenly reporting a cycle.
* src/remove.c: [cycle_check_state]: New global.
(remove_cwd_entries): Adapt to new semantics of cycle_check.
(rm): Call cycle_check_init and cycle_check_free for each file.
When rm detects a cycle, don't abort the entire command,
but rather just the affected command line argument.
* src/remove.c: Include <setjmp.h>
(struct dirstack_state) [current_arg_jumpbuf]: New member.
(remove_cwd_entries): Call longjmp if we detect a cycle.
(rm): Call setjmp here.
* src/remove.c (cycle_check, is_power_of_two): Remove functions.
Instead, include cycle-check.h and use it.
Jim Meyering [Sat, 4 Jan 2003 09:53:20 +0000 (09:53 +0000)]
(struct dev_ino): Remove declaration.
Jim Meyering [Sat, 4 Jan 2003 09:45:54 +0000 (09:45 +0000)]
Don't include trailing /. in diagnostics about directories.
(full_filename_): When FILENAME is just `.'
and there is a nonempty directory-name part, don't append `/.'.
Jim Meyering [Sat, 4 Jan 2003 09:42:53 +0000 (09:42 +0000)]
(remove_cwd_entries): Fix typos in comment.
Jim Meyering [Sat, 4 Jan 2003 09:41:35 +0000 (09:41 +0000)]
*** empty log message ***
Jim Meyering [Sat, 4 Jan 2003 09:41:24 +0000 (09:41 +0000)]
(struct dirstack_state): Define.
To be used in place of these file-scoped globals ...
(dir_stack, len_stack, Active_dir): Remove globals.
(ds_init, ds_free): New functions.
(full_filename): Define.
(full_filename_): Rename from full_filename.
Begin to make AD_* functions more generic.
(AD_push_initial): Don't set status to RM_OK here.
(AD_push): Likewise.
(AD_INIT_OTHER_MEMBERS): Define.
(remove_dir): Define the `status' member manually after each
call to AD_push or AD_push_initial.
Jim Meyering [Sat, 4 Jan 2003 09:09:48 +0000 (09:09 +0000)]
(TESTS): Add cycle.
Jim Meyering [Sat, 4 Jan 2003 09:03:45 +0000 (09:03 +0000)]
Remove trailing /. from diagnostic.
Jim Meyering [Sat, 4 Jan 2003 09:03:02 +0000 (09:03 +0000)]
Enable this test -- now that we have the --presume-input-tty option.
Jim Meyering [Sat, 4 Jan 2003 09:01:04 +0000 (09:01 +0000)]
rm could be tricked into mistakenly reporting a cycle
Jim Meyering [Sat, 4 Jan 2003 08:59:19 +0000 (08:59 +0000)]
*** empty log message ***
Jim Meyering [Sat, 4 Jan 2003 08:59:15 +0000 (08:59 +0000)]
(check-misc): New rule, to ensure that no more
S_IS* macro definitions sneak into the code.
(check): Depend on check-misc.
Jim Meyering [Sat, 4 Jan 2003 08:58:12 +0000 (08:58 +0000)]
[S_ISLNK, S_ISFIFO, S_ISSOCK]: Don't define.
They're already defined in sys2.h.
Jim Meyering [Sat, 4 Jan 2003 08:55:30 +0000 (08:55 +0000)]
remove blank line
Jim Meyering [Sat, 4 Jan 2003 08:55:19 +0000 (08:55 +0000)]
(count_entry) [S_ISLNK]: Don't define.
It's already defined in sys2.h.
Jim Meyering [Sat, 4 Jan 2003 08:44:11 +0000 (08:44 +0000)]
[S_ISLNK]: Don't define. It's already defined in sys2.h.
Jim Meyering [Sat, 4 Jan 2003 08:42:26 +0000 (08:42 +0000)]
.
Jim Meyering [Fri, 3 Jan 2003 21:38:33 +0000 (21:38 +0000)]
*** empty log message ***
Jim Meyering [Fri, 3 Jan 2003 21:38:27 +0000 (21:38 +0000)]
Add copyright.
(AUTHORS): I suppose I've written it.
Jim Meyering [Fri, 3 Jan 2003 21:34:16 +0000 (21:34 +0000)]
*** empty log message ***