← Commit list

a3f09076e

Eric Andersen
Eric Andersen
1999-10-19
SUCCESS Duration: 1s

Subject

More stuff

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Debian 14.2.0-19) 14.2.0

—

Build Log

(log yok)

Commit Diff GitHub →

applets/busybox.c+2 -4
@@ -45,9 +45,6 @@ static const struct Applet applets[] = {
#ifdef BB_DUTMP //usr/sbin
{"dutmp", cat_more_main},
#endif
-#ifdef BB_FALSE //bin
- {"false", false_main},
-#endif
#ifdef BB_FDFLUSH //bin
{"fdflush", fdflush_main},
#endif
@@ -142,8 +139,9 @@ static const struct Applet applets[] = {
#ifdef BB_TOUCH //usr/bin
{"touch", touch_main},
#endif
-#ifdef BB_TRUE //bin
+#ifdef BB_TRUE_FALSE //bin
{"true", true_main},
+ {"false", false_main},
#endif
#ifdef BB_UMOUNT //bin
{"umount", umount_main},
busybox.c+2 -4
@@ -45,9 +45,6 @@ static const struct Applet applets[] = {
#ifdef BB_DUTMP //usr/sbin
{"dutmp", cat_more_main},
#endif
-#ifdef BB_FALSE //bin
- {"false", false_main},
-#endif
#ifdef BB_FDFLUSH //bin
{"fdflush", fdflush_main},
#endif
@@ -142,8 +139,9 @@ static const struct Applet applets[] = {
#ifdef BB_TOUCH //usr/bin
{"touch", touch_main},
#endif
-#ifdef BB_TRUE //bin
+#ifdef BB_TRUE_FALSE //bin
{"true", true_main},
+ {"false", false_main},
#endif
#ifdef BB_UMOUNT //bin
{"umount", umount_main},
busybox.def.h+1 -2
@@ -14,7 +14,6 @@
#define BB_DF
#define BB_DMESG
//#define BB_DUTMP
-#define BB_FALSE
#define BB_FDFLUSH
#define BB_FIND
#define BB_GREP
@@ -46,7 +45,7 @@
#define BB_SYNC
#define BB_TAR
#define BB_TOUCH
-#define BB_TRUE
+#define BB_TRUE_FALSE
#define BB_UMOUNT
#define BB_UPDATE
#define BB_UTILITY
true_false.c+36 -0
@@ -0,0 +1,36 @@
+/*
+ * Mini true/false implementation for busybox
+ *
+ * Copyright (C) 1998 by Erik Andersen <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ */
+
+#include "internal.h"
+
+
+extern int
+true_main(int argc, char** argv)
+{
+ return( TRUE);
+}
+
+extern int
+false_main(int argc, char** argv)
+{
+ return( FALSE);
+}
+