global cleanup to use the new syscall interface

This commit is contained in:
Rich Felker
2011-03-20 00:16:43 -04:00
parent be82e122bf
commit aa398f56fa
160 changed files with 180 additions and 238 deletions

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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;
}

View File

@ -3,5 +3,5 @@
clock_t times(struct tms *tms)
{
return syscall1(__NR_times, (long)tms);
return syscall(SYS_times, tms);
}

View File

@ -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);
}