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

4.104.114.84.95
Last change on this file since 62c4e481 was 5e9b32b, checked in by Joel Sherrill <joel.sherrill@…>, on 09/26/95 at 19:27:15

posix support initially added

  • Property mode set to 100644
File size: 1.7 KB
RevLine 
[ac7d5ef0]1/*
2 *  Semaphore 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>
[3a4ae6c]17#include <rtems/rtems/status.h>
18#include <rtems/rtems/attr.h>
[5e9b32b]19#include <rtems/score/isr.h>
20#include <rtems/score/object.h>
[3a4ae6c]21#include <rtems/rtems/options.h>
22#include <rtems/rtems/sem.h>
[5e9b32b]23#include <rtems/score/states.h>
24#include <rtems/score/thread.h>
25#include <rtems/score/threadq.h>
[ac7d5ef0]26
27void _Semaphore_Manager_initialization(
28  unsigned32 maximum_semaphores
29)
30{
31}
32
33rtems_status_code rtems_semaphore_create(
[7f6a24ab]34  rtems_name            name,
35  unsigned32            count,
36  rtems_attribute       attribute_set,
37  rtems_task_priority   priority_ceiling,
38  Objects_Id           *id
[ac7d5ef0]39)
40{
[3a4ae6c]41  return RTEMS_NOT_CONFIGURED;
[ac7d5ef0]42}
43
44rtems_status_code rtems_semaphore_ident(
[3235ad9]45  rtems_name    name,
[ac7d5ef0]46  unsigned32    node,
47  Objects_Id   *id
48)
49{
[3a4ae6c]50  return RTEMS_NOT_CONFIGURED;
[ac7d5ef0]51}
52
53rtems_status_code rtems_semaphore_delete(
54  Objects_Id id
55)
56{
[3a4ae6c]57  return RTEMS_NOT_CONFIGURED;
[ac7d5ef0]58}
59
60rtems_status_code rtems_semaphore_obtain(
61  Objects_Id        id,
62  unsigned32        option_set,
63  rtems_interval timeout
64)
65{
[3a4ae6c]66  return RTEMS_NOT_CONFIGURED;
[ac7d5ef0]67}
68
69rtems_status_code rtems_semaphore_release(
70  Objects_Id id
71)
72{
[3a4ae6c]73  return RTEMS_NOT_CONFIGURED;
[ac7d5ef0]74}
75
76boolean _Semaphore_Seize(
77  Semaphore_Control *the_semaphore,
78  rtems_option    option_set
79)
80{
81  _Thread_Executing->Wait.return_code = RTEMS_UNSATISFIED;
82  return( TRUE );
83}
Note: See TracBrowser for help on using the repository browser.