mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 13:32:45 +00:00
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:
parent
1a3a296d21
commit
f4084c0544
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=26445
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user