Go to the source code of this file.
◆ MOCK_SYSCALL
#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.
◆ __wrap_fcntl()
int __wrap_fcntl |
( |
int |
fd, |
|
|
int |
cmd, |
|
|
|
... |
|
) |
| |
◆ __wrap_freeaddrinfo()
void __wrap_freeaddrinfo |
( |
struct addrinfo * |
res | ) |
|
◆ count_fcntl()
int count_fcntl |
( |
int |
fd, |
|
|
int |
cmd, |
|
|
unsigned long |
arg |
|
) |
| |
◆ count_freeaddrinfo()
void count_freeaddrinfo |
( |
struct addrinfo * |
res | ) |
|
◆ fake_fcntl
int(* fake_fcntl) (int fd, int cmd, unsigned long)=0 |
◆ fake_freeaddrinfo
void(* fake_freeaddrinfo) (struct addrinfo *res)=0 |
◆ fcntl_calls
◆ freeaddrinfo_calls
int freeaddrinfo_calls = 0 |
xmlrpcpp
Author(s): Chris Morley, Konstantin Pilipchuk, Morgan Quigley, Austin Hendrix, Dirk Thomas
, Jacob Perron
autogenerated on Sat Sep 14 2024 02:59:32