diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2016-02-10 22:15:41 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2016-02-10 22:15:41 -0500 |
commit | aeff24ee344e5b9c4f2f9040a02320952e70ccd7 (patch) | |
tree | 4336db598aab697f683fd62b0696d37a3e9be6e7 /bfs.h | |
parent | fc3b5fab4cb4f9a20671e17e31126f360b0e941a (diff) | |
download | bfs-aeff24ee344e5b9c4f2f9040a02320952e70ccd7.tar.xz |
Implement -samefile.
Diffstat (limited to 'bfs.h')
-rw-r--r-- | bfs.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -15,6 +15,7 @@ #include "color.h" #include <stdbool.h> #include <stddef.h> +#include <sys/types.h> #include <time.h> /** @@ -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); |