From b99ca13261765f23a6c5785490ae101f9dbd4a16 Mon Sep 17 00:00:00 2001 From: Erik Andersen Date: Tue, 4 Apr 2000 18:49:18 +0000 Subject: usleep contributed by Nicolas Pitre -Erik --- Changelog | 1 + applets/busybox.c | 3 +++ busybox.c | 3 +++ busybox.def.h | 1 + internal.h | 1 + 5 files changed, 9 insertions(+) diff --git a/Changelog b/Changelog index 3b083f3ab..327c1eab5 100644 --- a/Changelog +++ b/Changelog @@ -16,6 +16,7 @@ and then adjusted a bit by me. * Added tr and dirname from John Lombardo * Added echo and test (from me). + * Added usleep contributed by Nicolas Pitre * tar wouldn't create directory entries that don't end in '/', now it does (thanks to Avery Pennarun ) * Several fixes from Pavel Roskin : diff --git a/applets/busybox.c b/applets/busybox.c index 95fee63d6..c2477a537 100644 --- a/applets/busybox.c +++ b/applets/busybox.c @@ -311,6 +311,9 @@ static const struct Applet applets[] = { #ifdef BB_UPDATE {"update", update_main, _BB_DIR_SBIN}, #endif +#ifdef BB_USLEEP + {"usleep", usleep_main, _BB_DIR_BIN}, +#endif #ifdef BB_WC {"wc", wc_main, _BB_DIR_USR_BIN}, #endif diff --git a/busybox.c b/busybox.c index 95fee63d6..c2477a537 100644 --- a/busybox.c +++ b/busybox.c @@ -311,6 +311,9 @@ static const struct Applet applets[] = { #ifdef BB_UPDATE {"update", update_main, _BB_DIR_SBIN}, #endif +#ifdef BB_USLEEP + {"usleep", usleep_main, _BB_DIR_BIN}, +#endif #ifdef BB_WC {"wc", wc_main, _BB_DIR_USR_BIN}, #endif diff --git a/busybox.def.h b/busybox.def.h index 7b6d4e4ef..dd59a284a 100644 --- a/busybox.def.h +++ b/busybox.def.h @@ -92,6 +92,7 @@ #define BB_TRUE_FALSE #define BB_TTY #define BB_UPTIME +#define BB_USLEEP #define BB_WC #define BB_WHOAMI #define BB_UMOUNT diff --git a/internal.h b/internal.h index e69e62534..b90ab7e18 100644 --- a/internal.h +++ b/internal.h @@ -157,6 +157,7 @@ extern int uname_main(int argc, char** argv); extern int uptime_main(int argc, char** argv); extern int uniq_main(int argc, char** argv); extern int update_main(int argc, char** argv); +extern int usleep_main(int argc, char** argv); extern int wc_main(int argc, char** argv); extern int whoami_main(int argc, char** argv); extern int yes_main(int argc, char** argv); -- cgit v1.2.3