source: rtems/c/src/optman/rtems/no-msg.c @ 3b76313

4.104.114.84.95
Last change on this file since 3b76313 was 3b76313, checked in by Joel Sherrill <joel.sherrill@…>, on 04/19/96 at 21:09:20

modified to generate fatal error when an unconfigured directive is invoked.

  • Property mode set to 100644
File size: 4.0 KB
Line 
1/*
2 *  Message Queue Manager
3 *
4 *
5 *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
6 *  On-Line Applications Research Corporation (OAR).
7 *  All rights assigned to U.S. Government, 1994.
8 *
9 *  This material may be reproduced by or for the U.S. Government pursuant
10 *  to the copyright license under the clause at DFARS 252.227-7013.  This
11 *  notice must appear in all copies of this file and its derivatives.
12 *
13 *  $Id$
14 */
15
16#include <rtems/system.h>
17#include <rtems/rtems/status.h>
18#include <rtems/rtems/attr.h>
19#include <rtems/score/chain.h>
20#include <rtems/score/isr.h>
21#include <rtems/rtems/message.h>
22#include <rtems/score/object.h>
23#include <rtems/rtems/options.h>
24#include <rtems/score/states.h>
25#include <rtems/score/thread.h>
26#include <rtems/score/wkspace.h>
27#include <rtems/score/interr.h>
28
29void _Message_queue_Manager_initialization(
30  unsigned32 maximum_message_queues
31)
32{
33}
34
35rtems_status_code rtems_message_queue_create(
36  rtems_name          name,
37  unsigned32          count,
38  unsigned32          max_message_size,
39  rtems_attribute     attribute_set,
40  Objects_Id         *id
41)
42{
43  _Internal_error_Occurred(
44    INTERNAL_ERROR_RTEMS_API,
45    FALSE,
46    RTEMS_NOT_CONFIGURED
47  );
48  return RTEMS_NOT_CONFIGURED;
49}
50
51rtems_status_code rtems_message_queue_ident(
52  rtems_name    name,
53  unsigned32    node,
54  Objects_Id   *id
55)
56{
57  _Internal_error_Occurred(
58    INTERNAL_ERROR_RTEMS_API,
59    FALSE,
60    RTEMS_NOT_CONFIGURED
61  );
62  return RTEMS_NOT_CONFIGURED;
63}
64
65rtems_status_code rtems_message_queue_delete(
66  Objects_Id id
67)
68{
69  _Internal_error_Occurred(
70    INTERNAL_ERROR_RTEMS_API,
71    FALSE,
72    RTEMS_NOT_CONFIGURED
73  );
74  return RTEMS_NOT_CONFIGURED;
75}
76
77rtems_status_code rtems_message_queue_send(
78  Objects_Id            id,
79  void                 *buffer,
80  unsigned32            size
81)
82{
83  _Internal_error_Occurred(
84    INTERNAL_ERROR_RTEMS_API,
85    FALSE,
86    RTEMS_NOT_CONFIGURED
87  );
88  return RTEMS_NOT_CONFIGURED;
89}
90
91rtems_status_code rtems_message_queue_urgent(
92  Objects_Id            id,
93  void                 *buffer,
94  unsigned32            size
95)
96{
97  _Internal_error_Occurred(
98    INTERNAL_ERROR_RTEMS_API,
99    FALSE,
100    RTEMS_NOT_CONFIGURED
101  );
102  return RTEMS_NOT_CONFIGURED;
103}
104
105rtems_status_code rtems_message_queue_broadcast(
106  Objects_Id            id,
107  void                 *buffer,
108  unsigned32            size,
109  unsigned32           *count
110)
111{
112  _Internal_error_Occurred(
113    INTERNAL_ERROR_RTEMS_API,
114    FALSE,
115    RTEMS_NOT_CONFIGURED
116  );
117  return RTEMS_NOT_CONFIGURED;
118}
119
120rtems_status_code rtems_message_queue_receive(
121  Objects_Id            id,
122  void                 *buffer,
123  unsigned32           *size_p,
124  unsigned32            option_set,
125  rtems_interval        timeout
126)
127{
128  _Internal_error_Occurred(
129    INTERNAL_ERROR_RTEMS_API,
130    FALSE,
131    RTEMS_NOT_CONFIGURED
132  );
133  return RTEMS_NOT_CONFIGURED;
134}
135
136rtems_status_code rtems_message_queue_flush(
137  Objects_Id  id,
138  unsigned32 *count
139)
140{
141  _Internal_error_Occurred(
142    INTERNAL_ERROR_RTEMS_API,
143    FALSE,
144    RTEMS_NOT_CONFIGURED
145  );
146  return RTEMS_NOT_CONFIGURED;
147}
148
149unsigned32 _Message_queue_Flush_support(
150  Message_queue_Control *the_message_queue
151)
152{
153  _Internal_error_Occurred(
154    INTERNAL_ERROR_RTEMS_API,
155    FALSE,
156    RTEMS_NOT_CONFIGURED
157  );
158  return RTEMS_NOT_CONFIGURED;
159  return 0;
160}
161
162boolean _Message_queue_Seize(
163  Message_queue_Control  *the_message_queue,
164  rtems_option            option_set,
165  void                   *buffer,
166  unsigned32             *size_p
167)
168{
169  _Internal_error_Occurred(
170    INTERNAL_ERROR_RTEMS_API,
171    FALSE,
172    RTEMS_NOT_CONFIGURED
173  );
174  return RTEMS_NOT_CONFIGURED;
175  _Thread_Executing->Wait.return_code = RTEMS_UNSATISFIED;
176  return TRUE;
177}
178
179rtems_status_code _Message_queue_Submit(
180  Objects_Id                  id,
181  void                       *buffer,
182  unsigned32                  size,
183  Message_queue_Submit_types  submit_type
184)
185{
186  _Internal_error_Occurred(
187    INTERNAL_ERROR_RTEMS_API,
188    FALSE,
189    RTEMS_NOT_CONFIGURED
190  );
191  return RTEMS_NOT_CONFIGURED;
192}
Note: See TracBrowser for help on using the repository browser.