diff options
author | Warner Losh <imp@FreeBSD.org> | 2008-02-23 16:29:04 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2008-02-23 16:29:04 +0000 |
commit | 46b993ff99b655a1b6148d429601f24e16e8f475 (patch) | |
tree | ee010da56d55fa2b0774f2a16755933c4b58ba74 /usr.bin/find/find.h | |
parent | 8f74c2663b31f9a4651eb3523a7166f843a35a06 (diff) | |
download | src-46b993ff99b655a1b6148d429601f24e16e8f475.tar.gz src-46b993ff99b655a1b6148d429601f24e16e8f475.zip |
Implement a number of primaries present in GNU find, but not present
in our find.
The following are nops because they aren't relevant to our find:
-ignore_readdir_race
-noignore_readdir_race
-noleaf
The following aliaes were created:
-gid -> -group [2]
-uid -> -user [2]
-wholename -> -path
-iwholename -> ipath
-mount -> -xdev
-d -> -depth [1]
The following new primaries were created:
-lname like -name, but matches symbolic links only)
-ilname like -lname but case insensitive
-quit exit(0)
-samefile returns true for hard links to the specified file
-true Always true
I changed one primary to match GNU find since I think our use of it violates
POLA
-false Always false (was an alias for -not!)
Also, document the '+' modifier for -execdir, as well as all of the above.
This was previously implemented.
Document the remaining 7 primaries that are in GNU find, but aren't yet
implemented in find(1)
[1] This was done in GNU find for compatibility with FreeBSD, yet they
mixed up command line args and primary args.
[2] -uid/-gid in GNU find ONLY takes a numeric arg, but that arg does the
normal range thing that. GNU find -user and -uid also take a numberic arg,
but don't do the range processing. find(1) does both for -user and -group,
so making -uid and -gid aliases is compatible for all non-error cases used
in GNU find. While not perfect emulation, this seems a reasonable thing
for us.
Notes
Notes:
svn path=/head/; revision=176478
Diffstat (limited to 'usr.bin/find/find.h')
-rw-r--r-- | usr.bin/find/find.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/find/find.h b/usr.bin/find/find.h index c7366fa5246d..5a465f1656ec 100644 --- a/usr.bin/find/find.h +++ b/usr.bin/find/find.h @@ -74,6 +74,7 @@ typedef struct _plandata *creat_f(struct _option *, char ***); #define F_EXECPLUS 0x00020000 /* -exec ... {} + */ #define F_TIME_B 0x00040000 /* one of -Btime, -Bnewer, -newerB* */ #define F_TIME2_B 0x00080000 /* one of -newer?B */ +#define F_LINK 0x00100000 /* lname or ilname */ /* node definition */ typedef struct _plandata { |