2 /* $Header: /src/pub/tcsh/host.defs,v 1.35 2002/07/23 16:13:21 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.35 2002/07/23 16:13:21 christos Exp $")
40 macro : M_mipsel : (defined(mips) || defined(__mips)) && (defined(MIPSEL) || defined(__MIPSEL))
41 macro : M_mipseb : (defined(mips) || defined(__mips)) && (defined(MIPSEB) || defined(__MIPSEB))
42 macro : M_i386 : (defined(i386) || defined(__i386__))
43 macro : M_i486 : (defined(i486) || defined(__i486__))
44 macro : M_i586 : (defined(i586) || defined(__i586__))
45 macro : M_intel : (defined(M_i386) || defined(M_i486) || defined(M_i586))
47 newdef : defined(ns32000)
53 if (access("/Umax.image", F_OK) == 0)
56 return flag ? "mach" : "ns32000";
62 newdef : defined(cray)
65 * On crays, find the current machine type via the target() syscall
66 * We need ctype.h to convert the name returned to lower case
68 # include <sys/target.h>
72 /* From: hpa@hook.eecs.nwu.edu (H. Peter Anvin) */
76 # ifdef MC_GET_SYSTEM /* If we have target() */
79 if (target(MC_GET_SYSTEM, &data) != -1) {
80 static char hosttype_buf[sizeof(data.mc_pmt)+1];
81 char *p = (char *) &(data.mc_pmt);
82 char *q = hosttype_buf;
86 * Copy to buffer and convert to lower case
87 * String may not be null-terminated, so keep a counter
89 for (n = 0; *p && n < sizeof(data.mc_pmt); n++)
94 /* replace dashes with underscores if present */
95 while ((q = strchr(hosttype_buf, '-')) != NULL)
97 return hosttype_buf; /* Return in static buffer */
100 # endif /* MC_GET_SYSTEM */
101 return "cray"; /* target() failed */
107 newdef : defined(convex)
110 * On convex, find the current machine type via the getsysinfo() syscall
112 #include <sys/sysinfo.h>
114 /* From: fox@convex.com (David DeSimone) */
118 struct system_information sysinfo;
119 static char result[8];
121 if (getsysinfo(SYSINFO_SIZE, &sysinfo) == -1)
124 switch(sysinfo.cpu_type) {
135 #ifdef SI_CPUTYPE_C2MP
136 case SI_CPUTYPE_C2MP:
137 (void) strcpy(result, "c2X0");
138 result[2] = sysinfo.cpu_count + '0';
142 #ifdef SI_CPUTYPE_C34
144 (void) strcpy(result, "c34X0");
145 result[3] = sysinfo.cpu_count + '0';
149 #ifdef SI_CPUTYPE_C38
151 (void) strcpy(result, "c38X0");
152 result[3] = sysinfo.cpu_count + '0';
156 #ifdef SI_CPUTYPE_C46
158 (void) strcpy(result, "c46X0");
159 result[3] = sysinfo.cpu_count + '0';
183 newdef : defined(HOSTTYPE)
188 newdef : defined(__PARAGON__)
189 comment : Intel Paragon running OSF/1
191 hosttype: : "paragon"
193 machtype: defined(M_i386) : "i386"
197 newdef : defined(AMIX)
198 comment : Amiga running Amix 2.02
199 vendor : : "commodore"
206 newdef : defined(accel)
207 comment : celerity Accel
208 vendor : : "celerity"
209 hosttype: : "celerityACCEL"
215 newdef : defined(_VMS_POSIX)
216 comment : digital vax or alpha running vms posix
218 hosttype: : "VMS-POSIX"
220 machtype: defined(__alpha) : "alpha"
221 machtype: defined(__vax) || defined(vax) : "vax"
222 machtype: defined(__vax__) : "vax"
226 newdef : defined(__hp_osf)
227 comment : Hewlett Packard running OSF/1
229 hosttype: defined(__pa_risc) : "hp9000s700-osf1"
230 hosttype: : "hp-osf1"
232 machtype: defined(__pa_risc) : "pa_risc"
236 newdef : defined(hp9000)
237 comment : Hewlett Packard running MORE/bsd
239 hosttype: defined(hp300) : "hp300"
240 hosttype: defined(hp800) : "hp800"
242 ostype : defined(BSD4_4) : "bsd44"
244 machtype: defined(hp300) : "m68k"
245 machtype: defined(hp800) : "pa_risc"
249 newdef : defined(hpux) || defined(__hpux)
250 comment : Hewlett Packard running HP/UX
252 hosttype: defined(__hp9000s700) : "hp9000s700"
253 hosttype: defined(__hp9000s800) || defined(hp9000s800) : "hp9000s800"
254 hosttype: defined(hp9000s500) : "hp9000s500"
255 hosttype: defined(__hp9000s300) || defined(hp9000s300) : "hp9000s300"
258 machtype: defined(__hp9000s700) : "pa_risc"
259 machtype: defined(__hp9000s800) || defined(hp9000s800) : "pa_risc"
260 machtype: defined(hp9000s500) : "m68k"
261 machtype: defined(__hp9000s300) || defined(hp9000s300) : "m68k"
265 newdef : defined(apollo)
266 comment : Hewlett Packard apollo running Domain/OS
269 ostype : : "DomainOS"
274 newdef : defined(sun) || defined(__sun__)
275 comment : Sun Microsystems series 2 workstation (68010 based)
276 comment : Sun Microsystems series 3 workstation (68020 based)
277 comment : Sun Microsystems 386i workstation (386 based)
278 comment : Sun Microsystems series 4 workstation (SPARC based)
280 hosttype: defined(M_i386) && !defined(__SVR4) : "sun386i"
281 hosttype: defined(M_i386) && defined(__SVR4) : "i86pc"
282 hosttype: defined(mc68010) || defined(__mc68010__) : "sun2"
283 hosttype: defined(mc68020) || defined(__mc68020__) : "sun3"
284 hosttype: defined(sparc) || defined(__sparc__) : "sun4"
286 ostype : defined(SUNOS3) : "sunos3"
287 ostype : defined(SUNOS4) : "sunos4"
288 ostype : defined(SOLARIS2) : "solaris"
289 machtype: defined(mc68010) || defined(__mc68010__) : "m68k"
290 machtype: defined(mc68020) || defined(__mc68020__) : "m68k"
291 machtype: defined(sparc) || defined(__sparc__) : "sparc"
292 machtype: defined(M_i386) : "i386"
296 newdef : defined(pyr)
297 comment : Pyramid Technology
299 hosttype: : "pyramid"
300 machtype: : "pyramid"
304 newdef : defined(hcx) || defined(_CX_UX)
305 comment : Harris Tahoe running CX/UX
313 newdef : defined(tahoe)
314 comment : Harris Tahoe
321 newdef : defined(ibm032)
322 comment : RT running IBM AOS4.3 or MACH
325 ostype : defined(MACH) : "mach"
331 newdef : defined(aiws)
332 comment : RT running IBM aix2.x
340 newdef : defined(_AIX370)
341 comment : IBM/370 running aix
349 newdef : defined(_IBMESA)
350 comment : IBM/ESA running aix
358 newdef : defined(_IBMR2)
359 comment : IBM/RS6000 running aix
367 newdef : defined(_AIXPS2)
368 comment : IBM/PS2 running aix
376 newdef : defined(OREO)
377 comment : Macintosh running AU/X
381 machtype: defined(mc68020) : "m68k"
385 newdef : defined(u3b20d)
386 comment : AT&T 3B/20 series running SVR2/3
388 hosttype: : "att3b20"
393 newdef : defined(u3b15)
394 comment : AT&T 3B/15 series running SVR2/3
396 hosttype: : "att3b15"
401 newdef : defined(u3b5)
402 comment : AT&T 3B/5 series running SVR2/3
409 newdef : defined(u3b2)
410 comment : AT&T 3B/2 series running SVR2/3
417 newdef : defined(UNIXPC)
418 comment : AT&T UnixPC att3b1/att7300
421 machtype: defined(u3b1) : "u3b1"
422 machtype: defined(att7300) : "att7300"
426 newdef : defined(_MINIX)
427 comment : Andy Tanenbaum's minix
428 vendor : defined(M_i386) : "intel"
429 hosttype: defined(M_i386) : "minix386"
432 machtype: defined(M_i386) : "i386"
436 newdef : defined(linux)
437 comment : Linus Torvalds's linux
438 vendor : defined(M_intel) : "intel"
439 hosttype: defined(M_i586) : "i586-linux"
440 hosttype: defined(M_i486) : "i486-linux"
441 hosttype: defined(M_i386) : "i386-linux"
442 ostype : !defined(PPC) : "linux"
443 ostype : defined(PPC) : "mklinux"
444 machtype: defined(M_i586) : "i586"
445 machtype: defined(M_i486) : "i486"
446 machtype: defined(M_i386) : "i386"
447 vendor : defined(__alpha) : "dec"
448 vendor : defined(PPC) : "apple"
449 hosttype: defined(__alpha) : "alpha"
450 hosttype: defined(PPC) : "powerpc"
451 machtype: defined(__alpha) : "alpha"
452 machtype: defined(PPC) : "powerpc"
456 newdef : defined(__EMX__)
457 comment : OS/2 EMX [unix emulation under OS/2]
458 vendor : defined(M_intel) : "intel"
459 hosttype: defined(M_i386) : "i386-emx"
461 machtype: defined(M_i386) : "i386"
465 newdef : defined(__NetBSD__)
467 vendor : defined(arm32) || defined(__arm__) : "acorn"
468 vendor : defined(alpha) : "digital"
469 vendor : defined(amiga) : "commodore"
470 vendor : defined(atari) : "atari"
471 vendor : defined(hp300) : "hp"
472 vendor : defined(M_intel) : "intel"
473 vendor : defined(m68k) : "motorola"
474 vendor : defined(mac68k) : "apple"
475 vendor : defined(pc532) : "national-semi"
476 vendor : defined(pmax) : "dec"
477 vendor : defined(mips) : "mips"
478 vendor : defined(sparc) : "sun"
479 vendor : defined(sun3) : "sun"
480 vendor : defined(vax) : "digital"
483 machtype: defined(arm32) || defined(__APCS_32__) : "arm32"
484 machtype: defined(arm26) || defined(__APCS_26__) : "arm26"
485 machtype: defined(arm) || defined(__arm__) : "arm"
486 machtype: defined(sparc) : "sparc"
487 machtype: defined(mc68020) : "m68k"
488 machtype: defined(M_i386) : "i386"
489 machtype: defined(M_mipsel) : "mipsel"
490 machtype: defined(M_mipseb) : "mipseb"
491 machtype: defined(mips) : "mips"
492 machtype: defined(pc532) : "pc532"
493 machtype: defined(vax) : "vax"
494 machtype: defined(alpha) : "alpha"
498 newdef : defined(__FreeBSD__)
500 vendor : defined(__alpha) : "digital"
501 vendor : defined(M_intel) : "intel"
502 hosttype: : "FreeBSD"
504 machtype: defined(__alpha) : "alpha"
505 machtype: defined(M_i386) : "i386"
509 newdef : defined(__386BSD__)
510 comment : Bill Jolitz's 386BSD
511 vendor : defined(M_intel) : "intel"
518 newdef : defined(bsdi)
519 comment : BSDI's unix
520 vendor : defined(M_intel) : "intel"
521 vendor : defined(sparc) : "sun"
522 vendor : defined(__powerpc__) : "motorola"
523 hosttype: defined(M_intel) : "bsd386"
524 hosttype: defined(sparc) : "bsd-sparc"
525 hosttype: defined(__powerpc__) : "bsd-powerpc"
527 machtype: defined(M_i386) : "i386"
528 machtype: defined(sparc) : "sparc"
529 machtype: defined(__powerpc__) : "powerpc"
533 newdef : defined(COHERENT)
534 comment : COHERENT's unix
535 vendor : defined(_I386) : "intel"
537 hosttype: : "coherent"
538 ostype : : "coherent"
539 machtype: defined(_I386) : "i386"
542 newdef : defined(concurrent)
543 comment : Concurrent PowerHawk
544 vendor : : "concurrent"
545 hosttype: : "powerhawk"
546 ostype : : "powermax_os"
547 machtype: : "powerhawk"
550 newdef : defined(SCO)
551 comment : SCO UNIX System V/386 Release 3.2
554 ostype : : "sco_unix"
558 newdef : defined(M_XENIX) && !defined(M_UNIX)
561 hosttype: : "sco_xenix"
562 ostype : : "sco_xenix"
563 machtype: defined(M_I386) : "i386"
564 machtype: defined(M_I286) : "i286"
568 newdef : defined(ISC) || defined(ISC202)
569 comment : Interactive Unix
572 ostype : defined(POSIX) : "POSIX"
574 machtype: defined(M_i386) : "i386"
578 newdef : defined(INTEL)
581 hosttype: : "intel386"
582 ostype : : "intel_unix"
583 machtype: defined(M_i386) : "i386"
587 newdef : defined(MACH)
590 hosttype: defined(M_i386) : "i386-mach"
592 machtype: defined(M_i386) : "i386"
596 newdef : defined(alliant)
597 comment : Alliants FSX
599 hosttype: defined(mc68000) : "alliant-fx80"
600 hosttype: defined(i860) : "alliant-fx2800"
601 hosttype: : "alliant"
603 machtype: defined(mc68000) : "mc68000"
604 machtype: defined(i860) : "i860"
608 newdef : defined(_FTX)
609 comment : Stratus Computer, Inc FTX2 (i860 based)
610 comment : Stratus Computer, Inc FTX3 (HPPA based)
612 hosttype: defined(i860) && defined(_FTX) : "atlantic"
613 hosttype: defined(__hppa) && defined(_FTX) : "continuum"
614 ostype : defined(i860) && defined(_FTX) : "ftx2"
615 ostype : defined(__hppa) && defined(_FTX) : "ftx3"
616 machtype: defined(i860) : "i860"
617 machtype: defined(__hppa) : "hppa"
621 newdef : defined(sequent) || defined(_SEQUENT_)
622 comment : Sequent Balance (32000 based)
623 comment : Sequent Symmetry running DYNIX/ptx (386/486 based)
624 comment : Sequent Symmetry running DYNIX 3 (386/486 based)
626 hosttype: defined(M_i386) && defined(sequent) : "symmetry"
627 hosttype: defined(M_i386) : "ptx"
628 hosttype: : "balance"
629 ostype : defined(M_i386) && !defined(sequent) : "ptx"
631 machtype: defined(M_i386) : "i386"
632 machtype: defined(ns32000) : "ns32000"
636 newdef : defined(ns32000)
637 comment : Encore Computer Corp. Multimax (32000 based)
639 hosttype: defined(CMUCS) : "multimax"
640 hosttype: : isamultimax(0)
641 ostype : defined(CMUCS) : "mach"
642 ostype : : isamultimax(1)
643 machtype: : "ns32000"
647 newdef : defined(iconuxv)
648 comment : Icon 88k running Unix
652 machtype: defined(m88k) || defined(__m88k__) : "m88k"
656 newdef : defined(_CRAY) && defined(_CRAYCOM)
657 comment : Cray Computer Corp. running CSOS
659 hosttype: defined(_CRAY2) : "cray"
660 hosttype: defined(_CRAY3) : "cray"
661 hosttype: defined(_CRAY4) : "cray"
663 machtype: defined(_CRAY2) : "cray2"
664 machtype: defined(_CRAY3) : "cray3"
665 machtype: defined(_CRAY4) : "cray4"
669 newdef : defined(cray) && !defined(_CRAYMPP)
670 comment : Cray Research Inc. PVP running UNICOS
672 hosttype: : getcray()
674 machtype: : getcray()
678 newdef : defined(cray) && defined(_CRAYT3D)
679 comment : Cray Research Inc. running UNICOS MAX
681 hosttype: : getcray()
682 ostype : : "unicosmax"
683 machtype: : getcray()
687 newdef : defined(cray) && defined(_CRAYT3E)
688 comment : Cray Research Inc. running UNICOS/mk
690 hosttype: : getcray()
691 ostype : : "unicosmk"
692 machtype: : getcray()
696 newdef : defined(convex)
700 ostype : : "convexos"
701 machtype: : getconvex()
705 newdef : defined(butterfly)
706 comment : BBN Butterfly 1000
708 hosttype: : "butterfly"
709 machtype: defined(mc68020) || defined(__mc68020__) : "m68k"
713 newdef : defined(NeXT)
716 hosttype: defined(mc68020) || defined(__mc68020__) : "next"
717 hosttype: defined(M_i386) || defined(__i386__) : "intel-pc"
718 hosttype: defined(hppa) || defined(__hppa__) : "hp"
719 hosttype: defined(sparc) || defined(__sparc__) : "sun"
720 ostype : : "nextstep"
721 machtype: defined(mc68020) || defined(__mc68020__) : "m68k"
722 machtype: defined(M_i386) || defined(__i386__) : "i386"
723 machtype: defined(hppa) || defined(__hppa__) : "hppa"
724 machtype: defined(sparc) || defined(__sparc__) : "sparc"
728 newdef : defined(__APPLE__) && defined(__MACH__)
731 hosttype: defined(__i386__) : "intel-pc"
732 hosttype: defined(__ppc__) : "powermac"
734 machtype: defined(__i386__) : "i386"
735 machtype: defined(__ppc__) : "powerpc"
739 newdef : defined(sony_news)
740 comment : Sony NEWS 800 or 1700 workstation
742 hosttype: defined(mips) : "news_mips"
743 hosttype: defined(mc68020) || defined(__mc68020__) : "news_m68k"
745 machtype: defined(mc68020) || defined(__mc68020__) : "m68k"
746 machtype: defined(M_mipsel) : "mipsel"
747 machtype: defined(M_mipseb) : "mipseb"
751 newdef : defined(sgi)
752 comment : Silicon Graphics
754 hosttype: defined(M_mipsel) : "iris4d"
755 hosttype: defined(M_mipseb) : "iris4d"
756 hosttype: defined(mc68000) : "iris3d"
758 machtype: defined(M_mipsel) : "mipsel"
759 machtype: defined(M_mipseb) : "mipseb"
760 machtype: defined(mc68000) : "mc68000"
764 newdef : defined(ultrix) || defined(__ultrix)
765 comment : Digital's Ultrix
767 hosttype: defined(M_mipsel) : "decstation"
768 hosttype: defined(M_mipseb) : "decmips"
769 hosttype: defined(vax) || defined(__vax) : "vax"
770 hosttype: defined(__vax__) : "vax"
772 machtype: defined(M_mipsel) : "mipsel"
773 machtype: defined(M_mipseb) : "mipseb"
774 machtype: defined(vax) || defined (__vax) : "vax"
775 hosttype: defined(__vax__) : "vax"
779 newdef : defined(MIPS)
782 hosttype: defined(M_mipsel) : "mips"
783 hosttype: defined(M_mipseb) : "mips"
785 machtype: defined(M_mipsel) : "mipsel"
786 machtype: defined(M_mipseb) : "mipseb"
790 newdef : defined(DECOSF1)
791 comment : Digital's alpha running osf1
794 hosttype: defined(__alpha) : "alpha"
795 machtype: defined(__alpha) : "alpha"
799 newdef : defined(Lynx)
800 comment : Lynx OS 2.1
802 hosttype: defined(M_mipsel) : "lynxos-mips"
803 hosttype: defined(M_mipseb) : "lynxos-mips"
804 hosttype: defined(M_i386) : "lynxos-i386"
805 hosttype: defined(i860) || defined(__i860__) : "lynxos-i860"
806 hosttype: defined(m68k) : "lynxos-m68k"
807 hosttype: defined(m88k) : "lynxos-m88k"
808 hosttype: defined(sparc) : "lynxos-sparc"
809 hosttype: : "lynxos-unknown"
811 machtype: defined(M_mipsel) : "mipsel"
812 machtype: defined(M_mipseb) : "mipseb"
813 machtype: defined(M_i386) : "i386"
814 machtype: defined(i860) || defined(__i860__) : "i860"
815 machtype: defined(m68k) : "m68k"
816 machtype: defined(m88k) : "m88k"
817 machtype: defined(sparc) : "sparc"
821 newdef : defined(masscomp)
823 vendor : : "masscomp"
824 hosttype: : "masscomp"
825 ostype : : "masscomp"
828 newdef : defined(__MACHTEN__)
831 hosttype: : "Macintosh"
833 machtype: : "Macintosh"
838 newdef : defined(GOULD_NP1)
841 hosttype: : "gould_np1"
846 newdef : defined(MULTIFLOW)
847 comment : Multiflow running 4.3BSD
848 vendor : : "multiflow"
849 hosttype: : "multiflow"
850 machtype: : "multiflow"
855 newdef : defined(SXA)
856 comment : PFU/Fujitsu A-xx computer
859 ostype : defined(_BSDX_) : "e60-bsdx"
865 newdef : defined(titan)
866 comment : (St)Ardent Titan
872 newdef : defined(stellar)
875 hosttype: : "stellar"
880 newdef : defined(atari)
881 comment : Atari TT running SVR4. This machine was never
882 comment : commercially available.
889 newdef : defined(OPUS)
896 newdef : defined(eta10)
897 comment : ETA running SVR3
903 newdef : defined(hk68)
904 comment : Heurikon HK68 running Uniplus+ 5.0
905 vendor : : "heurikon"
911 newdef : defined(NDIX)
912 comment : Norsk Data ND 500/5000 running Ndix
919 newdef : defined(AMIGA)
920 comment : Amiga running AmigaOS+GG
921 vendor : : "commodore"
928 newdef : defined(uts)
929 comment : Amdahl running uts 2.1
937 newdef : defined(UTek)
938 comment : Tektronix 4300 running UTek (BSD 4.2 / 68020 based)
939 vendor : : "tektronix"
940 hosttype: : "tek4300"
944 newdef : defined(UTekV)
945 comment : Tektronix XD88/10 running UTekV 3.2e (SVR3/88100 based)
946 vendor : : "tektronix"
947 hosttype: : "tekXD88"
951 newdef : defined(__DGUX__)
952 comment : Data-General AViiON running DGUX
956 machtype: defined(__m88k__) : "m88k"
957 machtype: defined(__i386__) : "pentium"
961 newdef : defined(sysV68)
962 comment : Motorola MPC running System V/68 R32V2 (SVR3/68020 based)
963 vendor : : "motorola"
969 newdef : defined(supermax)
970 comment : DDE Supermax running System V/68 R3 (SVR3/68020 based)
971 vendor : : "supermax"
972 hosttype: : "supermax"
977 newdef : defined(sysV88)
978 comment : Motorola MPC running System V/88 R32V2 (SVR3/88100 based)
979 vendor : : "motorola"
985 newdef : defined(__clipper__)
986 comment : Clipper Chipset (Intergraph)
987 vendor : : "intergraph"
988 hosttype: : "clipper"
989 machtype: : "clipper"
993 newdef : defined(SNI) || defined(sinix)
994 comment : Siemens Nixdorf Informationssysteme SINIX
996 hosttype: defined(M_intel) : "wx200i"
997 hosttype: defined(MIPSEB) : "rm400"
998 ostype : defined(sinix) : "sinix"
999 machtype: defined(M_i586) : "i586"
1000 machtype: defined(M_i486) : "i486"
1001 machtype: defined(M_i386) : "i386"
1002 machtype: defined(M_mipsel) : "mipsel"
1003 machtype: defined(M_mipseb) : "mipseb"
1007 newdef : defined(_OSD_POSIX)
1008 comment : Siemens Nixdorf Informationssysteme BS2000 POSIX (mainframe, EBCDIC)
1010 hosttype: defined(M_intel) : "bs2000"
1012 machtype: : "bs2000"
1015 newdef : defined(__MVS__)
1016 comment : ibm uss s/390 (mainframe, EBCDIC)
1023 newdef : defined(_SX)
1024 comment : NEC Corporation (SX-4)
1026 ostype : : "superux"
1031 newdef : !defined(SOLARIS2) && (SYSVREL == 4)
1032 comment : Unix System V Release 4.0
1033 vendor : defined(DELL) : "dell"
1034 hosttype: defined(M_i386) : "i386"
1036 machtype: defined(M_i386) : "i386"
1039 newdef : defined(__uxp__) || defined(__uxps__)
1040 comment : FUJITSU DS/90 7000
1041 vendor : : "fujitsu"
1047 newdef : defined(_UWIN)
1048 comment : AT&T Research Unix for Windows
1050 hosttype: : "win32.i386"
1055 newdef : defined(mc68000) || defined(__mc68000__) || defined(mc68k32) || defined(m68k) || defined(mc68010) || defined(mc68020)
1057 vendor : defined(m68k) : "motorola"
1062 newdef : defined(m88k) || defined(__m88k__)
1068 newdef : defined(M_intel)
1069 hosttype: defined(M_i586) : "i586"
1070 hosttype: defined(M_i486) : "i486"
1071 hosttype: defined(M_i386) : "i386"
1073 machtype: defined(M_i586) : "i586"
1074 machtype: defined(M_i486) : "i486"
1075 machtype: defined(M_i386) : "i386"
1079 newdef : defined(sparc) || defined(__sparc__)
1085 newdef : defined(i860) || defined(__i860__)
1091 newdef : defined(osf1)
1096 newdef : SYSVREL == 0
1097 ostype : defined(BSD4_4) : "bsd44"
1098 ostype : defined(BSD) : "bsd"
1099 ostype : defined(POSIX) : "posix"
1103 newdef : SYSVREL == 1
1108 newdef : SYSVREL == 2
1113 newdef : SYSVREL == 3
1118 newdef : SYSVREL == 4
1125 hosttype = "unknown";
1134 machtype = "unknown";
1136 tsetenv(STRHOSTTYPE, str2short(hosttype));
1137 tsetenv(STRVENDOR, str2short(vendor));
1138 tsetenv(STROSTYPE, str2short(ostype));
1139 tsetenv(STRMACHTYPE, str2short(machtype));
1140 } /* end setmachine */