2 * Copyright (C) 2017 Waldemar Brodkorb <wbx@uclibc-ng.org>
3 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
9 /* Pause execution for a number of nanoseconds. */
11 _NC(nanosleep
) (const struct timespec
*requested_time
,
12 struct timespec
*remaining
)
14 int __ret
= clock_nanosleep(CLOCK_REALTIME
, 0, requested_time
, remaining
);
24 CANCELLABLE_SYSCALL(int, nanosleep
, (const struct timespec
*requested_time
,
25 struct timespec
*remaining
), (requested_time
, remaining
))
27 lt_libc_hidden(nanosleep
)