2 /* $Header: /src/pub/tcsh/host.defs,v 1.40 2005/03/03 16:49:15 kim 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. Neither the name of the University nor the names of its contributors
19 * may be used to endorse or promote products derived from this software
20 * without specific prior written permission.
22 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 RCSID("$Id: host.defs,v 1.40 2005/03/03 16:49:15 kim Exp $")
40 macro : M_mips64el : (defined(mips64) || defined(__mips64)) && (defined(MIPSEL) || defined(__MIPSEL))
41 macro : M_mips64eb : (defined(mips64) || defined(__mips64)) && (defined(MIPSEB) || defined(__MIPSEB))
42 macro : M_mipsel : (!defined(M_mips64el)) && (defined(mips) || defined(__mips)) && (defined(MIPSEL) || defined(__MIPSEL))
43 macro : M_mipseb : (!defined(M_mips64eb)) && (defined(mips) || defined(__mips)) && (defined(MIPSEB) || defined(__MIPSEB))
44 macro : M_i386 : (defined(i386) || defined(__i386__))
45 macro : M_i486 : (defined(i486) || defined(__i486__))
46 macro : M_i586 : (defined(i586) || defined(__i586__))
47 macro : M_intel : (defined(M_i386) || defined(M_i486) || defined(M_i586))
49 newdef : defined(ns32000)
55 if (access("/Umax.image", F_OK) == 0)
58 return flag ? "mach" : "ns32000";
64 newdef : defined(cray)
67 * On crays, find the current machine type via the target() syscall
68 * We need ctype.h to convert the name returned to lower case
70 # include <sys/target.h>
74 /* From: hpa@hook.eecs.nwu.edu (H. Peter Anvin) */
78 # ifdef MC_GET_SYSTEM /* If we have target() */
81 if (target(MC_GET_SYSTEM, &data) != -1) {
82 static char hosttype_buf[sizeof(data.mc_pmt)+1];
83 char *p = (char *) &(data.mc_pmt);
84 char *q = hosttype_buf;
88 * Copy to buffer and convert to lower case
89 * String may not be null-terminated, so keep a counter
91 for (n = 0; *p && n < sizeof(data.mc_pmt); n++)
96 /* replace dashes with underscores if present */
97 while ((q = strchr(hosttype_buf, '-')) != NULL)
99 return hosttype_buf; /* Return in static buffer */
102 # endif /* MC_GET_SYSTEM */
103 return "cray"; /* target() failed */
109 newdef : defined(convex)
112 * On convex, find the current machine type via the getsysinfo() syscall
114 #include <sys/sysinfo.h>
116 /* From: fox@convex.com (David DeSimone) */
120 struct system_information sysinfo;
121 static char result[8];
123 if (getsysinfo(SYSINFO_SIZE, &sysinfo) == -1)
126 switch(sysinfo.cpu_type) {
137 #ifdef SI_CPUTYPE_C2MP
138 case SI_CPUTYPE_C2MP:
139 (void) strcpy(result, "c2X0");
140 result[2] = sysinfo.cpu_count + '0';
144 #ifdef SI_CPUTYPE_C34
146 (void) strcpy(result, "c34X0");
147 result[3] = sysinfo.cpu_count + '0';
151 #ifdef SI_CPUTYPE_C38
153 (void) strcpy(result, "c38X0");
154 result[3] = sysinfo.cpu_count + '0';
158 #ifdef SI_CPUTYPE_C46
160 (void) strcpy(result, "c46X0");
161 result[3] = sysinfo.cpu_count + '0';
177 const char *hosttype;
180 const char *machtype;
185 newdef : defined(HOSTTYPE)
190 newdef : defined(__PARAGON__)
191 comment : Intel Paragon running OSF/1
193 hosttype: : "paragon"
195 machtype: defined(M_i386) : "i386"
199 newdef : defined(AMIX)
200 comment : Amiga running Amix 2.02
201 vendor : : "commodore"
208 newdef : defined(accel)
209 comment : celerity Accel
210 vendor : : "celerity"
211 hosttype: : "celerityACCEL"
217 newdef : defined(_VMS_POSIX)
218 comment : digital vax or alpha running vms posix
220 hosttype: : "VMS-POSIX"
222 machtype: defined(__alpha) : "alpha"
223 machtype: defined(__vax) || defined(vax) : "vax"
224 machtype: defined(__vax__) : "vax"
228 newdef : defined(__hp_osf)
229 comment : Hewlett Packard running OSF/1
231 hosttype: defined(__pa_risc) : "hp9000s700-osf1"
232 hosttype: : "hp-osf1"
234 machtype: defined(__pa_risc) : "pa_risc"
238 newdef : defined(hp9000)
239 comment : Hewlett Packard running MORE/bsd
241 hosttype: defined(hp300) : "hp300"
242 hosttype: defined(hp800) : "hp800"
244 ostype : defined(BSD4_4) : "bsd44"
246 machtype: defined(hp300) : "m68k"
247 machtype: defined(hp800) : "pa_risc"
251 newdef : defined(hpux) || defined(__hpux)
252 comment : Hewlett Packard running HP/UX
254 hosttype: defined(__hp9000s700) : "hp9000s700"
255 hosttype: defined(__hp9000s800) || defined(hp9000s800) : "hp9000s800"
256 hosttype: defined(hp9000s500) : "hp9000s500"
257 hosttype: defined(__hp9000s300) || defined(hp9000s300) : "hp9000s300"
260 machtype: defined(__hp9000s700) : "pa_risc"
261 machtype: defined(__hp9000s800) || defined(hp9000s800) : "pa_risc"
262 machtype: defined(hp9000s500) : "m68k"
263 machtype: defined(__hp9000s300) || defined(hp9000s300) : "m68k"
267 newdef : defined(apollo)
268 comment : Hewlett Packard apollo running Domain/OS
271 ostype : : "DomainOS"
276 newdef : defined(sun) || defined(__sun__)
277 comment : Sun Microsystems series 2 workstation (68010 based)
278 comment : Sun Microsystems series 3 workstation (68020 based)
279 comment : Sun Microsystems 386i workstation (386 based)
280 comment : Sun Microsystems series 4 workstation (SPARC based)
282 hosttype: defined(M_i386) && !defined(__SVR4) : "sun386i"
283 hosttype: defined(M_i386) && defined(__SVR4) : "i86pc"
284 hosttype: defined(mc68010) || defined(__mc68010__) : "sun2"
285 hosttype: defined(mc68020) || defined(__mc68020__) : "sun3"
286 hosttype: defined(sparc) || defined(__sparc__) : "sun4"
288 ostype : defined(SUNOS3) : "sunos3"
289 ostype : defined(SUNOS4) : "sunos4"
290 ostype : defined(SOLARIS2) : "solaris"
291 machtype: defined(mc68010) || defined(__mc68010__) : "m68k"
292 machtype: defined(mc68020) || defined(__mc68020__) : "m68k"
293 machtype: defined(sparc) || defined(__sparc__) : "sparc"
294 machtype: defined(M_i386) : "i386"
298 newdef : defined(pyr)
299 comment : Pyramid Technology
301 hosttype: : "pyramid"
302 machtype: : "pyramid"
306 newdef : defined(hcx) || defined(_CX_UX)
307 comment : Harris Tahoe running CX/UX
315 newdef : defined(tahoe)
316 comment : Harris Tahoe
323 newdef : defined(ibm032)
324 comment : RT running IBM AOS4.3 or MACH
327 ostype : defined(MACH) : "mach"
333 newdef : defined(aiws)
334 comment : RT running IBM aix2.x
342 newdef : defined(_AIX370)
343 comment : IBM/370 running aix
351 newdef : defined(_IBMESA)
352 comment : IBM/ESA running aix
360 newdef : defined(_IBMR2)
361 comment : IBM/RS6000 running aix
369 newdef : defined(_AIXPS2)
370 comment : IBM/PS2 running aix
378 newdef : defined(OREO)
379 comment : Macintosh running AU/X
383 machtype: defined(mc68020) : "m68k"
387 newdef : defined(u3b20d)
388 comment : AT&T 3B/20 series running SVR2/3
390 hosttype: : "att3b20"
395 newdef : defined(u3b15)
396 comment : AT&T 3B/15 series running SVR2/3
398 hosttype: : "att3b15"
403 newdef : defined(u3b5)
404 comment : AT&T 3B/5 series running SVR2/3
411 newdef : defined(u3b2)
412 comment : AT&T 3B/2 series running SVR2/3
419 newdef : defined(UNIXPC)
420 comment : AT&T UnixPC att3b1/att7300
423 machtype: defined(u3b1) : "u3b1"
424 machtype: defined(att7300) : "att7300"
428 newdef : defined(_MINIX)
429 comment : Andy Tanenbaum's minix
430 vendor : defined(M_i386) : "intel"
431 hosttype: defined(M_i386) : "minix386"
434 machtype: defined(M_i386) : "i386"
438 newdef : defined(linux) || defined(__GNU__) || defined(__GLIBC__)
439 comment : Linus Torvalds's linux
440 vendor : defined(M_intel) : "intel"
441 hosttype: defined(__ia64__) : "ia64-linux"
442 hosttype: defined(__powerpc64__) : "powerpc64-linux"
443 hosttype: defined(__s390x__) : "s390x-linux"
444 hosttype: defined(__s390__) : "s390-linux"
445 hosttype: defined(__x86_64__) : "x86_64-linux"
446 hosttype: defined(M_i586) : "i586-linux"
447 hosttype: defined(M_i486) : "i486-linux"
448 hosttype: defined(M_i386) : "i386-linux"
449 ostype : !defined(PPC) : "linux"
450 ostype : defined(PPC) : "mklinux"
451 machtype: defined(__ia64__) : "ia64"
452 machtype: defined(__powerpc64__) : "powerpc64"
453 machtype: defined(__s390x__) : "s390x"
454 machtype: defined(__s390__) : "s390"
455 machtype: defined(__x86_64__) : "x86_64"
456 machtype: defined(M_i586) : "i586"
457 machtype: defined(M_i486) : "i486"
458 machtype: defined(M_i386) : "i386"
459 vendor : defined(__alpha) : "dec"
460 vendor : defined(PPC) : "apple"
461 hosttype: defined(__alpha) : "alpha"
462 hosttype: defined(PPC) : "powerpc"
463 machtype: defined(__alpha) : "alpha"
464 machtype: defined(PPC) : "powerpc"
465 machtype: defined(M_mipsel) : "mipsel"
466 machtype: defined(M_mipseb) : "mipseb"
467 machtype: defined(M_mips64el) : "mips64el"
468 machtype: defined(M_mips64eb) : "mips64eb"
472 newdef : defined(__EMX__)
473 comment : OS/2 EMX [unix emulation under OS/2]
474 vendor : defined(M_intel) : "intel"
475 hosttype: defined(M_i386) : "i386-emx"
477 machtype: defined(M_i386) : "i386"
481 newdef : defined(__NetBSD__)
483 vendor : defined(arm32) || defined(__arm__) : "acorn"
484 vendor : defined(alpha) : "digital"
485 vendor : defined(amiga) : "commodore"
486 vendor : defined(atari) : "atari"
487 vendor : defined(hp300) : "hp"
488 vendor : defined(M_intel) : "intel"
489 vendor : defined(m68k) : "motorola"
490 vendor : defined(mac68k) : "apple"
491 vendor : defined(pc532) : "national-semi"
492 vendor : defined(pmax) : "dec"
493 vendor : defined(mips) : "mips"
494 vendor : defined(sparc) : "sun"
495 vendor : defined(sun3) : "sun"
496 vendor : defined(vax) : "digital"
499 machtype: defined(arm32) || defined(__APCS_32__) : "arm32"
500 machtype: defined(arm26) || defined(__APCS_26__) : "arm26"
501 machtype: defined(arm) || defined(__arm__) : "arm"
502 machtype: defined(sparc) : "sparc"
503 machtype: defined(mc68020) : "m68k"
504 machtype: defined(M_i386) : "i386"
505 machtype: defined(M_mipsel) : "mipsel"
506 machtype: defined(M_mipseb) : "mipseb"
507 machtype: defined(mips) : "mips"
508 machtype: defined(pc532) : "pc532"
509 machtype: defined(vax) : "vax"
510 machtype: defined(alpha) : "alpha"
514 newdef : defined(__FreeBSD__)
516 vendor : defined(__alpha) : "digital"
517 vendor : defined(M_intel) : "intel"
518 hosttype: : "FreeBSD"
520 machtype: defined(__alpha) : "alpha"
521 machtype: defined(M_i386) : "i386"
525 newdef : defined(__386BSD__)
526 comment : Bill Jolitz's 386BSD
527 vendor : defined(M_intel) : "intel"
534 newdef : defined(bsdi)
535 comment : BSDI's unix
536 vendor : defined(M_intel) : "intel"
537 vendor : defined(sparc) : "sun"
538 vendor : defined(__powerpc__) : "motorola"
539 hosttype: defined(M_intel) : "bsd386"
540 hosttype: defined(sparc) : "bsd-sparc"
541 hosttype: defined(__powerpc__) : "bsd-powerpc"
543 machtype: defined(M_i386) : "i386"
544 machtype: defined(sparc) : "sparc"
545 machtype: defined(__powerpc__) : "powerpc"
549 newdef : defined(COHERENT)
550 comment : COHERENT's unix
551 vendor : defined(_I386) : "intel"
553 hosttype: : "coherent"
554 ostype : : "coherent"
555 machtype: defined(_I386) : "i386"
558 newdef : defined(concurrent)
559 comment : Concurrent PowerHawk
560 vendor : : "concurrent"
561 hosttype: : "powerhawk"
562 ostype : : "powermax_os"
563 machtype: : "powerhawk"
566 newdef : defined(SCO)
567 comment : SCO UNIX System V/386 Release 3.2
570 ostype : : "sco_unix"
574 newdef : defined(M_XENIX) && !defined(M_UNIX)
577 hosttype: : "sco_xenix"
578 ostype : : "sco_xenix"
579 machtype: defined(M_I386) : "i386"
580 machtype: defined(M_I286) : "i286"
584 newdef : defined(ISC) || defined(ISC202)
585 comment : Interactive Unix
588 ostype : defined(POSIX) : "POSIX"
590 machtype: defined(M_i386) : "i386"
594 newdef : defined(INTEL)
597 hosttype: : "intel386"
598 ostype : : "intel_unix"
599 machtype: defined(M_i386) : "i386"
603 newdef : defined(MACH)
606 hosttype: defined(M_i386) : "i386-mach"
608 machtype: defined(M_i386) : "i386"
612 newdef : defined(alliant)
613 comment : Alliants FSX
615 hosttype: defined(mc68000) : "alliant-fx80"
616 hosttype: defined(i860) : "alliant-fx2800"
617 hosttype: : "alliant"
619 machtype: defined(mc68000) : "mc68000"
620 machtype: defined(i860) : "i860"
624 newdef : defined(_FTX)
625 comment : Stratus Computer, Inc FTX2 (i860 based)
626 comment : Stratus Computer, Inc FTX3 (HPPA based)
628 hosttype: defined(i860) && defined(_FTX) : "atlantic"
629 hosttype: defined(__hppa) && defined(_FTX) : "continuum"
630 ostype : defined(i860) && defined(_FTX) : "ftx2"
631 ostype : defined(__hppa) && defined(_FTX) : "ftx3"
632 machtype: defined(i860) : "i860"
633 machtype: defined(__hppa) : "hppa"
637 newdef : defined(sequent) || defined(_SEQUENT_)
638 comment : Sequent Balance (32000 based)
639 comment : Sequent Symmetry running DYNIX/ptx (386/486 based)
640 comment : Sequent Symmetry running DYNIX 3 (386/486 based)
642 hosttype: defined(M_i386) && defined(sequent) : "symmetry"
643 hosttype: defined(M_i386) : "ptx"
644 hosttype: : "balance"
645 ostype : defined(M_i386) && !defined(sequent) : "ptx"
647 machtype: defined(M_i386) : "i386"
648 machtype: defined(ns32000) : "ns32000"
652 newdef : defined(ns32000)
653 comment : Encore Computer Corp. Multimax (32000 based)
655 hosttype: defined(CMUCS) : "multimax"
656 hosttype: : isamultimax(0)
657 ostype : defined(CMUCS) : "mach"
658 ostype : : isamultimax(1)
659 machtype: : "ns32000"
663 newdef : defined(iconuxv)
664 comment : Icon 88k running Unix
668 machtype: defined(m88k) || defined(__m88k__) : "m88k"
672 newdef : defined(_CRAY) && defined(_CRAYCOM)
673 comment : Cray Computer Corp. running CSOS
675 hosttype: defined(_CRAY2) : "cray"
676 hosttype: defined(_CRAY3) : "cray"
677 hosttype: defined(_CRAY4) : "cray"
679 machtype: defined(_CRAY2) : "cray2"
680 machtype: defined(_CRAY3) : "cray3"
681 machtype: defined(_CRAY4) : "cray4"
685 newdef : defined(cray) && !defined(_CRAYMPP)
686 comment : Cray Research Inc. PVP running UNICOS
688 hosttype: : getcray()
690 machtype: : getcray()
694 newdef : defined(cray) && defined(_CRAYT3D)
695 comment : Cray Research Inc. running UNICOS MAX
697 hosttype: : getcray()
698 ostype : : "unicosmax"
699 machtype: : getcray()
703 newdef : defined(cray) && defined(_CRAYT3E)
704 comment : Cray Research Inc. running UNICOS/mk
706 hosttype: : getcray()
707 ostype : : "unicosmk"
708 machtype: : getcray()
712 newdef : defined(convex)
716 ostype : : "convexos"
717 machtype: : getconvex()
721 newdef : defined(butterfly)
722 comment : BBN Butterfly 1000
724 hosttype: : "butterfly"
725 machtype: defined(mc68020) || defined(__mc68020__) : "m68k"
729 newdef : defined(NeXT)
732 hosttype: defined(mc68020) || defined(__mc68020__) : "next"
733 hosttype: defined(M_i386) || defined(__i386__) : "intel-pc"
734 hosttype: defined(hppa) || defined(__hppa__) : "hp"
735 hosttype: defined(sparc) || defined(__sparc__) : "sun"
736 ostype : : "nextstep"
737 machtype: defined(mc68020) || defined(__mc68020__) : "m68k"
738 machtype: defined(M_i386) || defined(__i386__) : "i386"
739 machtype: defined(hppa) || defined(__hppa__) : "hppa"
740 machtype: defined(sparc) || defined(__sparc__) : "sparc"
744 newdef : defined(__APPLE__) && defined(__MACH__)
747 hosttype: defined(__i386__) : "intel-pc"
748 hosttype: defined(__ppc__) : "powermac"
750 machtype: defined(__i386__) : "i386"
751 machtype: defined(__ppc__) : "powerpc"
755 newdef : defined(sony_news)
756 comment : Sony NEWS 800 or 1700 workstation
758 hosttype: defined(mips) : "news_mips"
759 hosttype: defined(mc68020) || defined(__mc68020__) : "news_m68k"
761 machtype: defined(mc68020) || defined(__mc68020__) : "m68k"
762 machtype: defined(M_mipsel) : "mipsel"
763 machtype: defined(M_mipseb) : "mipseb"
767 newdef : defined(sgi)
768 comment : Silicon Graphics
770 hosttype: defined(M_mipsel) : "iris4d"
771 hosttype: defined(M_mipseb) : "iris4d"
772 hosttype: defined(mc68000) : "iris3d"
774 machtype: defined(M_mipsel) : "mipsel"
775 machtype: defined(M_mipseb) : "mipseb"
776 machtype: defined(mc68000) : "mc68000"
780 newdef : defined(ultrix) || defined(__ultrix)
781 comment : Digital's Ultrix
783 hosttype: defined(M_mipsel) : "decstation"
784 hosttype: defined(M_mipseb) : "decmips"
785 hosttype: defined(vax) || defined(__vax) : "vax"
786 hosttype: defined(__vax__) : "vax"
788 machtype: defined(M_mipsel) : "mipsel"
789 machtype: defined(M_mipseb) : "mipseb"
790 machtype: defined(vax) || defined (__vax) : "vax"
791 hosttype: defined(__vax__) : "vax"
795 newdef : defined(MIPS)
798 hosttype: defined(M_mipsel) : "mips"
799 hosttype: defined(M_mipseb) : "mips"
801 machtype: defined(M_mipsel) : "mipsel"
802 machtype: defined(M_mipseb) : "mipseb"
806 newdef : defined(DECOSF1)
807 comment : Digital's alpha running osf1
810 hosttype: defined(__alpha) : "alpha"
811 machtype: defined(__alpha) : "alpha"
815 newdef : defined(Lynx)
816 comment : Lynx OS 2.1
818 hosttype: defined(M_mipsel) : "lynxos-mips"
819 hosttype: defined(M_mipseb) : "lynxos-mips"
820 hosttype: defined(M_i386) : "lynxos-i386"
821 hosttype: defined(i860) || defined(__i860__) : "lynxos-i860"
822 hosttype: defined(m68k) : "lynxos-m68k"
823 hosttype: defined(m88k) : "lynxos-m88k"
824 hosttype: defined(sparc) : "lynxos-sparc"
825 hosttype: : "lynxos-unknown"
827 machtype: defined(M_mipsel) : "mipsel"
828 machtype: defined(M_mipseb) : "mipseb"
829 machtype: defined(M_i386) : "i386"
830 machtype: defined(i860) || defined(__i860__) : "i860"
831 machtype: defined(m68k) : "m68k"
832 machtype: defined(m88k) : "m88k"
833 machtype: defined(sparc) : "sparc"
837 newdef : defined(masscomp)
839 vendor : : "masscomp"
840 hosttype: : "masscomp"
841 ostype : : "masscomp"
844 newdef : defined(__MACHTEN__)
847 hosttype: : "Macintosh"
849 machtype: : "Macintosh"
854 newdef : defined(GOULD_NP1)
857 hosttype: : "gould_np1"
862 newdef : defined(MULTIFLOW)
863 comment : Multiflow running 4.3BSD
864 vendor : : "multiflow"
865 hosttype: : "multiflow"
866 machtype: : "multiflow"
871 newdef : defined(SXA)
872 comment : PFU/Fujitsu A-xx computer
875 ostype : defined(_BSDX_) : "e60-bsdx"
881 newdef : defined(titan)
882 comment : (St)Ardent Titan
888 newdef : defined(stellar)
891 hosttype: : "stellar"
896 newdef : defined(atari)
897 comment : Atari TT running SVR4. This machine was never
898 comment : commercially available.
905 newdef : defined(OPUS)
912 newdef : defined(eta10)
913 comment : ETA running SVR3
919 newdef : defined(hk68)
920 comment : Heurikon HK68 running Uniplus+ 5.0
921 vendor : : "heurikon"
927 newdef : defined(NDIX)
928 comment : Norsk Data ND 500/5000 running Ndix
935 newdef : defined(AMIGA)
936 comment : Amiga running AmigaOS+GG
937 vendor : : "commodore"
944 newdef : defined(uts)
945 comment : Amdahl running uts 2.1
953 newdef : defined(UTek)
954 comment : Tektronix 4300 running UTek (BSD 4.2 / 68020 based)
955 vendor : : "tektronix"
956 hosttype: : "tek4300"
960 newdef : defined(UTekV)
961 comment : Tektronix XD88/10 running UTekV 3.2e (SVR3/88100 based)
962 vendor : : "tektronix"
963 hosttype: : "tekXD88"
967 newdef : defined(__DGUX__)
968 comment : Data-General AViiON running DGUX
972 machtype: defined(__m88k__) : "m88k"
973 machtype: defined(__i386__) : "pentium"
977 newdef : defined(sysV68)
978 comment : Motorola MPC running System V/68 R32V2 (SVR3/68020 based)
979 vendor : : "motorola"
985 newdef : defined(supermax)
986 comment : DDE Supermax running System V/68 R3 (SVR3/68020 based)
987 vendor : : "supermax"
988 hosttype: : "supermax"
993 newdef : defined(sysV88)
994 comment : Motorola MPC running System V/88 R32V2 (SVR3/88100 based)
995 vendor : : "motorola"
1001 newdef : defined(__clipper__)
1002 comment : Clipper Chipset (Intergraph)
1003 vendor : : "intergraph"
1004 hosttype: : "clipper"
1005 machtype: : "clipper"
1009 newdef : (defined(SNI) || defined(sinix)) && !defined(_OSD_POSIX)
1010 comment : Fujitsu Siemens Computers (former "Siemens Nixdorf Informationssysteme"): SINIX aka. ReliantUNIX, a SVR4 derivative
1012 hosttype: defined(M_intel) : "wx200i"
1013 hosttype: defined(MIPSEB) : "rm400"
1014 ostype : defined(sinix) : "sinix"
1015 machtype: defined(M_i586) : "i586"
1016 machtype: defined(M_i486) : "i486"
1017 machtype: defined(M_i386) : "i386"
1018 machtype: defined(M_mipsel) : "mipsel"
1019 machtype: defined(M_mipseb) : "mipseb"
1023 newdef : defined(_OSD_POSIX)
1024 comment : Fujitsu Siemens Computers (former "Siemens Nixdorf Informationssysteme"): BS2000 POSIX (mainframe, EBCDIC)
1026 hosttype: : "bs2000"
1027 ostype : : "osdposix"
1028 machtype: #machine(7500) : "s390"
1029 machtype: #machine(mips) : "mips"
1030 machtype: #machine(sparc) : "sparc"
1031 machtype: : "bs2000"
1034 newdef : defined(__MVS__)
1035 comment : ibm uss s/390 (mainframe, EBCDIC)
1042 newdef : defined(_SX)
1043 comment : NEC Corporation (SX-4)
1045 ostype : : "superux"
1050 newdef : !defined(SOLARIS2) && (SYSVREL == 4)
1051 comment : Unix System V Release 4.0
1052 vendor : defined(DELL) : "dell"
1053 hosttype: defined(M_i386) : "i386"
1055 machtype: defined(M_i386) : "i386"
1058 newdef : defined(__uxp__) || defined(__uxps__)
1059 comment : FUJITSU DS/90 7000
1060 vendor : : "fujitsu"
1066 newdef : defined(_UWIN)
1067 comment : AT&T Research Unix for Windows
1069 hosttype: : "win32.i386"
1074 newdef : defined(mc68000) || defined(__mc68000__) || defined(mc68k32) || defined(m68k) || defined(mc68010) || defined(mc68020)
1076 vendor : defined(m68k) : "motorola"
1081 newdef : defined(m88k) || defined(__m88k__)
1087 newdef : defined(M_intel)
1088 hosttype: defined(M_i586) : "i586"
1089 hosttype: defined(M_i486) : "i486"
1090 hosttype: defined(M_i386) : "i386"
1092 machtype: defined(M_i586) : "i586"
1093 machtype: defined(M_i486) : "i486"
1094 machtype: defined(M_i386) : "i386"
1098 newdef : defined(sparc) || defined(__sparc__)
1104 newdef : defined(i860) || defined(__i860__)
1110 newdef : defined(osf1)
1115 newdef : SYSVREL == 0
1116 ostype : defined(BSD4_4) : "bsd44"
1117 ostype : defined(BSD) : "bsd"
1118 ostype : defined(POSIX) : "posix"
1122 newdef : SYSVREL == 1
1127 newdef : SYSVREL == 2
1132 newdef : SYSVREL == 3
1137 newdef : SYSVREL == 4
1144 hosttype = "unknown";
1153 machtype = "unknown";
1155 tsetenv(STRHOSTTYPE, str2short(hosttype));
1156 tsetenv(STRVENDOR, str2short(vendor));
1157 tsetenv(STROSTYPE, str2short(ostype));
1158 tsetenv(STRMACHTYPE, str2short(machtype));
1159 } /* end setmachine */