Go to the source code of this file.
#define MOCK_SYSCALL |
( |
|
ret, |
|
|
|
name, |
|
|
|
ARG_TYPES, |
|
|
|
ARG_NAMES |
|
) |
| |
Value:ret(*fake_##name) ARG_TYPES = 0; \
ret __wrap_##name ARG_TYPES { \
if (fake_##name) { \
return fake_##name ARG_NAMES; \
} else { \
return -1; \
} \
} \
int name##_calls = 0; \
ret count_##name ARG_TYPES { \
name##_calls++; \
return 0; \
}
Definition at line 30 of file test_system_mocks.c.
int __wrap_fcntl |
( |
int |
fd, |
|
|
int |
cmd, |
|
|
|
... |
|
) |
| |
void __wrap_freeaddrinfo |
( |
struct addrinfo * |
res | ) |
|
int count_fcntl |
( |
int |
fd, |
|
|
int |
cmd, |
|
|
unsigned long |
arg |
|
) |
| |
void count_freeaddrinfo |
( |
struct addrinfo * |
res | ) |
|
int(* fake_fcntl) (int fd, int cmd, unsigned long)=0 |
void(* fake_freeaddrinfo) (struct addrinfo *res)=0 |
int freeaddrinfo_calls = 0 |
xmlrpcpp
Author(s): Chris Morley, Konstantin Pilipchuk, Morgan Quigley, Austin Hendrix
autogenerated on Sun Feb 3 2019 03:29:51