From 013b17e93c835c88011f39a63e378f3926f6f465 Mon Sep 17 00:00:00 2001 From: jb Date: Wed, 4 Jun 1997 13:03:12 +0000 Subject: Bring back nanosleep from the cold. The addition of the nanosleep syscall was correctly added to libc/sys/Makefile so that it is renamed as _thread_sys_nanosleep(). This syscall is one of those that libc_r has to re-implement because the only behaviour is to block the process. So libc_r just ignores the fact that a nanosleep syscall exists and goes its own way - as it has done all along .... and now it does again. And now a simple program can sleep again. Phew. --- lib/libpthread/thread/thr_nanosleep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libpthread') diff --git a/lib/libpthread/thread/thr_nanosleep.c b/lib/libpthread/thread/thr_nanosleep.c index 7cf734d..39c7dad 100644 --- a/lib/libpthread/thread/thr_nanosleep.c +++ b/lib/libpthread/thread/thr_nanosleep.c @@ -37,7 +37,7 @@ #include "pthread_private.h" int -_thread_nanosleep(const struct timespec * time_to_sleep, +nanosleep(const struct timespec * time_to_sleep, struct timespec * time_remaining) { int ret = 0; -- cgit v1.1