summaryrefslogtreecommitdiffstats
path: root/usr.bin/find/find.h
diff options
context:
space:
mode:
authoreik <eik@FreeBSD.org>2004-05-28 17:17:15 +0000
committereik <eik@FreeBSD.org>2004-05-28 17:17:15 +0000
commit67b0af2d89cbb9ad02ca489ff6320ffe6bf878d5 (patch)
treede2701bbe39f57e4860326018916a82714254cdb /usr.bin/find/find.h
parent577b8571b9834b90908480fd24b3383ed54f7b4c (diff)
downloadFreeBSD-src-67b0af2d89cbb9ad02ca489ff6320ffe6bf878d5.zip
FreeBSD-src-67b0af2d89cbb9ad02ca489ff6320ffe6bf878d5.tar.gz
- introduce a new primary `-depth n', which tests whether
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
Diffstat (limited to 'usr.bin/find/find.h')
-rw-r--r--usr.bin/find/find.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/find/find.h b/usr.bin/find/find.h
index 2944278..59c70b6 100644
--- a/usr.bin/find/find.h
+++ b/usr.bin/find/find.h
@@ -57,6 +57,7 @@ typedef struct _plandata *creat_f(struct _option *, char ***);
#define F_TIME2_C 0x00000020 /* one of -newer?c */
#define F_TIME2_T 0x00000040 /* one of -newer?t */
#define F_MAXDEPTH F_TIME_A /* maxdepth vs. mindepth */
+#define F_DEPTH F_TIME_A /* -depth n vs. -d */
/* command line function modifiers */
#define F_EQUAL 0x00000000 /* [acm]min [acm]time inum links size */
#define F_LESSTHAN 0x00000100
@@ -86,6 +87,7 @@ typedef struct _plandata {
u_long _f_notflags;
} fl;
nlink_t _l_data; /* link count */
+ short _d_data; /* level depth (-1 to N) */
off_t _o_data; /* file size */
time_t _t_data; /* time value */
uid_t _u_data; /* uid */
@@ -109,6 +111,7 @@ typedef struct _plandata {
} PLAN;
#define a_data p_un._a_data
#define c_data p_un._c_data
+#define d_data p_un._d_data
#define fl_flags p_un.fl._f_flags
#define fl_notflags p_un.fl._f_notflags
#define g_data p_un._g_data
OpenPOWER on IntegriCloud