From a3f09076ef5e9a2c26b4d0728cd066bba6c474e4 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 19 Oct 1999 16:39:10 +0000 Subject: [PATCH] More stuff --- applets/busybox.c | 6 ++---- busybox.c | 6 ++---- busybox.def.h | 3 +-- true_false.c | 36 ++++++++++++++++++++++++++++++++++++ 4 files changed, 41 insertions(+), 10 deletions(-) create mode 100644 true_false.c diff --git a/applets/busybox.c b/applets/busybox.c index cb0e2a728..3af98407d 100644 --- a/applets/busybox.c +++ b/applets/busybox.c @@ -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}, diff --git a/busybox.c b/busybox.c index cb0e2a728..3af98407d 100644 --- a/busybox.c +++ b/busybox.c @@ -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}, diff --git a/busybox.def.h b/busybox.def.h index e37916845..68d1ec021 100644 --- a/busybox.def.h +++ b/busybox.def.h @@ -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 diff --git a/true_false.c b/true_false.c new file mode 100644 index 000000000..e0ea95946 --- /dev/null +++ b/true_false.c @@ -0,0 +1,36 @@ +/* + * Mini true/false implementation for busybox + * + * Copyright (C) 1998 by Erik Andersen + * + * 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); +} + -- 2.25.1