From aeff24ee344e5b9c4f2f9040a02320952e70ccd7 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 10 Feb 2016 22:15:41 -0500 Subject: Implement -samefile. --- bfs.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bfs.h') diff --git a/bfs.h b/bfs.h index 24aeed8..c20fa17 100644 --- a/bfs.h +++ b/bfs.h @@ -15,6 +15,7 @@ #include "color.h" #include #include +#include #include /** @@ -117,6 +118,11 @@ struct expr { /** The optional time unit. */ enum timeunit timeunit; + /** Optional device number for a target file. */ + dev_t dev; + /** Optional inode number for a target file. */ + ino_t ino; + /** Optional integer data for this expression. */ int idata; @@ -155,6 +161,7 @@ bool eval_empty(const struct expr *expr, struct eval_state *state); bool eval_hidden(const struct expr *expr, struct eval_state *state); bool eval_inum(const struct expr *expr, struct eval_state *state); bool eval_links(const struct expr *expr, struct eval_state *state); +bool eval_samefile(const struct expr *expr, struct eval_state *state); bool eval_type(const struct expr *expr, struct eval_state *state); bool eval_name(const struct expr *expr, struct eval_state *state); -- cgit v1.2.3