aboutsummaryrefslogtreecommitdiff
path: root/toys.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2008-02-12 19:05:44 -0600
committerRob Landley <rob@landley.net>2008-02-12 19:05:44 -0600
commit0f8c4c5998317e575f1afd47dad7f6967bc271ab (patch)
tree11613ae34f3830bf02914c9381eaa5790da63801 /toys.h
parent6882ee89dc5da4081d5721706ad77a3e0396b1bc (diff)
downloadtoybox-0f8c4c5998317e575f1afd47dad7f6967bc271ab.tar.gz
Add TOYFLAG_UMASK.
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).