mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
cpu/sam3x8e: made _kill(_r) syscalls weak
This commit is contained in:
parent
fff57484eb
commit
e7f2e04a6a
@ -156,7 +156,8 @@ pid_t _getpid(void)
|
|||||||
*
|
*
|
||||||
* @return TODO
|
* @return TODO
|
||||||
*/
|
*/
|
||||||
int _kill_r(struct _reent *r, pid_t pid, int sig)
|
__attribute__ ((weak))
|
||||||
|
int _kill_r(struct _reent *r, int pid, int sig)
|
||||||
{
|
{
|
||||||
r->_errno = ESRCH; /* not implemented yet */
|
r->_errno = ESRCH; /* not implemented yet */
|
||||||
return -1;
|
return -1;
|
||||||
@ -323,3 +324,18 @@ int _unlink_r(struct _reent *r, char* path)
|
|||||||
r->_errno = ENODEV; /* not implemented yet */
|
r->_errno = ENODEV; /* not implemented yet */
|
||||||
return -1;
|
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;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user