Skip to content

Commit 2d7481e

Browse files
lzufalconwtarreau
authored andcommitted
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 <[email protected]> Signed-off-by: Willy Tarreau <[email protected]>
1 parent d27447b commit 2d7481e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/include/nolibc/unistd.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ int tcsetpgrp(int fd, pid_t pid)
5656
return ioctl(fd, TIOCSPGRP, &pid);
5757
}
5858

59-
#define _syscall(N, ...) __sysret(my_syscall##N(__VA_ARGS__))
60-
#define _syscall_narg(...) __syscall_narg(__VA_ARGS__, 6, 5, 4, 3, 2, 1, 0)
6159
#define __syscall_narg(_0, _1, _2, _3, _4, _5, _6, N, ...) N
60+
#define _syscall_narg(...) __syscall_narg(__VA_ARGS__, 6, 5, 4, 3, 2, 1, 0)
61+
#define _syscall(N, ...) __sysret(my_syscall##N(__VA_ARGS__))
6262
#define _syscall_n(N, ...) _syscall(N, __VA_ARGS__)
6363
#define syscall(...) _syscall_n(_syscall_narg(__VA_ARGS__), ##__VA_ARGS__)
6464

0 commit comments

Comments
 (0)