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.
This commit is contained in:
John Birrell 1997-06-04 13:03:12 +00:00
parent 1a3a296d21
commit f4084c0544
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=26445
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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