4.104.114.84.95
Line | |
---|
1 | /* rtems/posix/key.inl |
---|
2 | * |
---|
3 | * This include file contains the static inline implementation of the private |
---|
4 | * inlined routines for POSIX key's. |
---|
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 | * $Id$ |
---|
14 | */ |
---|
15 | |
---|
16 | #ifndef __RTEMS_POSIX_KEY_inl |
---|
17 | #define __RTEMS_POSIX_KEY_inl |
---|
18 | |
---|
19 | /*PAGE |
---|
20 | * |
---|
21 | * _POSIX_Keys_Allocate |
---|
22 | */ |
---|
23 | |
---|
24 | RTEMS_INLINE_ROUTINE POSIX_Keys_Control *_POSIX_Keys_Allocate( void ) |
---|
25 | { |
---|
26 | return (POSIX_Keys_Control *) _Objects_Allocate( &_POSIX_Keys_Information ); |
---|
27 | } |
---|
28 | |
---|
29 | /*PAGE |
---|
30 | * |
---|
31 | * _POSIX_Keys_Free |
---|
32 | */ |
---|
33 | |
---|
34 | RTEMS_INLINE_ROUTINE void _POSIX_Keys_Free ( |
---|
35 | POSIX_Keys_Control *the_key |
---|
36 | ) |
---|
37 | { |
---|
38 | _Objects_Free( &_POSIX_Keys_Information, &the_key->Object ); |
---|
39 | } |
---|
40 | |
---|
41 | /*PAGE |
---|
42 | * |
---|
43 | * _POSIX_Keys_Get |
---|
44 | */ |
---|
45 | |
---|
46 | RTEMS_INLINE_ROUTINE POSIX_Keys_Control *_POSIX_Keys_Get ( |
---|
47 | Objects_Id id, |
---|
48 | Objects_Locations *location |
---|
49 | ) |
---|
50 | { |
---|
51 | return (POSIX_Keys_Control *) |
---|
52 | _Objects_Get( &_POSIX_Keys_Information, id, location ); |
---|
53 | } |
---|
54 | |
---|
55 | /*PAGE |
---|
56 | * |
---|
57 | * _POSIX_Keys_Is_null |
---|
58 | */ |
---|
59 | |
---|
60 | RTEMS_INLINE_ROUTINE boolean _POSIX_Keys_Is_null ( |
---|
61 | POSIX_Keys_Control *the_key |
---|
62 | ) |
---|
63 | { |
---|
64 | return !the_key; |
---|
65 | } |
---|
66 | |
---|
67 | #endif |
---|
68 | /* end of include file */ |
---|
69 | |
---|
Note: See
TracBrowser
for help on using the repository browser.