2 /* $Header: /p/tcsh/cvsroot/tcsh/host.defs,v 1.60 2013/03/13 15:53:38 corinna 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.60 2013/03/13 15:53:38 corinna Exp $")
40 macro : M_mips64el : (defined(mips64) && defined(MIPSEL))
41 macro : M_mips64eb : (defined(mips64) && defined(MIPSEB))
42 macro : M_mipsel : (!defined(M_mips64el) && defined(mips) && defined(MIPSEL))
43 macro : M_mipseb : (!defined(M_mips64eb) && defined(mips) && defined(MIPSEB))
44 macro : M_amd64: (defined(amd64) || defined(x86_64))
45 macro : M_i386 : defined(i386)
46 macro : M_i486 : defined(i486)
47 macro : M_i586 : defined(i586)
48 macro : M_i686 : defined(i686)
49 macro : M_intel : (defined(M_i386) || defined(M_i486) || defined(M_i586))
51 newdef : defined(ns32000)
56 if (access("/Umax.image", F_OK) == 0)
59 return flag ? "mach" : "ns32000";
65 newdef : defined(cray)
68 * On crays, find the current machine type via the target() syscall
69 * We need ctype.h to convert the name returned to lower case
71 # include <sys/target.h>
75 /* From: hpa@hook.eecs.nwu.edu (H. Peter Anvin) */
79 # ifdef MC_GET_SYSTEM /* If we have target() */
82 if (target(MC_GET_SYSTEM, &data) != -1) {
83 static char hosttype_buf[sizeof(data.mc_pmt)+1];
84 unsigned char *p = (unsigned char *) &(data.mc_pmt);
85 char *q = hosttype_buf;
89 * Copy to buffer and convert to lower case
90 * String may not be null-terminated, so keep a counter
92 for (n = 0; *p && n < sizeof(data.mc_pmt); n++)
97 /* replace dashes with underscores if present */
98 while ((q = strchr(hosttype_buf, '-')) != NULL)
100 return hosttype_buf; /* Return in static buffer */
103 # endif /* MC_GET_SYSTEM */
104 return "cray"; /* target() failed */
110 newdef : defined(convex)
113 * On convex, find the current machine type via the getsysinfo() syscall
115 #include <sys/sysinfo.h>
117 /* From: fox@convex.com (David DeSimone) */
121 struct system_information sysinfo;
122 static char result[8];
124 if (getsysinfo(SYSINFO_SIZE, &sysinfo) == -1)
127 switch(sysinfo.cpu_type) {
138 #ifdef SI_CPUTYPE_C2MP
139 case SI_CPUTYPE_C2MP:
140 (void) strcpy(result, "c2X0");
141 result[2] = sysinfo.cpu_count + '0';
145 #ifdef SI_CPUTYPE_C34
147 (void) strcpy(result, "c34X0");
148 result[3] = sysinfo.cpu_count + '0';
152 #ifdef SI_CPUTYPE_C38
154 (void) strcpy(result, "c38X0");
155 result[3] = sysinfo.cpu_count + '0';
159 #ifdef SI_CPUTYPE_C46
161 (void) strcpy(result, "c46X0");
162 result[3] = sysinfo.cpu_count + '0';
173 newdef : defined(linux) || defined(CYGWIN) || defined(GNU) || defined(GLIBC)
176 #include <sys/utsname.h>
177 static char mach[256];
178 static char host[256];
179 static char ostype[32];
180 static void populate(void)
184 const char *p = short2str(tgetenv(STROSTYPE));
186 #if defined(__ANDROID__)
188 #elif defined(__CYGWIN__)
194 xsnprintf(ostype, sizeof(ostype), "%s", p);
195 xsnprintf(mach, sizeof(mach), "%s", e != -1 ? uts.machine : "unknown");
196 xsnprintf(host, sizeof(host), "%s-%s",
197 e != -1 ? uts.machine : "unknown", ostype);
231 const char *hosttype;
234 const char *machtype;
239 newdef : defined(HOSTTYPE)
244 newdef : defined(PARAGON)
245 comment : Intel Paragon running OSF/1
247 hosttype: : "paragon"
249 machtype: defined(M_i386) : "i386"
253 newdef : defined(AMIX)
254 comment : Amiga running Amix 2.02
255 vendor : : "commodore"
262 newdef : defined(accel)
263 comment : celerity Accel
264 vendor : : "celerity"
265 hosttype: : "celerityACCEL"
271 newdef : defined(_VMS_POSIX)
272 comment : digital vax or alpha running vms posix
274 hosttype: : "VMS-POSIX"
276 machtype: defined(alpha) : "alpha"
277 machtype: defined(vax) : "vax"
281 newdef : defined(hp_osf)
282 comment : Hewlett Packard running OSF/1
284 hosttype: defined(pa_risc) : "hp9000s700-osf1"
285 hosttype: : "hp-osf1"
287 machtype: defined(pa_risc) : "pa_risc"
291 newdef : defined(hp9000)
292 comment : Hewlett Packard running MORE/bsd
294 hosttype: defined(hp300) : "hp300"
295 hosttype: defined(hp800) : "hp800"
297 ostype : defined(BSD4_4) : "bsd44"
299 machtype: defined(hp300) : "m68k"
300 machtype: defined(hp800) : "pa_risc"
304 newdef : defined(hpux)
305 comment : Hewlett Packard running HP/UX
307 hosttype: defined(hp9000s800) : "hp9000s800"
308 hosttype: defined(hp9000s700) : "hp9000s700"
309 hosttype: defined(hp9000s500) : "hp9000s500"
310 hosttype: defined(hp9000s300) : "hp9000s300"
313 machtype: defined(hp9000s800) : "pa_risc"
314 machtype: defined(hp9000s700) : "pa_risc"
315 machtype: defined(hp9000s500) : "m68k"
316 machtype: defined(hp9000s300) : "m68k"
320 newdef : defined(apollo)
321 comment : Hewlett Packard apollo running Domain/OS
324 ostype : : "DomainOS"
329 newdef : defined(sun)
330 comment : Sun Microsystems series 2 workstation (68010 based)
331 comment : Sun Microsystems series 3 workstation (68020 based)
332 comment : Sun Microsystems 386i workstation (386 based)
333 comment : Sun Microsystems series 4 workstation (SPARC based)
335 hosttype: defined(M_i386) && !defined(SVR4) : "sun386i"
336 hosttype: defined(M_i386) && defined(SVR4) : "i86pc"
337 hosttype: defined(M_amd64) : "i86pc"
338 hosttype: defined(mc68010) : "sun2"
339 hosttype: defined(mc68020) : "sun3"
340 hosttype: defined(sparc) : "sun4"
342 ostype : defined(SUNOS3) : "sunos3"
343 ostype : defined(SUNOS4) : "sunos4"
344 ostype : defined(SOLARIS2) : "solaris"
345 machtype: defined(mc68010) : "m68k"
346 machtype: defined(mc68020) : "m68k"
347 machtype: defined(sparcv9) : "sparcv9"
348 machtype: defined(sparc) : "sparc"
349 machtype: defined(M_i386) : "i386"
350 machtype: defined(M_amd64) : "x86_64"
354 newdef : defined(pyr)
355 comment : Pyramid Technology
357 hosttype: : "pyramid"
358 machtype: : "pyramid"
362 newdef : defined(hcx) || defined(_CX_UX)
363 comment : Harris Tahoe running CX/UX
371 newdef : defined(tahoe)
372 comment : Harris Tahoe
379 newdef : defined(ibm032)
380 comment : RT running IBM AOS4.3 or MACH
383 ostype : defined(MACH) : "mach"
389 newdef : defined(aiws)
390 comment : RT running IBM aix2.x
398 newdef : defined(_AIX370)
399 comment : IBM/370 running aix
407 newdef : defined(_IBMESA)
408 comment : IBM/ESA running aix
416 newdef : defined(_IBMR2)
417 comment : IBM/RS6000 running aix
425 newdef : defined(_AIXPS2)
426 comment : IBM/PS2 running aix
434 newdef : defined(OREO)
435 comment : Macintosh running AU/X
439 machtype: defined(mc68020) : "m68k"
443 newdef : defined(u3b20d)
444 comment : AT&T 3B/20 series running SVR2/3
446 hosttype: : "att3b20"
451 newdef : defined(u3b15)
452 comment : AT&T 3B/15 series running SVR2/3
454 hosttype: : "att3b15"
459 newdef : defined(u3b5)
460 comment : AT&T 3B/5 series running SVR2/3
467 newdef : defined(u3b2)
468 comment : AT&T 3B/2 series running SVR2/3
475 newdef : defined(UNIXPC)
476 comment : AT&T UnixPC att3b1/att7300
479 machtype: defined(u3b1) : "u3b1"
480 machtype: defined(att7300) : "att7300"
484 newdef : defined(_MINIX)
485 comment : Andy Tanenbaum's minix
486 vendor : defined(M_i386) : "intel"
487 hosttype: defined(M_i386) : "minix386"
490 machtype: defined(M_i386) : "i386"
494 newdef : defined(gnu_hurd)
496 vendor : defined(M_intel) : "intel"
497 hosttype: defined(M_i686) : "i686"
498 hosttype: defined(M_i586) : "i586"
499 hosttype: defined(M_i486) : "i486"
500 hosttype: defined(M_i386) : "i386"
502 machtype: defined(M_i686) : "i686-pc-gnu"
503 machtype: defined(M_i586) : "i586-pc-gnu"
504 machtype: defined(M_i486) : "i486-pc-gnu"
505 machtype: defined(M_i386) : "i386-pc-gnu"
509 newdef : defined(linux) || defined(GNU) || defined(GLIBC)
510 comment : Linus Torvalds's linux
511 vendor : defined(M_intel) : "intel"
512 hosttype: : gethost()
513 ostype : : getostype()
514 machtype: : getmach()
515 vendor : defined(ANDROID) : "linux"
516 vendor : defined(alpha) : "dec"
517 vendor : defined(PPC) : "apple"
521 newdef : defined(EMX)
522 comment : OS/2 EMX [unix emulation under OS/2]
523 vendor : defined(M_intel) : "intel"
524 hosttype: defined(M_i386) : "i386-emx"
526 machtype: defined(M_i386) : "i386"
530 newdef : defined(NetBSD)
532 vendor : defined(algor) : "algoritmics"
533 vendor : defined(arm32) || defined(arm) : "acorn"
534 vendor : defined(alpha) : "digital"
535 vendor : defined(amiga) : "commodore"
536 vendor : defined(atari) : "atari"
537 vendor : defined(hp300) : "hp"
538 vendor : defined(M_intel) : "intel"
539 vendor : defined(m68k) : "motorola"
540 vendor : defined(mac68k) : "apple"
541 vendor : defined(pc532) : "national-semi"
542 vendor : defined(pmax) : "dec"
543 vendor : defined(powerpc) : "motorola"
544 vendor : defined(mips) : "mips"
545 vendor : defined(sparc) : "sun"
546 vendor : defined(sparc64) : "sun"
547 vendor : defined(sun3) : "sun"
548 vendor : defined(vax) : "digital"
549 vendor : defined(M_amd64) : "amd"
552 machtype: defined(alpha) : "alpha"
553 machtype: defined(algor) : "algor"
554 machtype: defined(arm32) || defined(APCS_32) : "arm32"
555 machtype: defined(arm26) || defined(APCS_26) : "arm26"
556 machtype: defined(arm) : "arm"
557 machtype: defined(sparc) : "sparc"
558 machtype: defined(sparc64) : "sparc64"
559 machtype: defined(mc68020) : "m68k"
560 machtype: defined(M_i386) : "i386"
561 machtype: defined(M_mipsel) : "mipsel"
562 machtype: defined(M_mipseb) : "mipseb"
563 machtype: defined(mips) : "mips"
564 machtype: defined(pc532) : "pc532"
565 machtype: defined(powerpc) : "powerpc"
566 machtype: defined(vax) : "vax"
567 machtype: defined(M_amd64) : "x86_64"
570 newdef : defined(OpenBSD)
572 vendor : defined(alpha) : "digital"
573 vendor : defined(M_amd64) : "amd"
574 vendor : defined(arm) : "arm"
575 vendor : defined(hppa) || defined(hppa64) : "hp"
576 vendor : defined(M_intel) : "intel"
577 vendor : defined(m68k) : "motorola"
578 vendor : defined(m88k) : "motorola"
579 vendor : defined(mips) && defined(sgi) : "sgi"
580 vendor : defined(powerpc) : "motorola"
581 vendor : defined(sh) : "io-data"
582 vendor : defined(sparc) || defined(sparc64) : "sun"
583 vendor : defined(vax) : "digital"
584 hosttype: : "OpenBSD"
586 machtype: defined(alpha) : "alpha"
587 machtype: defined(M_amd64) : "amd64"
588 machtype: defined(arm) : "arm"
589 machtype: defined(hppa) : "hppa"
590 machtype: defined(hppa64) : "hppa64"
591 machtype: defined(M_i386) : "i386"
592 machtype: defined(m68k) : "m68k"
593 machtype: defined(m88k) : "m88k"
594 machtype: defined(mips) : "mips"
595 machtype: defined(sh) : "sh"
596 machtype: defined(sparc64) : "sparc64"
597 machtype: defined(sparc) : "sparc"
598 machtype: defined(powerpc) : "powerpc"
599 machtype: defined(vax) : "vax"
603 newdef : defined(FreeBSD)
605 vendor : defined(alpha) : "digital"
606 vendor : defined(arm32) || defined(arm) : "acorn"
607 vendor : defined(M_intel) : "intel"
608 vendor : defined(ia64) : "intel"
609 vendor : defined(mips) : "mips"
610 vendor : defined(powerpc) : "motorola"
611 vendor : defined(sparc) : "sun"
612 vendor : defined(sparc64) : "sun"
613 vendor : defined(M_amd64) : "amd"
614 hosttype: : "FreeBSD"
616 machtype: defined(alpha) : "alpha"
617 machtype: defined(arm32) || defined(APCS_32) : "arm32"
618 machtype: defined(arm) : "arm"
619 machtype: defined(ia64) : "ia64"
620 machtype: defined(M_i386) : "i386"
621 machtype: defined(mips) : "mips"
622 machtype: defined(powerpc) : "powerpc"
623 machtype: defined(sparc) : "sparc"
624 machtype: defined(sparc64) : "sparc64"
625 machtype: defined(M_amd64) : "x86_64"
629 newdef : defined(__DragonFly__)
631 vendor : defined(M_intel) : "intel"
632 vendor : defined(x86_64) : "amd"
633 hosttype: : "DragonFly"
634 ostype : : "DragonFly"
635 machtype: defined(x86_64) : "x86_64"
639 newdef : defined(MidnightBSD)
640 comment : MidnightBSD
641 vendor : defined(M_intel) : "intel"
642 hosttype: : "MidnightBSD"
643 ostype : : "MidnightBSD"
644 machtype: defined(M_i386) : "i386"
648 newdef : defined(__386BSD__)
649 comment : Bill Jolitz's 386BSD
650 vendor : defined(M_intel) : "intel"
657 newdef : defined(bsdi)
658 comment : BSDI's unix
659 vendor : defined(M_intel) : "intel"
660 vendor : defined(sparc) : "sun"
661 vendor : defined(powerpc) : "motorola"
662 hosttype: defined(M_intel) : "bsd386"
663 hosttype: defined(sparc) : "bsd-sparc"
664 hosttype: defined(powerpc) : "bsd-powerpc"
666 machtype: defined(M_i386) : "i386"
667 machtype: defined(sparc) : "sparc"
668 machtype: defined(powerpc) : "powerpc"
672 newdef : defined(COHERENT)
673 comment : COHERENT's unix
674 vendor : defined(_I386) : "intel"
676 hosttype: : "coherent"
677 ostype : : "coherent"
678 machtype: defined(_I386) : "i386"
681 newdef : defined(concurrent)
682 comment : Concurrent PowerHawk
683 vendor : : "concurrent"
684 hosttype: : "powerhawk"
685 ostype : : "powermax_os"
686 machtype: : "powerhawk"
689 newdef : defined(SCO)
690 comment : SCO UNIX System V/386 Release 3.2
693 ostype : : "sco_unix"
697 newdef : defined(M_XENIX) && !defined(M_UNIX)
700 hosttype: : "sco_xenix"
701 ostype : : "sco_xenix"
702 machtype: defined(M_I386) : "i386"
703 machtype: defined(M_I286) : "i286"
707 newdef : defined(ISC) || defined(ISC202)
708 comment : Interactive Unix
711 ostype : defined(POSIX) : "POSIX"
713 machtype: defined(M_i386) : "i386"
717 newdef : defined(INTEL)
720 hosttype: : "intel386"
721 ostype : : "intel_unix"
722 machtype: defined(M_i386) : "i386"
726 newdef : defined(MACH)
729 hosttype: defined(M_i386) : "i386-mach"
731 machtype: defined(M_i386) : "i386"
735 newdef : defined(alliant)
736 comment : Alliants FSX
738 hosttype: defined(mc68000) : "alliant-fx80"
739 hosttype: defined(i860) : "alliant-fx2800"
740 hosttype: : "alliant"
742 machtype: defined(mc68000) : "mc68000"
743 machtype: defined(i860) : "i860"
747 newdef : defined(_FTX)
748 comment : Stratus Computer, Inc FTX2 (i860 based)
749 comment : Stratus Computer, Inc FTX3 (HPPA based)
751 hosttype: defined(i860) && defined(_FTX) : "atlantic"
752 hosttype: defined(hppa) && defined(_FTX) : "continuum"
753 ostype : defined(i860) && defined(_FTX) : "ftx2"
754 ostype : defined(hppa) && defined(_FTX) : "ftx3"
755 machtype: defined(i860) : "i860"
756 machtype: defined(hppa) : "hppa"
760 newdef : defined(sequent) || defined(_SEQUENT_)
761 comment : Sequent Balance (32000 based)
762 comment : Sequent Symmetry running DYNIX/ptx (386/486 based)
763 comment : Sequent Symmetry running DYNIX 3 (386/486 based)
765 hosttype: defined(M_i386) && defined(sequent) : "symmetry"
766 hosttype: defined(M_i386) : "ptx"
767 hosttype: : "balance"
768 ostype : defined(M_i386) && !defined(sequent) : "ptx"
770 machtype: defined(M_i386) : "i386"
771 machtype: defined(ns32000) : "ns32000"
775 newdef : defined(ns32000)
776 comment : Encore Computer Corp. Multimax (32000 based)
778 hosttype: defined(CMUCS) : "multimax"
779 hosttype: : isamultimax(0)
780 ostype : defined(CMUCS) : "mach"
781 ostype : : isamultimax(1)
782 machtype: : "ns32000"
786 newdef : defined(iconuxv)
787 comment : Icon 88k running Unix
791 machtype: defined(m88k) : "m88k"
795 newdef : defined(_CRAY) && defined(_CRAYCOM)
796 comment : Cray Computer Corp. running CSOS
798 hosttype: defined(_CRAY2) : "cray"
799 hosttype: defined(_CRAY3) : "cray"
800 hosttype: defined(_CRAY4) : "cray"
802 machtype: defined(_CRAY2) : "cray2"
803 machtype: defined(_CRAY3) : "cray3"
804 machtype: defined(_CRAY4) : "cray4"
808 newdef : defined(cray) && !defined(_CRAYMPP)
809 comment : Cray Research Inc. PVP running UNICOS
811 hosttype: : getcray()
813 machtype: : getcray()
817 newdef : defined(cray) && defined(_CRAYT3D)
818 comment : Cray Research Inc. running UNICOS MAX
820 hosttype: : getcray()
821 ostype : : "unicosmax"
822 machtype: : getcray()
826 newdef : defined(cray) && defined(_CRAYT3E)
827 comment : Cray Research Inc. running UNICOS/mk
829 hosttype: : getcray()
830 ostype : : "unicosmk"
831 machtype: : getcray()
835 newdef : defined(convex)
839 ostype : : "convexos"
840 machtype: : getconvex()
844 newdef : defined(butterfly)
845 comment : BBN Butterfly 1000
847 hosttype: : "butterfly"
848 machtype: defined(mc68020) : "m68k"
852 newdef : defined(NeXT)
855 hosttype: defined(mc68020) : "next"
856 hosttype: defined(M_i386) : "intel-pc"
857 hosttype: defined(hppa) : "hp"
858 hosttype: defined(sparc) : "sun"
859 ostype : : "nextstep"
860 machtype: defined(mc68020) : "m68k"
861 machtype: defined(M_i386) : "i386"
862 machtype: defined(hppa) : "hppa"
863 machtype: defined(sparc) : "sparc"
867 newdef : defined(APPLE) && defined(MACH)
870 hosttype: defined(i386) : "intel-pc"
871 hosttype: defined(ppc) : "powermac"
872 hosttype: defined(M_amd64) : "amd"
874 machtype: defined(i386) : "i386"
875 machtype: defined(M_amd64) : "x86_64"
876 machtype: defined(ppc) : "powerpc"
880 newdef : defined(sony_news)
881 comment : Sony NEWS 800 or 1700 workstation
883 hosttype: defined(mips) : "news_mips"
884 hosttype: defined(mc68020) : "news_m68k"
886 machtype: defined(mc68020) : "m68k"
887 machtype: defined(M_mipsel) : "mipsel"
888 machtype: defined(M_mipseb) : "mipseb"
892 newdef : defined(sgi)
893 comment : Silicon Graphics
895 hosttype: defined(M_mipsel) : "iris4d"
896 hosttype: defined(M_mipseb) : "iris4d"
897 hosttype: defined(mc68000) : "iris3d"
899 machtype: defined(M_mipsel) : "mipsel"
900 machtype: defined(M_mipseb) : "mipseb"
901 machtype: defined(mc68000) : "mc68000"
905 newdef : defined(ultrix)
906 comment : Digital's Ultrix
908 hosttype: defined(M_mipsel) : "decstation"
909 hosttype: defined(M_mipseb) : "decmips"
910 hosttype: defined(vax) : "vax"
912 machtype: defined(M_mipsel) : "mipsel"
913 machtype: defined(M_mipseb) : "mipseb"
914 machtype: defined(vax) : "vax"
918 newdef : defined(MIPS)
921 hosttype: defined(M_mipsel) : "mips"
922 hosttype: defined(M_mipseb) : "mips"
924 machtype: defined(M_mipsel) : "mipsel"
925 machtype: defined(M_mipseb) : "mipseb"
929 newdef : defined(DECOSF1)
930 comment : Digital's alpha running osf1
933 hosttype: defined(alpha) : "alpha"
934 machtype: defined(alpha) : "alpha"
938 newdef : defined(Lynx)
939 comment : Lynx OS 2.1
941 hosttype: defined(M_mipsel) : "lynxos-mips"
942 hosttype: defined(M_mipseb) : "lynxos-mips"
943 hosttype: defined(M_i386) : "lynxos-i386"
944 hosttype: defined(i860) : "lynxos-i860"
945 hosttype: defined(m68k) : "lynxos-m68k"
946 hosttype: defined(m88k) : "lynxos-m88k"
947 hosttype: defined(sparc) : "lynxos-sparc"
948 hosttype: : "lynxos-unknown"
950 machtype: defined(M_mipsel) : "mipsel"
951 machtype: defined(M_mipseb) : "mipseb"
952 machtype: defined(M_i386) : "i386"
953 machtype: defined(i860) : "i860"
954 machtype: defined(m68k) : "m68k"
955 machtype: defined(m88k) : "m88k"
956 machtype: defined(sparc) : "sparc"
960 newdef : defined(masscomp)
962 vendor : : "masscomp"
963 hosttype: : "masscomp"
964 ostype : : "masscomp"
967 newdef : defined(MACHTEN)
970 hosttype: : "Macintosh"
972 machtype: : "Macintosh"
977 newdef : defined(GOULD_NP1)
980 hosttype: : "gould_np1"
985 newdef : defined(MULTIFLOW)
986 comment : Multiflow running 4.3BSD
987 vendor : : "multiflow"
988 hosttype: : "multiflow"
989 machtype: : "multiflow"
994 newdef : defined(SXA)
995 comment : PFU/Fujitsu A-xx computer
998 ostype : defined(_BSDX_) : "e60-bsdx"
1004 newdef : defined(titan)
1005 comment : (St)Ardent Titan
1011 newdef : defined(stellar)
1013 vendor : : "stellar"
1014 hosttype: : "stellar"
1015 ostype : : "stellix"
1019 newdef : defined(atari)
1020 comment : Atari TT running SVR4. This machine was never
1021 comment : commercially available.
1028 newdef : defined(OPUS)
1035 newdef : defined(eta10)
1036 comment : ETA running SVR3
1042 newdef : defined(hk68)
1043 comment : Heurikon HK68 running Uniplus+ 5.0
1044 vendor : : "heurikon"
1046 ostype : : "uniplus"
1050 newdef : defined(NDIX)
1051 comment : Norsk Data ND 500/5000 running Ndix
1058 newdef : defined(AMIGA)
1059 comment : Amiga running AmigaOS+GG
1060 vendor : : "commodore"
1062 ostype : : "AmigaOS"
1067 newdef : defined(uts)
1068 comment : Amdahl running uts 2.1
1070 hosttype: : "amdahl"
1072 machtype: : "amdahl"
1076 newdef : defined(UTek)
1077 comment : Tektronix 4300 running UTek (BSD 4.2 / 68020 based)
1078 vendor : : "tektronix"
1079 hosttype: : "tek4300"
1083 newdef : defined(UTekV)
1084 comment : Tektronix XD88/10 running UTekV 3.2e (SVR3/88100 based)
1085 vendor : : "tektronix"
1086 hosttype: : "tekXD88"
1090 newdef : defined(DGUX)
1091 comment : Data-General AViiON running DGUX
1092 hosttype: : "aviion"
1095 machtype: defined(m88k) : "m88k"
1096 machtype: defined(i386) : "pentium"
1100 newdef : defined(sysV68)
1101 comment : Motorola MPC running System V/68 R32V2 (SVR3/68020 based)
1102 vendor : : "motorola"
1103 hosttype: : "sysV68"
1108 newdef : defined(supermax)
1109 comment : DDE Supermax running System V/68 R3 (SVR3/68020 based)
1110 vendor : : "supermax"
1111 hosttype: : "supermax"
1116 newdef : defined(sysV88)
1117 comment : Motorola MPC running System V/88 R32V2 (SVR3/88100 based)
1118 vendor : : "motorola"
1119 hosttype: : "sysV88"
1124 newdef : defined(clipper)
1125 comment : Clipper Chipset (Intergraph)
1126 vendor : : "intergraph"
1127 hosttype: : "clipper"
1128 machtype: : "clipper"
1131 newdef : defined(QNX)
1135 newdef : (defined(SNI) || defined(sinix)) && !defined(_OSD_POSIX)
1136 comment : Fujitsu Siemens Computers (former "Siemens Nixdorf Informationssysteme"): SINIX aka. ReliantUNIX, a SVR4 derivative
1138 hosttype: defined(M_intel) : "wx200i"
1139 hosttype: defined(MIPSEB) : "rm400"
1140 ostype : defined(sinix) : "sinix"
1141 machtype: defined(M_i586) : "i586"
1142 machtype: defined(M_i486) : "i486"
1143 machtype: defined(M_i386) : "i386"
1144 machtype: defined(M_mipsel) : "mipsel"
1145 machtype: defined(M_mipseb) : "mipseb"
1149 newdef : defined(_OSD_POSIX)
1150 comment : Fujitsu Siemens Computers (former "Siemens Nixdorf Informationssysteme"): BS2000 POSIX (mainframe, EBCDIC)
1152 hosttype: : "bs2000"
1153 ostype : : "osdposix"
1154 machtype: #machine(7500) : "s390"
1155 machtype: #machine(mips) : "mips"
1156 machtype: #machine(sparc) : "sparc"
1157 machtype: : "bs2000"
1160 newdef : defined(MVS)
1161 comment : ibm uss s/390 (mainframe, EBCDIC)
1168 newdef : defined(_SX)
1169 comment : NEC Corporation (SX-4)
1171 ostype : : "superux"
1176 newdef : !defined(SOLARIS2) && (SYSVREL == 4)
1177 comment : Unix System V Release 4.0
1178 vendor : defined(DELL) : "dell"
1179 hosttype: defined(M_i386) : "i386"
1181 machtype: defined(M_i386) : "i386"
1184 newdef : defined(uxp) || defined(uxps)
1185 comment : FUJITSU DS/90 7000
1186 vendor : : "fujitsu"
1192 newdef : defined(CYGWIN)
1194 vendor : defined(M_intel) : "intel"
1195 hosttype: : gethost()
1196 ostype : : getostype()
1197 machtype: : getmach()
1200 newdef : defined(_UWIN)
1201 comment : AT&T Research Unix for Windows
1203 hosttype: : "win32.i386"
1208 newdef : defined(mc68000) || defined(mc68k32) || defined(m68k) || defined(mc68010) || defined(mc68020)
1210 vendor : defined(m68k) : "motorola"
1215 newdef : defined(m88k)
1221 newdef : defined(M_intel)
1222 hosttype: defined(M_i586) : "i586"
1223 hosttype: defined(M_i486) : "i486"
1224 hosttype: defined(M_i386) : "i386"
1226 machtype: defined(M_i586) : "i586"
1227 machtype: defined(M_i486) : "i486"
1228 machtype: defined(M_i386) : "i386"
1232 newdef : defined(sparc)
1238 newdef : defined(i860)
1244 newdef : defined(osf1)
1249 newdef : SYSVREL == 0
1250 ostype : defined(BSD4_4) : "bsd44"
1251 ostype : defined(BSD) : "bsd"
1252 ostype : defined(POSIX) : "posix"
1256 newdef : SYSVREL == 1
1261 newdef : SYSVREL == 2
1266 newdef : SYSVREL == 3
1271 newdef : SYSVREL == 4
1278 hosttype = "unknown";
1287 machtype = "unknown";
1289 tsetenv(STRHOSTTYPE, str2short(hosttype));
1290 tsetenv(STRVENDOR, str2short(vendor));
1291 tsetenv(STROSTYPE, str2short(ostype));
1292 tsetenv(STRMACHTYPE, str2short(machtype));
1293 } /* end setmachine */