2 /* $Header: /p/tcsh/cvsroot/tcsh/host.defs,v 1.43 2006/03/02 18:46:44 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. 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("$tcsh: host.defs,v 1.43 2006/03/02 18:46:44 christos 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)
54 if (access("/Umax.image", F_OK) == 0)
57 return flag ? "mach" : "ns32000";
63 newdef : defined(cray)
66 * On crays, find the current machine type via the target() syscall
67 * We need ctype.h to convert the name returned to lower case
69 # include <sys/target.h>
73 /* From: hpa@hook.eecs.nwu.edu (H. Peter Anvin) */
77 # ifdef MC_GET_SYSTEM /* If we have target() */
80 if (target(MC_GET_SYSTEM, &data) != -1) {
81 static char hosttype_buf[sizeof(data.mc_pmt)+1];
82 char *p = (char *) &(data.mc_pmt);
83 char *q = hosttype_buf;
87 * Copy to buffer and convert to lower case
88 * String may not be null-terminated, so keep a counter
90 for (n = 0; *p && n < sizeof(data.mc_pmt); n++)
95 /* replace dashes with underscores if present */
96 while ((q = strchr(hosttype_buf, '-')) != NULL)
98 return hosttype_buf; /* Return in static buffer */
101 # endif /* MC_GET_SYSTEM */
102 return "cray"; /* target() failed */
108 newdef : defined(convex)
111 * On convex, find the current machine type via the getsysinfo() syscall
113 #include <sys/sysinfo.h>
115 /* From: fox@convex.com (David DeSimone) */
119 struct system_information sysinfo;
120 static char result[8];
122 if (getsysinfo(SYSINFO_SIZE, &sysinfo) == -1)
125 switch(sysinfo.cpu_type) {
136 #ifdef SI_CPUTYPE_C2MP
137 case SI_CPUTYPE_C2MP:
138 (void) strcpy(result, "c2X0");
139 result[2] = sysinfo.cpu_count + '0';
143 #ifdef SI_CPUTYPE_C34
145 (void) strcpy(result, "c34X0");
146 result[3] = sysinfo.cpu_count + '0';
150 #ifdef SI_CPUTYPE_C38
152 (void) strcpy(result, "c38X0");
153 result[3] = sysinfo.cpu_count + '0';
157 #ifdef SI_CPUTYPE_C46
159 (void) strcpy(result, "c46X0");
160 result[3] = sysinfo.cpu_count + '0';
176 const char *hosttype;
179 const char *machtype;
184 newdef : defined(HOSTTYPE)
189 newdef : defined(__PARAGON__)
190 comment : Intel Paragon running OSF/1
192 hosttype: : "paragon"
194 machtype: defined(M_i386) : "i386"
198 newdef : defined(AMIX)
199 comment : Amiga running Amix 2.02
200 vendor : : "commodore"
207 newdef : defined(accel)
208 comment : celerity Accel
209 vendor : : "celerity"
210 hosttype: : "celerityACCEL"
216 newdef : defined(_VMS_POSIX)
217 comment : digital vax or alpha running vms posix
219 hosttype: : "VMS-POSIX"
221 machtype: defined(__alpha) : "alpha"
222 machtype: defined(__vax) || defined(vax) : "vax"
223 machtype: defined(__vax__) : "vax"
227 newdef : defined(__hp_osf)
228 comment : Hewlett Packard running OSF/1
230 hosttype: defined(__pa_risc) : "hp9000s700-osf1"
231 hosttype: : "hp-osf1"
233 machtype: defined(__pa_risc) : "pa_risc"
237 newdef : defined(hp9000)
238 comment : Hewlett Packard running MORE/bsd
240 hosttype: defined(hp300) : "hp300"
241 hosttype: defined(hp800) : "hp800"
243 ostype : defined(BSD4_4) : "bsd44"
245 machtype: defined(hp300) : "m68k"
246 machtype: defined(hp800) : "pa_risc"
250 newdef : defined(hpux) || defined(__hpux)
251 comment : Hewlett Packard running HP/UX
253 hosttype: defined(__hp9000s700) : "hp9000s700"
254 hosttype: defined(__hp9000s800) || defined(hp9000s800) : "hp9000s800"
255 hosttype: defined(hp9000s500) : "hp9000s500"
256 hosttype: defined(__hp9000s300) || defined(hp9000s300) : "hp9000s300"
259 machtype: defined(__hp9000s700) : "pa_risc"
260 machtype: defined(__hp9000s800) || defined(hp9000s800) : "pa_risc"
261 machtype: defined(hp9000s500) : "m68k"
262 machtype: defined(__hp9000s300) || defined(hp9000s300) : "m68k"
266 newdef : defined(apollo)
267 comment : Hewlett Packard apollo running Domain/OS
270 ostype : : "DomainOS"
275 newdef : defined(sun) || defined(__sun__)
276 comment : Sun Microsystems series 2 workstation (68010 based)
277 comment : Sun Microsystems series 3 workstation (68020 based)
278 comment : Sun Microsystems 386i workstation (386 based)
279 comment : Sun Microsystems series 4 workstation (SPARC based)
281 hosttype: defined(M_i386) && !defined(__SVR4) : "sun386i"
282 hosttype: defined(M_i386) && defined(__SVR4) : "i86pc"
283 hosttype: defined(mc68010) || defined(__mc68010__) : "sun2"
284 hosttype: defined(mc68020) || defined(__mc68020__) : "sun3"
285 hosttype: defined(sparc) || defined(__sparc__) : "sun4"
287 ostype : defined(SUNOS3) : "sunos3"
288 ostype : defined(SUNOS4) : "sunos4"
289 ostype : defined(SOLARIS2) : "solaris"
290 machtype: defined(mc68010) || defined(__mc68010__) : "m68k"
291 machtype: defined(mc68020) || defined(__mc68020__) : "m68k"
292 machtype: defined(sparc) || defined(__sparc__) : "sparc"
293 machtype: defined(M_i386) : "i386"
297 newdef : defined(pyr)
298 comment : Pyramid Technology
300 hosttype: : "pyramid"
301 machtype: : "pyramid"
305 newdef : defined(hcx) || defined(_CX_UX)
306 comment : Harris Tahoe running CX/UX
314 newdef : defined(tahoe)
315 comment : Harris Tahoe
322 newdef : defined(ibm032)
323 comment : RT running IBM AOS4.3 or MACH
326 ostype : defined(MACH) : "mach"
332 newdef : defined(aiws)
333 comment : RT running IBM aix2.x
341 newdef : defined(_AIX370)
342 comment : IBM/370 running aix
350 newdef : defined(_IBMESA)
351 comment : IBM/ESA running aix
359 newdef : defined(_IBMR2)
360 comment : IBM/RS6000 running aix
368 newdef : defined(_AIXPS2)
369 comment : IBM/PS2 running aix
377 newdef : defined(OREO)
378 comment : Macintosh running AU/X
382 machtype: defined(mc68020) : "m68k"
386 newdef : defined(u3b20d)
387 comment : AT&T 3B/20 series running SVR2/3
389 hosttype: : "att3b20"
394 newdef : defined(u3b15)
395 comment : AT&T 3B/15 series running SVR2/3
397 hosttype: : "att3b15"
402 newdef : defined(u3b5)
403 comment : AT&T 3B/5 series running SVR2/3
410 newdef : defined(u3b2)
411 comment : AT&T 3B/2 series running SVR2/3
418 newdef : defined(UNIXPC)
419 comment : AT&T UnixPC att3b1/att7300
422 machtype: defined(u3b1) : "u3b1"
423 machtype: defined(att7300) : "att7300"
427 newdef : defined(_MINIX)
428 comment : Andy Tanenbaum's minix
429 vendor : defined(M_i386) : "intel"
430 hosttype: defined(M_i386) : "minix386"
433 machtype: defined(M_i386) : "i386"
437 newdef : defined(linux) || defined(__GNU__) || defined(__GLIBC__)
438 comment : Linus Torvalds's linux
439 vendor : defined(M_intel) : "intel"
440 hosttype: defined(__ia64__) : "ia64-linux"
441 hosttype: defined(__powerpc64__) : "powerpc64-linux"
442 hosttype: defined(__s390x__) : "s390x-linux"
443 hosttype: defined(__s390__) : "s390-linux"
444 hosttype: defined(__x86_64__) : "x86_64-linux"
445 hosttype: defined(M_i586) : "i586-linux"
446 hosttype: defined(M_i486) : "i486-linux"
447 hosttype: defined(M_i386) : "i386-linux"
449 machtype: defined(__ia64__) : "ia64"
450 machtype: defined(__powerpc64__) : "powerpc64"
451 machtype: defined(__s390x__) : "s390x"
452 machtype: defined(__s390__) : "s390"
453 machtype: defined(__x86_64__) : "x86_64"
454 machtype: defined(M_i586) : "i586"
455 machtype: defined(M_i486) : "i486"
456 machtype: defined(M_i386) : "i386"
457 vendor : defined(__alpha) : "dec"
458 vendor : defined(PPC) : "apple"
459 hosttype: defined(__alpha) : "alpha"
460 hosttype: defined(PPC) : "powerpc"
461 machtype: defined(__alpha) : "alpha"
462 machtype: defined(PPC) : "powerpc"
463 machtype: defined(M_mipsel) : "mipsel"
464 machtype: defined(M_mipseb) : "mipseb"
465 machtype: defined(M_mips64el) : "mips64el"
466 machtype: defined(M_mips64eb) : "mips64eb"
470 newdef : defined(__EMX__)
471 comment : OS/2 EMX [unix emulation under OS/2]
472 vendor : defined(M_intel) : "intel"
473 hosttype: defined(M_i386) : "i386-emx"
475 machtype: defined(M_i386) : "i386"
479 newdef : defined(__NetBSD__)
481 vendor : defined(arm32) || defined(__arm__) : "acorn"
482 vendor : defined(alpha) : "digital"
483 vendor : defined(amiga) : "commodore"
484 vendor : defined(atari) : "atari"
485 vendor : defined(hp300) : "hp"
486 vendor : defined(M_intel) : "intel"
487 vendor : defined(m68k) : "motorola"
488 vendor : defined(mac68k) : "apple"
489 vendor : defined(pc532) : "national-semi"
490 vendor : defined(pmax) : "dec"
491 vendor : defined(mips) : "mips"
492 vendor : defined(sparc) : "sun"
493 vendor : defined(sun3) : "sun"
494 vendor : defined(vax) : "digital"
497 machtype: defined(arm32) || defined(__APCS_32__) : "arm32"
498 machtype: defined(arm26) || defined(__APCS_26__) : "arm26"
499 machtype: defined(arm) || defined(__arm__) : "arm"
500 machtype: defined(sparc) : "sparc"
501 machtype: defined(mc68020) : "m68k"
502 machtype: defined(M_i386) : "i386"
503 machtype: defined(M_mipsel) : "mipsel"
504 machtype: defined(M_mipseb) : "mipseb"
505 machtype: defined(mips) : "mips"
506 machtype: defined(pc532) : "pc532"
507 machtype: defined(vax) : "vax"
508 machtype: defined(alpha) : "alpha"
512 newdef : defined(__FreeBSD__)
514 vendor : defined(__alpha) : "digital"
515 vendor : defined(M_intel) : "intel"
516 hosttype: : "FreeBSD"
518 machtype: defined(__alpha) : "alpha"
519 machtype: defined(M_i386) : "i386"
523 newdef : defined(__386BSD__)
524 comment : Bill Jolitz's 386BSD
525 vendor : defined(M_intel) : "intel"
532 newdef : defined(bsdi)
533 comment : BSDI's unix
534 vendor : defined(M_intel) : "intel"
535 vendor : defined(sparc) : "sun"
536 vendor : defined(__powerpc__) : "motorola"
537 hosttype: defined(M_intel) : "bsd386"
538 hosttype: defined(sparc) : "bsd-sparc"
539 hosttype: defined(__powerpc__) : "bsd-powerpc"
541 machtype: defined(M_i386) : "i386"
542 machtype: defined(sparc) : "sparc"
543 machtype: defined(__powerpc__) : "powerpc"
547 newdef : defined(COHERENT)
548 comment : COHERENT's unix
549 vendor : defined(_I386) : "intel"
551 hosttype: : "coherent"
552 ostype : : "coherent"
553 machtype: defined(_I386) : "i386"
556 newdef : defined(concurrent)
557 comment : Concurrent PowerHawk
558 vendor : : "concurrent"
559 hosttype: : "powerhawk"
560 ostype : : "powermax_os"
561 machtype: : "powerhawk"
564 newdef : defined(SCO)
565 comment : SCO UNIX System V/386 Release 3.2
568 ostype : : "sco_unix"
572 newdef : defined(M_XENIX) && !defined(M_UNIX)
575 hosttype: : "sco_xenix"
576 ostype : : "sco_xenix"
577 machtype: defined(M_I386) : "i386"
578 machtype: defined(M_I286) : "i286"
582 newdef : defined(ISC) || defined(ISC202)
583 comment : Interactive Unix
586 ostype : defined(POSIX) : "POSIX"
588 machtype: defined(M_i386) : "i386"
592 newdef : defined(INTEL)
595 hosttype: : "intel386"
596 ostype : : "intel_unix"
597 machtype: defined(M_i386) : "i386"
601 newdef : defined(MACH)
604 hosttype: defined(M_i386) : "i386-mach"
606 machtype: defined(M_i386) : "i386"
610 newdef : defined(alliant)
611 comment : Alliants FSX
613 hosttype: defined(mc68000) : "alliant-fx80"
614 hosttype: defined(i860) : "alliant-fx2800"
615 hosttype: : "alliant"
617 machtype: defined(mc68000) : "mc68000"
618 machtype: defined(i860) : "i860"
622 newdef : defined(_FTX)
623 comment : Stratus Computer, Inc FTX2 (i860 based)
624 comment : Stratus Computer, Inc FTX3 (HPPA based)
626 hosttype: defined(i860) && defined(_FTX) : "atlantic"
627 hosttype: defined(__hppa) && defined(_FTX) : "continuum"
628 ostype : defined(i860) && defined(_FTX) : "ftx2"
629 ostype : defined(__hppa) && defined(_FTX) : "ftx3"
630 machtype: defined(i860) : "i860"
631 machtype: defined(__hppa) : "hppa"
635 newdef : defined(sequent) || defined(_SEQUENT_)
636 comment : Sequent Balance (32000 based)
637 comment : Sequent Symmetry running DYNIX/ptx (386/486 based)
638 comment : Sequent Symmetry running DYNIX 3 (386/486 based)
640 hosttype: defined(M_i386) && defined(sequent) : "symmetry"
641 hosttype: defined(M_i386) : "ptx"
642 hosttype: : "balance"
643 ostype : defined(M_i386) && !defined(sequent) : "ptx"
645 machtype: defined(M_i386) : "i386"
646 machtype: defined(ns32000) : "ns32000"
650 newdef : defined(ns32000)
651 comment : Encore Computer Corp. Multimax (32000 based)
653 hosttype: defined(CMUCS) : "multimax"
654 hosttype: : isamultimax(0)
655 ostype : defined(CMUCS) : "mach"
656 ostype : : isamultimax(1)
657 machtype: : "ns32000"
661 newdef : defined(iconuxv)
662 comment : Icon 88k running Unix
666 machtype: defined(m88k) || defined(__m88k__) : "m88k"
670 newdef : defined(_CRAY) && defined(_CRAYCOM)
671 comment : Cray Computer Corp. running CSOS
673 hosttype: defined(_CRAY2) : "cray"
674 hosttype: defined(_CRAY3) : "cray"
675 hosttype: defined(_CRAY4) : "cray"
677 machtype: defined(_CRAY2) : "cray2"
678 machtype: defined(_CRAY3) : "cray3"
679 machtype: defined(_CRAY4) : "cray4"
683 newdef : defined(cray) && !defined(_CRAYMPP)
684 comment : Cray Research Inc. PVP running UNICOS
686 hosttype: : getcray()
688 machtype: : getcray()
692 newdef : defined(cray) && defined(_CRAYT3D)
693 comment : Cray Research Inc. running UNICOS MAX
695 hosttype: : getcray()
696 ostype : : "unicosmax"
697 machtype: : getcray()
701 newdef : defined(cray) && defined(_CRAYT3E)
702 comment : Cray Research Inc. running UNICOS/mk
704 hosttype: : getcray()
705 ostype : : "unicosmk"
706 machtype: : getcray()
710 newdef : defined(convex)
714 ostype : : "convexos"
715 machtype: : getconvex()
719 newdef : defined(butterfly)
720 comment : BBN Butterfly 1000
722 hosttype: : "butterfly"
723 machtype: defined(mc68020) || defined(__mc68020__) : "m68k"
727 newdef : defined(NeXT)
730 hosttype: defined(mc68020) || defined(__mc68020__) : "next"
731 hosttype: defined(M_i386) || defined(__i386__) : "intel-pc"
732 hosttype: defined(hppa) || defined(__hppa__) : "hp"
733 hosttype: defined(sparc) || defined(__sparc__) : "sun"
734 ostype : : "nextstep"
735 machtype: defined(mc68020) || defined(__mc68020__) : "m68k"
736 machtype: defined(M_i386) || defined(__i386__) : "i386"
737 machtype: defined(hppa) || defined(__hppa__) : "hppa"
738 machtype: defined(sparc) || defined(__sparc__) : "sparc"
742 newdef : defined(__APPLE__) && defined(__MACH__)
745 hosttype: defined(__i386__) : "intel-pc"
746 hosttype: defined(__ppc__) : "powermac"
748 machtype: defined(__i386__) : "i386"
749 machtype: defined(__ppc__) : "powerpc"
753 newdef : defined(sony_news)
754 comment : Sony NEWS 800 or 1700 workstation
756 hosttype: defined(mips) : "news_mips"
757 hosttype: defined(mc68020) || defined(__mc68020__) : "news_m68k"
759 machtype: defined(mc68020) || defined(__mc68020__) : "m68k"
760 machtype: defined(M_mipsel) : "mipsel"
761 machtype: defined(M_mipseb) : "mipseb"
765 newdef : defined(sgi)
766 comment : Silicon Graphics
768 hosttype: defined(M_mipsel) : "iris4d"
769 hosttype: defined(M_mipseb) : "iris4d"
770 hosttype: defined(mc68000) : "iris3d"
772 machtype: defined(M_mipsel) : "mipsel"
773 machtype: defined(M_mipseb) : "mipseb"
774 machtype: defined(mc68000) : "mc68000"
778 newdef : defined(ultrix) || defined(__ultrix)
779 comment : Digital's Ultrix
781 hosttype: defined(M_mipsel) : "decstation"
782 hosttype: defined(M_mipseb) : "decmips"
783 hosttype: defined(vax) || defined(__vax) : "vax"
784 hosttype: defined(__vax__) : "vax"
786 machtype: defined(M_mipsel) : "mipsel"
787 machtype: defined(M_mipseb) : "mipseb"
788 machtype: defined(vax) || defined (__vax) : "vax"
789 hosttype: defined(__vax__) : "vax"
793 newdef : defined(MIPS)
796 hosttype: defined(M_mipsel) : "mips"
797 hosttype: defined(M_mipseb) : "mips"
799 machtype: defined(M_mipsel) : "mipsel"
800 machtype: defined(M_mipseb) : "mipseb"
804 newdef : defined(DECOSF1)
805 comment : Digital's alpha running osf1
808 hosttype: defined(__alpha) : "alpha"
809 machtype: defined(__alpha) : "alpha"
813 newdef : defined(Lynx)
814 comment : Lynx OS 2.1
816 hosttype: defined(M_mipsel) : "lynxos-mips"
817 hosttype: defined(M_mipseb) : "lynxos-mips"
818 hosttype: defined(M_i386) : "lynxos-i386"
819 hosttype: defined(i860) || defined(__i860__) : "lynxos-i860"
820 hosttype: defined(m68k) : "lynxos-m68k"
821 hosttype: defined(m88k) : "lynxos-m88k"
822 hosttype: defined(sparc) : "lynxos-sparc"
823 hosttype: : "lynxos-unknown"
825 machtype: defined(M_mipsel) : "mipsel"
826 machtype: defined(M_mipseb) : "mipseb"
827 machtype: defined(M_i386) : "i386"
828 machtype: defined(i860) || defined(__i860__) : "i860"
829 machtype: defined(m68k) : "m68k"
830 machtype: defined(m88k) : "m88k"
831 machtype: defined(sparc) : "sparc"
835 newdef : defined(masscomp)
837 vendor : : "masscomp"
838 hosttype: : "masscomp"
839 ostype : : "masscomp"
842 newdef : defined(__MACHTEN__)
845 hosttype: : "Macintosh"
847 machtype: : "Macintosh"
852 newdef : defined(GOULD_NP1)
855 hosttype: : "gould_np1"
860 newdef : defined(MULTIFLOW)
861 comment : Multiflow running 4.3BSD
862 vendor : : "multiflow"
863 hosttype: : "multiflow"
864 machtype: : "multiflow"
869 newdef : defined(SXA)
870 comment : PFU/Fujitsu A-xx computer
873 ostype : defined(_BSDX_) : "e60-bsdx"
879 newdef : defined(titan)
880 comment : (St)Ardent Titan
886 newdef : defined(stellar)
889 hosttype: : "stellar"
894 newdef : defined(atari)
895 comment : Atari TT running SVR4. This machine was never
896 comment : commercially available.
903 newdef : defined(OPUS)
910 newdef : defined(eta10)
911 comment : ETA running SVR3
917 newdef : defined(hk68)
918 comment : Heurikon HK68 running Uniplus+ 5.0
919 vendor : : "heurikon"
925 newdef : defined(NDIX)
926 comment : Norsk Data ND 500/5000 running Ndix
933 newdef : defined(AMIGA)
934 comment : Amiga running AmigaOS+GG
935 vendor : : "commodore"
942 newdef : defined(uts)
943 comment : Amdahl running uts 2.1
951 newdef : defined(UTek)
952 comment : Tektronix 4300 running UTek (BSD 4.2 / 68020 based)
953 vendor : : "tektronix"
954 hosttype: : "tek4300"
958 newdef : defined(UTekV)
959 comment : Tektronix XD88/10 running UTekV 3.2e (SVR3/88100 based)
960 vendor : : "tektronix"
961 hosttype: : "tekXD88"
965 newdef : defined(__DGUX__)
966 comment : Data-General AViiON running DGUX
970 machtype: defined(__m88k__) : "m88k"
971 machtype: defined(__i386__) : "pentium"
975 newdef : defined(sysV68)
976 comment : Motorola MPC running System V/68 R32V2 (SVR3/68020 based)
977 vendor : : "motorola"
983 newdef : defined(supermax)
984 comment : DDE Supermax running System V/68 R3 (SVR3/68020 based)
985 vendor : : "supermax"
986 hosttype: : "supermax"
991 newdef : defined(sysV88)
992 comment : Motorola MPC running System V/88 R32V2 (SVR3/88100 based)
993 vendor : : "motorola"
999 newdef : defined(__clipper__)
1000 comment : Clipper Chipset (Intergraph)
1001 vendor : : "intergraph"
1002 hosttype: : "clipper"
1003 machtype: : "clipper"
1007 newdef : (defined(SNI) || defined(sinix)) && !defined(_OSD_POSIX)
1008 comment : Fujitsu Siemens Computers (former "Siemens Nixdorf Informationssysteme"): SINIX aka. ReliantUNIX, a SVR4 derivative
1010 hosttype: defined(M_intel) : "wx200i"
1011 hosttype: defined(MIPSEB) : "rm400"
1012 ostype : defined(sinix) : "sinix"
1013 machtype: defined(M_i586) : "i586"
1014 machtype: defined(M_i486) : "i486"
1015 machtype: defined(M_i386) : "i386"
1016 machtype: defined(M_mipsel) : "mipsel"
1017 machtype: defined(M_mipseb) : "mipseb"
1021 newdef : defined(_OSD_POSIX)
1022 comment : Fujitsu Siemens Computers (former "Siemens Nixdorf Informationssysteme"): BS2000 POSIX (mainframe, EBCDIC)
1024 hosttype: : "bs2000"
1025 ostype : : "osdposix"
1026 machtype: #machine(7500) : "s390"
1027 machtype: #machine(mips) : "mips"
1028 machtype: #machine(sparc) : "sparc"
1029 machtype: : "bs2000"
1032 newdef : defined(__MVS__)
1033 comment : ibm uss s/390 (mainframe, EBCDIC)
1040 newdef : defined(_SX)
1041 comment : NEC Corporation (SX-4)
1043 ostype : : "superux"
1048 newdef : !defined(SOLARIS2) && (SYSVREL == 4)
1049 comment : Unix System V Release 4.0
1050 vendor : defined(DELL) : "dell"
1051 hosttype: defined(M_i386) : "i386"
1053 machtype: defined(M_i386) : "i386"
1056 newdef : defined(__uxp__) || defined(__uxps__)
1057 comment : FUJITSU DS/90 7000
1058 vendor : : "fujitsu"
1064 newdef : defined(_UWIN)
1065 comment : AT&T Research Unix for Windows
1067 hosttype: : "win32.i386"
1072 newdef : defined(mc68000) || defined(__mc68000__) || defined(mc68k32) || defined(m68k) || defined(mc68010) || defined(mc68020)
1074 vendor : defined(m68k) : "motorola"
1079 newdef : defined(m88k) || defined(__m88k__)
1085 newdef : defined(M_intel)
1086 hosttype: defined(M_i586) : "i586"
1087 hosttype: defined(M_i486) : "i486"
1088 hosttype: defined(M_i386) : "i386"
1090 machtype: defined(M_i586) : "i586"
1091 machtype: defined(M_i486) : "i486"
1092 machtype: defined(M_i386) : "i386"
1096 newdef : defined(sparc) || defined(__sparc__)
1102 newdef : defined(i860) || defined(__i860__)
1108 newdef : defined(osf1)
1113 newdef : SYSVREL == 0
1114 ostype : defined(BSD4_4) : "bsd44"
1115 ostype : defined(BSD) : "bsd"
1116 ostype : defined(POSIX) : "posix"
1120 newdef : SYSVREL == 1
1125 newdef : SYSVREL == 2
1130 newdef : SYSVREL == 3
1135 newdef : SYSVREL == 4
1142 hosttype = "unknown";
1151 machtype = "unknown";
1153 tsetenv(STRHOSTTYPE, str2short(hosttype));
1154 tsetenv(STRVENDOR, str2short(vendor));
1155 tsetenv(STROSTYPE, str2short(ostype));
1156 tsetenv(STRMACHTYPE, str2short(machtype));
1157 } /* end setmachine */