source: rtems/c/src/exec/posix/inline/rtems/posix/mqueue.inl @ 08311cc3

4.104.114.84.95
Last change on this file since 08311cc3 was 08311cc3, checked in by Joel Sherrill <joel.sherrill@…>, on 11/17/99 at 17:51:34

Updated copyright notice.

  • Property mode set to 100644
File size: 1.6 KB
Line 
1/*  rtems/posix/mqueue.inl
2 *
3 *  This include file contains the static inline implementation of the private
4 *  inlined routines for POSIX Message Queue.
5 *
6 *  COPYRIGHT (c) 1989-1999.
7 *  On-Line Applications Research Corporation (OAR).
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.OARcorp.com/rtems/license.html.
12 *
13 *  $Id$
14 */
15 
16#ifndef __RTEMS_POSIX_MESSAGE_QUEUE_inl
17#define __RTEMS_POSIX_MESSAGE_QUEUE_inl
18 
19/*PAGE
20 *
21 *  _POSIX_Message_queue_Allocate
22 */
23 
24RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control *_POSIX_Message_queue_Allocate( void )
25{
26  return (POSIX_Message_queue_Control *)
27    _Objects_Allocate( &_POSIX_Message_queue_Information );
28}
29 
30/*PAGE
31 *
32 *  _POSIX_Message_queue_Free
33 */
34 
35RTEMS_INLINE_ROUTINE void _POSIX_Message_queue_Free (
36  POSIX_Message_queue_Control *the_mq
37)
38{
39  _Objects_Free( &_POSIX_Message_queue_Information, &the_mq->Object );
40}
41 
42/*PAGE
43 *
44 *  _POSIX_Message_queue_Get
45 */
46 
47RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control *_POSIX_Message_queue_Get (
48  Objects_Id         id,
49  Objects_Locations *location
50)
51{
52  return (POSIX_Message_queue_Control *)
53    _Objects_Get( &_POSIX_Message_queue_Information, id, location );
54}
55 
56/*PAGE
57 *
58 *  _POSIX_Message_queue_Is_null
59 */
60 
61RTEMS_INLINE_ROUTINE boolean _POSIX_Message_queue_Is_null (
62  POSIX_Message_queue_Control *the_mq
63)
64{
65  return !the_mq;
66}
67
68/*PAGE
69 *
70 *  _POSIX_Message_queue_Priority_to_core
71 */
72 
73RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Message_queue_Priority_to_core(
74  unsigned int priority
75)
76{
77  return priority;
78}
79
80#endif
81/*  end of include file */
82
Note: See TracBrowser for help on using the repository browser.