summaryrefslogtreecommitdiff
path: root/tools/include
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2026-04-05 11:06:23 +0200
committerThomas Weißschuh <linux@weissschuh.net>2026-04-07 09:26:57 +0200
commit3f5059f01de1aca30e7f793da0a0b5bf2740cb7a (patch)
treecb0642f15e69fa627304cdc399e44ee292f6c6cc /tools/include
parent08b96aa962209de015de6c4a51e8cadbd1b21d0a (diff)
downloadlwn-3f5059f01de1aca30e7f793da0a0b5bf2740cb7a.tar.gz
lwn-3f5059f01de1aca30e7f793da0a0b5bf2740cb7a.zip
tools/nolibc: rename the internal macros used in syscall()
These macros are the internal implementation of syscall(). They can not be used by users. Align them with the standard naming scheme for internal symbols. The current name also prevents the addition of an application-usable _syscall() symbol. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Acked-by: Willy Tarreau <w@1wt.eu> Link: https://patch.msgid.link/20260405-nolibc-syscall-v1-1-e5b12bc63211@weissschuh.net
Diffstat (limited to 'tools/include')
-rw-r--r--tools/include/nolibc/sys/syscall.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/include/nolibc/sys/syscall.h b/tools/include/nolibc/sys/syscall.h
index 8cbcae4a32aa..b673f3d0c0f8 100644
--- a/tools/include/nolibc/sys/syscall.h
+++ b/tools/include/nolibc/sys/syscall.h
@@ -10,10 +10,10 @@
#ifndef _NOLIBC_SYS_SYSCALL_H
#define _NOLIBC_SYS_SYSCALL_H
-#define __syscall_narg(_0, _1, _2, _3, _4, _5, _6, N, ...) N
-#define _syscall_narg(...) __syscall_narg(__VA_ARGS__, 6, 5, 4, 3, 2, 1, 0)
-#define _syscall(N, ...) __sysret(__nolibc_syscall##N(__VA_ARGS__))
-#define _syscall_n(N, ...) _syscall(N, __VA_ARGS__)
-#define syscall(...) _syscall_n(_syscall_narg(__VA_ARGS__), ##__VA_ARGS__)
+#define ___nolibc_syscall_narg(_0, _1, _2, _3, _4, _5, _6, N, ...) N
+#define __nolibc_syscall_narg(...) ___nolibc_syscall_narg(__VA_ARGS__, 6, 5, 4, 3, 2, 1, 0)
+#define __nolibc_syscall(N, ...) __sysret(__nolibc_syscall##N(__VA_ARGS__))
+#define __nolibc_syscall_n(N, ...) __nolibc_syscall(N, __VA_ARGS__)
+#define syscall(...) __nolibc_syscall_n(__nolibc_syscall_narg(__VA_ARGS__), ##__VA_ARGS__)
#endif /* _NOLIBC_SYS_SYSCALL_H */