5 #if defined(HAVE_CONFIG_H) 11 #if defined(HAVE_SYS_SELECT_H) 12 #include <sys/select.h> 15 extern "C" void*
memcpy(
void*
a,
const void*
b,
size_t c);
28 template <
unsigned int T>
29 bool sanity_test_memcpy()
31 unsigned int memcpy_test[
T];
32 unsigned int memcpy_verify[
T] = {};
33 for (
unsigned int i = 0; i !=
T; ++i)
36 memcpy_int(memcpy_verify, memcpy_test,
sizeof(memcpy_test));
38 for (
unsigned int i = 0; i !=
T; ++i) {
39 if (memcpy_verify[i] != i)
45 #if defined(HAVE_SYS_SELECT_H) 50 bool sanity_test_fdelt()
55 return FD_ISSET(0, &fds);
63 #if defined(HAVE_SYS_SELECT_H) 64 if (!sanity_test_fdelt())
67 return sanity_test_memcpy<1025>();
void * memcpy_int(void *a, const void *b, size_t c)
void * memcpy(void *a, const void *b, size_t c)