summaryrefslogtreecommitdiffstats
path: root/kdf/unix_outputs/unix-defines.txt
blob: 75a28467c58f3fcde45701a28c6b7c54c74154c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
What about using builtin symbols defined by the compiler (gcc)
itself. For example on Alpha I have :

lappa{bussat}(74) echo 'main(){printf("hello world\n";}' |gcc -E -v -
Reading specs from /usr/local/lib/gcc-lib/alpha-dec-osf4.0/2.7.2.3/specs
gcc version 2.7.2.3
 /usr/local/lib/gcc-lib/alpha-dec-osf4.0/2.7.2.3/cpp -lang-c -v -undef
-D__GNUC__=2 -D__GNUC_MINOR__=7 -Dunix -D__osf__ -D__alpha -D__alpha__
-D_LONGLONG -DSYSTYPE_BSD -D_SYSTYPE_BSD -D__unix__ -D__osf__ -D__alpha
-D__alpha__ -D_LONGLONG -D__SYSTYPE_BSD__ -D_SYSTYPE_BSD -D__unix
-D__SYSTYPE_BSD -Asystem(unix) -Asystem(xpg4) -Acpu(alpha)
-Amachine(alpha) -D__LANGUAGE_C__ -D__LANGUAGE_C -DLANGUAGE_C -
GNU CPP version 2.7.2.3
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/local/alpha-dec-osf4.0/include
 /usr/local/lib/gcc-lib/alpha-dec-osf4.0/2.7.2.3/include
 /usr/include
End of search list.
# 1 ""
main(){printf("hello world\n";}

On HP, this becomes :
bussat [21] echo 'main(){printf("hello world\n";}' |gcc -E -v -
Reading specs from
/opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux10.10/2.7.2.2/specs
gcc version 2.7.2.2
 /opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux10.10/2.7.2.2/cpp -lang-c -v -undef
-D__GNUC__=2 -D__GNUC_MINOR__=7 -Dhppa -Dhp9000s800 -D__hp9000s800
-Dhp9k8 -DPWB -Dhpux -Dunix -D_HPUX_SOURCE -D__hppa__ -D__hp9000s800__
-D__hp9000s800 -D__hp9k8__ -D__PWB__ -D__hpux__ -D__unix__
-D_HPUX_SOURCE -D__hppa -D__hp9000s800 -D__hp9k8 -D__PWB -D__hpux
-D__unix -Asystem(unix) -Asystem(hpux) -Acpu(hppa) -Amachine(hppa)
-D__hp9000s700 -D_PA_RISC1_1 -
GNU CPP version 2.7.2.2 (hppa)
#include "..." search starts here:
#include <...> search starts here:
 /opt/gcc/include
 /opt/gcc/hppa1.1-hp-hpux10.10/include
 /opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux10.10/2.7.2.2/include
 /usr/include
End of search list.
# 1 ""
main(){printf("hello world
";}

On Sun Solaris2.5 I found
lappsun8{bussat}[1]: echo 'main(){printf("hello world\n";}' |gcc -E -v -
Reading specs from
/opt/FSFgcc/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/specs
gcc version 2.7.2
 /opt/FSFgcc/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/cpp -lang-c -v
-undef -D__GNUC__=2 -D__GNUC_MINOR__=7 -Dsun -Dsparc -Dunix -D__svr4__
-D__SVR4 -D__GCC_NEW_VARARGS__ -D__sun__ -D__sparc__ -D__unix__
-D__svr4__ -D__SVR4 -D__GCC_NEW_VARARGS__ -D__sun -D__sparc -D__unix
-Asystem(unix) -Asystem(svr4) -Acpu(sparc) -Amachine(sparc) -
GNU CPP version 2.7.2 (sparc)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /opt/FSFgcc/sparc-sun-solaris2.5/include
 /opt/FSFgcc/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include
 /usr/include
End of search list.
# 1 ""
main(){printf("hello world
";}

Finally, on Sun with SunOS4.1 the results are :
lappsun1{bussat}[1]:  echo 'main(){printf("hello world\n";}' |gcc -E -v
-
Reading specs from
/usr/local/lib/gcc-lib/sparc-sun-sunos4.1.3_U1/2.6.0/specs
gcc version 2.6.0
 /usr/local/lib/gcc-lib/sparc-sun-sunos4.1.3_U1/2.6.0/cpp -lang-c -v
-undef -D__GNUC__=2 -D__GNUC_MINOR__=6 -Dsparc -Dsun -Dunix
-D__GCC_NEW_VARARGS__ -D__sparc__ -D__sun__ -D__unix__
-D__GCC_NEW_VARARGS__ -D__sparc -D__sun -D__unix -Asystem(unix)
-Asystem(bsd) -Acpu(sparc) -Amachine(sparc) -
GNU CPP version 2.6.0 (sparc)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/local/sparc-sun-sunos4.1.3_U1/include
 /usr/local/lib/gcc-lib/sparc-sun-sunos4.1.3_U1/2.6.0/include
 /usr/include
End of search list.
# 1 ""
main(){printf("hello world
";}

on a Linux box there is:
mike@kermit:/home/mike > echo 'main(){printf("hello world\n";}' |gcc -E -v -
Reading specs from /usr/lib/gcc-lib/i486-linux/2.7.2.1/specs
gcc version 2.7.2.1
 /usr/lib/gcc-lib/i486-linux/2.7.2.1/cpp -lang-c -v -undef -D__GNUC__=2 
-D__GNUC_MINOR__=7 -D__ELF__ -Dunix -Di386 -Dlinux -D__ELF__ -D__unix__
-D__i386__ -D__linux__ -D__unix -D__i386 -D__linux -Asystem(unix)
-Asystem(posix) -Acpu(i386) -Amachine(i386) -D__i486__ - GNU CPP version
2.7.2.1 (i386 Linux/ELF) #include "..." search starts here: #include <...>
search starts here:  /usr/local/include
 /usr/i486-linux/include
 /usr/lib/gcc-lib/i486-linux/2.7.2.1/include
 /usr/include
End of search list.
# 1 ""
main(){printf("hello world\n";}                     

on digital UNIX V3.2D-1 there is
mkropfbe@edusrv(1)$  echo 'main(){printf("hello world\n";}' |gcc -E -v -
Reading specs from /usr/local/lib/gcc-lib/alpha-dec-osf3.2/2.7.2/specs
gcc version 2.7.2
 /usr/local/lib/gcc-lib/alpha-dec-osf3.2/2.7.2/cpp -lang-c -v -undef 
-D__GNUC__=2 -D__GNUC_MINOR__=7 -Dunix -D__osf__ -D__alpha -D__alpha__
-D_LONGLONG -DSYSTYPE_BSD -D_SYSTYPE_BSD -D__unix__ -D__osf__ -D__alpha
-D__alpha__ -D_LONGLONG -D__SYSTYPE_BSD__ -D_SYSTYPE_BSD -D__unix
-D__SYSTYPE_BSD -Asystem(unix) -Asystem(xpg4) -Acpu(alpha) -Amachine(alpha)
-D__LANGUAGE_C__ -D__LANGUAGE_C -DLANGUAGE_C - GNU CPP version 2.7.2 #include
"..." search starts here: #include <...> search starts here: 
/usr/local/include  /usr/local/alpha-dec-osf3.2/include 
/usr/local/lib/gcc-lib/alpha-dec-osf3.2/2.7.2/include  /usr/include
End of search list.
# 1 ""
main(){printf("hello world\n";}