More stuff
This commit is contained in:
parent
3e0fbae15e
commit
a3f09076ef
@ -45,9 +45,6 @@ static const struct Applet applets[] = {
|
|||||||
#ifdef BB_DUTMP //usr/sbin
|
#ifdef BB_DUTMP //usr/sbin
|
||||||
{"dutmp", cat_more_main},
|
{"dutmp", cat_more_main},
|
||||||
#endif
|
#endif
|
||||||
#ifdef BB_FALSE //bin
|
|
||||||
{"false", false_main},
|
|
||||||
#endif
|
|
||||||
#ifdef BB_FDFLUSH //bin
|
#ifdef BB_FDFLUSH //bin
|
||||||
{"fdflush", fdflush_main},
|
{"fdflush", fdflush_main},
|
||||||
#endif
|
#endif
|
||||||
@ -142,8 +139,9 @@ static const struct Applet applets[] = {
|
|||||||
#ifdef BB_TOUCH //usr/bin
|
#ifdef BB_TOUCH //usr/bin
|
||||||
{"touch", touch_main},
|
{"touch", touch_main},
|
||||||
#endif
|
#endif
|
||||||
#ifdef BB_TRUE //bin
|
#ifdef BB_TRUE_FALSE //bin
|
||||||
{"true", true_main},
|
{"true", true_main},
|
||||||
|
{"false", false_main},
|
||||||
#endif
|
#endif
|
||||||
#ifdef BB_UMOUNT //bin
|
#ifdef BB_UMOUNT //bin
|
||||||
{"umount", umount_main},
|
{"umount", umount_main},
|
||||||
|
@ -45,9 +45,6 @@ static const struct Applet applets[] = {
|
|||||||
#ifdef BB_DUTMP //usr/sbin
|
#ifdef BB_DUTMP //usr/sbin
|
||||||
{"dutmp", cat_more_main},
|
{"dutmp", cat_more_main},
|
||||||
#endif
|
#endif
|
||||||
#ifdef BB_FALSE //bin
|
|
||||||
{"false", false_main},
|
|
||||||
#endif
|
|
||||||
#ifdef BB_FDFLUSH //bin
|
#ifdef BB_FDFLUSH //bin
|
||||||
{"fdflush", fdflush_main},
|
{"fdflush", fdflush_main},
|
||||||
#endif
|
#endif
|
||||||
@ -142,8 +139,9 @@ static const struct Applet applets[] = {
|
|||||||
#ifdef BB_TOUCH //usr/bin
|
#ifdef BB_TOUCH //usr/bin
|
||||||
{"touch", touch_main},
|
{"touch", touch_main},
|
||||||
#endif
|
#endif
|
||||||
#ifdef BB_TRUE //bin
|
#ifdef BB_TRUE_FALSE //bin
|
||||||
{"true", true_main},
|
{"true", true_main},
|
||||||
|
{"false", false_main},
|
||||||
#endif
|
#endif
|
||||||
#ifdef BB_UMOUNT //bin
|
#ifdef BB_UMOUNT //bin
|
||||||
{"umount", umount_main},
|
{"umount", umount_main},
|
||||||
|
@ -14,7 +14,6 @@
|
|||||||
#define BB_DF
|
#define BB_DF
|
||||||
#define BB_DMESG
|
#define BB_DMESG
|
||||||
//#define BB_DUTMP
|
//#define BB_DUTMP
|
||||||
#define BB_FALSE
|
|
||||||
#define BB_FDFLUSH
|
#define BB_FDFLUSH
|
||||||
#define BB_FIND
|
#define BB_FIND
|
||||||
#define BB_GREP
|
#define BB_GREP
|
||||||
@ -46,7 +45,7 @@
|
|||||||
#define BB_SYNC
|
#define BB_SYNC
|
||||||
#define BB_TAR
|
#define BB_TAR
|
||||||
#define BB_TOUCH
|
#define BB_TOUCH
|
||||||
#define BB_TRUE
|
#define BB_TRUE_FALSE
|
||||||
#define BB_UMOUNT
|
#define BB_UMOUNT
|
||||||
#define BB_UPDATE
|
#define BB_UPDATE
|
||||||
#define BB_UTILITY
|
#define BB_UTILITY
|
||||||
|
36
true_false.c
Normal file
36
true_false.c
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
/*
|
||||||
|
* Mini true/false implementation for busybox
|
||||||
|
*
|
||||||
|
* Copyright (C) 1998 by Erik Andersen <andersee@debian.org>
|
||||||
|
*
|
||||||
|
* 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);
|
||||||
|
}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user