forked from Imagelibrary/rtems
2004-07-24 Joel Sherrill <joel@OARcorp.com>
PR rtems/652 * src/signalsend.c: Return RTEMS_INVALID_NUMBER when sending an empty signal set.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2004-07-24 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
|
PR rtems/652
|
||||||
|
* src/signalsend.c: Return RTEMS_INVALID_NUMBER when sending an empty
|
||||||
|
signal set.
|
||||||
|
|
||||||
2004-07-14 Joel Sherrill <joel@OARcorp.com>
|
2004-07-14 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
PR 651/core
|
PR 651/core
|
||||||
|
|||||||
@@ -33,12 +33,12 @@
|
|||||||
*
|
*
|
||||||
* Output parameters:
|
* Output parameters:
|
||||||
* RTEMS_SUCCESSFUL - if successful
|
* RTEMS_SUCCESSFUL - if successful
|
||||||
* error code - if unsuccessful
|
* error code - if unsuccessful
|
||||||
*/
|
*/
|
||||||
|
|
||||||
rtems_status_code rtems_signal_send(
|
rtems_status_code rtems_signal_send(
|
||||||
Objects_Id id,
|
Objects_Id id,
|
||||||
rtems_signal_set signal_set
|
rtems_signal_set signal_set
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
register Thread_Control *the_thread;
|
register Thread_Control *the_thread;
|
||||||
@@ -46,6 +46,9 @@ rtems_status_code rtems_signal_send(
|
|||||||
RTEMS_API_Control *api;
|
RTEMS_API_Control *api;
|
||||||
ASR_Information *asr;
|
ASR_Information *asr;
|
||||||
|
|
||||||
|
if ( !signal_set )
|
||||||
|
return RTEMS_INVALID_NUMBER;
|
||||||
|
|
||||||
the_thread = _Thread_Get( id, &location );
|
the_thread = _Thread_Get( id, &location );
|
||||||
switch ( location ) {
|
switch ( location ) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user