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

4.104.114.84.95
Last change on this file since a5f56a43 was c64e4ed4, checked in by Joel Sherrill <joel.sherrill@…>, on 01/15/96 at 21:50:28

updates from Tony Bennett for PA and UNIX ports

  • Property mode set to 100644
File size: 1.9 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, 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
23extern "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
38typedef unsigned char  unsigned8;      /* unsigned 8-bit  integer */
39typedef unsigned short unsigned16;     /* unsigned 16-bit integer */
40typedef unsigned int   unsigned32;     /* unsigned 32-bit integer */
41
42typedef unsigned16     Priority_Bit_map_control;
43
44typedef signed char      signed8;      /* 8-bit  signed integer */
45typedef signed short     signed16;     /* 16-bit signed integer */
46typedef 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__)
52typedef unsigned long long unsigned64; /* unsigned 64-bit integer */
53typedef signed long long signed64;     /* 64 bit signed integer */
54#endif
55
56typedef unsigned32 boolean;     /* Boolean value   */
57
58typedef float          single_precision;     /* single precision float */
59typedef double         double_precision;     /* double precision float */
60
61typedef void unix_isr;
62
63typedef 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 */
Note: See TracBrowser for help on using the repository browser.