1 2 3 4 5 6 7 8 9 10
/* connector for getpid */ #include <reent.h> #include <unistd.h> int getpid (void) { return _getpid_r (_REENT); }