2 /* $Header: /src/pub/tcsh/host.defs,v 1.31 2001/06/10 02:19:11 christos Exp $ */
5 * host.defs: Hosttype/Machtype etc.
8 * Copyright (c) 1980, 1991 The Regents of the University of California.
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions and the following disclaimer.
16 * 2. Redistributions in binary form must reproduce the above copyright
17 * notice, this list of conditions and the following disclaimer in the
18 * documentation and/or other materials provided with the distribution.
19 * 4. Neither the name of the University nor the names of its contributors
20 * may be used to endorse or promote products derived from this software
21 * without specific prior written permission.
23 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37 RCSID("$Id: host.defs,v 1.31 2001/06/10 02:19:11 christos Exp $")
41 macro : M_mipsel : (defined(mips) || defined(__mips)) && (defined(MIPSEL) || defined(__MIPSEL))
42 macro : M_mipseb : (defined(mips) || defined(__mips)) && (defined(MIPSEB) || defined(__MIPSEB))
43 macro : M_i386 : (defined(i386) || defined(__i386__))
44 macro : M_i486 : (defined(i486) || defined(__i486__))
45 macro : M_i586 : (defined(i586) || defined(__i586__))
46 macro : M_intel : (defined(M_i386) || defined(M_i486) || defined(M_i586))
48 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';
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)
438 comment : Linus Torvalds's linux
439 vendor : defined(M_intel) : "intel"
440 hosttype: defined(M_i586) : "i586-linux"
441 hosttype: defined(M_i486) : "i486-linux"
442 hosttype: defined(M_i386) : "i386-linux"
443 ostype : !defined(PPC) : "linux"
444 ostype : defined(PPC) : "mklinux"
445 machtype: defined(M_i586) : "i586"
446 machtype: defined(M_i486) : "i486"
447 machtype: defined(M_i386) : "i386"
448 vendor : defined(__alpha) : "dec"
449 vendor : defined(PPC) : "apple"
450 hosttype: defined(__alpha) : "alpha"
451 hosttype: defined(PPC) : "powerpc"
452 machtype: defined(__alpha) : "alpha"
453 machtype: defined(PPC) : "powerpc"
457 newdef : defined(__EMX__)
458 comment : OS/2 EMX [unix emulation under OS/2]
459 vendor : defined(M_intel) : "intel"
460 hosttype: defined(M_i386) : "i386-emx"
462 machtype: defined(M_i386) : "i386"
466 newdef : defined(__NetBSD__)
468 vendor : defined(arm32) : "acorn"
469 vendor : defined(alpha) : "digital"
470 vendor : defined(amiga) : "commodore"
471 vendor : defined(atari) : "atari"
472 vendor : defined(hp300) : "hp"
473 vendor : defined(M_intel) : "intel"
474 vendor : defined(m68k) : "motorola"
475 vendor : defined(mac68k) : "apple"
476 vendor : defined(pc532) : "national-semi"
477 vendor : defined(pmax) : "dec"
478 vendor : defined(mips) : "mips"
479 vendor : defined(sparc) : "sun"
480 vendor : defined(sun3) : "sun"
481 vendor : defined(vax) : "digital"
484 machtype: defined(arm32) : "arm32"
485 machtype: defined(sparc) : "sparc"
486 machtype: defined(mc68020) : "m68k"
487 machtype: defined(M_i386) : "i386"
488 machtype: defined(M_mipsel) : "mipsel"
489 machtype: defined(M_mipseb) : "mipseb"
490 machtype: defined(mips) : "mips"
491 machtype: defined(pc532) : "pc532"
492 machtype: defined(vax) : "vax"
493 machtype: defined(alpha) : "alpha"
497 newdef : defined(__FreeBSD__)
499 vendor : defined(__alpha) : "digital"
500 vendor : defined(M_intel) : "intel"
501 hosttype: : "FreeBSD"
503 machtype: defined(__alpha) : "alpha"
504 machtype: defined(M_i386) : "i386"
508 newdef : defined(__386BSD__)
509 comment : Bill Jolitz's 386BSD
510 vendor : defined(M_intel) : "intel"
517 newdef : defined(bsdi)
518 comment : BSDI's unix
519 vendor : defined(M_intel) : "intel"
520 vendor : defined(sparc) : "sun"
521 vendor : defined(__powerpc__) : "motorola"
522 hosttype: defined(M_intel) : "bsd386"
523 hosttype: defined(sparc) : "bsd-sparc"
524 hosttype: defined(__powerpc__) : "bsd-powerpc"
526 machtype: defined(M_i386) : "i386"
527 machtype: defined(sparc) : "sparc"
528 machtype: defined(__powerpc__) : "powerpc"
532 newdef : defined(COHERENT)
533 comment : COHERENT's unix
534 vendor : defined(_I386) : "intel"
536 hosttype: : "coherent"
537 ostype : : "coherent"
538 machtype: defined(_I386) : "i386"
541 newdef : defined(concurrent)
542 comment : Concurrent PowerHawk
543 vendor : : "concurrent"
544 hosttype: : "powerhawk"
545 ostype : : "powermax_os"
546 machtype: : "powerhawk"
549 newdef : defined(SCO)
550 comment : SCO UNIX System V/386 Release 3.2
553 ostype : : "sco_unix"
557 newdef : defined(M_XENIX) && !defined(M_UNIX)
560 hosttype: : "sco_xenix"
561 ostype : : "sco_xenix"
562 machtype: defined(M_I386) : "i386"
563 machtype: defined(M_I286) : "i286"
567 newdef : defined(ISC) || defined(ISC202)
568 comment : Interactive Unix
571 ostype : defined(POSIX) : "POSIX"
573 machtype: defined(M_i386) : "i386"
577 newdef : defined(INTEL)
580 hosttype: : "intel386"
581 ostype : : "intel_unix"
582 machtype: defined(M_i386) : "i386"
586 newdef : defined(MACH)
589 hosttype: defined(M_i386) : "i386-mach"
591 machtype: defined(M_i386) : "i386"
595 newdef : defined(alliant)
596 comment : Alliants FSX
598 hosttype: defined(mc68000) : "alliant-fx80"
599 hosttype: defined(i860) : "alliant-fx2800"
600 hosttype: : "alliant"
602 machtype: defined(mc68000) : "mc68000"
603 machtype: defined(i860) : "i860"
607 newdef : defined(_FTX)
608 comment : Stratus Computer, Inc FTX2 (i860 based)
609 comment : Stratus Computer, Inc FTX3 (HPPA based)
611 hosttype: defined(i860) && defined(_FTX) : "atlantic"
612 hosttype: defined(__hppa) && defined(_FTX) : "continuum"
613 ostype : defined(i860) && defined(_FTX) : "ftx2"
614 ostype : defined(__hppa) && defined(_FTX) : "ftx3"
615 machtype: defined(i860) : "i860"
616 machtype: defined(__hppa) : "hppa"
620 newdef : defined(sequent) || defined(_SEQUENT_)
621 comment : Sequent Balance (32000 based)
622 comment : Sequent Symmetry running DYNIX/ptx (386/486 based)
623 comment : Sequent Symmetry running DYNIX 3 (386/486 based)
625 hosttype: defined(M_i386) && defined(sequent) : "symmetry"
626 hosttype: defined(M_i386) : "ptx"
627 hosttype: : "balance"
628 ostype : defined(M_i386) && !defined(sequent) : "ptx"
630 machtype: defined(M_i386) : "i386"
631 machtype: defined(ns32000) : "ns32000"
635 newdef : defined(ns32000)
636 comment : Encore Computer Corp. Multimax (32000 based)
638 hosttype: defined(CMUCS) : "multimax"
639 hosttype: : isamultimax(0)
640 ostype : defined(CMUCS) : "mach"
641 ostype : : isamultimax(1)
642 machtype: : "ns32000"
646 newdef : defined(iconuxv)
647 comment : Icon 88k running Unix
651 machtype: defined(m88k) || defined(__m88k__) : "m88k"
655 newdef : defined(_CRAY) && defined(_CRAYCOM)
656 comment : Cray Computer Corp. running CSOS
658 hosttype: defined(_CRAY2) : "cray"
659 hosttype: defined(_CRAY3) : "cray"
660 hosttype: defined(_CRAY4) : "cray"
662 machtype: defined(_CRAY2) : "cray2"
663 machtype: defined(_CRAY3) : "cray3"
664 machtype: defined(_CRAY4) : "cray4"
668 newdef : defined(cray) && !defined(_CRAYMPP)
669 comment : Cray Research Inc. PVP running UNICOS
671 hosttype: : getcray()
673 machtype: : getcray()
677 newdef : defined(cray) && defined(_CRAYT3D)
678 comment : Cray Research Inc. running UNICOS MAX
680 hosttype: : getcray()
681 ostype : : "unicosmax"
682 machtype: : getcray()
686 newdef : defined(cray) && defined(_CRAYT3E)
687 comment : Cray Research Inc. running UNICOS/mk
689 hosttype: : getcray()
690 ostype : : "unicosmk"
691 machtype: : getcray()
695 newdef : defined(convex)
699 ostype : : "convexos"
700 machtype: : getconvex()
704 newdef : defined(butterfly)
705 comment : BBN Butterfly 1000
707 hosttype: : "butterfly"
708 machtype: defined(mc68020) || defined(__mc68020__) : "m68k"
712 newdef : defined(NeXT)
715 hosttype: defined(mc68020) || defined(__mc68020__) : "next"
716 hosttype: defined(M_i386) || defined(__i386__) : "intel-pc"
717 hosttype: defined(hppa) || defined(__hppa__) : "hp"
718 hosttype: defined(sparc) || defined(__sparc__) : "sun"
719 ostype : : "nextstep"
720 machtype: defined(mc68020) || defined(__mc68020__) : "m68k"
721 machtype: defined(M_i386) || defined(__i386__) : "i386"
722 machtype: defined(hppa) || defined(__hppa__) : "hppa"
723 machtype: defined(sparc) || defined(__sparc__) : "sparc"
727 newdef : defined(__APPLE__)
730 hosttype: defined(__i386__) : "intel-pc"
731 hosttype: defined(__ppc__) : "macintosh"
732 ostype : : "rhapsody"
733 machtype: defined(__i386__) : "i386"
734 machtype: defined(__ppc__) : "powerpc"
738 newdef : defined(sony_news)
739 comment : Sony NEWS 800 or 1700 workstation
741 hosttype: defined(mips) : "news_mips"
742 hosttype: defined(mc68020) || defined(__mc68020__) : "news_m68k"
744 machtype: defined(mc68020) || defined(__mc68020__) : "m68k"
745 machtype: defined(M_mipsel) : "mipsel"
746 machtype: defined(M_mipseb) : "mipseb"
750 newdef : defined(sgi)
751 comment : Silicon Graphics
753 hosttype: defined(M_mipsel) : "iris4d"
754 hosttype: defined(M_mipseb) : "iris4d"
755 hosttype: defined(mc68000) : "iris3d"
757 machtype: defined(M_mipsel) : "mipsel"
758 machtype: defined(M_mipseb) : "mipseb"
759 machtype: defined(mc68000) : "mc68000"
763 newdef : defined(ultrix) || defined(__ultrix)
764 comment : Digital's Ultrix
766 hosttype: defined(M_mipsel) : "decstation"
767 hosttype: defined(M_mipseb) : "decmips"
768 hosttype: defined(vax) || defined(__vax) : "vax"
769 hosttype: defined(__vax__) : "vax"
771 machtype: defined(M_mipsel) : "mipsel"
772 machtype: defined(M_mipseb) : "mipseb"
773 machtype: defined(vax) || defined (__vax) : "vax"
774 hosttype: defined(__vax__) : "vax"
778 newdef : defined(MIPS)
781 hosttype: defined(M_mipsel) : "mips"
782 hosttype: defined(M_mipseb) : "mips"
784 machtype: defined(M_mipsel) : "mipsel"
785 machtype: defined(M_mipseb) : "mipseb"
789 newdef : defined(DECOSF1)
790 comment : Digital's alpha running osf1
793 hosttype: defined(__alpha) : "alpha"
794 machtype: defined(__alpha) : "alpha"
798 newdef : defined(Lynx)
799 comment : Lynx OS 2.1
801 hosttype: defined(M_mipsel) : "lynxos-mips"
802 hosttype: defined(M_mipseb) : "lynxos-mips"
803 hosttype: defined(M_i386) : "lynxos-i386"
804 hosttype: defined(i860) || defined(__i860__) : "lynxos-i860"
805 hosttype: defined(m68k) : "lynxos-m68k"
806 hosttype: defined(m88k) : "lynxos-m88k"
807 hosttype: defined(sparc) : "lynxos-sparc"
808 hosttype: : "lynxos-unknown"
810 machtype: defined(M_mipsel) : "mipsel"
811 machtype: defined(M_mipseb) : "mipseb"
812 machtype: defined(M_i386) : "i386"
813 machtype: defined(i860) || defined(__i860__) : "i860"
814 machtype: defined(m68k) : "m68k"
815 machtype: defined(m88k) : "m88k"
816 machtype: defined(sparc) : "sparc"
820 newdef : defined(masscomp)
822 vendor : : "masscomp"
823 hosttype: : "masscomp"
824 ostype : : "masscomp"
827 newdef : defined(__MACHTEN__)
830 hosttype: : "Macintosh"
832 machtype: : "Macintosh"
837 newdef : defined(GOULD_NP1)
840 hosttype: : "gould_np1"
845 newdef : defined(MULTIFLOW)
846 comment : Multiflow running 4.3BSD
847 vendor : : "multiflow"
848 hosttype: : "multiflow"
849 machtype: : "multiflow"
854 newdef : defined(SXA)
855 comment : PFU/Fujitsu A-xx computer
858 ostype : defined(_BSDX_) : "e60-bsdx"
864 newdef : defined(titan)
865 comment : (St)Ardent Titan
871 newdef : defined(stellar)
874 hosttype: : "stellar"
879 newdef : defined(atari)
880 comment : Atari TT running SVR4. This machine was never
881 comment : commercially available.
888 newdef : defined(OPUS)
895 newdef : defined(eta10)
896 comment : ETA running SVR3
902 newdef : defined(hk68)
903 comment : Heurikon HK68 running Uniplus+ 5.0
904 vendor : : "heurikon"
910 newdef : defined(NDIX)
911 comment : Norsk Data ND 500/5000 running Ndix
918 newdef : defined(AMIGA)
919 comment : Amiga running AmigaOS+GG
920 vendor : : "commodore"
927 newdef : defined(uts)
928 comment : Amdahl running uts 2.1
936 newdef : defined(UTek)
937 comment : Tektronix 4300 running UTek (BSD 4.2 / 68020 based)
938 vendor : : "tektronix"
939 hosttype: : "tek4300"
943 newdef : defined(UTekV)
944 comment : Tektronix XD88/10 running UTekV 3.2e (SVR3/88100 based)
945 vendor : : "tektronix"
946 hosttype: : "tekXD88"
950 newdef : defined(__DGUX__)
951 comment : Data-General AViiON running DGUX
955 machtype: defined(__m88k__) : "m88k"
956 machtype: defined(__i386__) : "pentium"
960 newdef : defined(sysV68)
961 comment : Motorola MPC running System V/68 R32V2 (SVR3/68020 based)
962 vendor : : "motorola"
968 newdef : defined(supermax)
969 comment : DDE Supermax running System V/68 R3 (SVR3/68020 based)
970 vendor : : "supermax"
971 hosttype: : "supermax"
976 newdef : defined(sysV88)
977 comment : Motorola MPC running System V/88 R32V2 (SVR3/88100 based)
978 vendor : : "motorola"
984 newdef : defined(__clipper__)
985 comment : Clipper Chipset (Intergraph)
986 vendor : : "intergraph"
987 hosttype: : "clipper"
988 machtype: : "clipper"
992 newdef : defined(SNI) || defined(sinix)
993 comment : Siemens Nixdorf Informationssysteme SINIX
995 hosttype: defined(M_intel) : "wx200i"
996 hosttype: defined(MIPSEB) : "rm400"
997 ostype : defined(sinix) : "sinix"
998 machtype: defined(M_i586) : "i586"
999 machtype: defined(M_i486) : "i486"
1000 machtype: defined(M_i386) : "i386"
1001 machtype: defined(M_mipsel) : "mipsel"
1002 machtype: defined(M_mipseb) : "mipseb"
1006 newdef : defined(_OSD_POSIX)
1007 comment : Siemens Nixdorf Informationssysteme BS2000 POSIX (mainframe, EBCDIC)
1009 hosttype: defined(M_intel) : "bs2000"
1011 machtype: : "bs2000"
1014 newdef : defined(__MVS__)
1015 comment : ibm uss s/390 (mainframe, EBCDIC)
1022 newdef : defined(_SX)
1023 comment : NEC Corporation (SX-4)
1025 ostype : : "superux"
1030 newdef : !defined(SOLARIS2) && (SYSVREL == 4)
1031 comment : Unix System V Release 4.0
1032 vendor : defined(DELL) : "dell"
1033 hosttype: defined(M_i386) : "i386"
1035 machtype: defined(M_i386) : "i386"
1038 newdef : defined(__uxp__) || defined(__uxps__)
1039 comment : FUJITSU DS/90 7000
1040 vendor : : "fujitsu"
1046 newdef : defined(_UWIN)
1047 comment : AT&T Research Unix for Windows
1049 hosttype: : "win32.i386"
1054 newdef : defined(mc68000) || defined(__mc68000__) || defined(mc68k32) || defined(m68k) || defined(mc68010) || defined(mc68020)
1056 vendor : defined(m68k) : "motorola"
1061 newdef : defined(m88k) || defined(__m88k__)
1067 newdef : defined(M_intel)
1068 hosttype: defined(M_i586) : "i586"
1069 hosttype: defined(M_i486) : "i486"
1070 hosttype: defined(M_i386) : "i386"
1072 machtype: defined(M_i586) : "i586"
1073 machtype: defined(M_i486) : "i486"
1074 machtype: defined(M_i386) : "i386"
1078 newdef : defined(sparc) || defined(__sparc__)
1084 newdef : defined(i860) || defined(__i860__)
1090 newdef : defined(osf1)
1095 newdef : SYSVREL == 0
1096 ostype : defined(BSD4_4) : "bsd44"
1097 ostype : defined(BSD) : "bsd"
1098 ostype : defined(POSIX) : "posix"
1102 newdef : SYSVREL == 1
1107 newdef : SYSVREL == 2
1112 newdef : SYSVREL == 3
1117 newdef : SYSVREL == 4
1124 hosttype = "unknown";
1133 machtype = "unknown";
1135 tsetenv(STRHOSTTYPE, str2short(hosttype));
1136 tsetenv(STRVENDOR, str2short(vendor));
1137 tsetenv(STROSTYPE, str2short(ostype));
1138 tsetenv(STRMACHTYPE, str2short(machtype));
1139 } /* end setmachine */