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 |
---|
20 | extern "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(hpux) |
---|
33 | |
---|
34 | #define CPU_MODEL_NAME "HP-UX" |
---|
35 | |
---|
36 | #elif defined(solaris2) |
---|
37 | |
---|
38 | #define CPU_MODEL_NAME "Solaris" |
---|
39 | |
---|
40 | #elif defined(__linux__) || defined(linux) |
---|
41 | |
---|
42 | #define CPU_MODEL_NAME "Linux" |
---|
43 | |
---|
44 | #elif defined(__CYGWIN__) |
---|
45 | |
---|
46 | #define CPU_MODEL_NAME "Cygwin" |
---|
47 | |
---|
48 | #elif defined(__FreeBSD__) |
---|
49 | |
---|
50 | #define CPU_MODEL_NAME "FreeBSD" |
---|
51 | |
---|
52 | #else |
---|
53 | |
---|
54 | #error "Unsupported CPU Model" |
---|
55 | |
---|
56 | #endif |
---|
57 | |
---|
58 | #ifdef __cplusplus |
---|
59 | } |
---|
60 | #endif |
---|
61 | |
---|
62 | #endif |
---|
63 | /* end of include file */ |
---|
64 | |
---|
Note: See
TracBrowser
for help on using the repository browser.