From ec455953008d08f588fe0c0bd9df4278cd188315 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 14 Feb 2001 08:11:27 +0000 Subject: Add in ifconfig and route --- include/applets.h | 6 ++++++ include/busybox.h | 1 + 2 files changed, 7 insertions(+) (limited to 'include') diff --git a/include/applets.h b/include/applets.h index 4bd8b79e4..9aa65dac0 100644 --- a/include/applets.h +++ b/include/applets.h @@ -158,6 +158,9 @@ const struct BB_applet applets[] = { #ifdef BB_ID APPLET("id", id_main, _BB_DIR_USR_BIN, id_usage) #endif +#ifdef BB_IFCONFIG + APPLET("ifconfig", ifconfig_main, _BB_DIR_SBIN, ifconfig_usage) +#endif #ifdef BB_INIT APPLET_NOUSAGE("init", init_main, _BB_DIR_SBIN) #endif @@ -284,6 +287,9 @@ const struct BB_applet applets[] = { #ifdef BB_RMMOD APPLET("rmmod", rmmod_main, _BB_DIR_SBIN, rmmod_usage) #endif +#ifdef BB_ROUTE + APPLET("route", route_main, _BB_DIR_USR_BIN, route_usage) +#endif #ifdef BB_RPMUNPACK APPLET("rpmunpack", rpmunpack_main, _BB_DIR_USR_BIN, rpmunpack_usage) #endif diff --git a/include/busybox.h b/include/busybox.h index 101e65989..39580b548 100644 --- a/include/busybox.h +++ b/include/busybox.h @@ -161,6 +161,7 @@ extern void *xcalloc(size_t nmemb, size_t size); extern char *xstrdup (const char *s); #endif extern char *xstrndup (const char *s, int n); +extern char * safe_strncpy(char *dst, const char *src, size_t size); struct suffix_mult { char *suffix; -- cgit v1.2.3