consistency: change all remaining syscalls to use SYS_ rather than __NR_ prefix

This commit is contained in:
Rich Felker
2011-04-06 20:32:53 -04:00
parent b2486a8922
commit c2cd25bff8
38 changed files with 40 additions and 40 deletions

View File

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

View File

@@ -3,6 +3,6 @@
int gettimeofday(struct timeval *tv, void *tz)
{
__syscall(__NR_gettimeofday, tv, 0);
__syscall(SYS_gettimeofday, tv, 0);
return 0;
}

View File

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