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);