summaryrefslogtreecommitdiff
path: root/src/time
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-04-06 20:32:53 -0400
committerRich Felker <dalias@aerifal.cx>2011-04-06 20:32:53 -0400
commitc2cd25bff89c3581780e7eb267262cb8c4da0d38 (patch)
tree797423120c0c83bbf148e4e5acd305e90b1ee0a8 /src/time
parentb2486a8922bf4977bd82c8190258e39de28c053b (diff)
downloadmusl-c2cd25bff89c3581780e7eb267262cb8c4da0d38.tar.gz
musl-c2cd25bff89c3581780e7eb267262cb8c4da0d38.tar.bz2
musl-c2cd25bff89c3581780e7eb267262cb8c4da0d38.tar.xz
musl-c2cd25bff89c3581780e7eb267262cb8c4da0d38.zip
consistency: change all remaining syscalls to use SYS_ rather than __NR_ prefix
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;
}