diff options
author | ramin <lordrasmus@gmail.com> | 2022-12-10 17:48:10 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2022-12-19 10:56:31 +0100 |
commit | cf4f6ace3ecc2bf6e02ff1688ae90ca0017dca3c (patch) | |
tree | 1542c8b79fe100050f05249f9657a02901929b7c /libc/sysdeps/linux/common/bits | |
parent | d869bb1600942c01a77539128f9ba5b5b55ad647 (diff) |
sycall macro for vdso support
Diffstat (limited to 'libc/sysdeps/linux/common/bits')
-rwxr-xr-x[-rw-r--r--] | libc/sysdeps/linux/common/bits/syscalls-common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/bits/syscalls-common.h b/libc/sysdeps/linux/common/bits/syscalls-common.h index 3665345a6..adae45aac 100644..100755 --- a/libc/sysdeps/linux/common/bits/syscalls-common.h +++ b/libc/sysdeps/linux/common/bits/syscalls-common.h @@ -104,11 +104,16 @@ type name(C_DECL_ARGS_##nargs(args)) { \ return (type)INLINE_SYSCALL_NOERR(name, nargs, C_ARGS_##nargs(args)); \ } +#define SYSCALL_FUNC_BODY(nargs, type, name, args...) \ + return (type)INLINE_SYSCALL(name, nargs, C_ARGS_##nargs(args)); + + #define _syscall0(args...) SYSCALL_FUNC(0, args) #define _syscall_noerr0(args...) SYSCALL_NOERR_FUNC(0, args) #define _syscall1(args...) SYSCALL_FUNC(1, args) #define _syscall_noerr1(args...) SYSCALL_NOERR_FUNC(1, args) #define _syscall2(args...) SYSCALL_FUNC(2, args) +#define _syscall2_body(args...) SYSCALL_FUNC_BODY(2, args) #define _syscall3(args...) SYSCALL_FUNC(3, args) #define _syscall4(args...) SYSCALL_FUNC(4, args) #define _syscall5(args...) SYSCALL_FUNC(5, args) |