summaryrefslogtreecommitdiffstats
path: root/expr.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2017-12-15 12:40:37 -0500
committerTavian Barnes <tavianator@tavianator.com>2017-12-15 12:40:37 -0500
commit7da0d28318c97f1f3d629f13daad9ec824254709 (patch)
tree565abff45b696b36a006f3ef1472f0db1425a11b /expr.h
parent7d419a51636161e0257c0ccf041b49b97fe5f219 (diff)
downloadbfs-7da0d28318c97f1f3d629f13daad9ec824254709.tar.xz
Keep track of required FDs per-expr
Diffstat (limited to 'expr.h')
-rw-r--r--expr.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/expr.h b/expr.h
index 5581bf4..0cd08ce 100644
--- a/expr.h
+++ b/expr.h
@@ -192,6 +192,11 @@ struct expr {
/** Optional string data for this expression. */
const char *sdata;
+
+ /** The number of files this expression keeps open between evaluations. */
+ int persistent_fds;
+ /** The number of files this expression opens during evaluation. */
+ int ephemeral_fds;
};
/** Singleton true expression instance. */