From 6a3a81c83072981d25aa920e51884ce5ac458dc5 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 17 May 2002 17:59:21 +0000 Subject: 2001-05-17 Joel Sherrill * macros/rtems/posix/mqueue.inl: Implemented missing routines to support message queue FDs. --- c/src/exec/posix/ChangeLog | 5 ++++ c/src/exec/posix/macros/rtems/posix/mqueue.inl | 39 +++++++++++++++++++------- cpukit/posix/ChangeLog | 5 ++++ cpukit/posix/macros/rtems/posix/mqueue.inl | 39 +++++++++++++++++++------- 4 files changed, 68 insertions(+), 20 deletions(-) diff --git a/c/src/exec/posix/ChangeLog b/c/src/exec/posix/ChangeLog index 5eef673eb8..d77050a84c 100644 --- a/c/src/exec/posix/ChangeLog +++ b/c/src/exec/posix/ChangeLog @@ -1,3 +1,8 @@ +2001-05-17 Joel Sherrill + + * macros/rtems/posix/mqueue.inl: Implemented missing routines + to support message queue FDs. + 2002-05-03 Ralf Corsepius * include/sys/utsname.h: Remove. diff --git a/c/src/exec/posix/macros/rtems/posix/mqueue.inl b/c/src/exec/posix/macros/rtems/posix/mqueue.inl index 91fce0dd60..d9912a2e11 100644 --- a/c/src/exec/posix/macros/rtems/posix/mqueue.inl +++ b/c/src/exec/posix/macros/rtems/posix/mqueue.inl @@ -16,25 +16,37 @@ #ifndef __RTEMS_POSIX_MESSAGE_QUEUE_inl #define __RTEMS_POSIX_MESSAGE_QUEUE_inl -/*PAGE - * +/* * _POSIX_Message_queue_Allocate */ #define _POSIX_Message_queue_Allocate() \ (POSIX_Message_queue_Control *) \ _Objects_Allocate( &_POSIX_Message_queue_Information ) + +/* + * _POSIX_Message_queue_Allocate_fd + */ -/*PAGE - * +#define _POSIX_Message_queue_Allocate_fd() \ + (POSIX_Message_queue_Control_fd *) \ + _Objects_Allocate( &_POSIX_Message_queue_Information_fds ) + +/* * _POSIX_Message_queue_Free */ #define _POSIX_Message_queue_Free( _the_mq ) \ _Objects_Free( &_POSIX_Message_queue_Information, &(_the_mq)->Object ) -/*PAGE - * +/* + * _POSIX_Message_queue_Free_fd + */ + +#define _POSIX_Message_queue_Free_fd( _the_mq_fd ) \ + _Objects_Free( &_POSIX_Message_queue_Information_fds, &(_the_mq_fd)->Object ) + +/* * _POSIX_Message_queue_Namespace_remove */ @@ -42,8 +54,7 @@ _Objects_Namespace_remove( \ &_POSIX_Message_queue_Information, &(_the_mq)->Object ) -/*PAGE - * +/* * _POSIX_Message_queue_Get */ @@ -51,7 +62,15 @@ (POSIX_Message_queue_Control *) \ _Objects_Get( &_POSIX_Message_queue_Information, (_id), (_location) ) -/*PAGE +/* + * _POSIX_Message_queue_Get_fd + */ + +#define _POSIX_Message_queue_Get_fd( _id, _location ) \ + (POSIX_Message_queue_Control_fd *) \ + _Objects_Get( &_POSIX_Message_queue_Information_fds, (_id), (_location) ) + +/* * * _POSIX_Message_queue_Is_null */ @@ -59,7 +78,7 @@ #define _POSIX_Message_queue_Is_null( _the_mq ) \ (!(_the_mq)) -/*PAGE +/* * * _POSIX_Message_queue_Priority_to_core */ diff --git a/cpukit/posix/ChangeLog b/cpukit/posix/ChangeLog index 5eef673eb8..d77050a84c 100644 --- a/cpukit/posix/ChangeLog +++ b/cpukit/posix/ChangeLog @@ -1,3 +1,8 @@ +2001-05-17 Joel Sherrill + + * macros/rtems/posix/mqueue.inl: Implemented missing routines + to support message queue FDs. + 2002-05-03 Ralf Corsepius * include/sys/utsname.h: Remove. diff --git a/cpukit/posix/macros/rtems/posix/mqueue.inl b/cpukit/posix/macros/rtems/posix/mqueue.inl index 91fce0dd60..d9912a2e11 100644 --- a/cpukit/posix/macros/rtems/posix/mqueue.inl +++ b/cpukit/posix/macros/rtems/posix/mqueue.inl @@ -16,25 +16,37 @@ #ifndef __RTEMS_POSIX_MESSAGE_QUEUE_inl #define __RTEMS_POSIX_MESSAGE_QUEUE_inl -/*PAGE - * +/* * _POSIX_Message_queue_Allocate */ #define _POSIX_Message_queue_Allocate() \ (POSIX_Message_queue_Control *) \ _Objects_Allocate( &_POSIX_Message_queue_Information ) + +/* + * _POSIX_Message_queue_Allocate_fd + */ -/*PAGE - * +#define _POSIX_Message_queue_Allocate_fd() \ + (POSIX_Message_queue_Control_fd *) \ + _Objects_Allocate( &_POSIX_Message_queue_Information_fds ) + +/* * _POSIX_Message_queue_Free */ #define _POSIX_Message_queue_Free( _the_mq ) \ _Objects_Free( &_POSIX_Message_queue_Information, &(_the_mq)->Object ) -/*PAGE - * +/* + * _POSIX_Message_queue_Free_fd + */ + +#define _POSIX_Message_queue_Free_fd( _the_mq_fd ) \ + _Objects_Free( &_POSIX_Message_queue_Information_fds, &(_the_mq_fd)->Object ) + +/* * _POSIX_Message_queue_Namespace_remove */ @@ -42,8 +54,7 @@ _Objects_Namespace_remove( \ &_POSIX_Message_queue_Information, &(_the_mq)->Object ) -/*PAGE - * +/* * _POSIX_Message_queue_Get */ @@ -51,7 +62,15 @@ (POSIX_Message_queue_Control *) \ _Objects_Get( &_POSIX_Message_queue_Information, (_id), (_location) ) -/*PAGE +/* + * _POSIX_Message_queue_Get_fd + */ + +#define _POSIX_Message_queue_Get_fd( _id, _location ) \ + (POSIX_Message_queue_Control_fd *) \ + _Objects_Get( &_POSIX_Message_queue_Information_fds, (_id), (_location) ) + +/* * * _POSIX_Message_queue_Is_null */ @@ -59,7 +78,7 @@ #define _POSIX_Message_queue_Is_null( _the_mq ) \ (!(_the_mq)) -/*PAGE +/* * * _POSIX_Message_queue_Priority_to_core */ -- cgit v1.2.3