source: rtems/c/src/optman/rtems/no-sem.c @ c8f3e82

Last change on this file since c8f3e82 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: 2.2 KB
Line 
1/*
2 *  Semaphore Manager
3 *
4 *
5 *  COPYRIGHT (c) 1989-1999.
6 *  On-Line Applications Research Corporation (OAR).
7 *
8 *  The license and distribution terms for this file may be
9 *  found in the file LICENSE in this distribution or at
10 *  http://www.OARcorp.com/rtems/license.html.
11 *
12 *  $Id$
13 */
14
15#include <rtems/system.h>
16#include <rtems/rtems/status.h>
17#include <rtems/rtems/attr.h>
18#include <rtems/score/isr.h>
19#include <rtems/score/object.h>
20#include <rtems/rtems/options.h>
21#include <rtems/rtems/sem.h>
22#include <rtems/score/states.h>
23#include <rtems/score/thread.h>
24#include <rtems/score/threadq.h>
25#include <rtems/score/interr.h>
26
27void _Semaphore_Manager_initialization(
28  unsigned32 maximum_semaphores
29)
30{
31}
32
33rtems_status_code rtems_semaphore_create(
34  rtems_name            name,
35  unsigned32            count,
36  rtems_attribute       attribute_set,
37  rtems_task_priority   priority_ceiling,
38  Objects_Id           *id
39)
40{
41  _Internal_error_Occurred(
42    INTERNAL_ERROR_RTEMS_API,
43    FALSE,
44    RTEMS_NOT_CONFIGURED
45  );
46  return RTEMS_NOT_CONFIGURED;
47}
48
49rtems_status_code rtems_semaphore_ident(
50  rtems_name    name,
51  unsigned32    node,
52  Objects_Id   *id
53)
54{
55  _Internal_error_Occurred(
56    INTERNAL_ERROR_RTEMS_API,
57    FALSE,
58    RTEMS_NOT_CONFIGURED
59  );
60  return RTEMS_NOT_CONFIGURED;
61}
62
63rtems_status_code rtems_semaphore_delete(
64  Objects_Id id
65)
66{
67  _Internal_error_Occurred(
68    INTERNAL_ERROR_RTEMS_API,
69    FALSE,
70    RTEMS_NOT_CONFIGURED
71  );
72  return RTEMS_NOT_CONFIGURED;
73}
74
75rtems_status_code rtems_semaphore_obtain(
76  Objects_Id        id,
77  unsigned32        option_set,
78  rtems_interval timeout
79)
80{
81  _Internal_error_Occurred(
82    INTERNAL_ERROR_RTEMS_API,
83    FALSE,
84    RTEMS_NOT_CONFIGURED
85  );
86  return RTEMS_NOT_CONFIGURED;
87}
88
89rtems_status_code rtems_semaphore_release(
90  Objects_Id id
91)
92{
93  _Internal_error_Occurred(
94    INTERNAL_ERROR_RTEMS_API,
95    FALSE,
96    RTEMS_NOT_CONFIGURED
97  );
98  return RTEMS_NOT_CONFIGURED;
99}
100
101boolean _Semaphore_Seize(
102  Semaphore_Control *the_semaphore,
103  rtems_option    option_set
104)
105{
106  _Internal_error_Occurred(
107    INTERNAL_ERROR_RTEMS_API,
108    FALSE,
109    RTEMS_NOT_CONFIGURED
110  );
111  _Thread_Executing->Wait.return_code = RTEMS_UNSATISFIED;
112  return TRUE;
113}
Note: See TracBrowser for help on using the repository browser.