Mercurial > hg > toybox
comparison toys.h @ 257:951110c37fee
Add TOYFLAG_UMASK.
author | Rob Landley <rob@landley.net> |
---|---|
date | Tue, 12 Feb 2008 19:05:44 -0600 |
parents | 3fe66e630944 |
children | dfbfbaeb69c9 |
comparison
equal
deleted
inserted
replaced
256:20f1e3da0492 | 257:951110c37fee |
---|---|
59 #define TOYFLAG_BIN (1<<1) | 59 #define TOYFLAG_BIN (1<<1) |
60 #define TOYFLAG_SBIN (1<<2) | 60 #define TOYFLAG_SBIN (1<<2) |
61 #define TOYMASK_LOCATION ((1<<4)-1) | 61 #define TOYMASK_LOCATION ((1<<4)-1) |
62 | 62 |
63 #define TOYFLAG_NOFORK (1<<4) | 63 #define TOYFLAG_NOFORK (1<<4) |
64 #define TOYFLAG_UMASK (1<<5) | |
64 | 65 |
65 extern struct toy_list { | 66 extern struct toy_list { |
66 char *name; | 67 char *name; |
67 void (*toy_main)(void); | 68 void (*toy_main)(void); |
68 char *options; | 69 char *options; |
77 char **argv; // Original command line arguments | 78 char **argv; // Original command line arguments |
78 unsigned optflags; // Command line option flags from get_optflags() | 79 unsigned optflags; // Command line option flags from get_optflags() |
79 char **optargs; // Arguments left over from get_optflags() | 80 char **optargs; // Arguments left over from get_optflags() |
80 int optc; // Count of optargs | 81 int optc; // Count of optargs |
81 int exithelp; // Should error_exit print a usage message first? (Option parsing.) | 82 int exithelp; // Should error_exit print a usage message first? (Option parsing.) |
83 int old_umask; | |
82 } toys; | 84 } toys; |
83 | 85 |
84 // One big temporary buffer, for use by applets (not library functions). | 86 // One big temporary buffer, for use by applets (not library functions). |
85 | 87 |
86 extern char toybuf[4096]; | 88 extern char toybuf[4096]; |