+ Fixed errno response to match the POSIX manual.

This commit is contained in:
Jennifer Averett
1999-12-23 22:05:25 +00:00
parent 2116e33c8e
commit e1786ee363
2 changed files with 2 additions and 2 deletions

View File

@@ -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();

View File

@@ -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();