summaryrefslogtreecommitdiff
path: root/libc/unistd/sleep.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-09-27 05:24:26 +0000
committerEric Andersen <andersen@codepoet.org>2001-09-27 05:24:26 +0000
commit2512c847453c24b928c34beed88902fbb6877b7a (patch)
tree3d327c54c00684b85c435cffa29c5050888c0a69 /libc/unistd/sleep.c
parente83a36ce9f97ac0f59117b3a62fd2dd8461b1fd5 (diff)
Update to accomodate the header file changes
Diffstat (limited to 'libc/unistd/sleep.c')
-rw-r--r--libc/unistd/sleep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/unistd/sleep.c b/libc/unistd/sleep.c
index e11770563..b6c410fb5 100644
--- a/libc/unistd/sleep.c
+++ b/libc/unistd/sleep.c
@@ -4,13 +4,13 @@
#include <sys/types.h>
#include <unistd.h>
-void usleep(unsigned int usec)
+int usleep (__useconds_t usec)
{
struct timeval tv;
tv.tv_sec = usec / 1000000;
tv.tv_usec = usec % 1000000;
- select(0, 0, 0, 0, &tv);
+ return(select(0, 0, 0, 0, &tv));
}
unsigned int sleep(unsigned int sec)