From: Zhangjin Wu Date: Wed, 28 Jun 2023 13:14:53 +0000 (+0800) Subject: tools/nolibc: unistd.h: reorder the syscall macros X-Git-Tag: v6.6.17~4111^2~94 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d7481eb5d885ffdc1b9d948151e983341e45c38;p=platform%2Fkernel%2Flinux-rpi.git tools/nolibc: unistd.h: reorder the syscall macros Tune the macros in the using order and align most of them. Signed-off-by: Zhangjin Wu Signed-off-by: Willy Tarreau --- diff --git a/tools/include/nolibc/unistd.h b/tools/include/nolibc/unistd.h index fabc846..e38f366 100644 --- a/tools/include/nolibc/unistd.h +++ b/tools/include/nolibc/unistd.h @@ -56,9 +56,9 @@ int tcsetpgrp(int fd, pid_t pid) return ioctl(fd, TIOCSPGRP, &pid); } -#define _syscall(N, ...) __sysret(my_syscall##N(__VA_ARGS__)) -#define _syscall_narg(...) __syscall_narg(__VA_ARGS__, 6, 5, 4, 3, 2, 1, 0) #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(my_syscall##N(__VA_ARGS__)) #define _syscall_n(N, ...) _syscall(N, __VA_ARGS__) #define syscall(...) _syscall_n(_syscall_narg(__VA_ARGS__), ##__VA_ARGS__)