1 #include "threadimpl.h" 2 extern int getfforkid(void); 3 int 4 _threadgetpid(void) 5 { 6 return getfforkid(); 7 }