The NetBSD Project

CVS log for src/usr.bin/find/extern.h

[BACK] Up to [cvs.netbsd.org] / src / usr.bin / find

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.28.16.2 / (download) - annotate - [select for diffs], Thu Jul 19 07:49:31 2007 UTC (4 years, 10 months ago) by daniel
Branch: matt-mips64
Changes since 1.28.16.1: +99 -0 lines
Diff to previous 1.28.16.1 (colored) to branchpoint 1.28 (colored)

Add the '-E' option to interpret regexes as extended regexes. While we
are here, fix ordering in usage information by putting '-X' in the proper
place.

Addition of '-E' was discussed on tech-userlevel.

Revision 1.28.16.1, Thu Jul 19 07:49:30 2007 UTC (4 years, 10 months ago) by daniel
Branch: matt-mips64
Changes since 1.28: +0 -99 lines
FILE REMOVED

file extern.h was added on branch matt-mips64 on 2007-07-19 07:49:31 +0000

Revision 1.28 / (download) - annotate - [select for diffs], Thu Jul 19 07:49:30 2007 UTC (4 years, 10 months ago) by daniel
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, netbsd-6-base, netbsd-6, netbsd-5-base, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, mjf-devfs2, matt-premerge-20091211, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-premerge-20101231, matt-mips64-base2, matt-mips64-base, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, HEAD
Branch point for: matt-mips64
Changes since 1.27: +3 -2 lines
Diff to previous 1.27 (colored)

Add the '-E' option to interpret regexes as extended regexes. While we
are here, fix ordering in usage information by putting '-X' in the proper
place.

Addition of '-E' was discussed on tech-userlevel.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Feb 6 13:25:01 2007 UTC (5 years, 3 months ago) by elad
Branch: MAIN
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored)

Add -delete from FreeBSD.

Revision 1.26 / (download) - annotate - [select for diffs], Wed Oct 11 19:51:10 2006 UTC (5 years, 7 months ago) by apb
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4
Changes since 1.25: +59 -59 lines
Diff to previous 1.25 (colored)

De-__P(), remove trailing spaces, sprinkle a few const, WARNS=4.

Revision 1.25 / (download) - annotate - [select for diffs], Sat Oct 7 17:04:02 2006 UTC (5 years, 7 months ago) by apb
Branch: MAIN
Changes since 1.24: +3 -1 lines
Diff to previous 1.24 (colored)

Add support for "find ... -exec ... {} +".

The code is from John Hawkinson in PR 20470.  I adapted it to current,
and made some KNF and comment changes.

Revision 1.24 / (download) - annotate - [select for diffs], Sat Aug 26 18:17:42 2006 UTC (5 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.23: +1 -2 lines
Diff to previous 1.23 (colored)

More programs using efun.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Feb 20 16:31:02 2006 UTC (6 years, 3 months ago) by jschauma
Branch: MAIN
CVS Tags: chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.22: +2 -1 lines
Diff to previous 1.22 (colored)

Add a new primary '-exit n':
This primary causes find to stop traversing the filesystem and
exit immediately if a previous condition was met.  If no value is
specified, the exit value will be 0, else n.  Note that other
primaries will be evaluated and acted upon before exiting.

Ok matt@, garbled@.

Revision 1.22 / (download) - annotate - [select for diffs], Wed Nov 9 00:47:16 2005 UTC (6 years, 6 months ago) by reed
Branch: MAIN
Changes since 1.21: +2 -1 lines
Diff to previous 1.21 (colored)

Add -false switch. From man page:

-false  This primary always evaluates to false.  This can be used follow-
        ing a primary that caused the expression to be true to make the
	expression to be false.  This can be useful after using a -fprint
	primary so it can continue to the next expression (using an -or
	operator, for example).

This was brought up on the tech-userlevel list in October.

Using -fprint on findutils or new NetBSD find(1) does not do what
I wanted. For example, if saving results of all files that start
with a vowel or saving results of all files owned by group operator,
then the list of files owned by group operator would not include
the files starting with a vowel.

findutils's find has a workaround for this with -false and also a
"," comma opeator. (I made add this comma operator later; you can use
the comma to perform multiple independent tests.)

Revision 1.21 / (download) - annotate - [select for diffs], Wed Oct 12 20:03:59 2005 UTC (6 years, 7 months ago) by reed
Branch: MAIN
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)

