blob: 4463e108aeb08dd6d275e744758085e37122f31b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/*
* nanosleep() for uClibc
*
* Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
*
* Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
*/
#include <sys/syscall.h>
#include <time.h>
#include <cancel.h>
#define __NR___nanosleep_nocancel __NR_nanosleep
static _syscall2(int, __NC(nanosleep), const struct timespec *, req,
struct timespec *, rem);
CANCELLABLE_SYSCALL(int, nanosleep,
(const struct timespec *req, struct timespec *rem),
(req, rem))
lt_libc_hidden(nanosleep)
|