summaryrefslogtreecommitdiff
path: root/src/time
diff options
context:
space:
mode:
Diffstat (limited to 'src/time')
-rw-r--r--src/time/clock_nanosleep.c2
-rw-r--r--src/time/gettimeofday.c2
-rw-r--r--src/time/time.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/time/clock_nanosleep.c b/src/time/clock_nanosleep.c
index 721e7941..4667725b 100644
--- a/src/time/clock_nanosleep.c
+++ b/src/time/clock_nanosleep.c
@@ -6,7 +6,7 @@ int clock_nanosleep(clockid_t clk, int flags, const struct timespec *req, struct
{
int ret;
CANCELPT_BEGIN;
- ret = -__syscall(__NR_clock_nanosleep, clk, flags, req, rem);
+ ret = -__syscall(SYS_clock_nanosleep, clk, flags, req, rem);
CANCELPT_END;
return ret;
}
diff --git a/src/time/gettimeofday.c b/src/time/gettimeofday.c
index 521b4d57..2436e490 100644
--- a/src/time/gettimeofday.c
+++ b/src/time/gettimeofday.c
@@ -3,6 +3,6 @@
int gettimeofday(struct timeval *tv, void *tz)
{
- __syscall(__NR_gettimeofday, tv, 0);
+ __syscall(SYS_gettimeofday, tv, 0);
return 0;
}
diff --git a/src/time/time.c b/src/time/time.c
index 2d2cfd44..05e075b9 100644
--- a/src/time/time.c
+++ b/src/time/time.c
@@ -5,7 +5,7 @@
time_t time(time_t *t)
{
struct timeval tv;
- __syscall(__NR_gettimeofday, &tv, 0);
+ __syscall(SYS_gettimeofday, &tv, 0);
if (t) *t = tv.tv_sec;
return tv.tv_sec;
}