mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 02:41:59 +00:00
24 lines
563 B
C++
24 lines
563 B
C++
#pragma once
|
|
|
|
#include <sys/syscall.h>
|
|
#include <syscall_arch.h>
|
|
|
|
typedef long syscall_arg_t;
|
|
|
|
__attribute__((visibility("hidden")))
|
|
long __syscall_ret(unsigned long);
|
|
|
|
__attribute__((visibility("hidden")))
|
|
long __syscall(syscall_arg_t, ...);
|
|
|
|
__attribute__((visibility("hidden")))
|
|
void *__vdsosym(const char *, const char *);
|
|
|
|
#define syscall(...) __syscall_ret(__syscall(__VA_ARGS__))
|
|
|
|
#define socketcall(...) __syscall_ret(__socketcall(__VA_ARGS__))
|
|
|
|
#define __socketcall(nm,a,b,c,d,e,f) __syscall(SYS_##nm, a, b, c, d, e, f)
|
|
|
|
#define socketcall_cp socketcall
|