mirror of
https://github.com/fluencelabs/musl
synced 2025-07-31 06:11:57 +00:00
consistency: change all remaining syscalls to use SYS_ rather than __NR_ prefix
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -3,6 +3,6 @@
|
||||
|
||||
int gettimeofday(struct timeval *tv, void *tz)
|
||||
{
|
||||
__syscall(__NR_gettimeofday, tv, 0);
|
||||
__syscall(SYS_gettimeofday, tv, 0);
|
||||
return 0;
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user