musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/time/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/time/time.c')
-rw-r--r--src/time/time.c 3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/time/time.c b/src/time/time.c
index 3457dade..2d2cfd44 100644
--- a/src/time/time.c
+++ b/src/time/time.c
@@ -1,4 +1,3 @@
-#define SYSCALL_RETURN_ERRNO
#include <time.h>
#include <sys/time.h>
#include "syscall.h"
@@ -6,7 +5,7 @@
time_t time(time_t *t)
{
struct timeval tv;
- syscall2(__NR_gettimeofday, (long)&tv, 0);
+ __syscall(__NR_gettimeofday, &tv, 0);
if (t) *t = tv.tv_sec;
return tv.tv_sec;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月05日 10:50:28 +0000

AltStyle によって変換されたページ (->オリジナル) /