forked from Imagelibrary/rtems
2009-09-13 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/src/nanosleep.c: Disable EINTR case when POSIX is disabled because it cannot happen.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2009-09-13 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
|
* posix/src/nanosleep.c: Disable EINTR case when POSIX is disabled
|
||||||
|
because it cannot happen.
|
||||||
|
|
||||||
2009-09-13 Joel Sherrill <joel.sherrill@OARcorp.com>
|
2009-09-13 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
* score/inline/rtems/score/coremsg.inl: Fix compilation issue when
|
* score/inline/rtems/score/coremsg.inl: Fix compilation issue when
|
||||||
|
|||||||
@@ -92,12 +92,16 @@ int nanosleep(
|
|||||||
|
|
||||||
_Timespec_From_ticks( ticks, rmtp );
|
_Timespec_From_ticks( ticks, rmtp );
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Only when POSIX is enabled, can a sleep be interrupted.
|
||||||
|
*/
|
||||||
|
#if defined(RTEMS_POSIX_API)
|
||||||
/*
|
/*
|
||||||
* If there is time remaining, then we were interrupted by a signal.
|
* If there is time remaining, then we were interrupted by a signal.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ( ticks )
|
if ( ticks )
|
||||||
rtems_set_errno_and_return_minus_one( EINTR );
|
rtems_set_errno_and_return_minus_one( EINTR );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user