summaryrefslogtreecommitdiffstats
path: root/newlib/libc/sys/linux/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/sys/linux/time.c')
-rw-r--r--newlib/libc/sys/linux/time.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/newlib/libc/sys/linux/time.c b/newlib/libc/sys/linux/time.c
index 106658f39..b53987353 100644
--- a/newlib/libc/sys/linux/time.c
+++ b/newlib/libc/sys/linux/time.c
@@ -7,7 +7,7 @@
#include <sys/types.h>
#include <sys/time.h>
#include <linux/times.h>
-#include <sys/syscall.h>
+#include <machine/syscall.h>
_syscall1(time_t,time,time_t *,t)
@@ -15,14 +15,3 @@ _syscall1(clock_t,times,struct tms *,buf)
_syscall2(int,gettimeofday,struct timeval *,tv,struct timezone *,tz)
_syscall2(int,nanosleep,const struct timespec *,req,struct timespec *,rem)
-
-unsigned int sleep(unsigned int seconds)
-{
- struct timespec ts;
-
- ts.tv_sec = seconds;
- ts.tv_nsec = 0;
- if (!nanosleep(&ts,&ts)) return 0;
- if (errno == EINTR) return ts.tv_sec;
- return -1;
-}