summaryrefslogtreecommitdiffstats
path: root/src/ctx.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ctx.h')
-rw-r--r--src/ctx.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ctx.h b/src/ctx.h
index b28a63c..064e8b0 100644
--- a/src/ctx.h
+++ b/src/ctx.h
@@ -16,6 +16,7 @@
#include "trie.h"
#include <stddef.h>
#include <sys/resource.h>
+#include <sys/types.h>
#include <time.h>
struct CFILE;
@@ -98,6 +99,9 @@ struct bfs_ctx {
/** The number of files owned by the context. */
int nfiles;
+ /** The current file creation mask. */
+ mode_t umask;
+
/** The initial RLIMIT_NOFILE limits. */
struct rlimit orig_nofile;
/** The current RLIMIT_NOFILE limits. */