Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <falcon@tinylab.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>

authored by

Zhangjin Wu and committed by
Willy Tarreau
2d7481eb d27447bc

+2 -2
+2 -2
tools/include/nolibc/unistd.h
··· 56 56 return ioctl(fd, TIOCSPGRP, &pid); 57 57 } 58 58 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) 61 59 #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__)) 62 62 #define _syscall_n(N, ...) _syscall(N, __VA_ARGS__) 63 63 #define syscall(...) _syscall_n(_syscall_narg(__VA_ARGS__), ##__VA_ARGS__) 64 64