diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-06-19 20:03:48 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-06-19 20:03:48 +0000 |
commit | bd4a75f6c8e3c821a45f136eb6c21e71aa1450be (patch) | |
tree | fe8cf4622b7973cae5614de2da32a6a7bd24aedb | |
parent | bb245ba0c2238d6a6b19af151249cdb25afdca87 (diff) | |
download | busybox-w32-bd4a75f6c8e3c821a45f136eb6c21e71aa1450be.tar.gz busybox-w32-bd4a75f6c8e3c821a45f136eb6c21e71aa1450be.tar.bz2 busybox-w32-bd4a75f6c8e3c821a45f136eb6c21e71aa1450be.zip |
Finish off the libc5 porting effort. Everything now works with libc5
except for md5sum, which uses the GNU libc addition getline().
-Erik
-rw-r--r-- | busybox.def.h | 4 | ||||
-rw-r--r-- | internal.h | 9 | ||||
-rw-r--r-- | mkfs_minix.c | 2 | ||||
-rw-r--r-- | umount.c | 2 | ||||
-rw-r--r-- | util-linux/mkfs_minix.c | 2 | ||||
-rw-r--r-- | util-linux/umount.c | 2 |
6 files changed, 15 insertions, 6 deletions
diff --git a/busybox.def.h b/busybox.def.h index 3556b1e24..d7756a498 100644 --- a/busybox.def.h +++ b/busybox.def.h | |||
@@ -55,7 +55,7 @@ | |||
55 | #define BB_LSMOD | 55 | #define BB_LSMOD |
56 | #define BB_MAKEDEVS | 56 | #define BB_MAKEDEVS |
57 | #define BB_MATH | 57 | #define BB_MATH |
58 | #define BB_MD5SUM | 58 | //#define BB_MD5SUM |
59 | #define BB_MKDIR | 59 | #define BB_MKDIR |
60 | #define BB_MKFIFO | 60 | #define BB_MKFIFO |
61 | #define BB_MKFS_MINIX | 61 | #define BB_MKFS_MINIX |
@@ -89,7 +89,7 @@ | |||
89 | #define BB_TAR | 89 | #define BB_TAR |
90 | #define BB_TEE | 90 | #define BB_TEE |
91 | #define BB_TEST | 91 | #define BB_TEST |
92 | //#define BB_TELNET | 92 | #define BB_TELNET |
93 | #define BB_TOUCH | 93 | #define BB_TOUCH |
94 | #define BB_TR | 94 | #define BB_TR |
95 | #define BB_TRUE_FALSE | 95 | #define BB_TRUE_FALSE |
diff --git a/internal.h b/internal.h index 697ce4778..4a132abf1 100644 --- a/internal.h +++ b/internal.h | |||
@@ -297,4 +297,13 @@ int nfsmount(const char *spec, const char *node, unsigned long *flags, | |||
297 | #endif | 297 | #endif |
298 | 298 | ||
299 | 299 | ||
300 | #ifndef setbit | ||
301 | /* Bit map related macros -- libc5 doens't provide these... sigh. */ | ||
302 | #define NBBY CHAR_BIT | ||
303 | #define setbit(a,i) ((a)[(i)/NBBY] |= 1<<((i)%NBBY)) | ||
304 | #define clrbit(a,i) ((a)[(i)/NBBY] &= ~(1<<((i)%NBBY))) | ||
305 | #define isset(a,i) ((a)[(i)/NBBY] & (1<<((i)%NBBY))) | ||
306 | #define isclr(a,i) (((a)[(i)/NBBY] & (1<<((i)%NBBY))) == 0) | ||
307 | #endif | ||
308 | |||
300 | #endif /* _BB_INTERNAL_H_ */ | 309 | #endif /* _BB_INTERNAL_H_ */ |
diff --git a/mkfs_minix.c b/mkfs_minix.c index c6ca754ca..670d03a3a 100644 --- a/mkfs_minix.c +++ b/mkfs_minix.c | |||
@@ -797,6 +797,6 @@ goodbye: | |||
797 | } | 797 | } |
798 | mark_good_blocks(); | 798 | mark_good_blocks(); |
799 | write_tables(); | 799 | write_tables(); |
800 | exit( 0); | 800 | return( 0); |
801 | 801 | ||
802 | } | 802 | } |
@@ -24,12 +24,12 @@ | |||
24 | 24 | ||
25 | #include "internal.h" | 25 | #include "internal.h" |
26 | #include <stdio.h> | 26 | #include <stdio.h> |
27 | //#include <sys/mount.h> | ||
28 | #include <mntent.h> | 27 | #include <mntent.h> |
29 | #include <errno.h> | 28 | #include <errno.h> |
30 | #include <linux/unistd.h> | 29 | #include <linux/unistd.h> |
31 | 30 | ||
32 | 31 | ||
32 | //#include <sys/mount.h> | ||
33 | /* Include our own version of sys/mount.h, since libc5 doesn't | 33 | /* Include our own version of sys/mount.h, since libc5 doesn't |
34 | * know about umount2 */ | 34 | * know about umount2 */ |
35 | static _syscall1(int, umount, const char *, special_file); | 35 | static _syscall1(int, umount, const char *, special_file); |
diff --git a/util-linux/mkfs_minix.c b/util-linux/mkfs_minix.c index c6ca754ca..670d03a3a 100644 --- a/util-linux/mkfs_minix.c +++ b/util-linux/mkfs_minix.c | |||
@@ -797,6 +797,6 @@ goodbye: | |||
797 | } | 797 | } |
798 | mark_good_blocks(); | 798 | mark_good_blocks(); |
799 | write_tables(); | 799 | write_tables(); |
800 | exit( 0); | 800 | return( 0); |
801 | 801 | ||
802 | } | 802 | } |
diff --git a/util-linux/umount.c b/util-linux/umount.c index 4aed989fb..61f7f9028 100644 --- a/util-linux/umount.c +++ b/util-linux/umount.c | |||
@@ -24,12 +24,12 @@ | |||
24 | 24 | ||
25 | #include "internal.h" | 25 | #include "internal.h" |
26 | #include <stdio.h> | 26 | #include <stdio.h> |
27 | //#include <sys/mount.h> | ||
28 | #include <mntent.h> | 27 | #include <mntent.h> |
29 | #include <errno.h> | 28 | #include <errno.h> |
30 | #include <linux/unistd.h> | 29 | #include <linux/unistd.h> |
31 | 30 | ||
32 | 31 | ||
32 | //#include <sys/mount.h> | ||
33 | /* Include our own version of sys/mount.h, since libc5 doesn't | 33 | /* Include our own version of sys/mount.h, since libc5 doesn't |
34 | * know about umount2 */ | 34 | * know about umount2 */ |
35 | static _syscall1(int, umount, const char *, special_file); | 35 | static _syscall1(int, umount, const char *, special_file); |