mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
2004-05-21 Joel Sherrill <joel@OARcorp.com>
PR 629/rtems * src/mqueuecreatesupp.c: Return EINVAL is mq_maxmsg is <= 0, not <.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2004-05-21 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
PR 629/rtems
|
||||
* src/mqueuecreatesupp.c: Return EINVAL is mq_maxmsg is <= 0, not <.
|
||||
|
||||
2004-02-26 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
PR 582/core
|
||||
|
||||
@@ -76,12 +76,12 @@ int _POSIX_Message_queue_Create_support(
|
||||
attr.mq_maxmsg = 10;
|
||||
attr.mq_msgsize = 16;
|
||||
} else {
|
||||
if ( attr_ptr->mq_maxmsg < 0 ){
|
||||
if ( attr_ptr->mq_maxmsg <= 0 ){
|
||||
_Thread_Enable_dispatch();
|
||||
rtems_set_errno_and_return_minus_one( EINVAL );
|
||||
}
|
||||
|
||||
if ( attr_ptr->mq_msgsize < 0 ){
|
||||
if ( attr_ptr->mq_msgsize <= 0 ){
|
||||
_Thread_Enable_dispatch();
|
||||
rtems_set_errno_and_return_minus_one( EINVAL );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user