[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> |
---|
| 17 | #include <rtems/attr.h> |
---|
| 18 | #include <rtems/config.h> |
---|
| 19 | #include <rtems/isr.h> |
---|
| 20 | #include <rtems/object.h> |
---|
| 21 | #include <rtems/options.h> |
---|
| 22 | #include <rtems/sem.h> |
---|
| 23 | #include <rtems/states.h> |
---|
| 24 | #include <rtems/thread.h> |
---|
| 25 | #include <rtems/threadq.h> |
---|
| 26 | |
---|
| 27 | void _Semaphore_Manager_initialization( |
---|
| 28 | unsigned32 maximum_semaphores |
---|
| 29 | ) |
---|
| 30 | { |
---|
| 31 | } |
---|
| 32 | |
---|
| 33 | rtems_status_code rtems_semaphore_create( |
---|
| 34 | Objects_Name name, |
---|
| 35 | unsigned32 count, |
---|
| 36 | rtems_attribute attribute_set, |
---|
| 37 | Objects_Id *id |
---|
| 38 | ) |
---|
| 39 | { |
---|
| 40 | return( RTEMS_NOT_CONFIGURED ); |
---|
| 41 | } |
---|
| 42 | |
---|
| 43 | rtems_status_code rtems_semaphore_ident( |
---|
| 44 | Objects_Name name, |
---|
| 45 | unsigned32 node, |
---|
| 46 | Objects_Id *id |
---|
| 47 | ) |
---|
| 48 | { |
---|
| 49 | return( RTEMS_NOT_CONFIGURED ); |
---|
| 50 | } |
---|
| 51 | |
---|
| 52 | rtems_status_code rtems_semaphore_delete( |
---|
| 53 | Objects_Id id |
---|
| 54 | ) |
---|
| 55 | { |
---|
| 56 | return( RTEMS_NOT_CONFIGURED ); |
---|
| 57 | } |
---|
| 58 | |
---|
| 59 | rtems_status_code rtems_semaphore_obtain( |
---|
| 60 | Objects_Id id, |
---|
| 61 | unsigned32 option_set, |
---|
| 62 | rtems_interval timeout |
---|
| 63 | ) |
---|
| 64 | { |
---|
| 65 | return( RTEMS_NOT_CONFIGURED ); |
---|
| 66 | } |
---|
| 67 | |
---|
| 68 | rtems_status_code rtems_semaphore_release( |
---|
| 69 | Objects_Id id |
---|
| 70 | ) |
---|
| 71 | { |
---|
| 72 | return( RTEMS_NOT_CONFIGURED ); |
---|
| 73 | } |
---|
| 74 | |
---|
| 75 | boolean _Semaphore_Seize( |
---|
| 76 | Semaphore_Control *the_semaphore, |
---|
| 77 | rtems_option option_set |
---|
| 78 | ) |
---|
| 79 | { |
---|
| 80 | _Thread_Executing->Wait.return_code = RTEMS_UNSATISFIED; |
---|
| 81 | return( TRUE ); |
---|
| 82 | } |
---|