1 | /* unixtypes.h |
---|
2 | * |
---|
3 | * This include file contains type definitions which are appropriate |
---|
4 | * for a typical modern UNIX box using GNU C for the RTEMS simulator. |
---|
5 | * |
---|
6 | * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. |
---|
7 | * On-Line Applications Research Corporation (OAR). |
---|
8 | * All rights assigned to U.S. Government, 1994. |
---|
9 | * |
---|
10 | * This material may be reproduced by or for the U.S. Government pursuant |
---|
11 | * to the copyright license under the clause at DFARS 252.227-7013. This |
---|
12 | * notice must appear in all copies of this file and its derivatives. |
---|
13 | * |
---|
14 | * $Id$ |
---|
15 | */ |
---|
16 | |
---|
17 | #ifndef __UNIX_TYPES_h |
---|
18 | #define __UNIX_TYPES_h |
---|
19 | |
---|
20 | #ifndef ASM |
---|
21 | |
---|
22 | #ifdef __cplusplus |
---|
23 | extern "C" { |
---|
24 | #endif |
---|
25 | |
---|
26 | /* |
---|
27 | * some C++ compilers (eg: HP's) don't do 'signed' or 'volatile' |
---|
28 | */ |
---|
29 | #if defined(__cplusplus) && !defined(__GNUC__) |
---|
30 | #define signed |
---|
31 | #define volatile |
---|
32 | #endif |
---|
33 | |
---|
34 | /* |
---|
35 | * This section defines the basic types for this processor. |
---|
36 | */ |
---|
37 | |
---|
38 | typedef unsigned char unsigned8; /* unsigned 8-bit integer */ |
---|
39 | typedef unsigned short unsigned16; /* unsigned 16-bit integer */ |
---|
40 | typedef unsigned int unsigned32; /* unsigned 32-bit integer */ |
---|
41 | |
---|
42 | typedef unsigned16 Priority_Bit_map_control; |
---|
43 | |
---|
44 | typedef signed char signed8; /* 8-bit signed integer */ |
---|
45 | typedef signed short signed16; /* 16-bit signed integer */ |
---|
46 | typedef signed int signed32; /* 32-bit signed integer */ |
---|
47 | |
---|
48 | /* |
---|
49 | * some C++ compilers (eg: HP's) don't do 'long long' |
---|
50 | */ |
---|
51 | #if defined(__GNUC__) |
---|
52 | typedef unsigned long long unsigned64; /* unsigned 64-bit integer */ |
---|
53 | typedef signed long long signed64; /* 64 bit signed integer */ |
---|
54 | #endif |
---|
55 | |
---|
56 | typedef unsigned32 boolean; /* Boolean value */ |
---|
57 | |
---|
58 | typedef float single_precision; /* single precision float */ |
---|
59 | typedef double double_precision; /* double precision float */ |
---|
60 | |
---|
61 | typedef void unix_isr; |
---|
62 | |
---|
63 | typedef unix_isr ( *unix_isr_entry )( void ); |
---|
64 | |
---|
65 | #ifdef __cplusplus |
---|
66 | } |
---|
67 | #endif |
---|
68 | |
---|
69 | #endif /* !ASM */ |
---|
70 | |
---|
71 | #endif |
---|
72 | /* end of include file */ |
---|