summaryrefslogtreecommitdiffstats
path: root/lib/libkse
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1997-06-04 13:03:12 +0000
committerjb <jb@FreeBSD.org>1997-06-04 13:03:12 +0000
commit013b17e93c835c88011f39a63e378f3926f6f465 (patch)
treeccfa4933c8cc1da479887f96f0fe449c062da4f5 /lib/libkse
parent5158253c974afc654e283683af86488e92629900 (diff)
downloadFreeBSD-src-013b17e93c835c88011f39a63e378f3926f6f465.zip
FreeBSD-src-013b17e93c835c88011f39a63e378f3926f6f465.tar.gz
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.
Diffstat (limited to 'lib/libkse')
-rw-r--r--lib/libkse/thread/thr_nanosleep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libkse/thread/thr_nanosleep.c b/lib/libkse/thread/thr_nanosleep.c
index 7cf734d..39c7dad 100644
--- a/lib/libkse/thread/thr_nanosleep.c
+++ b/lib/libkse/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;
OpenPOWER on IntegriCloud