This adds -fprint function. The primary name "-fprint" (but not the
code) comes from findutils; it behaves the same.

From my manpage addition:

 -fprint filename
	This primary always evaluates to true.  This creates filename or
	overwrites the file if it already exists.  The file is created at
	startup.  It writes the pathname of the current file to this
	file, followed by a newline character.  The file will be empty if
	no files are matched.

Here is an example usage:

find /etc \( -name "*pass*" -fprint file1 \) -o \( -group operator -fprint file2 \) -o -name "w*"

Note that this example will NOT include entry in file2 if it is
matched in first expression. (This also is same behaviour as
findutils, and I have implemented a -false primary to handle that.
I will commit it later.)

This creates the file as command line argument parsing time.
If there is an error somewhere on that line, such as missing values
or mismatched parenthesis, then a file may still be created.
(Even if a later -fprint filename is unwritable.) This is similar
behaviour to findutils. (It has been suggested that this find could
be code to create the files in an extra stage after the command-line
argument parsing and before the actual function processing.)

I will add -fprintx and -fprint0 soon.

This was discussed on tech-userlevel.

Revision 1.20.4.2 / (download) - annotate - [select for diffs], Tue Oct 11 23:47:05 2005 UTC (6 years, 7 months ago) by reed
Branch: netbsd-2
CVS Tags: netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1
Changes since 1.20.4.1: +0 -1 lines
Diff to previous 1.20.4.1 (colored) to branchpoint 1.20 (colored) next main 1.21 (colored)

Revert changes. I accidently committed to netbsd-2.

Revision 1.20.4.1 / (download) - annotate - [select for diffs], Tue Oct 11 22:56:27 2005 UTC (6 years, 7 months ago) by reed
Branch: netbsd-2
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)

This adds -fprint function. The primary name "-fprint" (but not the
code) comes from findutils; it behaves the same.

From my manpage addition:

 -fprint filename
         This primary always evaluates to true.  This creates filename or
         overwrites the file if it already exists.  The file is created at
         startup.  It writes the pathname of the current file to this
         file, followed by a newline character.  The file will be empty if
         no files are matched.

Here is an example usage:

find /etc \( -name "*pass*" -fprint file1 \) -o \( -group operator -fprint file2 \) -o -name "w*"

This was discussed on tech-userlevel.

This creates the file as command line argument parsing time.
If there is an error somewhere on that line, such as missing values
or mismatched parenthesis, then a file may still be created.
(Even if a later -fprint filename is unwritable.) This is similar
behaviour to findutils. (It has been suggested that this find could
be code to create the files in an extra stage after the command-line
argument parsing and before the actual function processing.)

I will add -fprintx and -fprint0 soon.

Revision 1.20 / (download) - annotate - [select for diffs], Thu Aug 7 11:13:40 2003 UTC (8 years, 9 months ago) by agc
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, netbsd-2-base, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0
Branch point for: netbsd-2
Changes since 1.19: +2 -6 lines
Diff to previous 1.19 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22365, verified by myself.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Aug 3 19:46:03 2003 UTC (8 years, 9 months ago) by provos
Branch: MAIN
Changes since 1.18: +2 -1 lines
Diff to previous 1.18 (colored)

Implement -iname for case insensitive matching on file names.
From freebsd/openbsd.  Approved by jaromir@, manu@, perry@.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Feb 23 14:43:25 2003 UTC (9 years, 3 months ago) by jhawk
Branch: MAIN
Changes since 1.17: +1 -2 lines
Diff to previous 1.17 (colored)

eleminate forward decl of 'struct stat'

Revision 1.17 / (download) - annotate - [select for diffs], Fri Sep 27 15:56:25 2002 UTC (9 years, 8 months ago) by provos
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.16: +6 -1 lines
Diff to previous 1.16 (colored)

support for -empty, -execdir, -mindepth, -maxdepth to match other UNIX-like
systems.  based on work by tholo@openbsd.org.  approved by perry.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Dec 2 12:46:39 2001 UTC (10 years, 5 months ago) by kleink
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Changes since 1.15: +2 -1 lines
Diff to previous 1.15 (colored)

Since we've already been down that road with -cnewer, support GNU find(1)'s
-anewer as well.

Revision 1.15 / (download) - annotate - [select for diffs], Sat Dec 1 14:10:04 2001 UTC (10 years, 5 months ago) by kleink
Branch: MAIN
Changes since 1.14: +2 -1 lines
Diff to previous 1.14 (colored)

