27 #pragma GCC diagnostic ignored "-Wunused-parameter" 30 #define MOCK_SYSCALL(ret, name, ARG_TYPES, ARG_NAMES) \ 31 ret(*fake_##name) ARG_TYPES = 0; \ 32 ret __wrap_##name ARG_TYPES { \ 34 return fake_##name ARG_NAMES; \ 39 int name##_calls = 0; \ 40 ret count_##name ARG_TYPES { \ 53 unsigned long arg = va_arg(ap,
unsigned long);
int(* fake_fcntl)(int fd, int cmd, unsigned long)=0
int __wrap_fcntl(int fd, int cmd,...)
int count_fcntl(int fd, int cmd, unsigned long arg)
void __wrap_freeaddrinfo(struct addrinfo *res)
void count_freeaddrinfo(struct addrinfo *res)
void(* fake_freeaddrinfo)(struct addrinfo *res)=0