sys/newlib/syscalls.c: Add _getpid_r implementation

This commit is contained in:
Joakim Gebart 2015-08-04 19:55:49 +02:00
parent 3551208f51
commit b52c93fdc2

View File

@ -113,6 +113,17 @@ int _getpid(void)
return sched_active_pid;
}
/**
* @brief Get the process-ID of the current thread
*
* @return the process ID of the current thread
*/
pid_t _getpid_r(struct _reent *ptr)
{
(void) ptr;
return sched_active_pid;
}
/**
* @brief Send a signal to a given thread
*