summaryrefslogtreecommitdiffstats
path: root/usr.bin/find/find.h
diff options
context:
space:
mode:
authorroberto <roberto@FreeBSD.org>1999-12-19 15:43:19 +0000
committerroberto <roberto@FreeBSD.org>1999-12-19 15:43:19 +0000
commit58b687c462e608fbb9d0baebacd235cdcfb54f4c (patch)
tree10a71d4fcec8683830742e4bc329fe467bfbfca5 /usr.bin/find/find.h
parentb7335626ede0054c55ccf2e76514a4710b1f1ee7 (diff)
downloadFreeBSD-src-58b687c462e608fbb9d0baebacd235cdcfb54f4c.zip
FreeBSD-src-58b687c462e608fbb9d0baebacd235cdcfb54f4c.tar.gz
Second part of bin/3648: add -flags to search for specific flags.
I added $FreeBSD$ whicle I was here. The patch wasn't usable anymore due to its age so I adapted it. PR: bin/3648 Submitted by: Martin Birgmeier <mbirg@austria.ds.philips.com>
Diffstat (limited to 'usr.bin/find/find.h')
-rw-r--r--usr.bin/find/find.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/usr.bin/find/find.h b/usr.bin/find/find.h
index 33b00ad..b6e2eab 100644
--- a/usr.bin/find/find.h
+++ b/usr.bin/find/find.h
@@ -34,13 +34,14 @@
* SUCH DAMAGE.
*
* @(#)find.h 8.1 (Berkeley) 6/6/93
+ * $FreeBSD$
*/
/* node type */
enum ntype {
N_AND = 1, /* must start > 0 */
N_AMIN, N_ATIME, N_CLOSEPAREN, N_CMIN, N_CTIME, N_DEPTH,
- N_EXEC, N_EXECDIR, N_EXPR,
+ N_EXEC, N_EXECDIR, N_EXPR, N_FLAGS,
N_FOLLOW, N_FSTYPE, N_GROUP, N_INUM, N_LINKS, N_LS, N_MMIN,
N_MTIME, N_NAME,
N_NEWER, N_NOGROUP, N_NOT, N_NOUSER, N_OK, N_OPENPAREN, N_OR, N_PATH,
@@ -66,6 +67,10 @@ typedef struct _plandata {
gid_t _g_data; /* gid */
ino_t _i_data; /* inode */
mode_t _m_data; /* mode mask */
+ struct {
+ u_long _f_flags;
+ u_long _f_mask;
+ } fl;
nlink_t _l_data; /* link count */
off_t _o_data; /* file size */
time_t _t_data; /* time value */
@@ -83,8 +88,10 @@ typedef struct _plandata {
} PLAN;
#define a_data p_un._a_data
#define c_data p_un._c_data
-#define i_data p_un._i_data
+#define fl_flags p_un.fl._f_flags
+#define fl_mask p_un.fl._f_mask
#define g_data p_un._g_data
+#define i_data p_un._i_data
#define l_data p_un._l_data
#define m_data p_un._m_data
#define mt_data p_un._mt_data
OpenPOWER on IntegriCloud