Changeset 352d01e in rtems


Ignore:
Timestamp:
Jan 12, 2000, 6:43:21 PM (21 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
bcbc50a
Parents:
70329c80
Message:

+ Modified to correct return codes.
+ Removed extra flag attribute from message queue structure.
+ Yellow-lined all posix message queue routines.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/posix/src/mqueuegetattr.c

    r70329c80 r352d01e  
    4343  CORE_message_queue_Attributes        *the_mq_attr;
    4444 
     45  if ( !mqstat )
     46    set_errno_and_return_minus_one( EINVAL );
     47
    4548  the_mq = _POSIX_Message_queue_Get( mqdes, &location );
    4649  switch ( location ) {
    4750    case OBJECTS_ERROR:
    48       set_errno_and_return_minus_one( EINVAL );
     51      set_errno_and_return_minus_one( EBADF );
    4952    case OBJECTS_REMOTE:
    5053      _Thread_Dispatch();
     
    6164      the_mq_attr = &the_mq->Message_queue.Attributes;
    6265 
    63       mqstat->mq_flags   = the_mq->flags;
     66      mqstat->mq_flags   = the_mq->oflag;
    6467      mqstat->mq_msgsize = the_mq->Message_queue.maximum_message_size;
    6568      mqstat->mq_maxmsg  = the_mq->Message_queue.maximum_pending_messages;
  • cpukit/posix/src/mqueuegetattr.c

    r70329c80 r352d01e  
    4343  CORE_message_queue_Attributes        *the_mq_attr;
    4444 
     45  if ( !mqstat )
     46    set_errno_and_return_minus_one( EINVAL );
     47
    4548  the_mq = _POSIX_Message_queue_Get( mqdes, &location );
    4649  switch ( location ) {
    4750    case OBJECTS_ERROR:
    48       set_errno_and_return_minus_one( EINVAL );
     51      set_errno_and_return_minus_one( EBADF );
    4952    case OBJECTS_REMOTE:
    5053      _Thread_Dispatch();
     
    6164      the_mq_attr = &the_mq->Message_queue.Attributes;
    6265 
    63       mqstat->mq_flags   = the_mq->flags;
     66      mqstat->mq_flags   = the_mq->oflag;
    6467      mqstat->mq_msgsize = the_mq->Message_queue.maximum_message_size;
    6568      mqstat->mq_maxmsg  = the_mq->Message_queue.maximum_pending_messages;
Note: See TracChangeset for help on using the changeset viewer.