4.104.114.84.95
Last change
on this file since 2b2bda4 was
2b2bda4,
checked in by Joel Sherrill <joel.sherrill@…>, on 12/01/00 at 18:57:36
|
2000-12-01 Joel Sherrill <joel@…>
- Added macro support to POSIX API. This is known to compile.
- macros/rtems/posix/cond.inl, macros/rtems/posix/intr.inl,
macros/rtems/posix/key.inl, macros/rtems/posix/mqueue.inl,
macros/rtems/posix/mutex.inl, macros/rtems/posix/priority.inl,
macros/rtems/posix/pthread.inl, macros/rtems/posix/semaphore.inl,
macros/rtems/posix/timer.inl: New files.
- configure.in: Removed error check for enabling macros.
- rtems/posix/mutex.h: #if 0'ed out prototypes for inlined routines
since you cannot have prototypes for macros.
- macros/rtems/posix/Makefile.am: Added files.
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | /* rtems/posix/key.inl |
---|
2 | * |
---|
3 | * This include file contains the macro 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 | #define _POSIX_Keys_Allocate() \ |
---|
25 | (POSIX_Keys_Control *) _Objects_Allocate( &_POSIX_Keys_Information ) |
---|
26 | |
---|
27 | /*PAGE |
---|
28 | * |
---|
29 | * _POSIX_Keys_Free |
---|
30 | */ |
---|
31 | |
---|
32 | #define _POSIX_Keys_Free( _the_key ) \ |
---|
33 | _Objects_Free( &_POSIX_Keys_Information, &(_the_key)->Object ); |
---|
34 | |
---|
35 | /*PAGE |
---|
36 | * |
---|
37 | * _POSIX_Keys_Get |
---|
38 | */ |
---|
39 | |
---|
40 | #define _POSIX_Keys_Get( _id, _location ) \ |
---|
41 | (POSIX_Keys_Control *) \ |
---|
42 | _Objects_Get( &_POSIX_Keys_Information, (_id), (_location) ) |
---|
43 | |
---|
44 | /*PAGE |
---|
45 | * |
---|
46 | * _POSIX_Keys_Is_null |
---|
47 | */ |
---|
48 | |
---|
49 | #define _POSIX_Keys_Is_null( _the_key ) \ |
---|
50 | (!(_the_key)) |
---|
51 | |
---|
52 | #endif |
---|
53 | /* end of include file */ |
---|
54 | |
---|
Note: See
TracBrowser
for help on using the repository browser.