1 #include <errno.h> 2 #include "pthread_impl.h" 3 #include "prt_sys_external.h" 4 #include "prt_task_external.h" 5 static int _isr_errno; 6 __errno_location(void)7int *__errno_location(void) 8 { 9 if (OS_INT_INACTIVE && (RUNNING_TASK != NULL)) { 10 return &(RUNNING_TASK->lastErr); 11 } else { 12 return &_isr_errno; 13 } 14 } 15 16 weak_alias(__errno_location, ___errno_location); 17