OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [posix/] [macros/] [rtems/] [posix/] [semaphore.inl] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
/*  rtems/posix/semaphore.inl
2
 *
3
 *  This include file contains the macro implementation of the private
4
 *  inlined routines for POSIX Semaphores.
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
 *  semaphore.inl,v 1.1 2000/12/01 18:57:36 joel Exp
14
 */
15
 
16
#ifndef __RTEMS_POSIX_SEMAPHORE_inl
17
#define __RTEMS_POSIX_SEMAPHORE_inl
18
 
19
/*PAGE
20
 *
21
 *  _POSIX_Semaphore_Allocate
22
 */
23
 
24
#define _POSIX_Semaphore_Allocate() \
25
  (POSIX_Semaphore_Control *) \
26
    _Objects_Allocate( &_POSIX_Semaphore_Information );
27
 
28
/*PAGE
29
 *
30
 *  _POSIX_Semaphore_Free
31
 */
32
 
33
#define _POSIX_Semaphore_Free( _the_semaphore ) \
34
  _Objects_Free( &_POSIX_Semaphore_Information, &(_the_semaphore)->Object )
35
 
36
/*PAGE
37
 *
38
 *  _POSIX_Semaphore_Namespace_remove
39
 */
40
 
41
#define _POSIX_Semaphore_Namespace_remove( _the_semaphore ) \
42
  _Objects_Namespace_remove( \
43
    &_POSIX_Semaphore_Information, &(_the_semaphore)->Object )
44
 
45
/*PAGE
46
 *
47
 *  _POSIX_Semaphore_Get
48
 */
49
 
50
#define _POSIX_Semaphore_Get( _id, _location ) \
51
  (POSIX_Semaphore_Control *) \
52
    _Objects_Get( &_POSIX_Semaphore_Information, *(_id), (_location) )
53
 
54
/*PAGE
55
 *
56
 *  _POSIX_Semaphore_Is_null
57
 */
58
 
59
#define _POSIX_Semaphore_Is_null( _the_semaphore ) \
60
  (!(_the_semaphore))
61
 
62
#endif
63
/*  end of include file */
64
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.