source: rtems/cpukit/score/cpu/unix/rtems/score/unix.h @ 8adc214

4.104.114.84.95
Last change on this file since 8adc214 was 8adc214, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/21/04 at 11:35:50

Cosmetics.

  • Property mode set to 100644
File size: 1.4 KB
Line 
1/**
2 * @file rtems/score/unix.h
3 */
4
5/*
6 *  This include file contains the definitions required by RTEMS
7 *  which are typical for a modern UNIX computer using GCC.
8 *
9 *  COPYRIGHT (c) 1989-1999.
10 *  On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.com/license/LICENSE.
15 *
16 *  $Id$
17 */
18
19#ifndef __UNIX_h
20#define __UNIX_h
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26/*
27 *  This file contains the information required to build
28 *  RTEMS for a particular member of the "unix"
29 *  family when executing in protected mode.  It does
30 *  this by setting variables to indicate which implementation
31 *  dependent features are present in a particular member
32 *  of the family.
33 */
34 
35#if defined(rtems_multilib)
36/*
37 *  Figure out all CPU Model Feature Flags based upon compiler
38 *  predefines.
39 */
40
41#define CPU_MODEL_NAME  "rtems_multilib"
42 
43#elif defined(hpux)
44 
45#define CPU_MODEL_NAME  "HP-UX"
46 
47#elif defined(solaris2)
48 
49#define CPU_MODEL_NAME  "Solaris"
50 
51#elif defined(__linux__) || defined(linux)
52 
53#define CPU_MODEL_NAME  "Linux"
54 
55#elif defined(__CYGWIN__)
56 
57#define CPU_MODEL_NAME  "Cygwin"
58 
59#elif defined(__FreeBSD__)
60 
61#define CPU_MODEL_NAME  "FreeBSD"
62 
63#else
64 
65#error "Unsupported CPU Model"
66 
67#endif
68 
69#ifdef __cplusplus
70}
71#endif
72
73#endif
Note: See TracBrowser for help on using the repository browser.