diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-12-15 00:24:30 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-12-15 00:24:30 +0000 |
commit | 063a19a2909c7a3d31c2af410d01e3fd6f0100c6 (patch) | |
tree | 37dd18b56a9352d8b228dae38b5847c13d88a2b0 /c/src/exec/posix/inline/priority.inl | |
parent | Switch from .s to .S on include (diff) | |
download | rtems-063a19a2909c7a3d31c2af410d01e3fd6f0100c6.tar.bz2 |
Moved around per Ralf Corsepius as preparation for automake
Diffstat (limited to 'c/src/exec/posix/inline/priority.inl')
-rw-r--r-- | c/src/exec/posix/inline/priority.inl | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/c/src/exec/posix/inline/priority.inl b/c/src/exec/posix/inline/priority.inl deleted file mode 100644 index dc8187d4ef..0000000000 --- a/c/src/exec/posix/inline/priority.inl +++ /dev/null @@ -1,37 +0,0 @@ -/* - * $Id$ - */ - -#ifndef __RTEMS_POSIX_PRIORITY_inl -#define __RTEMS_POSIX_PRIORITY_inl - -/* - * 1003.1b-1993,2.2.2.80 definition of priority, p. 19 - * - * "Numericallly higher values represent higher priorities." - * - * Thus, RTEMS Core has priorities run in the opposite sense of the POSIX API. - */ - -RTEMS_INLINE_ROUTINE boolean _POSIX_Priority_Is_valid( - int priority -) -{ - return (boolean) (priority >= 1 && priority <= 254); -} - -RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core( - int priority -) -{ - return (Priority_Control) (255 - priority); -} - -RTEMS_INLINE_ROUTINE int _POSIX_Priority_From_core( - Priority_Control priority -) -{ - return 255 - priority; -} - -#endif |