1 2 3 4 5 6 7 8 9 10
#include <unistd.h> #include <pthread.h> #include "thread_internal.h" int tcdrain(int fd) { __TEST_CANCEL(); return __libc_tcdrain(fd); }