diff options
author | Erik Andersen <andersen@codepoet.org> | 2000-04-21 21:53:58 +0000 |
---|---|---|
committer | Erik Andersen <andersen@codepoet.org> | 2000-04-21 21:53:58 +0000 |
commit | e90f4045afbcdcae81c417fffa635b3a5ab9166b (patch) | |
tree | 0f515205daab08e90ee59594b76a8964551e7459 | |
parent | 1d1d95051a288b6bf64498aac9fb20047f384b7d (diff) | |
download | busybox-w32-e90f4045afbcdcae81c417fffa635b3a5ab9166b.tar.gz busybox-w32-e90f4045afbcdcae81c417fffa635b3a5ab9166b.tar.bz2 busybox-w32-e90f4045afbcdcae81c417fffa635b3a5ab9166b.zip |
Some more updates and such...
-Erik
-rw-r--r-- | Makefile | 9 | ||||
-rw-r--r-- | busybox.def.h | 6 | ||||
-rw-r--r-- | busybox.spec | 15 | ||||
-rw-r--r-- | docs/busybox.pod | 8 | ||||
-rw-r--r-- | examples/busybox.spec | 15 | ||||
-rw-r--r-- | more.c | 2 | ||||
-rw-r--r-- | tests/cp_tests.mk | 55 | ||||
-rw-r--r-- | util-linux/more.c | 2 |
8 files changed, 66 insertions, 46 deletions
@@ -19,7 +19,7 @@ | |||
19 | # | 19 | # |
20 | 20 | ||
21 | PROG := busybox | 21 | PROG := busybox |
22 | VERSION := 0.43 | 22 | VERSION := 0.44 |
23 | BUILDTIME := $(shell TZ=UTC date --utc "+%Y.%m.%d-%H:%M%z") | 23 | BUILDTIME := $(shell TZ=UTC date --utc "+%Y.%m.%d-%H:%M%z") |
24 | export VERSION | 24 | export VERSION |
25 | 25 | ||
@@ -31,8 +31,9 @@ DODEBUG = false | |||
31 | # If you want a static binary, turn this on. | 31 | # If you want a static binary, turn this on. |
32 | DOSTATIC = false | 32 | DOSTATIC = false |
33 | 33 | ||
34 | # This will choke on a non-debian system | 34 | # Figure out what arch we are on (not used at the moment) |
35 | ARCH =`uname -m | sed -e 's/i.86/i386/' | sed -e 's/sparc.*/sparc/'` | 35 | ARCH := $(shell uname -m | sed -e 's/i.86/i386/' | sed -e 's/sparc.*/sparc/') |
36 | |||
36 | 37 | ||
37 | CC = gcc | 38 | CC = gcc |
38 | 39 | ||
@@ -100,7 +101,7 @@ all: busybox busybox.links docs | |||
100 | busybox: $(OBJECTS) | 101 | busybox: $(OBJECTS) |
101 | $(CC) $(LDFLAGS) -o $@ $^ $(LIBRARIES) | 102 | $(CC) $(LDFLAGS) -o $@ $^ $(LIBRARIES) |
102 | $(STRIP) | 103 | $(STRIP) |
103 | 104 | ||
104 | docs: | 105 | docs: |
105 | $(MAKE) -C docs | 106 | $(MAKE) -C docs |
106 | 107 | ||
diff --git a/busybox.def.h b/busybox.def.h index 786b1a5d1..77ee5b02a 100644 --- a/busybox.def.h +++ b/busybox.def.h | |||
@@ -231,6 +231,12 @@ | |||
231 | #endif | 231 | #endif |
232 | #endif | 232 | #endif |
233 | // | 233 | // |
234 | #ifdef BB_INIT | ||
235 | #ifndef BB_FEATURE_REMOUNT | ||
236 | #define BB_FEATURE_REMOUNT | ||
237 | #endif | ||
238 | #endif | ||
239 | // | ||
234 | #ifdef BB_FEATURE_LINUXRC | 240 | #ifdef BB_FEATURE_LINUXRC |
235 | #ifndef BB_INIT | 241 | #ifndef BB_INIT |
236 | #define BB_INIT | 242 | #define BB_INIT |
diff --git a/busybox.spec b/busybox.spec index dc03da004..33c03621d 100644 --- a/busybox.spec +++ b/busybox.spec | |||
@@ -1,5 +1,5 @@ | |||
1 | Name: busybox | 1 | Name: busybox |
2 | Version: 0.43 | 2 | Version: 0.44 |
3 | Release: 1 | 3 | Release: 1 |
4 | Group: System/Utilities | 4 | Group: System/Utilities |
5 | Summary: BusyBox is a tiny suite of Unix utilities in a multi-call binary. | 5 | Summary: BusyBox is a tiny suite of Unix utilities in a multi-call binary. |
@@ -10,12 +10,13 @@ Buildroot: /tmp/%{Name}-%{Version} | |||
10 | Source: %{Name}-%{Version}.tar.gz | 10 | Source: %{Name}-%{Version}.tar.gz |
11 | 11 | ||
12 | %Description | 12 | %Description |
13 | BusyBox is a suite of "tiny" Unix utilities in a multi-call binary. It | 13 | BusyBox combines tiny versions of many common UNIX utilities into a single |
14 | provides a pretty complete POSIX environment in a very small package. | 14 | small executable. It provides minimalist replacements for most of the utilities |
15 | Just add a kernel, "ash" (Keith Almquists tiny Bourne shell clone), and | 15 | you usually find in fileutils, shellutils, findutils, textutils, grep, gzip, |
16 | an editor such as "elvis-tiny" or "ae", and you have a full system. This | 16 | tar, etc. BusyBox provides a fairly complete POSIX environment for any small |
17 | is makes an excellent environment for a "rescue" disk or any small or | 17 | or emdedded system. The utilities in BusyBox generally have fewer options then |
18 | embedded system. | 18 | their full featured GNU cousins; however, the options that are provided behave |
19 | very much like their GNU counterparts. | ||
19 | 20 | ||
20 | %Prep | 21 | %Prep |
21 | %setup -q -n %{Name}-%{Version} | 22 | %setup -q -n %{Name}-%{Version} |
diff --git a/docs/busybox.pod b/docs/busybox.pod index e6a75b6a0..da890458c 100644 --- a/docs/busybox.pod +++ b/docs/busybox.pod | |||
@@ -16,9 +16,9 @@ BusyBox combines tiny versions of many common UNIX utilities into a single | |||
16 | small executable. It provides minimalist replacements for most of the utilities | 16 | small executable. It provides minimalist replacements for most of the utilities |
17 | you usually find in fileutils, shellutils, findutils, textutils, grep, gzip, | 17 | you usually find in fileutils, shellutils, findutils, textutils, grep, gzip, |
18 | tar, etc. BusyBox provides a fairly complete POSIX environment for any small | 18 | tar, etc. BusyBox provides a fairly complete POSIX environment for any small |
19 | or emdedded system. While the number of options for the utilities BusyBox | 19 | or emdedded system. The utilities in BusyBox generally have fewer options then |
20 | provides have generally been reduced, the provided options behave very much | 20 | their full featured GNU cousins; however, the options that are included provide |
21 | like they do in their full featured GNU cousins. | 21 | the expected functionality and behave very much like their GNU counterparts. |
22 | 22 | ||
23 | BusyBox has been written with size-optimization and limited resources in mind. | 23 | BusyBox has been written with size-optimization and limited resources in mind. |
24 | It is also extremely modular so you can easily include or exclude commands (or | 24 | It is also extremely modular so you can easily include or exclude commands (or |
@@ -1816,4 +1816,4 @@ Enrique Zanardi <ezanardi@ull.es> | |||
1816 | 1816 | ||
1817 | =cut | 1817 | =cut |
1818 | 1818 | ||
1819 | # $Id: busybox.pod,v 1.20 2000/04/21 01:23:36 erik Exp $ | 1819 | # $Id: busybox.pod,v 1.21 2000/04/21 21:53:58 erik Exp $ |
diff --git a/examples/busybox.spec b/examples/busybox.spec index dc03da004..33c03621d 100644 --- a/examples/busybox.spec +++ b/examples/busybox.spec | |||
@@ -1,5 +1,5 @@ | |||
1 | Name: busybox | 1 | Name: busybox |
2 | Version: 0.43 | 2 | Version: 0.44 |
3 | Release: 1 | 3 | Release: 1 |
4 | Group: System/Utilities | 4 | Group: System/Utilities |
5 | Summary: BusyBox is a tiny suite of Unix utilities in a multi-call binary. | 5 | Summary: BusyBox is a tiny suite of Unix utilities in a multi-call binary. |
@@ -10,12 +10,13 @@ Buildroot: /tmp/%{Name}-%{Version} | |||
10 | Source: %{Name}-%{Version}.tar.gz | 10 | Source: %{Name}-%{Version}.tar.gz |
11 | 11 | ||
12 | %Description | 12 | %Description |
13 | BusyBox is a suite of "tiny" Unix utilities in a multi-call binary. It | 13 | BusyBox combines tiny versions of many common UNIX utilities into a single |
14 | provides a pretty complete POSIX environment in a very small package. | 14 | small executable. It provides minimalist replacements for most of the utilities |
15 | Just add a kernel, "ash" (Keith Almquists tiny Bourne shell clone), and | 15 | you usually find in fileutils, shellutils, findutils, textutils, grep, gzip, |
16 | an editor such as "elvis-tiny" or "ae", and you have a full system. This | 16 | tar, etc. BusyBox provides a fairly complete POSIX environment for any small |
17 | is makes an excellent environment for a "rescue" disk or any small or | 17 | or emdedded system. The utilities in BusyBox generally have fewer options then |
18 | embedded system. | 18 | their full featured GNU cousins; however, the options that are provided behave |
19 | very much like their GNU counterparts. | ||
19 | 20 | ||
20 | %Prep | 21 | %Prep |
21 | %setup -q -n %{Name}-%{Version} | 22 | %setup -q -n %{Name}-%{Version} |
@@ -109,6 +109,8 @@ extern int more_main(int argc, char **argv) | |||
109 | cin = fopen("/dev/console", "r"); | 109 | cin = fopen("/dev/console", "r"); |
110 | getTermSettings(fileno(cin), &initial_settings); | 110 | getTermSettings(fileno(cin), &initial_settings); |
111 | new_settings = initial_settings; | 111 | new_settings = initial_settings; |
112 | new_settings.c_cc[VMIN] = 1; | ||
113 | new_settings.c_cc[VTIME] = 0; | ||
112 | new_settings.c_lflag &= ~ICANON; | 114 | new_settings.c_lflag &= ~ICANON; |
113 | new_settings.c_lflag &= ~ECHO; | 115 | new_settings.c_lflag &= ~ECHO; |
114 | setTermSettings(fileno(cin), &new_settings); | 116 | setTermSettings(fileno(cin), &new_settings); |
diff --git a/tests/cp_tests.mk b/tests/cp_tests.mk index e79f2b38b..2082d7386 100644 --- a/tests/cp_tests.mk +++ b/tests/cp_tests.mk | |||
@@ -20,12 +20,14 @@ cp_tests: cp_clean cp | |||
20 | @echo "Some tests might show timestamp differences that are Ok."; | 20 | @echo "Some tests might show timestamp differences that are Ok."; |
21 | 21 | ||
22 | @echo; | 22 | @echo; |
23 | ${BCP} || true; | 23 | @echo Verify that busybox cp exists; |
24 | @echo ------------------------------; | ||
25 | [ -x ${BCP} ] || exit 0 | ||
24 | 26 | ||
25 | @echo; | 27 | @echo; |
26 | mkdir cp_tests; | 28 | mkdir cp_tests; |
27 | 29 | ||
28 | # Copy a file to a copy of the file | 30 | @echo Copy a file to a copy of the file; |
29 | @echo ------------------------------; | 31 | @echo ------------------------------; |
30 | cd cp_tests; \ | 32 | cd cp_tests; \ |
31 | echo A file > afile; \ | 33 | echo A file > afile; \ |
@@ -50,8 +52,8 @@ cp_tests: cp_clean cp | |||
50 | @echo; | 52 | @echo; |
51 | rm -rf cp_tests/*; | 53 | rm -rf cp_tests/*; |
52 | 54 | ||
53 | # Copy a file pointed to by a symlink | 55 | @echo; echo Copy a file pointed to by a symlink; |
54 | @echo; echo ------------------------------; | 56 | @echo ------------------------------; |
55 | cd cp_tests; \ | 57 | cd cp_tests; \ |
56 | mkdir here there; \ | 58 | mkdir here there; \ |
57 | echo A file > afile; \ | 59 | echo A file > afile; \ |
@@ -82,21 +84,21 @@ cp_tests: cp_clean cp | |||
82 | @echo; | 84 | @echo; |
83 | rm -rf cp_tests/* | 85 | rm -rf cp_tests/* |
84 | 86 | ||
85 | # Copy a symlink, useing the -a switch. | 87 | @echo; echo Copy a symlink, useing the -a switch.; |
86 | @echo; echo ------------------------------; | 88 | @echo ------------------------------; |
87 | cd cp_tests; \ | 89 | cd cp_tests; \ |
88 | echo A file > afile; \ | 90 | echo A file > afile; \ |
89 | mkdir here there; \ | 91 | mkdir here there; \ |
90 | cd here; \ | 92 | cd here; \ |
91 | ln -s ../afile . | 93 | ln -s ../afile . |
92 | 94 | ||
93 | cd cp_test; \ | 95 | cd cp_tests; \ |
94 | ls -lR . > ../cp_a_symlink.gnu; \ | 96 | ls -lR . > ../cp_a_symlink.gnu; \ |
95 | ${GCP} -a here/afile there; \ | 97 | ${GCP} -a here/afile there; \ |
96 | ls -lR . >> ../cp_a_symlink.gnu; | 98 | ls -lR . >> ../cp_a_symlink.gnu; |
97 | 99 | ||
98 | @echo; | 100 | @echo; |
99 | rm -f cp_tests/there/*; | 101 | rm -rf cp_tests/there/*; |
100 | 102 | ||
101 | sleep 1; | 103 | sleep 1; |
102 | 104 | ||
@@ -111,10 +113,10 @@ cp_tests: cp_clean cp | |||
111 | diff -u cp_a_symlink.gnu cp_a_symlink.bb; | 113 | diff -u cp_a_symlink.gnu cp_a_symlink.bb; |
112 | 114 | ||
113 | @echo; | 115 | @echo; |
114 | rm -f cp_tests/*; | 116 | rm -rf cp_tests/*; |
115 | 117 | ||
116 | # Copy a directory into another directory with the -a switch | 118 | @echo; echo Copy a directory into another directory with the -a switch; |
117 | @echo; echo ------------------------------; | 119 | @echo ------------------------------; |
118 | cd cp_tests; \ | 120 | cd cp_tests; \ |
119 | mkdir here there; \ | 121 | mkdir here there; \ |
120 | echo A file > here/afile; \ | 122 | echo A file > here/afile; \ |
@@ -145,8 +147,9 @@ cp_tests: cp_clean cp | |||
145 | @echo; | 147 | @echo; |
146 | rm -rf cp_tests/*; | 148 | rm -rf cp_tests/*; |
147 | 149 | ||
148 | # Copy a set of files to a directory. | 150 | # Copy a set of files to a directory. |
149 | @echo; echo ------------------------------; | 151 | @echo; echo Copy a set of files to a directory.; |
152 | @echo ------------------------------; | ||
150 | cd cp_tests; \ | 153 | cd cp_tests; \ |
151 | echo A file number one > afile1; \ | 154 | echo A file number one > afile1; \ |
152 | echo A file number two, blah. > afile2; \ | 155 | echo A file number two, blah. > afile2; \ |
@@ -171,8 +174,9 @@ cp_tests: cp_clean cp | |||
171 | @echo; | 174 | @echo; |
172 | rm -rf cp_tests/*; | 175 | rm -rf cp_tests/*; |
173 | 176 | ||
174 | # Copy a set of files to a directory with the -d switch. | 177 | # Copy a set of files to a directory with the -d switch. |
175 | @echo; echo ------------------------------; | 178 | @echo; echo Copy a set of files to a directory with the -d switch.; |
179 | @echo ------------------------------; | ||
176 | cd cp_tests; \ | 180 | cd cp_tests; \ |
177 | echo A file number one > afile1; \ | 181 | echo A file number one > afile1; \ |
178 | echo A file number two, blah. > afile2; \ | 182 | echo A file number two, blah. > afile2; \ |
@@ -199,8 +203,9 @@ cp_tests: cp_clean cp | |||
199 | @echo; | 203 | @echo; |
200 | rm -rf cp_tests/{afile{1,2},symlink1,there1}; | 204 | rm -rf cp_tests/{afile{1,2},symlink1,there1}; |
201 | 205 | ||
202 | # Copy a set of files to a directory with the -p switch. | 206 | # Copy a set of files to a directory with the -p switch. |
203 | @echo; echo ------------------------------; | 207 | @echo; echo Copy a set of files to a directory with the -p switch.; |
208 | @echo ------------------------------; | ||
204 | cd cp_tests; \ | 209 | cd cp_tests; \ |
205 | echo A file number one > afile1; \ | 210 | echo A file number one > afile1; \ |
206 | echo A file number two, blah. > afile2; \ | 211 | echo A file number two, blah. > afile2; \ |
@@ -229,8 +234,8 @@ cp_tests: cp_clean cp | |||
229 | @echo; | 234 | @echo; |
230 | rm -rf cp_tests/{afile{1,2},symlink1,there1}; | 235 | rm -rf cp_tests/{afile{1,2},symlink1,there1}; |
231 | 236 | ||
232 | # Copy a set of files to a directory with -p and -d switches. | 237 | @echo; echo Copy a set of files to a directory with -p and -d switches. |
233 | @echo; echo ------------------------------; | 238 | @echo ------------------------------; |
234 | cd cp_tests; \ | 239 | cd cp_tests; \ |
235 | echo A file number one > afile1; \ | 240 | echo A file number one > afile1; \ |
236 | echo A file number two, blah. > afile2; \ | 241 | echo A file number two, blah. > afile2; \ |
@@ -259,8 +264,8 @@ cp_tests: cp_clean cp | |||
259 | @echo; | 264 | @echo; |
260 | rm -rf cp_tests/{afile{1,2},symlink1,there1}; | 265 | rm -rf cp_tests/{afile{1,2},symlink1,there1}; |
261 | 266 | ||
262 | # Copy a directory into another directory with the -a switch. | 267 | @echo; echo Copy a directory into another directory with the -a switch. |
263 | @echo; echo ------------------------------; | 268 | @echo ------------------------------; |
264 | cd cp_tests; \ | 269 | cd cp_tests; \ |
265 | mkdir dir{a,b}; \ | 270 | mkdir dir{a,b}; \ |
266 | echo A file > dira/afile; \ | 271 | echo A file > dira/afile; \ |
@@ -293,8 +298,9 @@ cp_tests: cp_clean cp | |||
293 | @echo; | 298 | @echo; |
294 | rm -rf cp_tests/dir{a,b}; | 299 | rm -rf cp_tests/dir{a,b}; |
295 | 300 | ||
296 | # Copy a directory to another directory, without the -a switch. | 301 | # Copy a directory to another directory, without the -a switch. |
297 | @echo; echo ------------------------------; | 302 | @echo; echo Copy a directory to another directory, without the -a switch. |
303 | @echo ------------------------------; | ||
298 | @echo There should be an error message about cannot cp a dir to a subdir of itself. | 304 | @echo There should be an error message about cannot cp a dir to a subdir of itself. |
299 | cd cp_tests; \ | 305 | cd cp_tests; \ |
300 | touch a b c; \ | 306 | touch a b c; \ |
@@ -314,7 +320,8 @@ cp_tests: cp_clean cp | |||
314 | 320 | ||
315 | @echo; | 321 | @echo; |
316 | diff -u cp_a_star_adir.gnu cp_a_star_adir.bb; | 322 | diff -u cp_a_star_adir.gnu cp_a_star_adir.bb; |
317 | 323 | ||
324 | # Done | ||
318 | @echo; | 325 | @echo; |
319 | rm -rf cp_tests; | 326 | rm -rf cp_tests; |
320 | @echo; echo Done. | 327 | @echo; echo Done. |
diff --git a/util-linux/more.c b/util-linux/more.c index 20aa37095..909ed286b 100644 --- a/util-linux/more.c +++ b/util-linux/more.c | |||
@@ -109,6 +109,8 @@ extern int more_main(int argc, char **argv) | |||
109 | cin = fopen("/dev/console", "r"); | 109 | cin = fopen("/dev/console", "r"); |
110 | getTermSettings(fileno(cin), &initial_settings); | 110 | getTermSettings(fileno(cin), &initial_settings); |
111 | new_settings = initial_settings; | 111 | new_settings = initial_settings; |
112 | new_settings.c_cc[VMIN] = 1; | ||
113 | new_settings.c_cc[VTIME] = 0; | ||
112 | new_settings.c_lflag &= ~ICANON; | 114 | new_settings.c_lflag &= ~ICANON; |
113 | new_settings.c_lflag &= ~ECHO; | 115 | new_settings.c_lflag &= ~ECHO; |
114 | setTermSettings(fileno(cin), &new_settings); | 116 | setTermSettings(fileno(cin), &new_settings); |