source: rtems/c/src/exec/score/cpu/unix/rtems/score/unixtypes.h @ 08311cc3

4.104.114.84.95
Last change on this file since 08311cc3 was 08311cc3, checked in by Joel Sherrill <joel.sherrill@…>, on 11/17/99 at 17:51:34

Updated copyright notice.

  • Property mode set to 100644
File size: 1.8 KB
Line 
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-1999.
7 *  On-Line Applications Research Corporation (OAR).
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.OARcorp.com/rtems/license.html.
12 *
13 *  $Id$
14 */
15
16#ifndef __UNIX_TYPES_h
17#define __UNIX_TYPES_h
18
19#ifndef ASM
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25/*
26 * some C++ compilers (eg: HP's) don't do 'signed' or 'volatile'
27 */
28#if defined(__cplusplus) && !defined(__GNUC__)
29#define signed
30#define volatile
31#endif
32
33/*
34 *  This section defines the basic types for this processor.
35 */
36
37typedef unsigned char  unsigned8;      /* unsigned 8-bit  integer */
38typedef unsigned short unsigned16;     /* unsigned 16-bit integer */
39typedef unsigned int   unsigned32;     /* unsigned 32-bit integer */
40
41typedef unsigned16     Priority_Bit_map_control;
42
43typedef signed char      signed8;      /* 8-bit  signed integer */
44typedef signed short     signed16;     /* 16-bit signed integer */
45typedef signed int       signed32;     /* 32-bit signed integer */
46
47/*
48 * some C++ compilers (eg: HP's) don't do 'long long'
49 */
50#if defined(__GNUC__)
51typedef unsigned long long unsigned64; /* unsigned 64-bit integer */
52typedef signed long long signed64;     /* 64 bit signed integer */
53#endif
54
55typedef unsigned32 boolean;     /* Boolean value   */
56
57typedef float          single_precision;     /* single precision float */
58typedef double         double_precision;     /* double precision float */
59
60typedef void unix_isr;
61
62typedef unix_isr ( *unix_isr_entry )( void );
63
64#ifdef __cplusplus
65}
66#endif
67
68#endif  /* !ASM */
69
70#endif
71/* end of include file */
Note: See TracBrowser for help on using the repository browser.