diff options
Diffstat (limited to 'include/busybox.h')
-rw-r--r-- | include/busybox.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/include/busybox.h b/include/busybox.h index ea58c0c28..2e54ac55e 100644 --- a/include/busybox.h +++ b/include/busybox.h | |||
@@ -39,6 +39,7 @@ | |||
39 | 39 | ||
40 | #include <features.h> | 40 | #include <features.h> |
41 | 41 | ||
42 | #include "libbb.h" | ||
42 | 43 | ||
43 | enum Location { | 44 | enum Location { |
44 | _BB_DIR_ROOT = 0, | 45 | _BB_DIR_ROOT = 0, |
@@ -48,10 +49,17 @@ enum Location { | |||
48 | _BB_DIR_USR_SBIN | 49 | _BB_DIR_USR_SBIN |
49 | }; | 50 | }; |
50 | 51 | ||
52 | enum SUIDRoot { | ||
53 | _BB_SUID_NEVER = 0, | ||
54 | _BB_SUID_MAYBE, | ||
55 | _BB_SUID_ALWAYS | ||
56 | }; | ||
57 | |||
51 | struct BB_applet { | 58 | struct BB_applet { |
52 | const char* name; | 59 | const char* name; |
53 | int (*main)(int argc, char** argv); | 60 | int (*main)(int argc, char** argv); |
54 | enum Location location; | 61 | enum Location location : 4; |
62 | enum SUIDRoot need_suid : 4; | ||
55 | }; | 63 | }; |
56 | /* From busybox.c */ | 64 | /* From busybox.c */ |
57 | extern const struct BB_applet applets[]; | 65 | extern const struct BB_applet applets[]; |
@@ -99,7 +107,7 @@ extern const struct BB_applet applets[]; | |||
99 | 107 | ||
100 | 108 | ||
101 | /* Pull in the utility routines from libbb */ | 109 | /* Pull in the utility routines from libbb */ |
102 | #include "libbb.h" | 110 | // #include "libbb.h" |
103 | 111 | ||
104 | /* Try to pull in PATH_MAX */ | 112 | /* Try to pull in PATH_MAX */ |
105 | #include <limits.h> | 113 | #include <limits.h> |