summaryrefslogtreecommitdiff
path: root/src/time
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-03-20 00:16:43 -0400
committerRich Felker <dalias@aerifal.cx>2011-03-20 00:16:43 -0400
commitaa398f56fa398f2202b04e82c67f822f3233786f (patch)
tree7833c046c55b3d2b67c66433bacfa429a650d310 /src/time
parentbe82e122bf37fdcd1766d1ed220f0300b30ab6a3 (diff)
downloadmusl-aa398f56fa398f2202b04e82c67f822f3233786f.tar.gz
global cleanup to use the new syscall interface
Diffstat (limited to 'src/time')
-rw-r--r--src/time/clock_getres.c2
-rw-r--r--src/time/clock_gettime.c2
-rw-r--r--src/time/clock_settime.c2
-rw-r--r--src/time/nanosleep.c2
-rw-r--r--src/time/times.c2
-rw-r--r--src/time/utime.c7
6 files changed, 6 insertions, 11 deletions
diff --git a/src/time/clock_getres.c b/src/time/clock_getres.c
index 539d4f94..36a0d695 100644
--- a/src/time/clock_getres.c
+++ b/src/time/clock_getres.c
@@ -3,5 +3,5 @@
int clock_getres(clockid_t clk, struct timespec *ts)
{
- return syscall2(__NR_clock_getres, clk, (long)ts);
+ return syscall(SYS_clock_getres, clk, ts);
}
diff --git a/src/time/clock_gettime.c b/src/time/clock_gettime.c
index dab09d50..c345c46e 100644
--- a/src/time/clock_gettime.c
+++ b/src/time/clock_gettime.c
@@ -3,5 +3,5 @@
int clock_gettime(clockid_t clk, struct timespec *ts)
{
- return syscall2(__NR_clock_gettime, clk, (long)ts);
+ return syscall(SYS_clock_gettime, clk, ts);
}
diff --git a/src/time/clock_settime.c b/src/time/clock_settime.c
index a80b94e1..66b8162d 100644
--- a/src/time/clock_settime.c
+++ b/src/time/clock_settime.c
@@ -3,5 +3,5 @@
int clock_settime(clockid_t clk, const struct timespec *ts)
{
- return syscall2(__NR_clock_settime, clk, (long)ts);
+ return syscall(SYS_clock_settime, clk, ts);
}
diff --git a/src/time/nanosleep.c b/src/time/nanosleep.c
index 5ac4c359..2f65762f 100644
--- a/src/time/nanosleep.c
+++ b/src/time/nanosleep.c
@@ -7,7 +7,7 @@ int nanosleep(const struct timespec *req, struct timespec *rem)
{
int ret;
CANCELPT_BEGIN;
- ret = syscall2(__NR_nanosleep, (long)req, (long)rem);
+ ret = syscall(SYS_nanosleep, req, rem);
CANCELPT_END;
return ret;
}
diff --git a/src/time/times.c b/src/time/times.c
index d63cd203..9c50144f 100644
--- a/src/time/times.c
+++ b/src/time/times.c
@@ -3,5 +3,5 @@
clock_t times(struct tms *tms)
{
- return syscall1(__NR_times, (long)tms);
+ return syscall(SYS_times, tms);
}
diff --git a/src/time/utime.c b/src/time/utime.c
index 56e9e13a..856315b4 100644
--- a/src/time/utime.c
+++ b/src/time/utime.c
@@ -3,10 +3,5 @@
int utime(const char *path, const struct utimbuf *times)
{
- long ktimes[2];
- if (times) {
- ktimes[0] = times->actime;
- ktimes[1] = times->modtime;
- }
- return syscall2(__NR_utime, (long)path, times ? (long)ktimes : 0);
+ return syscall(SYS_utime, path, times);
}