source: rtems/cpukit/posix/inline/rtems/posix/key.inl @ 6c2675d

4.104.114.84.95
Last change on this file since 6c2675d was 6c2675d, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/21/04 at 06:27:15

Add doxygen preamble.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/**
2 * @file rtems/posix/key.inl
3 */
4
5/*  rtems/posix/key.inl
6 *
7 *  This include file contains the static inline implementation of the private
8 *  inlined routines for POSIX key's.
9 *
10 *  COPYRIGHT (c) 1989-1999.
11 *  On-Line Applications Research Corporation (OAR).
12 *
13 *  The license and distribution terms for this file may be
14 *  found in the file LICENSE in this distribution or at
15 *  http://www.rtems.com/license/LICENSE.
16 *
17 *  $Id$
18 */
19 
20#ifndef __RTEMS_POSIX_KEY_inl
21#define __RTEMS_POSIX_KEY_inl
22 
23/*PAGE
24 *
25 *  _POSIX_Keys_Allocate
26 */
27 
28RTEMS_INLINE_ROUTINE POSIX_Keys_Control *_POSIX_Keys_Allocate( void )
29{
30  return (POSIX_Keys_Control *) _Objects_Allocate( &_POSIX_Keys_Information );
31}
32 
33/*PAGE
34 *
35 *  _POSIX_Keys_Free
36 */
37 
38RTEMS_INLINE_ROUTINE void _POSIX_Keys_Free (
39  POSIX_Keys_Control *the_key
40)
41{
42  _Objects_Free( &_POSIX_Keys_Information, &the_key->Object );
43}
44 
45/*PAGE
46 *
47 *  _POSIX_Keys_Get
48 */
49 
50RTEMS_INLINE_ROUTINE POSIX_Keys_Control *_POSIX_Keys_Get (
51  Objects_Id         id,
52  Objects_Locations *location
53)
54{
55  return (POSIX_Keys_Control *)
56    _Objects_Get( &_POSIX_Keys_Information, id, location );
57}
58 
59/*PAGE
60 *
61 *  _POSIX_Keys_Is_null
62 */
63 
64RTEMS_INLINE_ROUTINE boolean _POSIX_Keys_Is_null (
65  POSIX_Keys_Control *the_key
66)
67{
68  return !the_key;
69}
70
71#endif
72/*  end of include file */
73
Note: See TracBrowser for help on using the repository browser.