Add a "cnewer" primary which evaluates true if a file has a more recent
ctime than its argument.

From kre in PR bin/14802; originally suggested name was "updated" but
renamed due to GNU find(1) being prior art for this functionality.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Sep 21 07:11:33 2001 UTC (10 years, 8 months ago) by enami
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

Reallocate memory correctly while substituting the braces.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Mar 10 11:46:04 2000 UTC (12 years, 2 months ago) by itohy
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

Add -s (sort) option, which causes entries in each directory sorted.
Similar to FreeBSD's.

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Fri Aug 20 05:43:18 1999 UTC (12 years, 9 months ago) by cgd
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Changes since 1.11: +3 -1 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

pull up rev 1.12 from trunk. (cgd)

Revision 1.12 / (download) - annotate - [select for diffs], Tue Jul 20 01:28:41 1999 UTC (12 years, 10 months ago) by cgd
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.11: +3 -1 lines
Diff to previous 1.11 (colored)

add -regex and -iregex primaries which, like GNU find's primaries of the
same name, match files' entire paths against regular expressions.
-regex is case sensitive, -iregex is case-insensitive.  Note that these
primaries are _not_ entirely compatible with the GNU find primaries,
because their BREs appear to support alternation with \| whereas our BREs
do not.  Also note there are no primaries which provide extended regular
expressions matching, though if they are desired they would be trivial
to implement.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Jan 16 13:27:30 1999 UTC (13 years, 4 months ago) by simonb
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH001
Branch point for: netbsd-1-4
Changes since 1.10: +5 -2 lines
Diff to previous 1.10 (colored)

Add GNU-style -{a,c,m}min primaries.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jan 12 00:18:50 1999 UTC (13 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored)

Add support for -printx, which quotes pathnames in an xargs friendly way.
From [bin/6790] by Eric Fischer <eric@fudge.uchicago.edu>

Revision 1.9 / (download) - annotate - [select for diffs], Sun Jan 3 14:54:28 1999 UTC (13 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.8: +2 -1 lines
Diff to previous 1.8 (colored)

Add support for "-flags [-]flags", which matches the file flags in a
similar way that "-perm [-]mode" matches the file mode.

Revision 1.8 / (download) - annotate - [select for diffs], Sat Feb 21 22:47:20 1998 UTC (14 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.7: +29 -28 lines
Diff to previous 1.7 (colored)

Simplify the function calling code and warnsify.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Feb 2 14:02:12 1998 UTC (14 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.6: +4 -6 lines
Diff to previous 1.6 (colored)

merge lite2, sans getvfsbyname in functions.c (waiting on libc)

Revision 1.6 / (download) - annotate - [select for diffs], Sun Oct 19 11:52:12 1997 UTC (14 years, 7 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3
Changes since 1.5: +3 -2 lines
Diff to previous 1.5 (colored)

fix .Nm usage, deprecate register, mostly WARNSify (needs minor rewrite to fix)

Revision 1.5 / (download) - annotate - [select for diffs], Thu Jan 9 20:19:09 1997 UTC (15 years, 4 months ago) by tls
Branch: MAIN
Changes since 1.4: +3 -1 lines
Diff to previous 1.4 (colored)

RCS ID police

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Fri Sep 1 00:24:51 1995 UTC (16 years, 8 months ago) by jtc
Branch: WFJ-920714, CSRG
CVS Tags: lite-2
Changes since 1.1.1.1: +5 -5 lines
Diff to previous 1.1.1.1 (colored)

imported from 44lite2

Revision 1.4 / (download) - annotate - [select for diffs], Thu Dec 30 21:15:18 1993 UTC (18 years, 4 months ago) by jtc
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1, netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.3: +6 -5 lines
Diff to previous 1.3 (colored)

Merged our bugfixes with the 4.4BSD find from uunet.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Oct 27 17:52:30 1993 UTC (18 years, 7 months ago) by jtc
Branch: MAIN
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

Added -print0 (like GNU find).  This will allow file names that contain
newlines to be correctly interpreted by programs that process find
output.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Aug 1 18:16:18 1993 UTC (18 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)

Add RCS identifiers.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (19 years, 2 months ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9, netbsd-0-8, WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (19 years, 2 months ago) by cgd
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>