2 /* $Header: /p/tcsh/cvsroot/tcsh/host.defs,v 1.55 2012/01/11 20:20:15 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.55 2012/01/11 20:20:15 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_i686 : (defined(i686) || defined(__i686__))
48 macro : M_intel : (defined(M_i386) || defined(M_i486) || defined(M_i586))
50 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 unsigned char *p = (unsigned 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';
172 newdef : defined(__linux__) || defined(__CYGWIN__) || defined(__GNU__) || defined(__GLIBC__)
175 #include <sys/utsname.h>
176 static char mach[256];
177 static char host[256];
178 static char ostype[32];
179 static void populate(void)
183 const char *p = short2str(tgetenv(STROSTYPE));
185 #if defined(__ANDROID__)
187 #elif defined(__CYGWIN__)
193 xsnprintf(ostype, sizeof(ostype), "%s", p);
194 xsnprintf(mach, sizeof(mach), "%s", e != -1 ? uts.machine : "unknown");
195 xsnprintf(host, sizeof(host), "%s-%s",
196 e != -1 ? uts.machine : "unknown", ostype);
230 const char *hosttype;
233 const char *machtype;
238 newdef : defined(HOSTTYPE)
243 newdef : defined(__PARAGON__)
244 comment : Intel Paragon running OSF/1
246 hosttype: : "paragon"
248 machtype: defined(M_i386) : "i386"
252 newdef : defined(AMIX)
253 comment : Amiga running Amix 2.02
254 vendor : : "commodore"
261 newdef : defined(accel)
262 comment : celerity Accel
263 vendor : : "celerity"
264 hosttype: : "celerityACCEL"
270 newdef : defined(_VMS_POSIX)
271 comment : digital vax or alpha running vms posix
273 hosttype: : "VMS-POSIX"
275 machtype: defined(alpha) : "alpha"
276 machtype: defined(vax) : "vax"
280 newdef : defined(__hp_osf)
281 comment : Hewlett Packard running OSF/1
283 hosttype: defined(pa_risc) : "hp9000s700-osf1"
284 hosttype: : "hp-osf1"
286 machtype: defined(pa_risc) : "pa_risc"
290 newdef : defined(hp9000)
291 comment : Hewlett Packard running MORE/bsd
293 hosttype: defined(hp300) : "hp300"
294 hosttype: defined(hp800) : "hp800"
296 ostype : defined(BSD4_4) : "bsd44"
298 machtype: defined(hp300) : "m68k"
299 machtype: defined(hp800) : "pa_risc"
303 newdef : defined(hpux) || defined(__hpux)
304 comment : Hewlett Packard running HP/UX
306 hosttype: defined(hp9000s800) : "hp9000s800"
307 hosttype: defined(hp9000s700) : "hp9000s700"
308 hosttype: defined(hp9000s500) : "hp9000s500"
309 hosttype: defined(hp9000s300) : "hp9000s300"
312 machtype: defined(hp9000s800) : "pa_risc"
313 machtype: defined(hp9000s700) : "pa_risc"
314 machtype: defined(hp9000s500) : "m68k"
315 machtype: defined(hp9000s300) : "m68k"
319 newdef : defined(apollo)
320 comment : Hewlett Packard apollo running Domain/OS
323 ostype : : "DomainOS"
328 newdef : defined(sun) || defined(__sun__)
329 comment : Sun Microsystems series 2 workstation (68010 based)
330 comment : Sun Microsystems series 3 workstation (68020 based)
331 comment : Sun Microsystems 386i workstation (386 based)
332 comment : Sun Microsystems series 4 workstation (SPARC based)
334 hosttype: defined(M_i386) && !defined(__SVR4) : "sun386i"
335 hosttype: defined(M_i386) && defined(__SVR4) : "i86pc"
336 hosttype: defined(mc68010) : "sun2"
337 hosttype: defined(mc68020) : "sun3"
338 hosttype: defined(sparc) : "sun4"
340 ostype : defined(SUNOS3) : "sunos3"
341 ostype : defined(SUNOS4) : "sunos4"
342 ostype : defined(SOLARIS2) : "solaris"
343 machtype: defined(mc68010) : "m68k"
344 machtype: defined(mc68020) : "m68k"
345 machtype: defined(sparcv9) : "sparcv9"
346 machtype: defined(sparc) : "sparc"
347 machtype: defined(M_i386) : "i386"
351 newdef : defined(pyr)
352 comment : Pyramid Technology
354 hosttype: : "pyramid"
355 machtype: : "pyramid"
359 newdef : defined(hcx) || defined(_CX_UX)
360 comment : Harris Tahoe running CX/UX
368 newdef : defined(tahoe)
369 comment : Harris Tahoe
376 newdef : defined(ibm032)
377 comment : RT running IBM AOS4.3 or MACH
380 ostype : defined(MACH) : "mach"
386 newdef : defined(aiws)
387 comment : RT running IBM aix2.x
395 newdef : defined(_AIX370)
396 comment : IBM/370 running aix
404 newdef : defined(_IBMESA)
405 comment : IBM/ESA running aix
413 newdef : defined(_IBMR2)
414 comment : IBM/RS6000 running aix
422 newdef : defined(_AIXPS2)
423 comment : IBM/PS2 running aix
431 newdef : defined(OREO)
432 comment : Macintosh running AU/X
436 machtype: defined(mc68020) : "m68k"
440 newdef : defined(u3b20d)
441 comment : AT&T 3B/20 series running SVR2/3
443 hosttype: : "att3b20"
448 newdef : defined(u3b15)
449 comment : AT&T 3B/15 series running SVR2/3
451 hosttype: : "att3b15"
456 newdef : defined(u3b5)
457 comment : AT&T 3B/5 series running SVR2/3
464 newdef : defined(u3b2)
465 comment : AT&T 3B/2 series running SVR2/3
472 newdef : defined(UNIXPC)
473 comment : AT&T UnixPC att3b1/att7300
476 machtype: defined(u3b1) : "u3b1"
477 machtype: defined(att7300) : "att7300"
481 newdef : defined(_MINIX)
482 comment : Andy Tanenbaum's minix
483 vendor : defined(M_i386) : "intel"
484 hosttype: defined(M_i386) : "minix386"
487 machtype: defined(M_i386) : "i386"
491 newdef : defined(__gnu_hurd__)
493 vendor : defined(M_intel) : "intel"
494 hosttype: defined(M_i686) : "i686"
495 hosttype: defined(M_i586) : "i586"
496 hosttype: defined(M_i486) : "i486"
497 hosttype: defined(M_i386) : "i386"
499 machtype: defined(M_i686) : "i686-pc-gnu"
500 machtype: defined(M_i586) : "i586-pc-gnu"
501 machtype: defined(M_i486) : "i486-pc-gnu"
502 machtype: defined(M_i386) : "i386-pc-gnu"
506 newdef : defined(linux) || defined(__GNU__) || defined(__GLIBC__)
507 comment : Linus Torvalds's linux
508 vendor : defined(M_intel) : "intel"
509 hosttype: : gethost()
510 ostype : : getostype()
511 machtype: : getmach()
512 vendor : defined(__ANDROID__) : "linux"
513 vendor : defined(alpha) : "dec"
514 vendor : defined(PPC) : "apple"
518 newdef : defined(__EMX__)
519 comment : OS/2 EMX [unix emulation under OS/2]
520 vendor : defined(M_intel) : "intel"
521 hosttype: defined(M_i386) : "i386-emx"
523 machtype: defined(M_i386) : "i386"
527 newdef : defined(__NetBSD__)
529 vendor : defined(algor) : "algoritmics"
530 vendor : defined(arm32) || defined(__arm__) : "acorn"
531 vendor : defined(alpha) : "digital"
532 vendor : defined(amiga) : "commodore"
533 vendor : defined(atari) : "atari"
534 vendor : defined(hp300) : "hp"
535 vendor : defined(M_intel) : "intel"
536 vendor : defined(m68k) : "motorola"
537 vendor : defined(mac68k) : "apple"
538 vendor : defined(pc532) : "national-semi"
539 vendor : defined(pmax) : "dec"
540 vendor : defined(powerpc) : "motorola"
541 vendor : defined(mips) : "mips"
542 vendor : defined(sparc) : "sun"
543 vendor : defined(sparc64) : "sun"
544 vendor : defined(sun3) : "sun"
545 vendor : defined(vax) : "digital"
546 vendor : defined(x86_64) : "amd"
549 machtype: defined(alpha) : "alpha"
550 machtype: defined(algor) : "algor"
551 machtype: defined(arm32) || defined(__APCS_32__) : "arm32"
552 machtype: defined(arm26) || defined(__APCS_26__) : "arm26"
553 machtype: defined(arm) : "arm"
554 machtype: defined(sparc) : "sparc"
555 machtype: defined(sparc64) : "sparc64"
556 machtype: defined(mc68020) : "m68k"
557 machtype: defined(M_i386) : "i386"
558 machtype: defined(M_mipsel) : "mipsel"
559 machtype: defined(M_mipseb) : "mipseb"
560 machtype: defined(mips) : "mips"
561 machtype: defined(pc532) : "pc532"
562 machtype: defined(powerpc) : "powerpc"
563 machtype: defined(vax) : "vax"
564 machtype: defined(x86_64) : "x86_64"
568 newdef : defined(__FreeBSD__)
570 vendor : defined(alpha) : "digital"
571 vendor : defined(arm32) || defined(__arm__) : "acorn"
572 vendor : defined(M_intel) : "intel"
573 vendor : defined(ia64) : "intel"
574 vendor : defined(mips) : "mips"
575 vendor : defined(powerpc) : "motorola"
576 vendor : defined(sparc) : "sun"
577 vendor : defined(sparc64) : "sun"
578 vendor : defined(x86_64) : "amd"
579 hosttype: : "FreeBSD"
581 machtype: defined(alpha) : "alpha"
582 machtype: defined(arm32) || defined(__APCS_32__) : "arm32"
583 machtype: defined(arm) : "arm"
584 machtype: defined(ia64) : "ia64"
585 machtype: defined(M_i386) : "i386"
586 machtype: defined(mips) : "mips"
587 machtype: defined(powerpc) : "powerpc"
588 machtype: defined(sparc) : "sparc"
589 machtype: defined(sparc64) : "sparc64"
590 machtype: defined(x86_64) : "x86_64"
594 newdef : defined(__DragonFly__)
596 vendor : defined(M_intel) : "intel"
597 vendor : defined(x86_64) : "amd"
598 hosttype: : "DragonFly"
599 ostype : : "DragonFly"
600 machtype: defined(M_i386) : "i386"
601 machtype: defined(x86_64) : "x86_64"
605 newdef : defined(__MidnightBSD__)
606 comment : MidnightBSD
607 vendor : defined(M_intel) : "intel"
608 hosttype: : "MidnightBSD"
609 ostype : : "MidnightBSD"
610 machtype: defined(M_i386) : "i386"
614 newdef : defined(__386BSD__)
615 comment : Bill Jolitz's 386BSD
616 vendor : defined(M_intel) : "intel"
623 newdef : defined(bsdi)
624 comment : BSDI's unix
625 vendor : defined(M_intel) : "intel"
626 vendor : defined(sparc) : "sun"
627 vendor : defined(powerpc) : "motorola"
628 hosttype: defined(M_intel) : "bsd386"
629 hosttype: defined(sparc) : "bsd-sparc"
630 hosttype: defined(powerpc) : "bsd-powerpc"
632 machtype: defined(M_i386) : "i386"
633 machtype: defined(sparc) : "sparc"
634 machtype: defined(powerpc) : "powerpc"
638 newdef : defined(COHERENT)
639 comment : COHERENT's unix
640 vendor : defined(_I386) : "intel"
642 hosttype: : "coherent"
643 ostype : : "coherent"
644 machtype: defined(_I386) : "i386"
647 newdef : defined(concurrent)
648 comment : Concurrent PowerHawk
649 vendor : : "concurrent"
650 hosttype: : "powerhawk"
651 ostype : : "powermax_os"
652 machtype: : "powerhawk"
655 newdef : defined(SCO)
656 comment : SCO UNIX System V/386 Release 3.2
659 ostype : : "sco_unix"
663 newdef : defined(M_XENIX) && !defined(M_UNIX)
666 hosttype: : "sco_xenix"
667 ostype : : "sco_xenix"
668 machtype: defined(M_I386) : "i386"
669 machtype: defined(M_I286) : "i286"
673 newdef : defined(ISC) || defined(ISC202)
674 comment : Interactive Unix
677 ostype : defined(POSIX) : "POSIX"
679 machtype: defined(M_i386) : "i386"
683 newdef : defined(INTEL)
686 hosttype: : "intel386"
687 ostype : : "intel_unix"
688 machtype: defined(M_i386) : "i386"
692 newdef : defined(MACH)
695 hosttype: defined(M_i386) : "i386-mach"
697 machtype: defined(M_i386) : "i386"
701 newdef : defined(alliant)
702 comment : Alliants FSX
704 hosttype: defined(mc68000) : "alliant-fx80"
705 hosttype: defined(i860) : "alliant-fx2800"
706 hosttype: : "alliant"
708 machtype: defined(mc68000) : "mc68000"
709 machtype: defined(i860) : "i860"
713 newdef : defined(_FTX)
714 comment : Stratus Computer, Inc FTX2 (i860 based)
715 comment : Stratus Computer, Inc FTX3 (HPPA based)
717 hosttype: defined(i860) && defined(_FTX) : "atlantic"
718 hosttype: defined(hppa) && defined(_FTX) : "continuum"
719 ostype : defined(i860) && defined(_FTX) : "ftx2"
720 ostype : defined(hppa) && defined(_FTX) : "ftx3"
721 machtype: defined(i860) : "i860"
722 machtype: defined(hppa) : "hppa"
726 newdef : defined(sequent) || defined(_SEQUENT_)
727 comment : Sequent Balance (32000 based)
728 comment : Sequent Symmetry running DYNIX/ptx (386/486 based)
729 comment : Sequent Symmetry running DYNIX 3 (386/486 based)
731 hosttype: defined(M_i386) && defined(sequent) : "symmetry"
732 hosttype: defined(M_i386) : "ptx"
733 hosttype: : "balance"
734 ostype : defined(M_i386) && !defined(sequent) : "ptx"
736 machtype: defined(M_i386) : "i386"
737 machtype: defined(ns32000) : "ns32000"
741 newdef : defined(ns32000)
742 comment : Encore Computer Corp. Multimax (32000 based)
744 hosttype: defined(CMUCS) : "multimax"
745 hosttype: : isamultimax(0)
746 ostype : defined(CMUCS) : "mach"
747 ostype : : isamultimax(1)
748 machtype: : "ns32000"
752 newdef : defined(iconuxv)
753 comment : Icon 88k running Unix
757 machtype: defined(m88k) : "m88k"
761 newdef : defined(_CRAY) && defined(_CRAYCOM)
762 comment : Cray Computer Corp. running CSOS
764 hosttype: defined(_CRAY2) : "cray"
765 hosttype: defined(_CRAY3) : "cray"
766 hosttype: defined(_CRAY4) : "cray"
768 machtype: defined(_CRAY2) : "cray2"
769 machtype: defined(_CRAY3) : "cray3"
770 machtype: defined(_CRAY4) : "cray4"
774 newdef : defined(cray) && !defined(_CRAYMPP)
775 comment : Cray Research Inc. PVP running UNICOS
777 hosttype: : getcray()
779 machtype: : getcray()
783 newdef : defined(cray) && defined(_CRAYT3D)
784 comment : Cray Research Inc. running UNICOS MAX
786 hosttype: : getcray()
787 ostype : : "unicosmax"
788 machtype: : getcray()
792 newdef : defined(cray) && defined(_CRAYT3E)
793 comment : Cray Research Inc. running UNICOS/mk
795 hosttype: : getcray()
796 ostype : : "unicosmk"
797 machtype: : getcray()
801 newdef : defined(convex)
805 ostype : : "convexos"
806 machtype: : getconvex()
810 newdef : defined(butterfly)
811 comment : BBN Butterfly 1000
813 hosttype: : "butterfly"
814 machtype: defined(mc68020) : "m68k"
818 newdef : defined(NeXT)
821 hosttype: defined(mc68020) : "next"
822 hosttype: defined(M_i386) : "intel-pc"
823 hosttype: defined(hppa) : "hp"
824 hosttype: defined(sparc) : "sun"
825 ostype : : "nextstep"
826 machtype: defined(mc68020) : "m68k"
827 machtype: defined(M_i386) : "i386"
828 machtype: defined(hppa) : "hppa"
829 machtype: defined(sparc) : "sparc"
833 newdef : defined(__APPLE__) && defined(__MACH__)
836 hosttype: defined(i386) : "intel-pc"
837 hosttype: defined(ppc) : "powermac"
839 machtype: defined(i386) : "i386"
840 machtype: defined(ppc) : "powerpc"
844 newdef : defined(sony_news)
845 comment : Sony NEWS 800 or 1700 workstation
847 hosttype: defined(mips) : "news_mips"
848 hosttype: defined(mc68020) : "news_m68k"
850 machtype: defined(mc68020) : "m68k"
851 machtype: defined(M_mipsel) : "mipsel"
852 machtype: defined(M_mipseb) : "mipseb"
856 newdef : defined(sgi)
857 comment : Silicon Graphics
859 hosttype: defined(M_mipsel) : "iris4d"
860 hosttype: defined(M_mipseb) : "iris4d"
861 hosttype: defined(mc68000) : "iris3d"
863 machtype: defined(M_mipsel) : "mipsel"
864 machtype: defined(M_mipseb) : "mipseb"
865 machtype: defined(mc68000) : "mc68000"
869 newdef : defined(ultrix) || defined(__ultrix)
870 comment : Digital's Ultrix
872 hosttype: defined(M_mipsel) : "decstation"
873 hosttype: defined(M_mipseb) : "decmips"
874 hosttype: defined(vax) : "vax"
876 machtype: defined(M_mipsel) : "mipsel"
877 machtype: defined(M_mipseb) : "mipseb"
878 machtype: defined(vax) : "vax"
882 newdef : defined(MIPS)
885 hosttype: defined(M_mipsel) : "mips"
886 hosttype: defined(M_mipseb) : "mips"
888 machtype: defined(M_mipsel) : "mipsel"
889 machtype: defined(M_mipseb) : "mipseb"
893 newdef : defined(DECOSF1)
894 comment : Digital's alpha running osf1
897 hosttype: defined(alpha) : "alpha"
898 machtype: defined(alpha) : "alpha"
902 newdef : defined(Lynx)
903 comment : Lynx OS 2.1
905 hosttype: defined(M_mipsel) : "lynxos-mips"
906 hosttype: defined(M_mipseb) : "lynxos-mips"
907 hosttype: defined(M_i386) : "lynxos-i386"
908 hosttype: defined(i860) : "lynxos-i860"
909 hosttype: defined(m68k) : "lynxos-m68k"
910 hosttype: defined(m88k) : "lynxos-m88k"
911 hosttype: defined(sparc) : "lynxos-sparc"
912 hosttype: : "lynxos-unknown"
914 machtype: defined(M_mipsel) : "mipsel"
915 machtype: defined(M_mipseb) : "mipseb"
916 machtype: defined(M_i386) : "i386"
917 machtype: defined(i860) : "i860"
918 machtype: defined(m68k) : "m68k"
919 machtype: defined(m88k) : "m88k"
920 machtype: defined(sparc) : "sparc"
924 newdef : defined(masscomp)
926 vendor : : "masscomp"
927 hosttype: : "masscomp"
928 ostype : : "masscomp"
931 newdef : defined(__MACHTEN__)
934 hosttype: : "Macintosh"
936 machtype: : "Macintosh"
941 newdef : defined(GOULD_NP1)
944 hosttype: : "gould_np1"
949 newdef : defined(MULTIFLOW)
950 comment : Multiflow running 4.3BSD
951 vendor : : "multiflow"
952 hosttype: : "multiflow"
953 machtype: : "multiflow"
958 newdef : defined(SXA)
959 comment : PFU/Fujitsu A-xx computer
962 ostype : defined(_BSDX_) : "e60-bsdx"
968 newdef : defined(titan)
969 comment : (St)Ardent Titan
975 newdef : defined(stellar)
978 hosttype: : "stellar"
983 newdef : defined(atari)
984 comment : Atari TT running SVR4. This machine was never
985 comment : commercially available.
992 newdef : defined(OPUS)
999 newdef : defined(eta10)
1000 comment : ETA running SVR3
1006 newdef : defined(hk68)
1007 comment : Heurikon HK68 running Uniplus+ 5.0
1008 vendor : : "heurikon"
1010 ostype : : "uniplus"
1014 newdef : defined(NDIX)
1015 comment : Norsk Data ND 500/5000 running Ndix
1022 newdef : defined(AMIGA)
1023 comment : Amiga running AmigaOS+GG
1024 vendor : : "commodore"
1026 ostype : : "AmigaOS"
1031 newdef : defined(uts)
1032 comment : Amdahl running uts 2.1
1034 hosttype: : "amdahl"
1036 machtype: : "amdahl"
1040 newdef : defined(UTek)
1041 comment : Tektronix 4300 running UTek (BSD 4.2 / 68020 based)
1042 vendor : : "tektronix"
1043 hosttype: : "tek4300"
1047 newdef : defined(UTekV)
1048 comment : Tektronix XD88/10 running UTekV 3.2e (SVR3/88100 based)
1049 vendor : : "tektronix"
1050 hosttype: : "tekXD88"
1054 newdef : defined(__DGUX__)
1055 comment : Data-General AViiON running DGUX
1056 hosttype: : "aviion"
1059 machtype: defined(m88k) : "m88k"
1060 machtype: defined(i386) : "pentium"
1064 newdef : defined(sysV68)
1065 comment : Motorola MPC running System V/68 R32V2 (SVR3/68020 based)
1066 vendor : : "motorola"
1067 hosttype: : "sysV68"
1072 newdef : defined(supermax)
1073 comment : DDE Supermax running System V/68 R3 (SVR3/68020 based)
1074 vendor : : "supermax"
1075 hosttype: : "supermax"
1080 newdef : defined(sysV88)
1081 comment : Motorola MPC running System V/88 R32V2 (SVR3/88100 based)
1082 vendor : : "motorola"
1083 hosttype: : "sysV88"
1088 newdef : defined(__clipper__)
1089 comment : Clipper Chipset (Intergraph)
1090 vendor : : "intergraph"
1091 hosttype: : "clipper"
1092 machtype: : "clipper"
1095 newdef : defined(__QNX__)
1099 newdef : (defined(SNI) || defined(sinix)) && !defined(_OSD_POSIX)
1100 comment : Fujitsu Siemens Computers (former "Siemens Nixdorf Informationssysteme"): SINIX aka. ReliantUNIX, a SVR4 derivative
1102 hosttype: defined(M_intel) : "wx200i"
1103 hosttype: defined(MIPSEB) : "rm400"
1104 ostype : defined(sinix) : "sinix"
1105 machtype: defined(M_i586) : "i586"
1106 machtype: defined(M_i486) : "i486"
1107 machtype: defined(M_i386) : "i386"
1108 machtype: defined(M_mipsel) : "mipsel"
1109 machtype: defined(M_mipseb) : "mipseb"
1113 newdef : defined(_OSD_POSIX)
1114 comment : Fujitsu Siemens Computers (former "Siemens Nixdorf Informationssysteme"): BS2000 POSIX (mainframe, EBCDIC)
1116 hosttype: : "bs2000"
1117 ostype : : "osdposix"
1118 machtype: #machine(7500) : "s390"
1119 machtype: #machine(mips) : "mips"
1120 machtype: #machine(sparc) : "sparc"
1121 machtype: : "bs2000"
1124 newdef : defined(__MVS__)
1125 comment : ibm uss s/390 (mainframe, EBCDIC)
1132 newdef : defined(_SX)
1133 comment : NEC Corporation (SX-4)
1135 ostype : : "superux"
1140 newdef : !defined(SOLARIS2) && (SYSVREL == 4)
1141 comment : Unix System V Release 4.0
1142 vendor : defined(DELL) : "dell"
1143 hosttype: defined(M_i386) : "i386"
1145 machtype: defined(M_i386) : "i386"
1148 newdef : defined(__uxp__) || defined(__uxps__)
1149 comment : FUJITSU DS/90 7000
1150 vendor : : "fujitsu"
1156 newdef : defined(__CYGWIN__)
1159 hosttype: : gethost()
1160 ostype : : getostype()
1161 machtype: : getmach()
1164 newdef : defined(_UWIN)
1165 comment : AT&T Research Unix for Windows
1167 hosttype: : "win32.i386"
1172 newdef : defined(mc68000) || defined(mc68k32) || defined(m68k) || defined(mc68010) || defined(mc68020)
1174 vendor : defined(m68k) : "motorola"
1179 newdef : defined(m88k)
1185 newdef : defined(M_intel)
1186 hosttype: defined(M_i586) : "i586"
1187 hosttype: defined(M_i486) : "i486"
1188 hosttype: defined(M_i386) : "i386"
1190 machtype: defined(M_i586) : "i586"
1191 machtype: defined(M_i486) : "i486"
1192 machtype: defined(M_i386) : "i386"
1196 newdef : defined(sparc)
1202 newdef : defined(i860)
1208 newdef : defined(osf1)
1213 newdef : SYSVREL == 0
1214 ostype : defined(BSD4_4) : "bsd44"
1215 ostype : defined(BSD) : "bsd"
1216 ostype : defined(POSIX) : "posix"
1220 newdef : SYSVREL == 1
1225 newdef : SYSVREL == 2
1230 newdef : SYSVREL == 3
1235 newdef : SYSVREL == 4
1242 hosttype = "unknown";
1251 machtype = "unknown";
1253 tsetenv(STRHOSTTYPE, str2short(hosttype));
1254 tsetenv(STRVENDOR, str2short(vendor));
1255 tsetenv(STROSTYPE, str2short(ostype));
1256 tsetenv(STRMACHTYPE, str2short(machtype));
1257 } /* end setmachine */