Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200903112309.102601-3-sorear@fastmail.com>
Date: Thu,  3 Sep 2020 07:22:57 -0400
From: Stefan O'Rear <sorear@...tmail.com>
To: musl@...ts.openwall.com
Cc: Stefan O'Rear <sorear@...tmail.com>
Subject: [PATCH 02/14] time64: Don't make aliases to nonexistent syscalls

riscv32 and future architectures lack the _time32 variants entirely, so
don't try to use their numbers.
---
 src/internal/syscall.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/internal/syscall.h b/src/internal/syscall.h
index d5f294d4..66fc4e5c 100644
--- a/src/internal/syscall.h
+++ b/src/internal/syscall.h
@@ -201,6 +201,7 @@ static inline long __alt_socketcall(int sys, int sock, int cp, long a, long b, l
 #define SYS_sendfile SYS_sendfile64
 #endif
 
+#ifdef SYS_timer_settime32
 #ifndef SYS_timer_settime
 #define SYS_timer_settime SYS_timer_settime32
 #endif
@@ -240,6 +241,7 @@ static inline long __alt_socketcall(int sys, int sock, int cp, long a, long b, l
 #ifndef SYS_settimeofday
 #define SYS_settimeofday SYS_settimeofday_time32
 #endif
+#endif
 
 /* Ensure that the plain syscall names are defined even for "time64-only"
  * archs. These facilitate callers passing null time arguments, and make
-- 
2.25.4

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.