Commit Graph

35 Commits

Author SHA1 Message Date
christos f6321b3b4d fixed nested externs 2001-02-05 01:53:48 +00:00
enami e92c3f2867 - The type of return value of setmode is a void * and getmode takes it,
rather than mode_t *.
- Free the storage allocated by setmode unless it is obvious that program
  exits immediately.
2000-10-10 14:30:40 +00:00
enami 7b4bdbc144 Cosmetic changes. 2000-03-16 18:44:29 +00:00
drochner 85cbf55d16 Since our gcc doesn't warn about NULL format strings anymore, we can
fix the incorrect err(1, "%s", "") et al.
Closes PR bin/7592 by cgd.
1999-11-09 15:06:30 +00:00
cgd 91ff0a1b87 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.
1999-07-20 01:28:41 +00:00
kleink a9db8146da Don't choke on file size specifications (legitimately) exceeding LONG_MAX. 1999-02-04 16:41:17 +00:00
simonb 810471468e Add GNU-style -{a,c,m}min primaries. 1999-01-16 13:27:30 +00:00
lukem 98ae72f685 Add support for -printx, which quotes pathnames in an xargs friendly way.
From [bin/6790] by Eric Fischer <eric@fudge.uchicago.edu>
1999-01-12 00:18:50 +00:00
lukem adfde6fdc9 Add support for "-flags [-]flags", which matches the file flags in a
similar way that "-perm [-]mode" matches the file mode.
1999-01-03 14:54:27 +00:00
christos 3f852e73e1 we don't need sys/ucred.h 1998-11-06 23:21:01 +00:00
wsanchez 6149c86370 init mask to silence -Wall 1998-10-14 00:50:43 +00:00
christos 9a80b4fa85 Simplify the function calling code and warnsify. 1998-02-21 22:47:20 +00:00
mrg 111777dda2 remove getvfsbyname cruft. 1998-02-03 01:04:27 +00:00
mrg 7b983ca6d5 merge lite2, sans getvfsbyname in functions.c (waiting on libc) 1998-02-02 14:02:06 +00:00
lukem 403b699b0b fix .Nm usage, deprecate register, mostly WARNSify (needs minor rewrite to fix) 1997-10-19 11:52:12 +00:00
matthias cd80e9aae6 remove second RCS-Id line. 1997-02-01 09:51:48 +00:00
matthias ec450f3940 finding whiteouts didn't work. 1997-01-30 09:17:27 +00:00
tls 9d225a1783 RCS ID police 1997-01-09 20:18:21 +00:00
mrg 4b88cc7b60 add support for whiteouts. pr#2394 (Mike Long <mike.long@analog.com>) 1996-05-21 13:43:50 +00:00
cgd 3d113b326b don't assume f_fstypename is larger than MFSNAMELEN or is nul-terminated 1995-06-18 10:58:06 +00:00
mycroft 5ee5940abc Get rid of a redundant sanity check. 1994-10-18 17:02:44 +00:00
mycroft f8825bfb96 Always save both the mount flags and the file system type when crossing a
mount point.  From John Kohl.
1994-10-18 13:54:25 +00:00
cgd ecc12ef419 fstypes will be strings soon 1994-04-14 03:34:13 +00:00
andrew ec255a65c8 -nouser and -nogroup tests were negated. 1994-02-16 03:59:52 +00:00
jtc 0760ea89b4 Flush stdout and stderr before processing an -exec (or -ok), so the output
of the exec'd command and find's output will be correctly interspersed.
(Bug noticed by Terry Lambert, of FreeBSD.  Fix by me).
1994-01-21 02:59:38 +00:00
jtc 3dfa59ec4a Merged our bugfixes with the 4.4BSD find from uunet. 1993-12-30 21:15:18 +00:00
jtc 3a2b9d8c2b Added -print0 (like GNU find). This will allow file names that contain
newlines to be correctly interpreted by programs that process find
output.
1993-10-27 17:52:30 +00:00
cgd 62d3b2073c fix to the 'size' primary; -size <n>c didn't work. from
Thomas Eberhardt <thomas@mathematik.uni-Bremen.de>
1993-09-16 21:41:30 +00:00
deraadt f85c326074 for new fts library 1993-08-06 01:53:33 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
jtc 5108aaad56 Update source to use posix fnmatch 1993-06-16 17:19:05 +00:00
mycroft 5db0bae112 Reverse sense of fnmatch() to match POSIX. 1993-04-10 01:10:27 +00:00
cgd 7c6490bf10 added support for "kernfs" and "fdesc" to -fstype 1993-03-24 22:56:32 +00:00
cgd 609f072018 fixed fact that "rdonly" wasn't supported by -fstype, but the man
page said it was.  also fixed multiple fstype checks on the same
partition
1993-03-24 22:54:22 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00