diff options
Diffstat (limited to 'mdk-stage1/dietlibc/libpthread/pthread_sys_nanosleep.c')
-rw-r--r-- | mdk-stage1/dietlibc/libpthread/pthread_sys_nanosleep.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/libpthread/pthread_sys_nanosleep.c b/mdk-stage1/dietlibc/libpthread/pthread_sys_nanosleep.c new file mode 100644 index 000000000..699de4654 --- /dev/null +++ b/mdk-stage1/dietlibc/libpthread/pthread_sys_nanosleep.c @@ -0,0 +1,11 @@ +#include <time.h> +#include <unistd.h> + +#include <pthread.h> +#include "thread_internal.h" + +int nanosleep(const struct timespec *req, struct timespec *rem) +{ + __TEST_CANCEL(); + return __libc_nanosleep(req,rem); +} |