1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 06:53:52 +01:00

cpu/nrf51822: added made _kill(_r) syscall weak

This commit is contained in:
Hauke Petersen 2014-11-18 18:00:57 +01:00 committed by Hauke Petersen
parent b8b9341dbe
commit ebf572d2d3

View File

@ -153,12 +153,28 @@ int _getpid(void)
*
* @return TODO
*/
__attribute__ ((weak))
int _kill_r(struct _reent *r, int pid, int sig)
{
r->_errno = ESRCH; /* not implemented yet */
return -1;
}
/**
* @brief Send a signal to a thread
*
* @param[in] pid the pid to send to
* @param[in] sig the signal to send
*
* @return TODO
*/
__attribute__ ((weak))
int _kill(int pid, int sig)
{
errno = ESRCH; /* not implemented yet */
return -1;
}
/**
* @brief Open a file
*