mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-14 02:02:39 +08:00
+ Fixed errno response to match the POSIX manual.
This commit is contained in:
1 parent
2116e33c8e
commit
e1786ee363
2 files changed
+2
-2
No files matched your search
@@ -43,7 +43,7 @@ int mq_close(
|
||||
the_mq = _POSIX_Message_queue_Get( mqdes, &location );
|
||||
switch ( location ) {
|
||||
case OBJECTS_ERROR:
|
||||
set_errno_and_return_minus_one( EINVAL );
|
||||
set_errno_and_return_minus_one( EBADF );
|
||||
case OBJECTS_REMOTE:
|
||||
_Thread_Dispatch();
|
||||
return POSIX_MP_NOT_IMPLEMENTED();
|
||||
|
||||
@@ -43,7 +43,7 @@ int mq_close(
|
||||
the_mq = _POSIX_Message_queue_Get( mqdes, &location );
|
||||
switch ( location ) {
|
||||
case OBJECTS_ERROR:
|
||||
set_errno_and_return_minus_one( EINVAL );
|
||||
set_errno_and_return_minus_one( EBADF );
|
||||
case OBJECTS_REMOTE:
|
||||
_Thread_Dispatch();
|
||||
return POSIX_MP_NOT_IMPLEMENTED();
|
||||
|
||||
Reference in new issue
Block a user