Changeset fcd0c90 in rtems
- Timestamp:
- 01/05/00 17:11:36 (24 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 3ebd4c1
- Parents:
- cecd206
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/exec/posix/src/mqueuerecvsupp.c
rcecd206 rfcd0c90 48 48 unsigned32 status = 0; 49 49 unsigned32 length_out; 50 CORE_message_queue_Submit_types core_priority; 50 51 51 52 the_mq = _POSIX_Message_queue_Get( mqdes, &location ); … … 58 59 set_errno_and_return_minus_one( EINVAL ); 59 60 case OBJECTS_LOCAL: 61 if ( (the_mq->oflag & O_ACCMODE) == O_WRONLY ) { 62 _Thread_Enable_dispatch(); 63 set_errno_and_return_minus_one( EBADF ); 64 } 65 60 66 /* XXX need to define the options argument to this */ 61 67 length_out = msg_len; … … 65 71 msg_ptr, 66 72 &length_out, 67 /* msg_prio, XXXX */68 73 the_mq->blocking, 74 &core_priority, 69 75 timeout 70 76 ); 77 78 *msg_prio = _POSIX_Message_queue_Priority_from_core( core_priority ); 79 80 /* XXX convert message priority from core to POSIX */ 71 81 _Thread_Enable_dispatch(); 82 *msg_prio = _Thread_Executing->Wait.count; 72 83 if ( !status ) 73 84 return length_out; -
cpukit/posix/src/mqueuerecvsupp.c
rcecd206 rfcd0c90 48 48 unsigned32 status = 0; 49 49 unsigned32 length_out; 50 CORE_message_queue_Submit_types core_priority; 50 51 51 52 the_mq = _POSIX_Message_queue_Get( mqdes, &location ); … … 58 59 set_errno_and_return_minus_one( EINVAL ); 59 60 case OBJECTS_LOCAL: 61 if ( (the_mq->oflag & O_ACCMODE) == O_WRONLY ) { 62 _Thread_Enable_dispatch(); 63 set_errno_and_return_minus_one( EBADF ); 64 } 65 60 66 /* XXX need to define the options argument to this */ 61 67 length_out = msg_len; … … 65 71 msg_ptr, 66 72 &length_out, 67 /* msg_prio, XXXX */68 73 the_mq->blocking, 74 &core_priority, 69 75 timeout 70 76 ); 77 78 *msg_prio = _POSIX_Message_queue_Priority_from_core( core_priority ); 79 80 /* XXX convert message priority from core to POSIX */ 71 81 _Thread_Enable_dispatch(); 82 *msg_prio = _Thread_Executing->Wait.count; 72 83 if ( !status ) 73 84 return length_out;
Note: See TracChangeset
for help on using the changeset viewer.