Source
187
187
ZBX_UNUSED(socket);
188
188
ZBX_UNUSED(addr);
189
189
ZBX_UNUSED(address_len);
190
190
191
191
if (ZBX_MOCK_SUCCESS != (error = zbx_mock_in_parameter("fragments", &fragments)))
192
192
fail_msg("Cannot get fragments handle: %s", zbx_mock_error_string(error));
193
193
194
194
return 0;
195
195
}
196
196
197
+
int __wrap_poll(struct pollfd *pds, int nfds, int timeout);
198
+
197
199
int __wrap_poll(struct pollfd *pds, int nfds, int timeout)
198
200
{
199
-
int i;
200
-
201
201
ZBX_UNUSED(timeout);
202
202
203
-
for (i = 0; i < nfds; i++)
203
+
for (int i = 0; i < nfds; i++)
204
204
pds[i].revents = (POLLIN | POLLOUT);
205
205
206
206
return nfds;
207
207
}
208
208
209
209
int __wrap_open(const char *path, int oflag, ...)
210
210
{
211
211
if (SUCCEED == is_profiler_path(path))
212
212
{
213
213
va_list args;