source: rtems/c/src/exec/rtems/macros/attr.inl @ 98e4ebf5

4.104.114.84.95
Last change on this file since 98e4ebf5 was 98e4ebf5, checked in by Joel Sherrill <joel.sherrill@…>, on 10/08/97 at 15:45:54

Fixed typo in the pointer to the license terms.

  • Property mode set to 100644
File size: 1.7 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-1997.
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#define _Attributes_Is_global( _attribute_set ) \
52  ( (_attribute_set) & RTEMS_GLOBAL )
53
54/*PAGE
55 *
56 *  _Attributes_Is_priority
57 *
58 */
59
60#define _Attributes_Is_priority( _attribute_set ) \
61  ( (_attribute_set) & RTEMS_PRIORITY )
62
63/*PAGE
64 *
65 *  _Attributes_Is_binary_semaphore
66 *
67 */
68
69#define _Attributes_Is_binary_semaphore( _attribute_set ) \
70  ( (_attribute_set) & RTEMS_BINARY_SEMAPHORE )
71
72/*PAGE
73 *
74 *  _Attributes_Is_inherit_priority
75 *
76 */
77
78#define _Attributes_Is_inherit_priority( _attribute_set ) \
79  ( (_attribute_set) & RTEMS_INHERIT_PRIORITY )
80
81/*PAGE
82 *
83 *  _Attributes_Is_priority_ceiling
84 *
85 */
86 
87#define _Attributes_Is_priority_ceiling( _attribute_set ) \
88  ( (_attribute_set) & RTEMS_PRIORITY_CEILING )
89
90#endif
91/* end of include file */
Note: See TracBrowser for help on using the repository browser.