Changeset View
Changeset View
Standalone View
Standalone View
src/compat/glibc_sanity.cpp
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | |||||
bool sanity_test_fdelt() { | bool sanity_test_fdelt() { | ||||
fd_set fds; | fd_set fds; | ||||
FD_ZERO(&fds); | FD_ZERO(&fds); | ||||
FD_SET(0, &fds); | FD_SET(0, &fds); | ||||
return FD_ISSET(0, &fds); | return FD_ISSET(0, &fds); | ||||
} | } | ||||
#endif | #endif | ||||
} // anon namespace | } // namespace | ||||
bool glibc_sanity_test() { | bool glibc_sanity_test() { | ||||
#if defined(HAVE_SYS_SELECT_H) | #if defined(HAVE_SYS_SELECT_H) | ||||
if (!sanity_test_fdelt()) return false; | if (!sanity_test_fdelt()) return false; | ||||
#endif | #endif | ||||
return sanity_test_memcpy<1025>(); | return sanity_test_memcpy<1025>(); | ||||
} | } |