summaryrefslogtreecommitdiff
path: root/cleopatre/busybox-1.11.1-spc300/applets/individual.c
diff options
context:
space:
mode:
authorYacine Belkadi2012-05-03 11:01:33 +0200
committerYacine Belkadi2012-06-27 11:07:22 +0200
commitb31db02df546187d7b2f27e14eb587b4561dda8d (patch)
treeb5b259dba96a419de4d2d55e51acf270374717fd /cleopatre/busybox-1.11.1-spc300/applets/individual.c
parent4d7cb28e1ab17aad9145278c05d48eed0623a1da (diff)
cleo: add directory for busybox sources, refs #3085
Create a source directory for busybox, by extracting the content of busybox-1.11.1.tar.bz2.
Diffstat (limited to 'cleopatre/busybox-1.11.1-spc300/applets/individual.c')
-rw-r--r--cleopatre/busybox-1.11.1-spc300/applets/individual.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/cleopatre/busybox-1.11.1-spc300/applets/individual.c b/cleopatre/busybox-1.11.1-spc300/applets/individual.c
new file mode 100644
index 0000000000..341f4d1c2c
--- /dev/null
+++ b/cleopatre/busybox-1.11.1-spc300/applets/individual.c
@@ -0,0 +1,24 @@
+/* Minimal wrapper to build an individual busybox applet.
+ *
+ * Copyright 2005 Rob Landley <rob@landley.net
+ *
+ * Licensed under GPL version 2, see file LICENSE in this tarball for details
+ */
+
+const char *applet_name;
+
+#include <stdio.h>
+#include <stdlib.h>
+#include "usage.h"
+
+int main(int argc, char **argv)
+{
+ applet_name = argv[0];
+ return APPLET_main(argc,argv);
+}
+
+void bb_show_usage(void)
+{
+ fputs(APPLET_full_usage "\n", stdout);
+ exit(EXIT_FAILURE);
+}