Last change
on this file since 2278 was 821, checked in by Bruno Cornec, 18 years ago |
Addition of busybox 1.2.1 as a mindi-busybox new package
This should avoid delivering binary files in mindi not built there (Fedora and Debian are quite serious about that)
|
File size:
1.1 KB
|
Line | |
---|
1 | /* vi: set sw=4 ts=4: */
|
---|
2 | /*
|
---|
3 | * Busybox main internal header file
|
---|
4 | *
|
---|
5 | * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
|
---|
6 | */
|
---|
7 | #ifndef _BB_INTERNAL_H_
|
---|
8 | #define _BB_INTERNAL_H_ 1
|
---|
9 |
|
---|
10 | #include "bb_config.h"
|
---|
11 |
|
---|
12 | #include "libbb.h"
|
---|
13 |
|
---|
14 | /* order matters: used as index into "install_dir[]" in busybox.c */
|
---|
15 | enum Location {
|
---|
16 | _BB_DIR_ROOT = 0,
|
---|
17 | _BB_DIR_BIN,
|
---|
18 | _BB_DIR_SBIN,
|
---|
19 | _BB_DIR_USR_BIN,
|
---|
20 | _BB_DIR_USR_SBIN
|
---|
21 | };
|
---|
22 |
|
---|
23 | enum SUIDRoot {
|
---|
24 | _BB_SUID_NEVER = 0,
|
---|
25 | _BB_SUID_MAYBE,
|
---|
26 | _BB_SUID_ALWAYS
|
---|
27 | };
|
---|
28 |
|
---|
29 | struct BB_applet {
|
---|
30 | const char *name;
|
---|
31 | int (*main) (int argc, char **argv);
|
---|
32 | __extension__ enum Location location:4;
|
---|
33 | __extension__ enum SUIDRoot need_suid:4;
|
---|
34 | };
|
---|
35 |
|
---|
36 | /* From busybox.c */
|
---|
37 | extern const struct BB_applet applets[];
|
---|
38 |
|
---|
39 | /* Automagically pull in all the applet function prototypes and
|
---|
40 | * applet usage strings. These are all of the form:
|
---|
41 | * extern int foo_main(int argc, char **argv);
|
---|
42 | * extern const char foo_usage[];
|
---|
43 | * These are all autogenerated from the set of currently defined applets.
|
---|
44 | */
|
---|
45 | #define PROTOTYPES
|
---|
46 | #include "applets.h"
|
---|
47 | #undef PROTOTYPES
|
---|
48 |
|
---|
49 | #endif /* _BB_INTERNAL_H_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.