From 85e5e72bc1acd9d58c11bde6e14c8270cd9f169f Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 22 Jul 2003 08:56:55 +0000 Subject: Remove remaining libc5 support code --- miscutils/adjtimex.c | 7 ------- miscutils/dutmp.c | 17 ----------------- miscutils/update.c | 7 +------ 3 files changed, 1 insertion(+), 30 deletions(-) (limited to 'miscutils') diff --git a/miscutils/adjtimex.c b/miscutils/adjtimex.c index d541848..e941f6b 100644 --- a/miscutils/adjtimex.c +++ b/miscutils/adjtimex.c @@ -44,14 +44,7 @@ #include #include #include - -#if __GNU_LIBRARY__ < 5 -#include -extern int adjtimex(struct timex *buf); -#else #include -#endif - #include "busybox.h" static struct {int bit; char *name;} statlist[] = { diff --git a/miscutils/dutmp.c b/miscutils/dutmp.c index 113f850..86d7ce4 100644 --- a/miscutils/dutmp.c +++ b/miscutils/dutmp.c @@ -28,13 +28,9 @@ * Do what we can while still keeping this reasonably small. * Note: We are assuming the ut_id[] size is fixed at 4. */ -#if __GNU_LIBRARY__ < 5 -#warning the format string needs to be changed -#else #if (UT_LINESIZE != 32) || (UT_NAMESIZE != 32) || (UT_HOSTSIZE != 256) #error struct utmp member char[] size(s) have changed! #endif -#endif extern int dutmp_main(int argc, char **argv) { @@ -57,18 +53,6 @@ extern int dutmp_main(int argc, char **argv) bb_perror_msg_and_die("short read"); } - /* Kludge around the fact that the binary format for utmp has changed. */ -#if __GNU_LIBRARY__ < 5 - /* Linux libc5 */ - - bb_printf("%d|%d|%s|%s|%s|%s|%s|%lx\n", - ut.ut_type, ut.ut_pid, ut.ut_line, - ut.ut_id, ut.ut_user, ut.ut_host, - ctime(&(ut.ut_time)), - (long)ut.ut_addr); -#else - /* Glibc, uClibc, etc. */ - bb_printf("%d|%d|%.32s|%.4s|%.32s|%.256s|%d|%d|%ld|%ld|%ld|%x\n", ut.ut_type, ut.ut_pid, ut.ut_line, ut.ut_id, ut.ut_user, ut.ut_host, @@ -76,7 +60,6 @@ extern int dutmp_main(int argc, char **argv) ut.ut_session, ut.ut_tv.tv_sec, ut.ut_tv.tv_usec, ut.ut_addr); -#endif } bb_fflush_stdout_and_exit(EXIT_SUCCESS); diff --git a/miscutils/update.c b/miscutils/update.c index 48ea02d..c51f421 100644 --- a/miscutils/update.c +++ b/miscutils/update.c @@ -32,12 +32,7 @@ #include #include /* for getopt() */ #include - -#if __GNU_LIBRARY__ > 5 - #include -#else - extern int bdflush (int func, long int data); -#endif +#include #include "busybox.h" -- cgit v1.1