source: rtems/c/src/exec/rtems/macros/rtems/rtems/attr.inl @ 97e2729d

4.104.114.84.95
Last change on this file since 97e2729d was 97e2729d, checked in by Joel Sherrill <joel.sherrill@…>, on 11/23/98 at 17:38:09

Added --disable-multiprocessing flag and modified a lot of files to make
it work.

  • Property mode set to 100644
File size: 1.9 KB
Line 
1/*  macros/attr.h
2 *
3 *  This include file contains all of the inlined routines associated
4 *  with attributes.
5 *
6 *  COPYRIGHT (c) 1989-1998.
7 *  On-Line Applications Research Corporation (OAR).
8 *  Copyright assigned to U.S. Government, 1994.
9 *
10 *  The license and distribution terms for this file may be
11 *  found in the file LICENSE in this distribution or at
12 *  http://www.OARcorp.com/rtems/license.html.
13 *
14 *  $Id$
15 */
16
17#ifndef __MACROS_ATTRIBUTES_h
18#define __MACROS_ATTRIBUTES_h
19
20/*PAGE
21 *
22 *  _Attributes_Set
23 */
24
25#define _Attributes_Set( _new_attributes, _attribute_set ) \
26  ( (_attribute_set) | (_new_attributes) )
27
28/*PAGE
29 *
30 *  _Attributes_Clear
31 */
32
33#define _Attributes_Clear( _attribute_set, _mask ) \
34  ( (_attribute_set) & ~(_mask) )
35
36/*PAGE
37 *
38 *  _Attributes_Is_floating_point
39 *
40 */
41
42#define _Attributes_Is_floating_point( _attribute_set ) \
43  ( (_attribute_set) & RTEMS_FLOATING_POINT )
44
45/*PAGE
46 *
47 *  _Attributes_Is_global
48 *
49 */
50
51#if defined(RTEMS_MULTIPROCESSING)
52#define _Attributes_Is_global( _attribute_set ) \
53  ( (_attribute_set) & RTEMS_GLOBAL )
54#endif
55
56/*PAGE
57 *
58 *  _Attributes_Is_priority
59 *
60 */
61
62#define _Attributes_Is_priority( _attribute_set ) \
63  ( (_attribute_set) & RTEMS_PRIORITY )
64
65/*PAGE
66 *
67 *  _Attributes_Is_binary_semaphore
68 *
69 */
70
71#define _Attributes_Is_binary_semaphore( _attribute_set ) \
72  ( (_attribute_set) & RTEMS_BINARY_SEMAPHORE )
73
74/*PAGE
75 *
76 *  _Attributes_Is_inherit_priority
77 *
78 */
79
80#define _Attributes_Is_inherit_priority( _attribute_set ) \
81  ( (_attribute_set) & RTEMS_INHERIT_PRIORITY )
82
83/*PAGE
84 *
85 *  _Attributes_Is_priority_ceiling
86 *
87 */
88 
89#define _Attributes_Is_priority_ceiling( _attribute_set ) \
90  ( (_attribute_set) & RTEMS_PRIORITY_CEILING )
91
92/*PAGE
93 *
94 *  _Attributes_Is_system_task
95 *
96 */
97 
98#define _Attributes_Is_system_task( _attribute_set ) \
99  ( (_attribute_set) & RTEMS_SYSTEM_TASK )
100
101#endif
102/* end of include file */
Note: See TracBrowser for help on using the repository browser.