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:
576 bytes
|
Line | |
---|
1 | /* |
---|
2 | * $Id$ |
---|
3 | */ |
---|
4 | |
---|
5 | #ifndef __RTEMS_POSIX_PRIORITY_inl |
---|
6 | #define __RTEMS_POSIX_PRIORITY_inl |
---|
7 | |
---|
8 | /* |
---|
9 | * 1003.1b-1993,2.2.2.80 definition of priority, p. 19 |
---|
10 | * |
---|
11 | * "Numericallly higher values represent higher priorities." |
---|
12 | * |
---|
13 | * Thus, RTEMS Core has priorities run in the opposite sense of the POSIX API. |
---|
14 | */ |
---|
15 | |
---|
16 | #define _POSIX_Priority_Is_valid( _priority ) \ |
---|
17 | ((boolean) ((_priority) >= 1 && (_priority) <= 254)) |
---|
18 | |
---|
19 | #define _POSIX_Priority_To_core( _priority ) \ |
---|
20 | ((Priority_Control) (255 - (_priority))) |
---|
21 | |
---|
22 | #define _POSIX_Priority_From_core( _priority ) \ |
---|
23 | (255 - (_priority)) |
---|
24 | |
---|
25 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.