summaryrefslogtreecommitdiffstats
path: root/usr.bin/find/find.c
Commit message (Collapse)AuthorAgeFilesLines
* Revert most part of 200420 as requested, as more review and polish isdelphij2009-12-131-0/+1
| | | | needed.
* Remove unneeded header includes from usr.bin/ except contributed code.delphij2009-12-111-1/+0
| | | | Tested with: make universe
* The last execution of -exec {} + is not done if the -exec primary iskrion2006-05-141-4/+1
| | | | | | | | | | | not on the top-level -and sequence, e.g. inside of ! or -or. Create a separate linked list of all active -exec {} + primaries and do the last execution for all at termination. PR: bin/79263 Submitted by: Jilles Tjoelker <jilles@stack.nl> MFC after: 7 days
* - introduce a new primary `-depth n', which tests whethereik2004-05-281-6/+5
| | | | | | | | | | | | | | | | | | | | | the depth of the current file relative to the starting point of the traversal is n. The usual +/- modifiers to the argument apply. - while I'm here, fix -maxdepth in the case of a depth-first traversal Print the top ten maintainers of python module ports (works with p5-* too): find /usr/ports -depth 2 \! -name 'py-*' -prune -o \ -depth 3 -name Makefile -execdir make -VMAINTAINER \; \ | sort | uniq -c | sort -nr | head PR: 66667 Reviewed by: ru, joerg Approved by: joerg MFC after: 2 weeks
* Fix all WARNS. Checked with "make WARNS=9". Remove unused file.markm2003-06-141-8/+5
|
* Make the threatened fts(3) ABI fix. FTSENT now avoids the use of the structwollman2002-09-211-2/+2
| | | | | | | | | | | | | | | | hack, thereby allowing future extensions to the structure (e.g., for extended attributes) without rebreaking the ABI. FTSENT now contains a pointer to the parent stream, which fts_compar() can then take advantage of, avoiding the undefined behavior previously warned about. As a consequence of this change, the prototype of the comparison function passed to fts_open() has changed to reflect the required amount of constness for its use. All callers in the tree are updated to use the correct prototype. Comparison functions can now make use of the new parent pointer to access the new stream-specific private data pointer, which is intended to assist creation of reentrant library routines which use fts(3) internally. Not objected to in spirit by: -arch
* Support the SysV-style -exec utility args.. {} + function, required bytjr2002-06-021-0/+4
| | | | SUSv3. This is similar to find foo -print0 | xargs -0 utility args.
* Fix SCM IDs.obrien2002-04-011-2/+2
|
* Remove __P().markm2002-03-201-1/+1
|
* 1) Remove -Wall from Makefile.dwmalone2002-02-271-10/+10
| | | | | | 2) WARNs fixes (rename option to lookup_option to avoid shadowing, rename argv to argv1 to avoid shadowing, const stuff, prototypes, __unused). 3) Remove "register"s.
* They add the following commands:phk2001-05-031-5/+12
| | | | | | | | | | | | | | | | | | | | | -anewer -cnewer -mnewer -okdir -newer[acm][acmt] With it, you can form queries like find . -newerct '1 minute ago' -print As an extra bonus, the program is ANSI-fied - the original version relies on some obscure features of K&R C. (This PR was submitted in 1999, and the submittor has kept the patch updated ever since, hats off for him guys, and how about you close a PR ??) PR: 9374 Submitted by: Martin Birgmeier <Martin.Birgmeier@aon.at>
* Implement the following options and primaries:knu2001-02-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | -E Interpret regular expressions followed by -regex and -iregex op- tions as extended (modern) regular expressions rather than basic regular expressions (BRE's). The re_format(7) manual page fully describes both formats. -iname pattern Like -name, but the match is case insensitive. -ipath pattern Like -path, but the match is case insensitive. -regex pattern True if the whole path of the file matches pattern using regular expression. To match a file named ``./foo/xyzzy'', you can use the regular expression ``.*/[xyz]*'' or ``.*/foo/.*'', but not ``xyzzy'' or ``/foo/''. -iregex pattern Like -regex, but the match is case insensitive. These are meant to be compatible with other find(1) implementations such as GNU's or NetBSD's except regexp library differences. Reviewed by: sobomax, dcs, and some other people on -current
* This patch adds the -mindepth and -maxdepth options to find(1), whichroberto2000-06-121-0/+14
| | | | | | | | | | | | behave as in GNU find (and of course as described in the manual page diff included). I think these options would be useful for some people. Some missing $FreeBSD$ tags are also added. The patch was slightly modified (send-pr mangling of TABS). PR: bin/18941 Submitted by: Ben Smithurst <ben@scientia.demon.co.uk>
* Fixed my English fixes.bde1998-11-291-1/+2
|
* Fixed style bugs and English in previous commit.bde1998-11-291-15/+16
|
* Added a sort option to find(1).wosch1998-11-291-1/+16
| | | | | The sort option make it possible to build the locate database without large (usually 20-100MB) temp files.
* Merge from Lite2 - use new getvfsbyname() and related changes.peter1997-03-111-7/+10
| | | | understand whiteouts (FTS_W from fts()).
* Remove trailing whitespace.rgrimes1995-05-301-5/+5
|
* Fix completely broken find behaviour:guido1995-02-271-0/+7
| | | | | | | a find -foo -o -bar would behave like find -bar. The same for -a This broke (among others) ./etc/security. Obtained from: NetBSD
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+192
OpenPOWER on IntegriCloud