Add TOYFLAG_UMASK.
diff --git a/toys.h b/toys.h
index f1f83c6..14c6cf2 100644
--- a/toys.h
+++ b/toys.h
@@ -61,6 +61,7 @@
#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 @@
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).