2 /* $Header: /src/pub/tcsh/host.defs,v 1.28 2000/11/11 23:03:35 christos Exp $ */
4 * host.defs: Hosttype/Machtype etc.
7 * Copyright (c) 1980, 1991 The Regents of the University of California.
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
18 * 3. All advertising materials mentioning features or use of this software
19 * must display the following acknowledgement:
20 * This product includes software developed by the University of
21 * California, Berkeley and its contributors.
22 * 4. Neither the name of the University nor the names of its contributors
23 * may be used to endorse or promote products derived from this software
24 * without specific prior written permission.
26 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
27 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
30 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
40 RCSID("$Id: host.defs,v 1.28 2000/11/11 23:03:35 christos Exp $")
44 macro : M_mipsel : (defined(mips) || defined(__mips)) && (defined(MIPSEL) || defined(__MIPSEL))
45 macro : M_mipseb : (defined(mips) || defined(__mips)) && (defined(MIPSEB) || defined(__MIPSEB))
46 macro : M_i386 : (defined(i386) || defined(__i386__))
47 macro : M_i486 : (defined(i486) || defined(__i486__))
48 macro : M_i586 : (defined(i586) || defined(__i586__))
49 macro : M_intel : (defined(M_i386) || defined(M_i486) || defined(M_i586))
51 newdef : defined(ns32000)
57 if (access("/Umax.image", F_OK) == 0)
60 return flag ? "mach" : "ns32000";
66 newdef : defined(cray)
69 * On crays, find the current machine type via the target() syscall
70 * We need ctype.h to convert the name returned to lower case
72 # include <sys/target.h>
76 /* From: hpa@hook.eecs.nwu.edu (H. Peter Anvin) */
80 # ifdef MC_GET_SYSTEM /* If we have target() */
83 if (target(MC_GET_SYSTEM, &data) != -1) {
84 static char hosttype_buf[sizeof(data.mc_pmt)+1];
85 char *p = (char *) &(data.mc_pmt);
86 char *q = hosttype_buf;
90 * Copy to buffer and convert to lower case
91 * String may not be null-terminated, so keep a counter
93 for (n = 0; *p && n < sizeof(data.mc_pmt); n++)
98 /* replace dashes with underscores if present */
99 while ((q = strchr(hosttype_buf, '-')) != NULL)
101 return hosttype_buf; /* Return in static buffer */
104 # endif /* MC_GET_SYSTEM */
105 return "cray"; /* target() failed */
111 newdef : defined(convex)
114 * On convex, find the current machine type via the getsysinfo() syscall
116 #include <sys/sysinfo.h>
118 /* From: fox@convex.com (David DeSimone) */
122 struct system_information sysinfo;
123 static char result[8];
125 if (getsysinfo(SYSINFO_SIZE, &sysinfo) == -1)
128 switch(sysinfo.cpu_type) {
139 #ifdef SI_CPUTYPE_C2MP
140 case SI_CPUTYPE_C2MP:
141 (void) strcpy(result, "c2X0");
142 result[2] = sysinfo.cpu_count + '0';
146 #ifdef SI_CPUTYPE_C34
148 (void) strcpy(result, "c34X0");
149 result[3] = sysinfo.cpu_count + '0';
153 #ifdef SI_CPUTYPE_C38
155 (void) strcpy(result, "c38X0");
156 result[3] = sysinfo.cpu_count + '0';
160 #ifdef SI_CPUTYPE_C46
162 (void) strcpy(result, "c46X0");
163 result[3] = sysinfo.cpu_count + '0';
187 newdef : defined(HOSTTYPE)
192 newdef : defined(__PARAGON__)
193 comment : Intel Paragon running OSF/1
195 hosttype: : "paragon"
197 machtype: defined(M_i386) : "i386"
201 newdef : defined(AMIX)
202 comment : Amiga running Amix 2.02
203 vendor : : "commodore"
210 newdef : defined(accel)
211 comment : celerity Accel
212 vendor : : "celerity"
213 hosttype: : "celerityACCEL"
219 newdef : defined(_VMS_POSIX)
220 comment : digital vax or alpha running vms posix
222 hosttype: : "VMS-POSIX"
224 machtype: defined(__alpha) : "alpha"
225 machtype: defined(__vax) || defined(vax) : "vax"
226 machtype: defined(__vax__) : "vax"
230 newdef : defined(__hp_osf)
231 comment : Hewlett Packard running OSF/1
233 hosttype: defined(__pa_risc) : "hp9000s700-osf1"
234 hosttype: : "hp-osf1"
236 machtype: defined(__pa_risc) : "pa_risc"
240 newdef : defined(hp9000)
241 comment : Hewlett Packard running MORE/bsd
243 hosttype: defined(hp300) : "hp300"
244 hosttype: defined(hp800) : "hp800"
246 ostype : defined(BSD4_4) : "bsd44"
248 machtype: defined(hp300) : "m68k"
249 machtype: defined(hp800) : "pa_risc"
253 newdef : defined(hpux) || defined(__hpux)
254 comment : Hewlett Packard running HP/UX
256 hosttype: defined(__hp9000s700) : "hp9000s700"
257 hosttype: defined(__hp9000s800) || defined(hp9000s800) : "hp9000s800"
258 hosttype: defined(hp9000s500) : "hp9000s500"
259 hosttype: defined(__hp9000s300) || defined(hp9000s300) : "hp9000s300"
262 machtype: defined(__hp9000s700) : "pa_risc"
263 machtype: defined(__hp9000s800) || defined(hp9000s800) : "pa_risc"
264 machtype: defined(hp9000s500) : "m68k"
265 machtype: defined(__hp9000s300) || defined(hp9000s300) : "m68k"
269 newdef : defined(apollo)
270 comment : Hewlett Packard apollo running Domain/OS
273 ostype : : "DomainOS"
278 newdef : defined(sun) || defined(__sun__)
279 comment : Sun Microsystems series 2 workstation (68010 based)
280 comment : Sun Microsystems series 3 workstation (68020 based)
281 comment : Sun Microsystems 386i workstation (386 based)
282 comment : Sun Microsystems series 4 workstation (SPARC based)
284 hosttype: defined(M_i386) && !defined(__SVR4) : "sun386i"
285 hosttype: defined(M_i386) && defined(__SVR4) : "i86pc"
286 hosttype: defined(mc68010) || defined(__mc68010__) : "sun2"
287 hosttype: defined(mc68020) || defined(__mc68020__) : "sun3"
288 hosttype: defined(sparc) || defined(__sparc__) : "sun4"
290 ostype : defined(SUNOS3) : "sunos3"
291 ostype : defined(SUNOS4) : "sunos4"
292 ostype : defined(SOLARIS2) : "solaris"
293 machtype: defined(mc68010) || defined(__mc68010__) : "m68k"
294 machtype: defined(mc68020) || defined(__mc68020__) : "m68k"
295 machtype: defined(sparc) || defined(__sparc__) : "sparc"
296 machtype: defined(M_i386) : "i386"
300 newdef : defined(pyr)
301 comment : Pyramid Technology
303 hosttype: : "pyramid"
304 machtype: : "pyramid"
308 newdef : defined(hcx) || defined(_CX_UX)
309 comment : Harris Tahoe running CX/UX
317 newdef : defined(tahoe)
318 comment : Harris Tahoe
325 newdef : defined(ibm032)
326 comment : RT running IBM AOS4.3 or MACH
329 ostype : defined(MACH) : "mach"
335 newdef : defined(aiws)
336 comment : RT running IBM aix2.x
344 newdef : defined(_AIX370)
345 comment : IBM/370 running aix
353 newdef : defined(_IBMESA)
354 comment : IBM/ESA running aix
362 newdef : defined(_IBMR2)
363 comment : IBM/RS6000 running aix
371 newdef : defined(_AIXPS2)
372 comment : IBM/PS2 running aix
380 newdef : defined(OREO)
381 comment : Macintosh running AU/X
385 machtype: defined(mc68020) : "m68k"
389 newdef : defined(u3b20d)
390 comment : AT&T 3B/20 series running SVR2/3
392 hosttype: : "att3b20"
397 newdef : defined(u3b15)
398 comment : AT&T 3B/15 series running SVR2/3
400 hosttype: : "att3b15"
405 newdef : defined(u3b5)
406 comment : AT&T 3B/5 series running SVR2/3
413 newdef : defined(u3b2)
414 comment : AT&T 3B/2 series running SVR2/3
421 newdef : defined(UNIXPC)
422 comment : AT&T UnixPC att3b1/att7300
425 machtype: defined(u3b1) : "u3b1"
426 machtype: defined(att7300) : "att7300"
430 newdef : defined(_MINIX)
431 comment : Andy Tanenbaum's minix
432 vendor : defined(M_i386) : "intel"
433 hosttype: defined(M_i386) : "minix386"
436 machtype: defined(M_i386) : "i386"
440 newdef : defined(linux)
441 comment : Linus Torvalds's linux
442 vendor : defined(M_intel) : "intel"
443 hosttype: defined(M_i586) : "i586-linux"
444 hosttype: defined(M_i486) : "i486-linux"
445 hosttype: defined(M_i386) : "i386-linux"
446 ostype : !defined(PPC) : "linux"
447 ostype : defined(PPC) : "mklinux"
448 machtype: defined(M_i586) : "i586"
449 machtype: defined(M_i486) : "i486"
450 machtype: defined(M_i386) : "i386"
451 vendor : defined(__alpha) : "dec"
452 vendor : defined(PPC) : "apple"
453 hosttype: defined(__alpha) : "alpha"
454 hosttype: defined(PPC) : "powerpc"
455 machtype: defined(__alpha) : "alpha"
456 machtype: defined(PPC) : "powerpc"
460 newdef : defined(__EMX__)
461 comment : OS/2 EMX [unix emulation under OS/2]
462 vendor : defined(M_intel) : "intel"
463 hosttype: defined(M_i386) : "i386-emx"
465 machtype: defined(M_i386) : "i386"
469 newdef : defined(__NetBSD__)
471 vendor : defined(arm32) : "acorn"
472 vendor : defined(alpha) : "digital"
473 vendor : defined(amiga) : "commodore"
474 vendor : defined(atari) : "atari"
475 vendor : defined(hp300) : "hp"
476 vendor : defined(M_intel) : "intel"
477 vendor : defined(m68k) : "motorola"
478 vendor : defined(mac68k) : "apple"
479 vendor : defined(pc532) : "national-semi"
480 vendor : defined(pmax) || defined(mips) : "dec"
481 vendor : defined(M_mipsel) : "dec"
482 vendor : defined(sparc) : "sun"
483 vendor : defined(sun3) : "sun"
484 vendor : defined(vax) : "digital"
487 machtype: defined(arm32) : "arm32"
488 machtype: defined(sparc) : "sparc"
489 machtype: defined(mc68020) : "m68k"
490 machtype: defined(M_i386) : "i386"
491 machtype: defined(M_mipsel) : "mipsel"
492 machtype: defined(M_mipseb) : "mipseb"
493 machtype: defined(mips) : "mips"
494 machtype: defined(pc532) : "pc532"
495 machtype: defined(vax) : "vax"
496 machtype: defined(alpha) : "alpha"
500 newdef : defined(__FreeBSD__)
502 vendor : defined(M_intel) : "intel"
503 hosttype: : "FreeBSD"
509 newdef : defined(__386BSD__)
510 comment : Bill Jolitz's 386BSD
511 vendor : defined(M_intel) : "intel"
518 newdef : defined(bsdi)
519 comment : BSDI's unix
520 vendor : defined(M_intel) : "intel"
521 vendor : defined(sparc) : "sun"
522 vendor : defined(__powerpc__) : "motorola"
523 hosttype: defined(M_intel) : "bsd386"
524 hosttype: defined(sparc) : "bsd-sparc"
525 hosttype: defined(__powerpc__) : "bsd-powerpc"
527 machtype: defined(M_i386) : "i386"
528 machtype: defined(sparc) : "sparc"
529 machtype: defined(__powerpc__) : "powerpc"
533 newdef : defined(COHERENT)
534 comment : COHERENT's unix
535 vendor : defined(_I386) : "intel"
537 hosttype: : "coherent"
538 ostype : : "coherent"
539 machtype: defined(_I386) : "i386"
542 newdef : defined(SCO)
543 comment : SCO UNIX System V/386 Release 3.2
546 ostype : : "sco_unix"
550 newdef : defined(M_XENIX) && !defined(M_UNIX)
553 hosttype: : "sco_xenix"
554 ostype : : "sco_xenix"
555 machtype: defined(M_I386) : "i386"
556 machtype: defined(M_I286) : "i286"
560 newdef : defined(ISC) || defined(ISC202)
561 comment : Interactive Unix
564 ostype : defined(POSIX) : "POSIX"
566 machtype: defined(M_i386) : "i386"
570 newdef : defined(INTEL)
573 hosttype: : "intel386"
574 ostype : : "intel_unix"
575 machtype: defined(M_i386) : "i386"
579 newdef : defined(MACH)
582 hosttype: defined(M_i386) : "i386-mach"
584 machtype: defined(M_i386) : "i386"
588 newdef : defined(alliant)
589 comment : Alliants FSX
591 hosttype: defined(mc68000) : "alliant-fx80"
592 hosttype: defined(i860) : "alliant-fx2800"
593 hosttype: : "alliant"
595 machtype: defined(mc68000) : "mc68000"
596 machtype: defined(i860) : "i860"
600 newdef : defined(_FTX)
601 comment : Stratus Computer, Inc FTX2 (i860 based)
602 comment : Stratus Computer, Inc FTX3 (HPPA based)
604 hosttype: defined(i860) && defined(_FTX) : "atlantic"
605 hosttype: defined(__hppa) && defined(_FTX) : "continuum"
606 ostype : defined(i860) && defined(_FTX) : "ftx2"
607 ostype : defined(__hppa) && defined(_FTX) : "ftx3"
608 machtype: defined(i860) : "i860"
609 machtype: defined(__hppa) : "hppa"
613 newdef : defined(sequent) || defined(_SEQUENT_)
614 comment : Sequent Balance (32000 based)
615 comment : Sequent Symmetry running DYNIX/ptx (386/486 based)
616 comment : Sequent Symmetry running DYNIX 3 (386/486 based)
618 hosttype: defined(M_i386) && defined(sequent) : "symmetry"
619 hosttype: defined(M_i386) : "ptx"
620 hosttype: : "balance"
621 ostype : defined(M_i386) && !defined(sequent) : "ptx"
623 machtype: defined(M_i386) : "i386"
624 machtype: defined(ns32000) : "ns32000"
628 newdef : defined(ns32000)
629 comment : Encore Computer Corp. Multimax (32000 based)
631 hosttype: defined(CMUCS) : "multimax"
632 hosttype: : isamultimax(0)
633 ostype : defined(CMUCS) : "mach"
634 ostype : : isamultimax(1)
635 machtype: : "ns32000"
639 newdef : defined(iconuxv)
640 comment : Icon 88k running Unix
644 machtype: defined(m88k) || defined(__m88k__) : "m88k"
648 newdef : defined(_CRAY) && defined(_CRAYCOM)
649 comment : Cray Computer Corp. running CSOS
651 hosttype: defined(_CRAY2) : "cray"
652 hosttype: defined(_CRAY3) : "cray"
653 hosttype: defined(_CRAY4) : "cray"
655 machtype: defined(_CRAY2) : "cray2"
656 machtype: defined(_CRAY3) : "cray3"
657 machtype: defined(_CRAY4) : "cray4"
661 newdef : defined(cray) && !defined(_CRAYMPP)
662 comment : Cray Research Inc. PVP running UNICOS
664 hosttype: : getcray()
666 machtype: : getcray()
670 newdef : defined(cray) && defined(_CRAYT3D)
671 comment : Cray Research Inc. running UNICOS MAX
673 hosttype: : getcray()
674 ostype : : "unicosmax"
675 machtype: : getcray()
679 newdef : defined(cray) && defined(_CRAYT3E)
680 comment : Cray Research Inc. running UNICOS/mk
682 hosttype: : getcray()
683 ostype : : "unicosmk"
684 machtype: : getcray()
688 newdef : defined(convex)
692 ostype : : "convexos"
693 machtype: : getconvex()
697 newdef : defined(butterfly)
698 comment : BBN Butterfly 1000
700 hosttype: : "butterfly"
701 machtype: defined(mc68020) || defined(__mc68020__) : "m68k"
705 newdef : defined(NeXT)
708 hosttype: defined(mc68020) || defined(__mc68020__) : "next"
709 hosttype: defined(M_i386) || defined(__i386__) : "intel-pc"
710 hosttype: defined(hppa) || defined(__hppa__) : "hp"
711 hosttype: defined(sparc) || defined(__sparc__) : "sun"
712 ostype : : "nextstep"
713 machtype: defined(mc68020) || defined(__mc68020__) : "m68k"
714 machtype: defined(M_i386) || defined(__i386__) : "i386"
715 machtype: defined(hppa) || defined(__hppa__) : "hppa"
716 machtype: defined(sparc) || defined(__sparc__) : "sparc"
720 newdef : defined(__APPLE__)
723 hosttype: defined(__i386__) : "intel-pc"
724 hosttype: defined(__ppc__) : "macintosh"
725 ostype : : "rhapsody"
726 machtype: defined(__i386__) : "i386"
727 machtype: defined(__ppc__) : "powerpc"
731 newdef : defined(sony_news)
732 comment : Sony NEWS 800 or 1700 workstation
734 hosttype: defined(mips) : "news_mips"
735 hosttype: defined(mc68020) || defined(__mc68020__) : "news_m68k"
737 machtype: defined(mc68020) || defined(__mc68020__) : "m68k"
738 machtype: defined(M_mipsel) : "mipsel"
739 machtype: defined(M_mipseb) : "mipseb"
743 newdef : defined(sgi)
744 comment : Silicon Graphics
746 hosttype: defined(M_mipsel) : "iris4d"
747 hosttype: defined(M_mipseb) : "iris4d"
748 hosttype: defined(mc68000) : "iris3d"
750 machtype: defined(M_mipsel) : "mipsel"
751 machtype: defined(M_mipseb) : "mipseb"
752 machtype: defined(mc68000) : "mc68000"
756 newdef : defined(ultrix) || defined(__ultrix)
757 comment : Digital's Ultrix
759 hosttype: defined(M_mipsel) : "decstation"
760 hosttype: defined(M_mipseb) : "decmips"
761 hosttype: defined(vax) || defined(__vax) : "vax"
762 hosttype: defined(__vax__) : "vax"
764 machtype: defined(M_mipsel) : "mipsel"
765 machtype: defined(M_mipseb) : "mipseb"
766 machtype: defined(vax) || defined (__vax) : "vax"
767 hosttype: defined(__vax__) : "vax"
771 newdef : defined(MIPS)
774 hosttype: defined(M_mipsel) : "mips"
775 hosttype: defined(M_mipseb) : "mips"
777 machtype: defined(M_mipsel) : "mipsel"
778 machtype: defined(M_mipseb) : "mipseb"
782 newdef : defined(DECOSF1)
783 comment : Digital's alpha running osf1
786 hosttype: defined(__alpha) : "alpha"
787 machtype: defined(__alpha) : "alpha"
791 newdef : defined(Lynx)
792 comment : Lynx OS 2.1
794 hosttype: defined(M_mipsel) : "lynxos-mips"
795 hosttype: defined(M_mipseb) : "lynxos-mips"
796 hosttype: defined(M_i386) : "lynxos-i386"
797 hosttype: defined(i860) || defined(__i860__) : "lynxos-i860"
798 hosttype: defined(m68k) : "lynxos-m68k"
799 hosttype: defined(m88k) : "lynxos-m88k"
800 hosttype: defined(sparc) : "lynxos-sparc"
801 hosttype: : "lynxos-unknown"
803 machtype: defined(M_mipsel) : "mipsel"
804 machtype: defined(M_mipseb) : "mipseb"
805 machtype: defined(M_i386) : "i386"
806 machtype: defined(i860) || defined(__i860__) : "i860"
807 machtype: defined(m68k) : "m68k"
808 machtype: defined(m88k) : "m88k"
809 machtype: defined(sparc) : "sparc"
813 newdef : defined(masscomp)
815 vendor : : "masscomp"
816 hosttype: : "masscomp"
817 ostype : : "masscomp"
820 newdef : defined(__MACHTEN__)
823 hosttype: : "Macintosh"
825 machtype: : "Macintosh"
830 newdef : defined(GOULD_NP1)
833 hosttype: : "gould_np1"
838 newdef : defined(MULTIFLOW)
839 comment : Multiflow running 4.3BSD
840 vendor : : "multiflow"
841 hosttype: : "multiflow"
842 machtype: : "multiflow"
847 newdef : defined(SXA)
848 comment : PFU/Fujitsu A-xx computer
851 ostype : defined(_BSDX_) : "e60-bsdx"
857 newdef : defined(titan)
858 comment : (St)Ardent Titan
864 newdef : defined(stellar)
867 hosttype: : "stellar"
872 newdef : defined(atari)
873 comment : Atari TT running SVR4. This machine was never
874 comment : commercially available.
881 newdef : defined(OPUS)
888 newdef : defined(eta10)
889 comment : ETA running SVR3
895 newdef : defined(hk68)
896 comment : Heurikon HK68 running Uniplus+ 5.0
897 vendor : : "heurikon"
903 newdef : defined(NDIX)
904 comment : Norsk Data ND 500/5000 running Ndix
911 newdef : defined(AMIGA)
912 comment : Amiga running AmigaOS+GG
913 vendor : : "commodore"
920 newdef : defined(uts)
921 comment : Amdahl running uts 2.1
929 newdef : defined(UTek)
930 comment : Tektronix 4300 running UTek (BSD 4.2 / 68020 based)
931 vendor : : "tektronix"
932 hosttype: : "tek4300"
936 newdef : defined(UTekV)
937 comment : Tektronix XD88/10 running UTekV 3.2e (SVR3/88100 based)
938 vendor : : "tektronix"
939 hosttype: : "tekXD88"
943 newdef : defined(__DGUX__)
944 comment : Data-General AViiON running DGUX
948 machtype: defined(__m88k__) : "m88k"
949 machtype: defined(__i386__) : "pentium"
953 newdef : defined(sysV68)
954 comment : Motorola MPC running System V/68 R32V2 (SVR3/68020 based)
955 vendor : : "motorola"
961 newdef : defined(supermax)
962 comment : DDE Supermax running System V/68 R3 (SVR3/68020 based)
963 vendor : : "supermax"
964 hosttype: : "supermax"
969 newdef : defined(sysV88)
970 comment : Motorola MPC running System V/88 R32V2 (SVR3/88100 based)
971 vendor : : "motorola"
977 newdef : defined(__clipper__)
978 comment : Clipper Chipset (Intergraph)
979 vendor : : "intergraph"
980 hosttype: : "clipper"
981 machtype: : "clipper"
985 newdef : defined(SNI) || defined(sinix)
986 comment : Siemens Nixdorf Informationssysteme SINIX
988 hosttype: defined(M_intel) : "wx200i"
989 hosttype: defined(MIPSEB) : "rm400"
990 ostype : defined(sinix) : "sinix"
991 machtype: defined(M_i586) : "i586"
992 machtype: defined(M_i486) : "i486"
993 machtype: defined(M_i386) : "i386"
994 machtype: defined(M_mipsel) : "mipsel"
995 machtype: defined(M_mipseb) : "mipseb"
999 newdef : defined(_OSD_POSIX)
1000 comment : Siemens Nixdorf Informationssysteme BS2000 POSIX (mainframe, EBCDIC)
1002 hosttype: defined(M_intel) : "bs2000"
1004 machtype: : "bs2000"
1007 newdef : defined(__MVS__)
1008 comment : ibm uss s/390 (mainframe, EBCDIC)
1015 newdef : defined(_SX)
1016 comment : NEC Corporation (SX-4)
1018 ostype : : "superux"
1023 newdef : !defined(SOLARIS2) && (SYSVREL == 4)
1024 comment : Unix System V Release 4.0
1025 vendor : defined(DELL) : "dell"
1026 hosttype: defined(M_i386) : "i386"
1028 machtype: defined(M_i386) : "i386"
1031 newdef : defined(__uxp__) || defined(__uxps__)
1032 comment : FUJITSU DS/90 7000
1033 vendor : : "fujitsu"
1039 newdef : defined(_UWIN)
1040 comment : AT&T Research Unix for Windows
1042 hosttype: : "win32.i386"
1047 newdef : defined(mc68000) || defined(__mc68000__) || defined(mc68k32) || defined(m68k) || defined(mc68010) || defined(mc68020)
1049 vendor : defined(m68k) : "motorola"
1054 newdef : defined(m88k) || defined(__m88k__)
1060 newdef : defined(M_intel)
1061 hosttype: defined(M_i586) : "i586"
1062 hosttype: defined(M_i486) : "i486"
1063 hosttype: defined(M_i386) : "i386"
1065 machtype: defined(M_i586) : "i586"
1066 machtype: defined(M_i486) : "i486"
1067 machtype: defined(M_i386) : "i386"
1071 newdef : defined(sparc) || defined(__sparc__)
1077 newdef : defined(i860) || defined(__i860__)
1083 newdef : defined(osf1)
1088 newdef : SYSVREL == 0
1089 ostype : defined(BSD4_4) : "bsd44"
1090 ostype : defined(BSD) : "bsd"
1091 ostype : defined(POSIX) : "posix"
1095 newdef : SYSVREL == 1
1100 newdef : SYSVREL == 2
1105 newdef : SYSVREL == 3
1110 newdef : SYSVREL == 4
1117 hosttype = "unknown";
1126 machtype = "unknown";
1128 tsetenv(STRHOSTTYPE, str2short(hosttype));
1129 tsetenv(STRVENDOR, str2short(vendor));
1130 tsetenv(STROSTYPE, str2short(ostype));
1131 tsetenv(STRMACHTYPE, str2short(machtype));
1132 } /* end setmachine */