2 /* $Header: /src/pub/tcsh/host.defs,v 1.36 2003/02/08 20:03:25 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("$Id: host.defs,v 1.36 2003/02/08 20:03:25 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)
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';
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)
439 comment : Linus Torvalds's linux
440 vendor : defined(M_intel) : "intel"
441 hosttype: defined(M_i586) : "i586-linux"
442 hosttype: defined(M_i486) : "i486-linux"
443 hosttype: defined(M_i386) : "i386-linux"
444 ostype : !defined(PPC) : "linux"
445 ostype : defined(PPC) : "mklinux"
446 machtype: defined(M_i586) : "i586"
447 machtype: defined(M_i486) : "i486"
448 machtype: defined(M_i386) : "i386"
449 vendor : defined(__alpha) : "dec"
450 vendor : defined(PPC) : "apple"
451 hosttype: defined(__alpha) : "alpha"
452 hosttype: defined(PPC) : "powerpc"
453 machtype: defined(__alpha) : "alpha"
454 machtype: defined(PPC) : "powerpc"
455 machtype: defined(M_mipsel) : "mipsel"
456 machtype: defined(M_mipseb) : "mipseb"
457 machtype: defined(M_mips64el) : "mips64el"
458 machtype: defined(M_mips64eb) : "mips64eb"
462 newdef : defined(__EMX__)
463 comment : OS/2 EMX [unix emulation under OS/2]
464 vendor : defined(M_intel) : "intel"
465 hosttype: defined(M_i386) : "i386-emx"
467 machtype: defined(M_i386) : "i386"
471 newdef : defined(__NetBSD__)
473 vendor : defined(arm32) || defined(__arm__) : "acorn"
474 vendor : defined(alpha) : "digital"
475 vendor : defined(amiga) : "commodore"
476 vendor : defined(atari) : "atari"
477 vendor : defined(hp300) : "hp"
478 vendor : defined(M_intel) : "intel"
479 vendor : defined(m68k) : "motorola"
480 vendor : defined(mac68k) : "apple"
481 vendor : defined(pc532) : "national-semi"
482 vendor : defined(pmax) : "dec"
483 vendor : defined(mips) : "mips"
484 vendor : defined(sparc) : "sun"
485 vendor : defined(sun3) : "sun"
486 vendor : defined(vax) : "digital"
489 machtype: defined(arm32) || defined(__APCS_32__) : "arm32"
490 machtype: defined(arm26) || defined(__APCS_26__) : "arm26"
491 machtype: defined(arm) || defined(__arm__) : "arm"
492 machtype: defined(sparc) : "sparc"
493 machtype: defined(mc68020) : "m68k"
494 machtype: defined(M_i386) : "i386"
495 machtype: defined(M_mipsel) : "mipsel"
496 machtype: defined(M_mipseb) : "mipseb"
497 machtype: defined(mips) : "mips"
498 machtype: defined(pc532) : "pc532"
499 machtype: defined(vax) : "vax"
500 machtype: defined(alpha) : "alpha"
504 newdef : defined(__FreeBSD__)
506 vendor : defined(__alpha) : "digital"
507 vendor : defined(M_intel) : "intel"
508 hosttype: : "FreeBSD"
510 machtype: defined(__alpha) : "alpha"
511 machtype: defined(M_i386) : "i386"
515 newdef : defined(__386BSD__)
516 comment : Bill Jolitz's 386BSD
517 vendor : defined(M_intel) : "intel"
524 newdef : defined(bsdi)
525 comment : BSDI's unix
526 vendor : defined(M_intel) : "intel"
527 vendor : defined(sparc) : "sun"
528 vendor : defined(__powerpc__) : "motorola"
529 hosttype: defined(M_intel) : "bsd386"
530 hosttype: defined(sparc) : "bsd-sparc"
531 hosttype: defined(__powerpc__) : "bsd-powerpc"
533 machtype: defined(M_i386) : "i386"
534 machtype: defined(sparc) : "sparc"
535 machtype: defined(__powerpc__) : "powerpc"
539 newdef : defined(COHERENT)
540 comment : COHERENT's unix
541 vendor : defined(_I386) : "intel"
543 hosttype: : "coherent"
544 ostype : : "coherent"
545 machtype: defined(_I386) : "i386"
548 newdef : defined(concurrent)
549 comment : Concurrent PowerHawk
550 vendor : : "concurrent"
551 hosttype: : "powerhawk"
552 ostype : : "powermax_os"
553 machtype: : "powerhawk"
556 newdef : defined(SCO)
557 comment : SCO UNIX System V/386 Release 3.2
560 ostype : : "sco_unix"
564 newdef : defined(M_XENIX) && !defined(M_UNIX)
567 hosttype: : "sco_xenix"
568 ostype : : "sco_xenix"
569 machtype: defined(M_I386) : "i386"
570 machtype: defined(M_I286) : "i286"
574 newdef : defined(ISC) || defined(ISC202)
575 comment : Interactive Unix
578 ostype : defined(POSIX) : "POSIX"
580 machtype: defined(M_i386) : "i386"
584 newdef : defined(INTEL)
587 hosttype: : "intel386"
588 ostype : : "intel_unix"
589 machtype: defined(M_i386) : "i386"
593 newdef : defined(MACH)
596 hosttype: defined(M_i386) : "i386-mach"
598 machtype: defined(M_i386) : "i386"
602 newdef : defined(alliant)
603 comment : Alliants FSX
605 hosttype: defined(mc68000) : "alliant-fx80"
606 hosttype: defined(i860) : "alliant-fx2800"
607 hosttype: : "alliant"
609 machtype: defined(mc68000) : "mc68000"
610 machtype: defined(i860) : "i860"
614 newdef : defined(_FTX)
615 comment : Stratus Computer, Inc FTX2 (i860 based)
616 comment : Stratus Computer, Inc FTX3 (HPPA based)
618 hosttype: defined(i860) && defined(_FTX) : "atlantic"
619 hosttype: defined(__hppa) && defined(_FTX) : "continuum"
620 ostype : defined(i860) && defined(_FTX) : "ftx2"
621 ostype : defined(__hppa) && defined(_FTX) : "ftx3"
622 machtype: defined(i860) : "i860"
623 machtype: defined(__hppa) : "hppa"
627 newdef : defined(sequent) || defined(_SEQUENT_)
628 comment : Sequent Balance (32000 based)
629 comment : Sequent Symmetry running DYNIX/ptx (386/486 based)
630 comment : Sequent Symmetry running DYNIX 3 (386/486 based)
632 hosttype: defined(M_i386) && defined(sequent) : "symmetry"
633 hosttype: defined(M_i386) : "ptx"
634 hosttype: : "balance"
635 ostype : defined(M_i386) && !defined(sequent) : "ptx"
637 machtype: defined(M_i386) : "i386"
638 machtype: defined(ns32000) : "ns32000"
642 newdef : defined(ns32000)
643 comment : Encore Computer Corp. Multimax (32000 based)
645 hosttype: defined(CMUCS) : "multimax"
646 hosttype: : isamultimax(0)
647 ostype : defined(CMUCS) : "mach"
648 ostype : : isamultimax(1)
649 machtype: : "ns32000"
653 newdef : defined(iconuxv)
654 comment : Icon 88k running Unix
658 machtype: defined(m88k) || defined(__m88k__) : "m88k"
662 newdef : defined(_CRAY) && defined(_CRAYCOM)
663 comment : Cray Computer Corp. running CSOS
665 hosttype: defined(_CRAY2) : "cray"
666 hosttype: defined(_CRAY3) : "cray"
667 hosttype: defined(_CRAY4) : "cray"
669 machtype: defined(_CRAY2) : "cray2"
670 machtype: defined(_CRAY3) : "cray3"
671 machtype: defined(_CRAY4) : "cray4"
675 newdef : defined(cray) && !defined(_CRAYMPP)
676 comment : Cray Research Inc. PVP running UNICOS
678 hosttype: : getcray()
680 machtype: : getcray()
684 newdef : defined(cray) && defined(_CRAYT3D)
685 comment : Cray Research Inc. running UNICOS MAX
687 hosttype: : getcray()
688 ostype : : "unicosmax"
689 machtype: : getcray()
693 newdef : defined(cray) && defined(_CRAYT3E)
694 comment : Cray Research Inc. running UNICOS/mk
696 hosttype: : getcray()
697 ostype : : "unicosmk"
698 machtype: : getcray()
702 newdef : defined(convex)
706 ostype : : "convexos"
707 machtype: : getconvex()
711 newdef : defined(butterfly)
712 comment : BBN Butterfly 1000
714 hosttype: : "butterfly"
715 machtype: defined(mc68020) || defined(__mc68020__) : "m68k"
719 newdef : defined(NeXT)
722 hosttype: defined(mc68020) || defined(__mc68020__) : "next"
723 hosttype: defined(M_i386) || defined(__i386__) : "intel-pc"
724 hosttype: defined(hppa) || defined(__hppa__) : "hp"
725 hosttype: defined(sparc) || defined(__sparc__) : "sun"
726 ostype : : "nextstep"
727 machtype: defined(mc68020) || defined(__mc68020__) : "m68k"
728 machtype: defined(M_i386) || defined(__i386__) : "i386"
729 machtype: defined(hppa) || defined(__hppa__) : "hppa"
730 machtype: defined(sparc) || defined(__sparc__) : "sparc"
734 newdef : defined(__APPLE__) && defined(__MACH__)
737 hosttype: defined(__i386__) : "intel-pc"
738 hosttype: defined(__ppc__) : "powermac"
740 machtype: defined(__i386__) : "i386"
741 machtype: defined(__ppc__) : "powerpc"
745 newdef : defined(sony_news)
746 comment : Sony NEWS 800 or 1700 workstation
748 hosttype: defined(mips) : "news_mips"
749 hosttype: defined(mc68020) || defined(__mc68020__) : "news_m68k"
751 machtype: defined(mc68020) || defined(__mc68020__) : "m68k"
752 machtype: defined(M_mipsel) : "mipsel"
753 machtype: defined(M_mipseb) : "mipseb"
757 newdef : defined(sgi)
758 comment : Silicon Graphics
760 hosttype: defined(M_mipsel) : "iris4d"
761 hosttype: defined(M_mipseb) : "iris4d"
762 hosttype: defined(mc68000) : "iris3d"
764 machtype: defined(M_mipsel) : "mipsel"
765 machtype: defined(M_mipseb) : "mipseb"
766 machtype: defined(mc68000) : "mc68000"
770 newdef : defined(ultrix) || defined(__ultrix)
771 comment : Digital's Ultrix
773 hosttype: defined(M_mipsel) : "decstation"
774 hosttype: defined(M_mipseb) : "decmips"
775 hosttype: defined(vax) || defined(__vax) : "vax"
776 hosttype: defined(__vax__) : "vax"
778 machtype: defined(M_mipsel) : "mipsel"
779 machtype: defined(M_mipseb) : "mipseb"
780 machtype: defined(vax) || defined (__vax) : "vax"
781 hosttype: defined(__vax__) : "vax"
785 newdef : defined(MIPS)
788 hosttype: defined(M_mipsel) : "mips"
789 hosttype: defined(M_mipseb) : "mips"
791 machtype: defined(M_mipsel) : "mipsel"
792 machtype: defined(M_mipseb) : "mipseb"
796 newdef : defined(DECOSF1)
797 comment : Digital's alpha running osf1
800 hosttype: defined(__alpha) : "alpha"
801 machtype: defined(__alpha) : "alpha"
805 newdef : defined(Lynx)
806 comment : Lynx OS 2.1
808 hosttype: defined(M_mipsel) : "lynxos-mips"
809 hosttype: defined(M_mipseb) : "lynxos-mips"
810 hosttype: defined(M_i386) : "lynxos-i386"
811 hosttype: defined(i860) || defined(__i860__) : "lynxos-i860"
812 hosttype: defined(m68k) : "lynxos-m68k"
813 hosttype: defined(m88k) : "lynxos-m88k"
814 hosttype: defined(sparc) : "lynxos-sparc"
815 hosttype: : "lynxos-unknown"
817 machtype: defined(M_mipsel) : "mipsel"
818 machtype: defined(M_mipseb) : "mipseb"
819 machtype: defined(M_i386) : "i386"
820 machtype: defined(i860) || defined(__i860__) : "i860"
821 machtype: defined(m68k) : "m68k"
822 machtype: defined(m88k) : "m88k"
823 machtype: defined(sparc) : "sparc"
827 newdef : defined(masscomp)
829 vendor : : "masscomp"
830 hosttype: : "masscomp"
831 ostype : : "masscomp"
834 newdef : defined(__MACHTEN__)
837 hosttype: : "Macintosh"
839 machtype: : "Macintosh"
844 newdef : defined(GOULD_NP1)
847 hosttype: : "gould_np1"
852 newdef : defined(MULTIFLOW)
853 comment : Multiflow running 4.3BSD
854 vendor : : "multiflow"
855 hosttype: : "multiflow"
856 machtype: : "multiflow"
861 newdef : defined(SXA)
862 comment : PFU/Fujitsu A-xx computer
865 ostype : defined(_BSDX_) : "e60-bsdx"
871 newdef : defined(titan)
872 comment : (St)Ardent Titan
878 newdef : defined(stellar)
881 hosttype: : "stellar"
886 newdef : defined(atari)
887 comment : Atari TT running SVR4. This machine was never
888 comment : commercially available.
895 newdef : defined(OPUS)
902 newdef : defined(eta10)
903 comment : ETA running SVR3
909 newdef : defined(hk68)
910 comment : Heurikon HK68 running Uniplus+ 5.0
911 vendor : : "heurikon"
917 newdef : defined(NDIX)
918 comment : Norsk Data ND 500/5000 running Ndix
925 newdef : defined(AMIGA)
926 comment : Amiga running AmigaOS+GG
927 vendor : : "commodore"
934 newdef : defined(uts)
935 comment : Amdahl running uts 2.1
943 newdef : defined(UTek)
944 comment : Tektronix 4300 running UTek (BSD 4.2 / 68020 based)
945 vendor : : "tektronix"
946 hosttype: : "tek4300"
950 newdef : defined(UTekV)
951 comment : Tektronix XD88/10 running UTekV 3.2e (SVR3/88100 based)
952 vendor : : "tektronix"
953 hosttype: : "tekXD88"
957 newdef : defined(__DGUX__)
958 comment : Data-General AViiON running DGUX
962 machtype: defined(__m88k__) : "m88k"
963 machtype: defined(__i386__) : "pentium"
967 newdef : defined(sysV68)
968 comment : Motorola MPC running System V/68 R32V2 (SVR3/68020 based)
969 vendor : : "motorola"
975 newdef : defined(supermax)
976 comment : DDE Supermax running System V/68 R3 (SVR3/68020 based)
977 vendor : : "supermax"
978 hosttype: : "supermax"
983 newdef : defined(sysV88)
984 comment : Motorola MPC running System V/88 R32V2 (SVR3/88100 based)
985 vendor : : "motorola"
991 newdef : defined(__clipper__)
992 comment : Clipper Chipset (Intergraph)
993 vendor : : "intergraph"
994 hosttype: : "clipper"
995 machtype: : "clipper"
999 newdef : defined(SNI) || defined(sinix)
1000 comment : Siemens Nixdorf Informationssysteme SINIX
1002 hosttype: defined(M_intel) : "wx200i"
1003 hosttype: defined(MIPSEB) : "rm400"
1004 ostype : defined(sinix) : "sinix"
1005 machtype: defined(M_i586) : "i586"
1006 machtype: defined(M_i486) : "i486"
1007 machtype: defined(M_i386) : "i386"
1008 machtype: defined(M_mipsel) : "mipsel"
1009 machtype: defined(M_mipseb) : "mipseb"
1013 newdef : defined(_OSD_POSIX)
1014 comment : Siemens Nixdorf Informationssysteme BS2000 POSIX (mainframe, EBCDIC)
1016 hosttype: defined(M_intel) : "bs2000"
1018 machtype: : "bs2000"
1021 newdef : defined(__MVS__)
1022 comment : ibm uss s/390 (mainframe, EBCDIC)
1029 newdef : defined(_SX)
1030 comment : NEC Corporation (SX-4)
1032 ostype : : "superux"
1037 newdef : !defined(SOLARIS2) && (SYSVREL == 4)
1038 comment : Unix System V Release 4.0
1039 vendor : defined(DELL) : "dell"
1040 hosttype: defined(M_i386) : "i386"
1042 machtype: defined(M_i386) : "i386"
1045 newdef : defined(__uxp__) || defined(__uxps__)
1046 comment : FUJITSU DS/90 7000
1047 vendor : : "fujitsu"
1053 newdef : defined(_UWIN)
1054 comment : AT&T Research Unix for Windows
1056 hosttype: : "win32.i386"
1061 newdef : defined(mc68000) || defined(__mc68000__) || defined(mc68k32) || defined(m68k) || defined(mc68010) || defined(mc68020)
1063 vendor : defined(m68k) : "motorola"
1068 newdef : defined(m88k) || defined(__m88k__)
1074 newdef : defined(M_intel)
1075 hosttype: defined(M_i586) : "i586"
1076 hosttype: defined(M_i486) : "i486"
1077 hosttype: defined(M_i386) : "i386"
1079 machtype: defined(M_i586) : "i586"
1080 machtype: defined(M_i486) : "i486"
1081 machtype: defined(M_i386) : "i386"
1085 newdef : defined(sparc) || defined(__sparc__)
1091 newdef : defined(i860) || defined(__i860__)
1097 newdef : defined(osf1)
1102 newdef : SYSVREL == 0
1103 ostype : defined(BSD4_4) : "bsd44"
1104 ostype : defined(BSD) : "bsd"
1105 ostype : defined(POSIX) : "posix"
1109 newdef : SYSVREL == 1
1114 newdef : SYSVREL == 2
1119 newdef : SYSVREL == 3
1124 newdef : SYSVREL == 4
1131 hosttype = "unknown";
1140 machtype = "unknown";
1142 tsetenv(STRHOSTTYPE, str2short(hosttype));
1143 tsetenv(STRVENDOR, str2short(vendor));
1144 tsetenv(STROSTYPE, str2short(ostype));
1145 tsetenv(STRMACHTYPE, str2short(machtype));
1146 } /* end setmachine */