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

4.104.114.84.95
Last change on this file since df49c60 was df49c60, checked in by Joel Sherrill <joel.sherrill@…>, on 06/12/00 at 15:00:15

Merged from 4.5.0-beta3a

  • Property mode set to 100644
File size: 1.4 KB
Line 
1/*  unix.h
2 *
3 *  This include file contains the definitions required by RTEMS
4 *  which are typical for a modern UNIX computer using GCC.
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_h
17#define __UNIX_h
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23/*
24 *  This file contains the information required to build
25 *  RTEMS for a particular member of the "unix"
26 *  family when executing in protected mode.  It does
27 *  this by setting variables to indicate which implementation
28 *  dependent features are present in a particular member
29 *  of the family.
30 */
31 
32#if defined(rtems_multilib)
33/*
34 *  Figure out all CPU Model Feature Flags based upon compiler
35 *  predefines.
36 */
37
38#define CPU_MODEL_NAME  "rtems_multilib"
39 
40#elif defined(hpux)
41 
42#define CPU_MODEL_NAME  "HP-UX"
43 
44#elif defined(solaris2)
45 
46#define CPU_MODEL_NAME  "Solaris"
47 
48#elif defined(__linux__) || defined(linux)
49 
50#define CPU_MODEL_NAME  "Linux"
51 
52#elif defined(__CYGWIN__)
53 
54#define CPU_MODEL_NAME  "Cygwin"
55 
56#elif defined(__FreeBSD__)
57 
58#define CPU_MODEL_NAME  "FreeBSD"
59 
60#else
61 
62#error "Unsupported CPU Model"
63 
64#endif
65 
66#ifdef __cplusplus
67}
68#endif
69
70#endif
71/* end of include file */
72
Note: See TracBrowser for help on using the repository browser.