#include "sys/utsname.h" #include "../base.h" #include "../errno.h" #include extern void cerror(int e); int __linux_nanosleep(struct timespec* ts, struct timespec* rem) { int rv; rv = LINUX_SYSCALL(__NR_nanosleep, ts, rem); if (rv < 0) { cerror(errno_linux_to_bsd(-rv)); return -1; } return rv; }