const char* name;
int (*main)(int argc, char** argv);
enum Location location;
- int usage_index;
};
/* From busybox.c */
extern const struct BB_applet applets[];
#include "applets.h"
#undef PROTOTYPES
-#define APPLET_ENUM
-enum APPLET_INDEX_NUMBERS {
-#include "applets.h"
-};
-#undef APPLET_ENUM
-
extern const char *applet_name;
extern void show_usage(void) __attribute__ ((noreturn));
-extern void error_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2)));
-extern void error_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2)));
-extern void perror_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2)));
-extern void perror_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2)));
+extern void error_msg(const char *s, ...);
+extern void error_msg_and_die(const char *s, ...) __attribute__ ((noreturn));
+extern void perror_msg(const char *s, ...);
+extern void perror_msg_and_die(const char *s, ...) __attribute__ ((noreturn));
const char *mode_string(int mode);
const char *time_string(time_t timeVal);