1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 #include <unistd.h> #include <pthread.h> #include "thread_internal.h" int __pthread_open(const char *pathname, int flags, mode_t mode) { __TEST_CANCEL(); return __libc_open(pathname,flags,mode); } int open(const char *pathname, int flags, ...) __attribute__((alias("__pthread_open")));