aboutsummaryrefslogtreecommitdiff
path: root/toys.h
diff options
context:
space:
mode:
Diffstat (limited to 'toys.h')
-rw-r--r--toys.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/toys.h b/toys.h
index f1f83c67..14c6cf2f 100644
--- a/toys.h
+++ b/toys.h
@@ -61,6 +61,7 @@ void toy_exec(char *argv[]);
#define TOYMASK_LOCATION ((1<<4)-1)
#define TOYFLAG_NOFORK (1<<4)
+#define TOYFLAG_UMASK (1<<5)
extern struct toy_list {
char *name;
@@ -79,6 +80,7 @@ extern struct toy_context {
char **optargs; // Arguments left over from get_optflags()
int optc; // Count of optargs
int exithelp; // Should error_exit print a usage message first? (Option parsing.)
+ int old_umask;
} toys;
// One big temporary buffer, for use by applets (not library functions).