diff options
author | jb <jb@FreeBSD.org> | 1997-06-04 13:03:12 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1997-06-04 13:03:12 +0000 |
commit | 013b17e93c835c88011f39a63e378f3926f6f465 (patch) | |
tree | ccfa4933c8cc1da479887f96f0fe449c062da4f5 /lib/libkse | |
parent | 5158253c974afc654e283683af86488e92629900 (diff) | |
download | FreeBSD-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.c | 2 |
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; |