diff options
Diffstat (limited to 'src/time')
-rw-r--r-- | src/time/clock_getres.c | 2 | ||||
-rw-r--r-- | src/time/clock_gettime.c | 2 | ||||
-rw-r--r-- | src/time/clock_settime.c | 2 | ||||
-rw-r--r-- | src/time/nanosleep.c | 2 | ||||
-rw-r--r-- | src/time/times.c | 2 | ||||
-rw-r--r-- | src/time/utime.c | 7 |
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); } |