mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 23:23:13 +00:00
2009-03-02 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1388/cpukit * rtems/src/semcreate.c: Classic Semaphores allow both priority inherit and ceiling attributes to be set on semaphore create. These attributes are mutually exclusive and this should be an error.
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
2009-03-02 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
|
PR 1388/cpukit
|
||||||
|
* rtems/src/semcreate.c: Classic Semaphores allow both priority inherit
|
||||||
|
and ceiling attributes to be set on semaphore create. These
|
||||||
|
attributes are mutually exclusive and this should be an error.
|
||||||
|
|
||||||
2009-02-17 Joel Sherrill <joel.sherrill@OARcorp.com>
|
2009-02-17 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
PR 1377/shell
|
PR 1377/shell
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
* + acquire a semaphore
|
* + acquire a semaphore
|
||||||
* + release a semaphore
|
* + release a semaphore
|
||||||
*
|
*
|
||||||
* COPYRIGHT (c) 1989-1999.
|
* COPYRIGHT (c) 1989-2009.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
*
|
*
|
||||||
* The license and distribution terms for this file may be
|
* The license and distribution terms for this file may be
|
||||||
@@ -111,6 +111,10 @@ rtems_status_code rtems_semaphore_create(
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( _Attributes_Is_inherit_priority( attribute_set ) &&
|
||||||
|
_Attributes_Is_priority_ceiling( attribute_set ) )
|
||||||
|
return RTEMS_NOT_DEFINED;
|
||||||
|
|
||||||
if ( !_Attributes_Is_counting_semaphore( attribute_set ) && ( count > 1 ) )
|
if ( !_Attributes_Is_counting_semaphore( attribute_set ) && ( count > 1 ) )
|
||||||
return RTEMS_INVALID_NUMBER;
|
return RTEMS_INVALID_NUMBER;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user