aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-02-14 08:11:27 +0000
committerEric Andersen <andersen@codepoet.org>2001-02-14 08:11:27 +0000
commitec455953008d08f588fe0c0bd9df4278cd188315 (patch)
treeece4d8fefb69365210a9e623df07b41086cd5613 /include
parent88a5ceb450b576558b7d34e0baadb204dd329fb8 (diff)
downloadbusybox-ec455953008d08f588fe0c0bd9df4278cd188315.tar.gz
Add in ifconfig and route
Diffstat (limited to 'include')
-rw-r--r--include/applets.h6
-rw-r--r--include/busybox.h1
2 files changed, 7 insertions, 0 deletions
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;