diff options
author | Eric Andersen <andersen@codepoet.org> | 1999-10-19 16:39:10 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 1999-10-19 16:39:10 +0000 |
commit | a3f09076ef5e9a2c26b4d0728cd066bba6c474e4 (patch) | |
tree | fb94f1b8f63af5d4aaf961449ffc1aa05fefe3d7 | |
parent | 3e0fbae15eca940c70075c8eade3f2c735fa34b6 (diff) | |
download | busybox-w32-a3f09076ef5e9a2c26b4d0728cd066bba6c474e4.tar.gz busybox-w32-a3f09076ef5e9a2c26b4d0728cd066bba6c474e4.tar.bz2 busybox-w32-a3f09076ef5e9a2c26b4d0728cd066bba6c474e4.zip |
More stuff
-rw-r--r-- | applets/busybox.c | 6 | ||||
-rw-r--r-- | busybox.c | 6 | ||||
-rw-r--r-- | busybox.def.h | 3 | ||||
-rw-r--r-- | true_false.c | 36 |
4 files changed, 41 insertions, 10 deletions
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[] = { | |||
45 | #ifdef BB_DUTMP //usr/sbin | 45 | #ifdef BB_DUTMP //usr/sbin |
46 | {"dutmp", cat_more_main}, | 46 | {"dutmp", cat_more_main}, |
47 | #endif | 47 | #endif |
48 | #ifdef BB_FALSE //bin | ||
49 | {"false", false_main}, | ||
50 | #endif | ||
51 | #ifdef BB_FDFLUSH //bin | 48 | #ifdef BB_FDFLUSH //bin |
52 | {"fdflush", fdflush_main}, | 49 | {"fdflush", fdflush_main}, |
53 | #endif | 50 | #endif |
@@ -142,8 +139,9 @@ static const struct Applet applets[] = { | |||
142 | #ifdef BB_TOUCH //usr/bin | 139 | #ifdef BB_TOUCH //usr/bin |
143 | {"touch", touch_main}, | 140 | {"touch", touch_main}, |
144 | #endif | 141 | #endif |
145 | #ifdef BB_TRUE //bin | 142 | #ifdef BB_TRUE_FALSE //bin |
146 | {"true", true_main}, | 143 | {"true", true_main}, |
144 | {"false", false_main}, | ||
147 | #endif | 145 | #endif |
148 | #ifdef BB_UMOUNT //bin | 146 | #ifdef BB_UMOUNT //bin |
149 | {"umount", umount_main}, | 147 | {"umount", umount_main}, |
@@ -45,9 +45,6 @@ static const struct Applet applets[] = { | |||
45 | #ifdef BB_DUTMP //usr/sbin | 45 | #ifdef BB_DUTMP //usr/sbin |
46 | {"dutmp", cat_more_main}, | 46 | {"dutmp", cat_more_main}, |
47 | #endif | 47 | #endif |
48 | #ifdef BB_FALSE //bin | ||
49 | {"false", false_main}, | ||
50 | #endif | ||
51 | #ifdef BB_FDFLUSH //bin | 48 | #ifdef BB_FDFLUSH //bin |
52 | {"fdflush", fdflush_main}, | 49 | {"fdflush", fdflush_main}, |
53 | #endif | 50 | #endif |
@@ -142,8 +139,9 @@ static const struct Applet applets[] = { | |||
142 | #ifdef BB_TOUCH //usr/bin | 139 | #ifdef BB_TOUCH //usr/bin |
143 | {"touch", touch_main}, | 140 | {"touch", touch_main}, |
144 | #endif | 141 | #endif |
145 | #ifdef BB_TRUE //bin | 142 | #ifdef BB_TRUE_FALSE //bin |
146 | {"true", true_main}, | 143 | {"true", true_main}, |
144 | {"false", false_main}, | ||
147 | #endif | 145 | #endif |
148 | #ifdef BB_UMOUNT //bin | 146 | #ifdef BB_UMOUNT //bin |
149 | {"umount", umount_main}, | 147 | {"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 @@ | |||
14 | #define BB_DF | 14 | #define BB_DF |
15 | #define BB_DMESG | 15 | #define BB_DMESG |
16 | //#define BB_DUTMP | 16 | //#define BB_DUTMP |
17 | #define BB_FALSE | ||
18 | #define BB_FDFLUSH | 17 | #define BB_FDFLUSH |
19 | #define BB_FIND | 18 | #define BB_FIND |
20 | #define BB_GREP | 19 | #define BB_GREP |
@@ -46,7 +45,7 @@ | |||
46 | #define BB_SYNC | 45 | #define BB_SYNC |
47 | #define BB_TAR | 46 | #define BB_TAR |
48 | #define BB_TOUCH | 47 | #define BB_TOUCH |
49 | #define BB_TRUE | 48 | #define BB_TRUE_FALSE |
50 | #define BB_UMOUNT | 49 | #define BB_UMOUNT |
51 | #define BB_UPDATE | 50 | #define BB_UPDATE |
52 | #define BB_UTILITY | 51 | #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 @@ | |||
1 | /* | ||
2 | * Mini true/false implementation for busybox | ||
3 | * | ||
4 | * Copyright (C) 1998 by Erik Andersen <andersee@debian.org> | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
14 | * General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
19 | * | ||
20 | */ | ||
21 | |||
22 | #include "internal.h" | ||
23 | |||
24 | |||
25 | extern int | ||
26 | true_main(int argc, char** argv) | ||
27 | { | ||
28 | return( TRUE); | ||
29 | } | ||
30 | |||
31 | extern int | ||
32 | false_main(int argc, char** argv) | ||
33 | { | ||
34 | return( FALSE); | ||
35 | } | ||
36 | |||