Finish off the libc5 porting effort. Everything now works with libc5
except for md5sum, which uses the GNU libc addition getline(). -Erik
This commit is contained in:
parent
bb245ba0c2
commit
bd4a75f6c8
@ -55,7 +55,7 @@
|
|||||||
#define BB_LSMOD
|
#define BB_LSMOD
|
||||||
#define BB_MAKEDEVS
|
#define BB_MAKEDEVS
|
||||||
#define BB_MATH
|
#define BB_MATH
|
||||||
#define BB_MD5SUM
|
//#define BB_MD5SUM
|
||||||
#define BB_MKDIR
|
#define BB_MKDIR
|
||||||
#define BB_MKFIFO
|
#define BB_MKFIFO
|
||||||
#define BB_MKFS_MINIX
|
#define BB_MKFS_MINIX
|
||||||
@ -89,7 +89,7 @@
|
|||||||
#define BB_TAR
|
#define BB_TAR
|
||||||
#define BB_TEE
|
#define BB_TEE
|
||||||
#define BB_TEST
|
#define BB_TEST
|
||||||
//#define BB_TELNET
|
#define BB_TELNET
|
||||||
#define BB_TOUCH
|
#define BB_TOUCH
|
||||||
#define BB_TR
|
#define BB_TR
|
||||||
#define BB_TRUE_FALSE
|
#define BB_TRUE_FALSE
|
||||||
|
@ -297,4 +297,13 @@ int nfsmount(const char *spec, const char *node, unsigned long *flags,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef setbit
|
||||||
|
/* Bit map related macros -- libc5 doens't provide these... sigh. */
|
||||||
|
#define NBBY CHAR_BIT
|
||||||
|
#define setbit(a,i) ((a)[(i)/NBBY] |= 1<<((i)%NBBY))
|
||||||
|
#define clrbit(a,i) ((a)[(i)/NBBY] &= ~(1<<((i)%NBBY)))
|
||||||
|
#define isset(a,i) ((a)[(i)/NBBY] & (1<<((i)%NBBY)))
|
||||||
|
#define isclr(a,i) (((a)[(i)/NBBY] & (1<<((i)%NBBY))) == 0)
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* _BB_INTERNAL_H_ */
|
#endif /* _BB_INTERNAL_H_ */
|
||||||
|
@ -797,6 +797,6 @@ goodbye:
|
|||||||
}
|
}
|
||||||
mark_good_blocks();
|
mark_good_blocks();
|
||||||
write_tables();
|
write_tables();
|
||||||
exit( 0);
|
return( 0);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
2
umount.c
2
umount.c
@ -24,12 +24,12 @@
|
|||||||
|
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
//#include <sys/mount.h>
|
|
||||||
#include <mntent.h>
|
#include <mntent.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <linux/unistd.h>
|
#include <linux/unistd.h>
|
||||||
|
|
||||||
|
|
||||||
|
//#include <sys/mount.h>
|
||||||
/* Include our own version of sys/mount.h, since libc5 doesn't
|
/* Include our own version of sys/mount.h, since libc5 doesn't
|
||||||
* know about umount2 */
|
* know about umount2 */
|
||||||
static _syscall1(int, umount, const char *, special_file);
|
static _syscall1(int, umount, const char *, special_file);
|
||||||
|
@ -797,6 +797,6 @@ goodbye:
|
|||||||
}
|
}
|
||||||
mark_good_blocks();
|
mark_good_blocks();
|
||||||
write_tables();
|
write_tables();
|
||||||
exit( 0);
|
return( 0);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -24,12 +24,12 @@
|
|||||||
|
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
//#include <sys/mount.h>
|
|
||||||
#include <mntent.h>
|
#include <mntent.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <linux/unistd.h>
|
#include <linux/unistd.h>
|
||||||
|
|
||||||
|
|
||||||
|
//#include <sys/mount.h>
|
||||||
/* Include our own version of sys/mount.h, since libc5 doesn't
|
/* Include our own version of sys/mount.h, since libc5 doesn't
|
||||||
* know about umount2 */
|
* know about umount2 */
|
||||||
static _syscall1(int, umount, const char *, special_file);
|
static _syscall1(int, umount, const char *, special_file);
|
||||||
|
Loading…
Reference in New Issue
Block a user