2012-02-20 00:53:59 +00:00
|
|
|
newcode :
|
|
|
|
/* $Header: /p/tcsh/cvsroot/tcsh/host.defs,v 1.55 2012/01/11 20:20:15 christos Exp $ */
|
2000-04-15 04:41:27 +00:00
|
|
|
/*
|
|
|
|
* host.defs: Hosttype/Machtype etc.
|
|
|
|
*/
|
|
|
|
/*-
|
|
|
|
* Copyright (c) 1980, 1991 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
2002-07-24 16:23:10 +00:00
|
|
|
* 3. Neither the name of the University nor the names of its contributors
|
2000-04-15 04:41:27 +00:00
|
|
|
* may be used to endorse or promote products derived from this software
|
|
|
|
* without specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
* SUCH DAMAGE.
|
|
|
|
*/
|
|
|
|
#include "sh.h"
|
|
|
|
|
2012-02-20 00:53:59 +00:00
|
|
|
RCSID("$tcsh: host.defs,v 1.55 2012/01/11 20:20:15 christos Exp $")
|
2000-04-15 04:41:27 +00:00
|
|
|
|
2012-02-20 00:53:59 +00:00
|
|
|
endcode :
|
2000-04-15 04:41:27 +00:00
|
|
|
|
2004-07-11 02:17:56 +00:00
|
|
|
macro : M_mips64el : (defined(mips64) || defined(__mips64)) && (defined(MIPSEL) || defined(__MIPSEL))
|
|
|
|
macro : M_mips64eb : (defined(mips64) || defined(__mips64)) && (defined(MIPSEB) || defined(__MIPSEB))
|
|
|
|
macro : M_mipsel : (!defined(M_mips64el)) && (defined(mips) || defined(__mips)) && (defined(MIPSEL) || defined(__MIPSEL))
|
|
|
|
macro : M_mipseb : (!defined(M_mips64eb)) && (defined(mips) || defined(__mips)) && (defined(MIPSEB) || defined(__MIPSEB))
|
2000-04-15 04:41:27 +00:00
|
|
|
macro : M_i386 : (defined(i386) || defined(__i386__))
|
|
|
|
macro : M_i486 : (defined(i486) || defined(__i486__))
|
|
|
|
macro : M_i586 : (defined(i586) || defined(__i586__))
|
2012-02-20 00:53:59 +00:00
|
|
|
macro : M_i686 : (defined(i686) || defined(__i686__))
|
2000-04-15 04:41:27 +00:00
|
|
|
macro : M_intel : (defined(M_i386) || defined(M_i486) || defined(M_i586))
|
|
|
|
|
|
|
|
newdef : defined(ns32000)
|
2012-02-20 00:53:59 +00:00
|
|
|
newcode :
|
2000-04-15 04:41:27 +00:00
|
|
|
static char *
|
2007-03-11 22:33:41 +00:00
|
|
|
isamultimax(int flag)
|
2000-04-15 04:41:27 +00:00
|
|
|
{
|
|
|
|
if (access("/Umax.image", F_OK) == 0)
|
|
|
|
return "multimax";
|
|
|
|
else
|
|
|
|
return flag ? "mach" : "ns32000";
|
|
|
|
}
|
2012-02-20 00:53:59 +00:00
|
|
|
endcode :
|
2000-04-15 04:41:27 +00:00
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(cray)
|
2012-02-20 00:53:59 +00:00
|
|
|
newcode :
|
2000-04-15 04:41:27 +00:00
|
|
|
/*
|
|
|
|
* On crays, find the current machine type via the target() syscall
|
|
|
|
* We need ctype.h to convert the name returned to lower case
|
|
|
|
*/
|
|
|
|
# include <sys/target.h>
|
|
|
|
# include <ctype.h>
|
|
|
|
# include <string.h>
|
|
|
|
|
|
|
|
/* From: hpa@hook.eecs.nwu.edu (H. Peter Anvin) */
|
|
|
|
static char *
|
2007-03-11 22:33:41 +00:00
|
|
|
getcray(void)
|
2000-04-15 04:41:27 +00:00
|
|
|
{
|
|
|
|
# ifdef MC_GET_SYSTEM /* If we have target() */
|
|
|
|
struct target data;
|
|
|
|
|
|
|
|
if (target(MC_GET_SYSTEM, &data) != -1) {
|
|
|
|
static char hosttype_buf[sizeof(data.mc_pmt)+1];
|
2012-02-20 00:53:59 +00:00
|
|
|
unsigned char *p = (unsigned char *) &(data.mc_pmt);
|
2000-04-15 04:41:27 +00:00
|
|
|
char *q = hosttype_buf;
|
|
|
|
int n;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copy to buffer and convert to lower case
|
|
|
|
* String may not be null-terminated, so keep a counter
|
|
|
|
*/
|
|
|
|
for (n = 0; *p && n < sizeof(data.mc_pmt); n++)
|
|
|
|
*q++ = tolower(p[n]);
|
|
|
|
|
|
|
|
*q = '\0';
|
|
|
|
|
|
|
|
/* replace dashes with underscores if present */
|
|
|
|
while ((q = strchr(hosttype_buf, '-')) != NULL)
|
|
|
|
*q = '_';
|
2012-02-20 00:53:59 +00:00
|
|
|
return hosttype_buf; /* Return in static buffer */
|
2000-04-15 04:41:27 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
# endif /* MC_GET_SYSTEM */
|
|
|
|
return "cray"; /* target() failed */
|
|
|
|
}
|
2012-02-20 00:53:59 +00:00
|
|
|
endcode :
|
2000-04-15 04:41:27 +00:00
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(convex)
|
2012-02-20 00:53:59 +00:00
|
|
|
newcode :
|
2000-04-15 04:41:27 +00:00
|
|
|
/*
|
|
|
|
* On convex, find the current machine type via the getsysinfo() syscall
|
|
|
|
*/
|
|
|
|
#include <sys/sysinfo.h>
|
|
|
|
|
|
|
|
/* From: fox@convex.com (David DeSimone) */
|
|
|
|
static char *
|
2007-03-11 22:33:41 +00:00
|
|
|
getconvex(void)
|
2000-04-15 04:41:27 +00:00
|
|
|
{
|
|
|
|
struct system_information sysinfo;
|
2012-02-20 00:53:59 +00:00
|
|
|
static char result[8];
|
2000-04-15 04:41:27 +00:00
|
|
|
|
|
|
|
if (getsysinfo(SYSINFO_SIZE, &sysinfo) == -1)
|
|
|
|
return "convex";
|
|
|
|
|
|
|
|
switch(sysinfo.cpu_type) {
|
|
|
|
#ifdef SI_CPUTYPE_C1
|
|
|
|
case SI_CPUTYPE_C1:
|
|
|
|
return "c1";
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef SI_CPUTYPE_C2
|
|
|
|
case SI_CPUTYPE_C2:
|
|
|
|
return "c2";
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef SI_CPUTYPE_C2MP
|
|
|
|
case SI_CPUTYPE_C2MP:
|
|
|
|
(void) strcpy(result, "c2X0");
|
|
|
|
result[2] = sysinfo.cpu_count + '0';
|
|
|
|
return result;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef SI_CPUTYPE_C34
|
|
|
|
case SI_CPUTYPE_C34:
|
|
|
|
(void) strcpy(result, "c34X0");
|
|
|
|
result[3] = sysinfo.cpu_count + '0';
|
|
|
|
return result;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef SI_CPUTYPE_C38
|
|
|
|
case SI_CPUTYPE_C38:
|
|
|
|
(void) strcpy(result, "c38X0");
|
|
|
|
result[3] = sysinfo.cpu_count + '0';
|
|
|
|
return result;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef SI_CPUTYPE_C46
|
|
|
|
case SI_CPUTYPE_C46:
|
|
|
|
(void) strcpy(result, "c46X0");
|
|
|
|
result[3] = sysinfo.cpu_count + '0';
|
|
|
|
return result;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
default:
|
|
|
|
return "convex";
|
|
|
|
}
|
|
|
|
}
|
2012-02-20 00:53:59 +00:00
|
|
|
endcode :
|
2000-04-15 04:41:27 +00:00
|
|
|
enddef :
|
|
|
|
|
2012-02-20 00:53:59 +00:00
|
|
|
newdef : defined(__linux__) || defined(__CYGWIN__) || defined(__GNU__) || defined(__GLIBC__)
|
|
|
|
newcode :
|
|
|
|
# include "tw.h"
|
|
|
|
#include <sys/utsname.h>
|
|
|
|
static char mach[256];
|
|
|
|
static char host[256];
|
|
|
|
static char ostype[32];
|
|
|
|
static void populate(void)
|
|
|
|
{
|
|
|
|
struct utsname uts;
|
|
|
|
int e = uname(&uts);
|
|
|
|
const char *p = short2str(tgetenv(STROSTYPE));
|
|
|
|
if (p == NULL) {
|
|
|
|
#if defined(__ANDROID__)
|
|
|
|
p = "android";
|
|
|
|
#elif defined(__CYGWIN__)
|
|
|
|
p = "cygwin";
|
|
|
|
#else
|
|
|
|
p = "linux";
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
xsnprintf(ostype, sizeof(ostype), "%s", p);
|
|
|
|
xsnprintf(mach, sizeof(mach), "%s", e != -1 ? uts.machine : "unknown");
|
|
|
|
xsnprintf(host, sizeof(host), "%s-%s",
|
|
|
|
e != -1 ? uts.machine : "unknown", ostype);
|
|
|
|
}
|
|
|
|
|
|
|
|
static char *
|
|
|
|
getmach(void)
|
|
|
|
{
|
|
|
|
if (!mach[0])
|
|
|
|
populate();
|
|
|
|
return mach;
|
|
|
|
}
|
|
|
|
|
|
|
|
static char *
|
|
|
|
gethost(void)
|
|
|
|
{
|
|
|
|
if (!host[0])
|
|
|
|
populate();
|
|
|
|
return host;
|
|
|
|
}
|
|
|
|
|
|
|
|
static char *
|
|
|
|
getostype(void)
|
|
|
|
{
|
|
|
|
if (!ostype[0])
|
|
|
|
populate();
|
|
|
|
return ostype;
|
|
|
|
}
|
|
|
|
|
|
|
|
endcode :
|
|
|
|
enddef :
|
2000-04-15 04:41:27 +00:00
|
|
|
|
2012-02-20 00:53:59 +00:00
|
|
|
newcode :
|
2000-04-15 04:41:27 +00:00
|
|
|
void
|
2007-03-11 22:33:41 +00:00
|
|
|
getmachine(void)
|
2000-04-15 04:41:27 +00:00
|
|
|
{
|
2005-04-24 19:41:08 +00:00
|
|
|
const char *hosttype;
|
|
|
|
const char *ostype;
|
|
|
|
const char *vendor;
|
|
|
|
const char *machtype;
|
2000-04-15 04:41:27 +00:00
|
|
|
|
2012-02-20 00:53:59 +00:00
|
|
|
endcode :
|
2000-04-15 04:41:27 +00:00
|
|
|
|
|
|
|
|
2000-06-10 20:14:21 +00:00
|
|
|
newdef : defined(HOSTTYPE)
|
|
|
|
hosttype: : HOSTTYPE
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
2000-04-15 04:41:27 +00:00
|
|
|
newdef : defined(__PARAGON__)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Intel Paragon running OSF/1
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "intel"
|
|
|
|
hosttype: : "paragon"
|
|
|
|
ostype : : "osf1"
|
2012-02-20 00:53:59 +00:00
|
|
|
machtype: defined(M_i386) : "i386"
|
2000-04-15 04:41:27 +00:00
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(AMIX)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Amiga running Amix 2.02
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "commodore"
|
|
|
|
hosttype: : "amiga"
|
|
|
|
ostype : : "Amix"
|
|
|
|
machtype: : "m68k"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(accel)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : celerity Accel
|
|
|
|
vendor : : "celerity"
|
|
|
|
hosttype: : "celerityACCEL"
|
2000-04-15 04:41:27 +00:00
|
|
|
ostype : : "unix"
|
|
|
|
machtype: : "accel"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(_VMS_POSIX)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : digital vax or alpha running vms posix
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "dec"
|
|
|
|
hosttype: : "VMS-POSIX"
|
|
|
|
ostype : : "vms"
|
2012-02-20 00:53:59 +00:00
|
|
|
machtype: defined(alpha) : "alpha"
|
|
|
|
machtype: defined(vax) : "vax"
|
2000-04-15 04:41:27 +00:00
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(__hp_osf)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Hewlett Packard running OSF/1
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "hp"
|
2012-02-20 00:53:59 +00:00
|
|
|
hosttype: defined(pa_risc) : "hp9000s700-osf1"
|
|
|
|
hosttype: : "hp-osf1"
|
|
|
|
ostype : : "osf1"
|
|
|
|
machtype: defined(pa_risc) : "pa_risc"
|
2000-04-15 04:41:27 +00:00
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(hp9000)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Hewlett Packard running MORE/bsd
|
|
|
|
vendor : : "hp"
|
2000-04-15 04:41:27 +00:00
|
|
|
hosttype: defined(hp300) : "hp300"
|
|
|
|
hosttype: defined(hp800) : "hp800"
|
2012-02-20 00:53:59 +00:00
|
|
|
hosttype: : "hp9000"
|
2000-04-15 04:41:27 +00:00
|
|
|
ostype : defined(BSD4_4) : "bsd44"
|
|
|
|
ostype : : "mtXinu"
|
|
|
|
machtype: defined(hp300) : "m68k"
|
|
|
|
machtype: defined(hp800) : "pa_risc"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(hpux) || defined(__hpux)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Hewlett Packard running HP/UX
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "hp"
|
2012-02-20 00:53:59 +00:00
|
|
|
hosttype: defined(hp9000s800) : "hp9000s800"
|
|
|
|
hosttype: defined(hp9000s700) : "hp9000s700"
|
2000-04-15 04:41:27 +00:00
|
|
|
hosttype: defined(hp9000s500) : "hp9000s500"
|
2012-02-20 00:53:59 +00:00
|
|
|
hosttype: defined(hp9000s300) : "hp9000s300"
|
|
|
|
hosttype: : "hp"
|
2000-04-15 04:41:27 +00:00
|
|
|
ostype : : "hpux"
|
2012-02-20 00:53:59 +00:00
|
|
|
machtype: defined(hp9000s800) : "pa_risc"
|
|
|
|
machtype: defined(hp9000s700) : "pa_risc"
|
2000-04-15 04:41:27 +00:00
|
|
|
machtype: defined(hp9000s500) : "m68k"
|
2012-02-20 00:53:59 +00:00
|
|
|
machtype: defined(hp9000s300) : "m68k"
|
2000-04-15 04:41:27 +00:00
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(apollo)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Hewlett Packard apollo running Domain/OS
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "hp"
|
2012-02-20 00:53:59 +00:00
|
|
|
hosttype: : "apollo"
|
2000-04-15 04:41:27 +00:00
|
|
|
ostype : : "DomainOS"
|
2012-02-20 00:53:59 +00:00
|
|
|
machtype: : "m68k"
|
2000-04-15 04:41:27 +00:00
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(sun) || defined(__sun__)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Sun Microsystems series 2 workstation (68010 based)
|
|
|
|
comment : Sun Microsystems series 3 workstation (68020 based)
|
|
|
|
comment : Sun Microsystems 386i workstation (386 based)
|
|
|
|
comment : Sun Microsystems series 4 workstation (SPARC based)
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "sun"
|
|
|
|
hosttype: defined(M_i386) && !defined(__SVR4) : "sun386i"
|
|
|
|
hosttype: defined(M_i386) && defined(__SVR4) : "i86pc"
|
2012-02-20 00:53:59 +00:00
|
|
|
hosttype: defined(mc68010) : "sun2"
|
|
|
|
hosttype: defined(mc68020) : "sun3"
|
|
|
|
hosttype: defined(sparc) : "sun4"
|
|
|
|
hosttype: : "sun"
|
2000-04-15 04:41:27 +00:00
|
|
|
ostype : defined(SUNOS3) : "sunos3"
|
|
|
|
ostype : defined(SUNOS4) : "sunos4"
|
|
|
|
ostype : defined(SOLARIS2) : "solaris"
|
2012-02-20 00:53:59 +00:00
|
|
|
machtype: defined(mc68010) : "m68k"
|
|
|
|
machtype: defined(mc68020) : "m68k"
|
|
|
|
machtype: defined(sparcv9) : "sparcv9"
|
|
|
|
machtype: defined(sparc) : "sparc"
|
2000-04-15 04:41:27 +00:00
|
|
|
machtype: defined(M_i386) : "i386"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(pyr)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Pyramid Technology
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "pyramid"
|
|
|
|
hosttype: : "pyramid"
|
|
|
|
machtype: : "pyramid"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(hcx) || defined(_CX_UX)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Harris Tahoe running CX/UX
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "harris"
|
|
|
|
hosttype: : "hcx"
|
|
|
|
ostype : : "hcx"
|
|
|
|
machtype: : "tahoe"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(tahoe)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Harris Tahoe
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "harris"
|
|
|
|
hosttype: : "tahoe"
|
|
|
|
machtype: : "tahoe"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(ibm032)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : RT running IBM AOS4.3 or MACH
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "ibm"
|
|
|
|
hosttype: : "rt"
|
|
|
|
ostype : defined(MACH) : "mach"
|
2012-02-20 00:53:59 +00:00
|
|
|
ostype : : "aos"
|
2000-04-15 04:41:27 +00:00
|
|
|
machtype: : "ibm032"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(aiws)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : RT running IBM aix2.x
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "ibm"
|
|
|
|
hosttype: : "rtpc"
|
|
|
|
ostype : : "aix"
|
|
|
|
machtype: : "ibm032"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(_AIX370)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : IBM/370 running aix
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "ibm"
|
|
|
|
hosttype: : "aix370"
|
|
|
|
ostype : : "aix"
|
|
|
|
machtype: : "ibm370"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(_IBMESA)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : IBM/ESA running aix
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "ibm"
|
|
|
|
hosttype: : "aixESA"
|
|
|
|
ostype : : "aix"
|
|
|
|
machtype: : "esa"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(_IBMR2)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : IBM/RS6000 running aix
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "ibm"
|
|
|
|
hosttype: : "rs6000"
|
|
|
|
ostype : : "aix"
|
|
|
|
machtype: : "rs6000"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(_AIXPS2)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : IBM/PS2 running aix
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "ibm"
|
|
|
|
hosttype: : "ps2"
|
|
|
|
ostype : : "aix"
|
|
|
|
machtype: : "i386"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(OREO)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Macintosh running AU/X
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "apple"
|
|
|
|
hosttype: : "mac2"
|
|
|
|
ostype : : "aux"
|
|
|
|
machtype: defined(mc68020) : "m68k"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(u3b20d)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : AT&T 3B/20 series running SVR2/3
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "att"
|
|
|
|
hosttype: : "att3b20"
|
|
|
|
machtype: : "u3b20"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(u3b15)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : AT&T 3B/15 series running SVR2/3
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "att"
|
|
|
|
hosttype: : "att3b15"
|
|
|
|
machtype: : "u3b15"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(u3b5)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : AT&T 3B/5 series running SVR2/3
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "att"
|
|
|
|
hosttype: : "att3b5"
|
|
|
|
machtype: : "u3b5"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(u3b2)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : AT&T 3B/2 series running SVR2/3
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "att"
|
|
|
|
hosttype: : "att3b2"
|
|
|
|
machtype: : "u3b2"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(UNIXPC)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : AT&T UnixPC att3b1/att7300
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "att"
|
|
|
|
hosttype: : "unixpc"
|
|
|
|
machtype: defined(u3b1) : "u3b1"
|
|
|
|
machtype: defined(att7300) : "att7300"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(_MINIX)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Andy Tanenbaum's minix
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : defined(M_i386) : "intel"
|
|
|
|
hosttype: defined(M_i386) : "minix386"
|
|
|
|
hosttype: : "minix"
|
|
|
|
ostype : : "minix"
|
|
|
|
machtype: defined(M_i386) : "i386"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
2012-02-20 00:53:59 +00:00
|
|
|
newdef : defined(__gnu_hurd__)
|
|
|
|
comment : GNU/HURD
|
|
|
|
vendor : defined(M_intel) : "intel"
|
|
|
|
hosttype: defined(M_i686) : "i686"
|
|
|
|
hosttype: defined(M_i586) : "i586"
|
|
|
|
hosttype: defined(M_i486) : "i486"
|
|
|
|
hosttype: defined(M_i386) : "i386"
|
|
|
|
ostype : : "gnu"
|
|
|
|
machtype: defined(M_i686) : "i686-pc-gnu"
|
|
|
|
machtype: defined(M_i586) : "i586-pc-gnu"
|
|
|
|
machtype: defined(M_i486) : "i486-pc-gnu"
|
|
|
|
machtype: defined(M_i386) : "i386-pc-gnu"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
2005-04-24 19:41:08 +00:00
|
|
|
newdef : defined(linux) || defined(__GNU__) || defined(__GLIBC__)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Linus Torvalds's linux
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : defined(M_intel) : "intel"
|
2012-02-20 00:53:59 +00:00
|
|
|
hosttype: : gethost()
|
|
|
|
ostype : : getostype()
|
|
|
|
machtype: : getmach()
|
|
|
|
vendor : defined(__ANDROID__) : "linux"
|
|
|
|
vendor : defined(alpha) : "dec"
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : defined(PPC) : "apple"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(__EMX__)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : OS/2 EMX [unix emulation under OS/2]
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : defined(M_intel) : "intel"
|
|
|
|
hosttype: defined(M_i386) : "i386-emx"
|
|
|
|
ostype : : "os2"
|
|
|
|
machtype: defined(M_i386) : "i386"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(__NetBSD__)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : NetBSD
|
|
|
|
vendor : defined(algor) : "algoritmics"
|
2002-07-24 16:23:10 +00:00
|
|
|
vendor : defined(arm32) || defined(__arm__) : "acorn"
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : defined(alpha) : "digital"
|
|
|
|
vendor : defined(amiga) : "commodore"
|
|
|
|
vendor : defined(atari) : "atari"
|
|
|
|
vendor : defined(hp300) : "hp"
|
|
|
|
vendor : defined(M_intel) : "intel"
|
|
|
|
vendor : defined(m68k) : "motorola"
|
|
|
|
vendor : defined(mac68k) : "apple"
|
|
|
|
vendor : defined(pc532) : "national-semi"
|
2001-09-05 17:49:32 +00:00
|
|
|
vendor : defined(pmax) : "dec"
|
2012-02-20 00:53:59 +00:00
|
|
|
vendor : defined(powerpc) : "motorola"
|
2001-09-05 17:49:32 +00:00
|
|
|
vendor : defined(mips) : "mips"
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : defined(sparc) : "sun"
|
2012-02-20 00:53:59 +00:00
|
|
|
vendor : defined(sparc64) : "sun"
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : defined(sun3) : "sun"
|
|
|
|
vendor : defined(vax) : "digital"
|
2012-02-20 00:53:59 +00:00
|
|
|
vendor : defined(x86_64) : "amd"
|
|
|
|
hosttype: : "NetBSD"
|
|
|
|
ostype : : "NetBSD"
|
|
|
|
machtype: defined(alpha) : "alpha"
|
|
|
|
machtype: defined(algor) : "algor"
|
2002-07-24 16:23:10 +00:00
|
|
|
machtype: defined(arm32) || defined(__APCS_32__) : "arm32"
|
|
|
|
machtype: defined(arm26) || defined(__APCS_26__) : "arm26"
|
2012-02-20 00:53:59 +00:00
|
|
|
machtype: defined(arm) : "arm"
|
2000-04-15 04:41:27 +00:00
|
|
|
machtype: defined(sparc) : "sparc"
|
2012-02-20 00:53:59 +00:00
|
|
|
machtype: defined(sparc64) : "sparc64"
|
2000-04-15 04:41:27 +00:00
|
|
|
machtype: defined(mc68020) : "m68k"
|
|
|
|
machtype: defined(M_i386) : "i386"
|
|
|
|
machtype: defined(M_mipsel) : "mipsel"
|
|
|
|
machtype: defined(M_mipseb) : "mipseb"
|
|
|
|
machtype: defined(mips) : "mips"
|
|
|
|
machtype: defined(pc532) : "pc532"
|
2012-02-20 00:53:59 +00:00
|
|
|
machtype: defined(powerpc) : "powerpc"
|
2000-04-15 04:41:27 +00:00
|
|
|
machtype: defined(vax) : "vax"
|
2012-02-20 00:53:59 +00:00
|
|
|
machtype: defined(x86_64) : "x86_64"
|
2000-04-15 04:41:27 +00:00
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(__FreeBSD__)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : FreeBSD
|
|
|
|
vendor : defined(alpha) : "digital"
|
|
|
|
vendor : defined(arm32) || defined(__arm__) : "acorn"
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : defined(M_intel) : "intel"
|
2012-02-20 00:53:59 +00:00
|
|
|
vendor : defined(ia64) : "intel"
|
|
|
|
vendor : defined(mips) : "mips"
|
|
|
|
vendor : defined(powerpc) : "motorola"
|
|
|
|
vendor : defined(sparc) : "sun"
|
|
|
|
vendor : defined(sparc64) : "sun"
|
|
|
|
vendor : defined(x86_64) : "amd"
|
2000-04-15 04:41:27 +00:00
|
|
|
hosttype: : "FreeBSD"
|
|
|
|
ostype : : "FreeBSD"
|
2012-02-20 00:53:59 +00:00
|
|
|
machtype: defined(alpha) : "alpha"
|
|
|
|
machtype: defined(arm32) || defined(__APCS_32__) : "arm32"
|
|
|
|
machtype: defined(arm) : "arm"
|
|
|
|
machtype: defined(ia64) : "ia64"
|
2001-09-05 17:49:32 +00:00
|
|
|
machtype: defined(M_i386) : "i386"
|
2012-02-20 00:53:59 +00:00
|
|
|
machtype: defined(mips) : "mips"
|
|
|
|
machtype: defined(powerpc) : "powerpc"
|
|
|
|
machtype: defined(sparc) : "sparc"
|
|
|
|
machtype: defined(sparc64) : "sparc64"
|
|
|
|
machtype: defined(x86_64) : "x86_64"
|
2000-04-15 04:41:27 +00:00
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
2012-02-20 00:53:59 +00:00
|
|
|
newdef : defined(__MidnightBSD__)
|
2009-07-10 21:47:20 +00:00
|
|
|
comment : MidnightBSD
|
2012-02-20 00:53:59 +00:00
|
|
|
vendor : defined(M_intel) : "intel"
|
|
|
|
hosttype: : "MidnightBSD"
|
|
|
|
ostype : : "MidnightBSD"
|
|
|
|
machtype: defined(M_i386) : "i386"
|
|
|
|
enddef :
|
2009-07-10 21:47:20 +00:00
|
|
|
|
|
|
|
|
2000-04-15 04:41:27 +00:00
|
|
|
newdef : defined(__386BSD__)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Bill Jolitz's 386BSD
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : defined(M_intel) : "intel"
|
|
|
|
hosttype: : "386BSD"
|
|
|
|
ostype : : "386BSD"
|
|
|
|
machtype: : "i386"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(bsdi)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : BSDI's unix
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : defined(M_intel) : "intel"
|
|
|
|
vendor : defined(sparc) : "sun"
|
2012-02-20 00:53:59 +00:00
|
|
|
vendor : defined(powerpc) : "motorola"
|
2000-04-15 04:41:27 +00:00
|
|
|
hosttype: defined(M_intel) : "bsd386"
|
|
|
|
hosttype: defined(sparc) : "bsd-sparc"
|
2012-02-20 00:53:59 +00:00
|
|
|
hosttype: defined(powerpc) : "bsd-powerpc"
|
2000-04-15 04:41:27 +00:00
|
|
|
ostype : : "bsdi"
|
|
|
|
machtype: defined(M_i386) : "i386"
|
|
|
|
machtype: defined(sparc) : "sparc"
|
2012-02-20 00:53:59 +00:00
|
|
|
machtype: defined(powerpc) : "powerpc"
|
2000-04-15 04:41:27 +00:00
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(COHERENT)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : COHERENT's unix
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : defined(_I386) : "intel"
|
|
|
|
hosttype: : "coh386"
|
|
|
|
hosttype: : "coherent"
|
|
|
|
ostype : : "coherent"
|
|
|
|
machtype: defined(_I386) : "i386"
|
|
|
|
enddef :
|
|
|
|
|
2001-09-05 17:49:32 +00:00
|
|
|
newdef : defined(concurrent)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Concurrent PowerHawk
|
2001-09-05 17:49:32 +00:00
|
|
|
vendor : : "concurrent"
|
|
|
|
hosttype: : "powerhawk"
|
|
|
|
ostype : : "powermax_os"
|
|
|
|
machtype: : "powerhawk"
|
|
|
|
enddef :
|
|
|
|
|
2000-04-15 04:41:27 +00:00
|
|
|
newdef : defined(SCO)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : SCO UNIX System V/386 Release 3.2
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "sco"
|
|
|
|
hosttype: : "sco386"
|
|
|
|
ostype : : "sco_unix"
|
|
|
|
machtype: : "i386"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
newdef : defined(M_XENIX) && !defined(M_UNIX)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : SCO XENIX
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "sco"
|
|
|
|
hosttype: : "sco_xenix"
|
|
|
|
ostype : : "sco_xenix"
|
|
|
|
machtype: defined(M_I386) : "i386"
|
|
|
|
machtype: defined(M_I286) : "i286"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(ISC) || defined(ISC202)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Interactive Unix
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "isc"
|
|
|
|
hosttype: : "isc386"
|
|
|
|
ostype : defined(POSIX) : "POSIX"
|
2012-02-20 00:53:59 +00:00
|
|
|
ostype : : "SVR3"
|
2000-04-15 04:41:27 +00:00
|
|
|
machtype: defined(M_i386) : "i386"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(INTEL)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Intel Unix
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "intel"
|
|
|
|
hosttype: : "intel386"
|
|
|
|
ostype : : "intel_unix"
|
|
|
|
machtype: defined(M_i386) : "i386"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(MACH)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : cmu's mach
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "cmu"
|
|
|
|
hosttype: defined(M_i386) : "i386-mach"
|
|
|
|
ostype : : "mach"
|
|
|
|
machtype: defined(M_i386) : "i386"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(alliant)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Alliants FSX
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "alliant"
|
|
|
|
hosttype: defined(mc68000) : "alliant-fx80"
|
|
|
|
hosttype: defined(i860) : "alliant-fx2800"
|
|
|
|
hosttype: : "alliant"
|
|
|
|
ostype : : "fsx"
|
|
|
|
machtype: defined(mc68000) : "mc68000"
|
|
|
|
machtype: defined(i860) : "i860"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(_FTX)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Stratus Computer, Inc FTX2 (i860 based)
|
|
|
|
comment : Stratus Computer, Inc FTX3 (HPPA based)
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "stratus"
|
|
|
|
hosttype: defined(i860) && defined(_FTX) : "atlantic"
|
2012-02-20 00:53:59 +00:00
|
|
|
hosttype: defined(hppa) && defined(_FTX) : "continuum"
|
2000-04-15 04:41:27 +00:00
|
|
|
ostype : defined(i860) && defined(_FTX) : "ftx2"
|
2012-02-20 00:53:59 +00:00
|
|
|
ostype : defined(hppa) && defined(_FTX) : "ftx3"
|
2000-04-15 04:41:27 +00:00
|
|
|
machtype: defined(i860) : "i860"
|
2012-02-20 00:53:59 +00:00
|
|
|
machtype: defined(hppa) : "hppa"
|
2000-04-15 04:41:27 +00:00
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(sequent) || defined(_SEQUENT_)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Sequent Balance (32000 based)
|
|
|
|
comment : Sequent Symmetry running DYNIX/ptx (386/486 based)
|
|
|
|
comment : Sequent Symmetry running DYNIX 3 (386/486 based)
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "sequent"
|
|
|
|
hosttype: defined(M_i386) && defined(sequent) : "symmetry"
|
|
|
|
hosttype: defined(M_i386) : "ptx"
|
2012-02-20 00:53:59 +00:00
|
|
|
hosttype: : "balance"
|
2000-04-15 04:41:27 +00:00
|
|
|
ostype : defined(M_i386) && !defined(sequent) : "ptx"
|
2012-02-20 00:53:59 +00:00
|
|
|
ostype : : "dynix3"
|
2000-04-15 04:41:27 +00:00
|
|
|
machtype: defined(M_i386) : "i386"
|
|
|
|
machtype: defined(ns32000) : "ns32000"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(ns32000)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Encore Computer Corp. Multimax (32000 based)
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "encore"
|
|
|
|
hosttype: defined(CMUCS) : "multimax"
|
2012-02-20 00:53:59 +00:00
|
|
|
hosttype: : isamultimax(0)
|
2000-04-15 04:41:27 +00:00
|
|
|
ostype : defined(CMUCS) : "mach"
|
|
|
|
ostype : : isamultimax(1)
|
|
|
|
machtype: : "ns32000"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(iconuxv)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Icon 88k running Unix
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "icon"
|
|
|
|
hosttype: : "icon"
|
|
|
|
ostype : : "iconuxv"
|
2012-02-20 00:53:59 +00:00
|
|
|
machtype: defined(m88k) : "m88k"
|
2000-04-15 04:41:27 +00:00
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(_CRAY) && defined(_CRAYCOM)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Cray Computer Corp. running CSOS
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "ccc"
|
|
|
|
hosttype: defined(_CRAY2) : "cray"
|
|
|
|
hosttype: defined(_CRAY3) : "cray"
|
|
|
|
hosttype: defined(_CRAY4) : "cray"
|
|
|
|
ostype : : "CSOS"
|
|
|
|
machtype: defined(_CRAY2) : "cray2"
|
|
|
|
machtype: defined(_CRAY3) : "cray3"
|
|
|
|
machtype: defined(_CRAY4) : "cray4"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(cray) && !defined(_CRAYMPP)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Cray Research Inc. PVP running UNICOS
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "cri"
|
|
|
|
hosttype: : getcray()
|
|
|
|
ostype : : "unicos"
|
|
|
|
machtype: : getcray()
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
2012-02-20 00:53:59 +00:00
|
|
|
newdef : defined(cray) && defined(_CRAYT3D)
|
2000-04-15 04:41:27 +00:00
|
|
|
comment : Cray Research Inc. running UNICOS MAX
|
2012-02-20 00:53:59 +00:00
|
|
|
vendor : : "cri"
|
|
|
|
hosttype: : getcray()
|
|
|
|
ostype : : "unicosmax"
|
|
|
|
machtype: : getcray()
|
|
|
|
enddef :
|
2000-04-15 04:41:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(cray) && defined(_CRAYT3E)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Cray Research Inc. running UNICOS/mk
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "cri"
|
|
|
|
hosttype: : getcray()
|
|
|
|
ostype : : "unicosmk"
|
|
|
|
machtype: : getcray()
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(convex)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Convex
|
|
|
|
vendor : : "convex"
|
2000-04-15 04:41:27 +00:00
|
|
|
hosttype: : "convex"
|
|
|
|
ostype : : "convexos"
|
|
|
|
machtype: : getconvex()
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(butterfly)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : BBN Butterfly 1000
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "bbn"
|
|
|
|
hosttype: : "butterfly"
|
2012-02-20 00:53:59 +00:00
|
|
|
machtype: defined(mc68020) : "m68k"
|
2000-04-15 04:41:27 +00:00
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(NeXT)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : NeXTStep
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "next"
|
2012-02-20 00:53:59 +00:00
|
|
|
hosttype: defined(mc68020) : "next"
|
|
|
|
hosttype: defined(M_i386) : "intel-pc"
|
|
|
|
hosttype: defined(hppa) : "hp"
|
|
|
|
hosttype: defined(sparc) : "sun"
|
2000-04-15 04:41:27 +00:00
|
|
|
ostype : : "nextstep"
|
2012-02-20 00:53:59 +00:00
|
|
|
machtype: defined(mc68020) : "m68k"
|
|
|
|
machtype: defined(M_i386) : "i386"
|
|
|
|
machtype: defined(hppa) : "hppa"
|
|
|
|
machtype: defined(sparc) : "sparc"
|
2000-04-15 04:41:27 +00:00
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
2002-07-24 16:23:10 +00:00
|
|
|
newdef : defined(__APPLE__) && defined(__MACH__)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : OS X
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "apple"
|
2012-02-20 00:53:59 +00:00
|
|
|
hosttype: defined(i386) : "intel-pc"
|
|
|
|
hosttype: defined(ppc) : "powermac"
|
2002-07-24 16:23:10 +00:00
|
|
|
ostype : : "darwin"
|
2012-02-20 00:53:59 +00:00
|
|
|
machtype: defined(i386) : "i386"
|
|
|
|
machtype: defined(ppc) : "powerpc"
|
2000-04-15 04:41:27 +00:00
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(sony_news)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Sony NEWS 800 or 1700 workstation
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "sony"
|
|
|
|
hosttype: defined(mips) : "news_mips"
|
2012-02-20 00:53:59 +00:00
|
|
|
hosttype: defined(mc68020) : "news_m68k"
|
2000-04-15 04:41:27 +00:00
|
|
|
ostype : : "News"
|
2012-02-20 00:53:59 +00:00
|
|
|
machtype: defined(mc68020) : "m68k"
|
2000-04-15 04:41:27 +00:00
|
|
|
machtype: defined(M_mipsel) : "mipsel"
|
|
|
|
machtype: defined(M_mipseb) : "mipseb"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(sgi)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Silicon Graphics
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "sgi"
|
|
|
|
hosttype: defined(M_mipsel) : "iris4d"
|
|
|
|
hosttype: defined(M_mipseb) : "iris4d"
|
2012-02-20 00:53:59 +00:00
|
|
|
hosttype: defined(mc68000) : "iris3d"
|
2000-04-15 04:41:27 +00:00
|
|
|
ostype : : "irix"
|
|
|
|
machtype: defined(M_mipsel) : "mipsel"
|
|
|
|
machtype: defined(M_mipseb) : "mipseb"
|
2012-02-20 00:53:59 +00:00
|
|
|
machtype: defined(mc68000) : "mc68000"
|
2000-04-15 04:41:27 +00:00
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(ultrix) || defined(__ultrix)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Digital's Ultrix
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "dec"
|
|
|
|
hosttype: defined(M_mipsel) : "decstation"
|
|
|
|
hosttype: defined(M_mipseb) : "decmips"
|
2012-02-20 00:53:59 +00:00
|
|
|
hosttype: defined(vax) : "vax"
|
2000-04-15 04:41:27 +00:00
|
|
|
ostype : : "ultrix"
|
|
|
|
machtype: defined(M_mipsel) : "mipsel"
|
|
|
|
machtype: defined(M_mipseb) : "mipseb"
|
2012-02-20 00:53:59 +00:00
|
|
|
machtype: defined(vax) : "vax"
|
2000-04-15 04:41:27 +00:00
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(MIPS)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Mips OS
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "mips"
|
2012-02-20 00:53:59 +00:00
|
|
|
hosttype: defined(M_mipsel) : "mips"
|
2000-04-15 04:41:27 +00:00
|
|
|
hosttype: defined(M_mipseb) : "mips"
|
|
|
|
ostype : : "mips"
|
|
|
|
machtype: defined(M_mipsel) : "mipsel"
|
|
|
|
machtype: defined(M_mipseb) : "mipseb"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(DECOSF1)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Digital's alpha running osf1
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "dec"
|
|
|
|
ostype : : "osf1"
|
2012-02-20 00:53:59 +00:00
|
|
|
hosttype: defined(alpha) : "alpha"
|
|
|
|
machtype: defined(alpha) : "alpha"
|
2000-04-15 04:41:27 +00:00
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(Lynx)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Lynx OS 2.1
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "Lynx"
|
|
|
|
hosttype: defined(M_mipsel) : "lynxos-mips"
|
|
|
|
hosttype: defined(M_mipseb) : "lynxos-mips"
|
|
|
|
hosttype: defined(M_i386) : "lynxos-i386"
|
2012-02-20 00:53:59 +00:00
|
|
|
hosttype: defined(i860) : "lynxos-i860"
|
2000-04-15 04:41:27 +00:00
|
|
|
hosttype: defined(m68k) : "lynxos-m68k"
|
|
|
|
hosttype: defined(m88k) : "lynxos-m88k"
|
|
|
|
hosttype: defined(sparc) : "lynxos-sparc"
|
2012-02-20 00:53:59 +00:00
|
|
|
hosttype: : "lynxos-unknown"
|
2000-04-15 04:41:27 +00:00
|
|
|
ostype : : "LynxOS"
|
|
|
|
machtype: defined(M_mipsel) : "mipsel"
|
|
|
|
machtype: defined(M_mipseb) : "mipseb"
|
|
|
|
machtype: defined(M_i386) : "i386"
|
2012-02-20 00:53:59 +00:00
|
|
|
machtype: defined(i860) : "i860"
|
2000-04-15 04:41:27 +00:00
|
|
|
machtype: defined(m68k) : "m68k"
|
|
|
|
machtype: defined(m88k) : "m88k"
|
|
|
|
machtype: defined(sparc) : "sparc"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(masscomp)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Masscomp
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "masscomp"
|
|
|
|
hosttype: : "masscomp"
|
|
|
|
ostype : : "masscomp"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
newdef : defined(__MACHTEN__)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Machintosh
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "Tenon"
|
|
|
|
hosttype: : "Macintosh"
|
2012-02-20 00:53:59 +00:00
|
|
|
ostype : : "MachTen"
|
2000-04-15 04:41:27 +00:00
|
|
|
machtype: : "Macintosh"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(GOULD_NP1)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Gould
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "gould"
|
|
|
|
hosttype: : "gould_np1"
|
|
|
|
machtype: : "gould"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(MULTIFLOW)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Multiflow running 4.3BSD
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "multiflow"
|
|
|
|
hosttype: : "multiflow"
|
|
|
|
machtype: : "multiflow"
|
|
|
|
ostype : : "bsd43"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(SXA)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : PFU/Fujitsu A-xx computer
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "sxa"
|
|
|
|
hosttype: : "pfa50"
|
|
|
|
ostype : defined(_BSDX_) : "e60-bsdx"
|
2012-02-20 00:53:59 +00:00
|
|
|
ostype : : "e60"
|
2000-04-15 04:41:27 +00:00
|
|
|
machtype: : "pfa50"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(titan)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : (St)Ardent Titan
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "ardent"
|
|
|
|
hosttype: : "titan"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(stellar)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Stellar
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "stellar"
|
|
|
|
hosttype: : "stellar"
|
|
|
|
ostype : : "stellix"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(atari)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Atari TT running SVR4. This machine was never
|
|
|
|
comment : commercially available.
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "atari"
|
|
|
|
hosttype: : "atari"
|
|
|
|
ostype : : "asv"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(OPUS)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : ???
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "opus"
|
|
|
|
hosttype: : "opus"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(eta10)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : ETA running SVR3
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "eta"
|
|
|
|
hosttype: : "eta10"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(hk68)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Heurikon HK68 running Uniplus+ 5.0
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "heurikon"
|
|
|
|
hosttype: : "hk68"
|
|
|
|
ostype : : "uniplus"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(NDIX)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Norsk Data ND 500/5000 running Ndix
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "norsk"
|
|
|
|
hosttype: : "nd500"
|
|
|
|
ostype : : "ndix"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(AMIGA)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Amiga running AmigaOS+GG
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "commodore"
|
|
|
|
hosttype: : "amiga"
|
|
|
|
ostype : : "AmigaOS"
|
|
|
|
machtype: : "m68k"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(uts)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Amdahl running uts 2.1
|
|
|
|
vendor : : "amdahl"
|
2000-04-15 04:41:27 +00:00
|
|
|
hosttype: : "amdahl"
|
|
|
|
ostype : : "uts"
|
|
|
|
machtype: : "amdahl"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(UTek)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Tektronix 4300 running UTek (BSD 4.2 / 68020 based)
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "tektronix"
|
2012-02-20 00:53:59 +00:00
|
|
|
hosttype: : "tek4300"
|
2000-04-15 04:41:27 +00:00
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(UTekV)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Tektronix XD88/10 running UTekV 3.2e (SVR3/88100 based)
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "tektronix"
|
2012-02-20 00:53:59 +00:00
|
|
|
hosttype: : "tekXD88"
|
2000-04-15 04:41:27 +00:00
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(__DGUX__)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Data-General AViiON running DGUX
|
2000-04-15 04:41:27 +00:00
|
|
|
hosttype: : "aviion"
|
|
|
|
ostype : : "dgux"
|
|
|
|
vendor : : "dg"
|
2012-02-20 00:53:59 +00:00
|
|
|
machtype: defined(m88k) : "m88k"
|
|
|
|
machtype: defined(i386) : "pentium"
|
2000-04-15 04:41:27 +00:00
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(sysV68)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Motorola MPC running System V/68 R32V2 (SVR3/68020 based)
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "motorola"
|
2012-02-20 00:53:59 +00:00
|
|
|
hosttype: : "sysV68"
|
2000-04-15 04:41:27 +00:00
|
|
|
machtype: : "m68k"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(supermax)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : DDE Supermax running System V/68 R3 (SVR3/68020 based)
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "supermax"
|
2012-02-20 00:53:59 +00:00
|
|
|
hosttype: : "supermax"
|
2000-04-15 04:41:27 +00:00
|
|
|
machtype: : "m68k"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(sysV88)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Motorola MPC running System V/88 R32V2 (SVR3/88100 based)
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "motorola"
|
2012-02-20 00:53:59 +00:00
|
|
|
hosttype: : "sysV88"
|
2000-04-15 04:41:27 +00:00
|
|
|
machtype: : "m88k"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(__clipper__)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Clipper Chipset (Intergraph)
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "intergraph"
|
|
|
|
hosttype: : "clipper"
|
|
|
|
machtype: : "clipper"
|
|
|
|
enddef :
|
|
|
|
|
2009-07-10 21:47:20 +00:00
|
|
|
newdef : defined(__QNX__)
|
|
|
|
ostype : : "qnx"
|
|
|
|
enddef :
|
2000-04-15 04:41:27 +00:00
|
|
|
|
2005-04-24 19:41:08 +00:00
|
|
|
newdef : (defined(SNI) || defined(sinix)) && !defined(_OSD_POSIX)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Fujitsu Siemens Computers (former "Siemens Nixdorf Informationssysteme"): SINIX aka. ReliantUNIX, a SVR4 derivative
|
2005-04-24 19:41:08 +00:00
|
|
|
vendor : : "fsc"
|
2000-04-15 04:41:27 +00:00
|
|
|
hosttype: defined(M_intel) : "wx200i"
|
|
|
|
hosttype: defined(MIPSEB) : "rm400"
|
|
|
|
ostype : defined(sinix) : "sinix"
|
|
|
|
machtype: defined(M_i586) : "i586"
|
|
|
|
machtype: defined(M_i486) : "i486"
|
|
|
|
machtype: defined(M_i386) : "i386"
|
|
|
|
machtype: defined(M_mipsel) : "mipsel"
|
|
|
|
machtype: defined(M_mipseb) : "mipseb"
|
|
|
|
machtype: : "mips"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
newdef : defined(_OSD_POSIX)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Fujitsu Siemens Computers (former "Siemens Nixdorf Informationssysteme"): BS2000 POSIX (mainframe, EBCDIC)
|
2005-04-24 19:41:08 +00:00
|
|
|
vendor : : "fsc"
|
|
|
|
hosttype: : "bs2000"
|
|
|
|
ostype : : "osdposix"
|
|
|
|
machtype: #machine(7500) : "s390"
|
|
|
|
machtype: #machine(mips) : "mips"
|
|
|
|
machtype: #machine(sparc) : "sparc"
|
2000-04-15 04:41:27 +00:00
|
|
|
machtype: : "bs2000"
|
|
|
|
enddef :
|
|
|
|
|
2000-11-30 21:05:33 +00:00
|
|
|
newdef : defined(__MVS__)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : ibm uss s/390 (mainframe, EBCDIC)
|
2000-11-30 21:05:33 +00:00
|
|
|
vendor : : "ibm"
|
2012-02-20 00:53:59 +00:00
|
|
|
hosttype: : "s390"
|
|
|
|
ostype : : "os390"
|
2000-11-30 21:05:33 +00:00
|
|
|
machtype: : "s390"
|
|
|
|
enddef :
|
|
|
|
|
2000-04-15 04:41:27 +00:00
|
|
|
newdef : defined(_SX)
|
|
|
|
comment : NEC Corporation (SX-4)
|
2012-02-20 00:53:59 +00:00
|
|
|
vendor : : "nec"
|
2000-04-15 04:41:27 +00:00
|
|
|
ostype : : "superux"
|
|
|
|
hosttype: : "sx4"
|
|
|
|
machtype: : "sx4"
|
|
|
|
enddef :
|
|
|
|
|
2012-02-20 00:53:59 +00:00
|
|
|
newdef : !defined(SOLARIS2) && (SYSVREL == 4)
|
2000-04-15 04:41:27 +00:00
|
|
|
comment : Unix System V Release 4.0
|
2012-02-20 00:53:59 +00:00
|
|
|
vendor : defined(DELL) : "dell"
|
2000-04-15 04:41:27 +00:00
|
|
|
hosttype: defined(M_i386) : "i386"
|
2012-02-20 00:53:59 +00:00
|
|
|
ostype : : "svr4"
|
2000-04-15 04:41:27 +00:00
|
|
|
machtype: defined(M_i386) : "i386"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
newdef : defined(__uxp__) || defined(__uxps__)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : FUJITSU DS/90 7000
|
2000-04-15 04:41:27 +00:00
|
|
|
vendor : : "fujitsu"
|
|
|
|
hosttype: : "ds90"
|
|
|
|
ostype : : "sysv4"
|
|
|
|
machtype: : "sparc"
|
|
|
|
enddef :
|
|
|
|
|
2009-07-10 21:47:20 +00:00
|
|
|
newdef : defined(__CYGWIN__)
|
2012-02-20 00:53:59 +00:00
|
|
|
comment : Cygwin
|
|
|
|
vendor : : "intel"
|
|
|
|
hosttype: : gethost()
|
|
|
|
ostype : : getostype()
|
|
|
|
machtype: : getmach()
|
2009-07-10 21:47:20 +00:00
|
|
|
enddef :
|
|
|
|
|
2012-02-20 00:53:59 +00:00
|
|
|
newdef : defined(_UWIN)
|
2000-04-15 04:41:27 +00:00
|
|
|
comment : AT&T Research Unix for Windows
|
2012-02-20 00:53:59 +00:00
|
|
|
vendor : : "att"
|
|
|
|
hosttype: : "win32.i386"
|
|
|
|
machtype: : "i386"
|
2000-04-15 04:41:27 +00:00
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
2012-02-20 00:53:59 +00:00
|
|
|
newdef : defined(mc68000) || defined(mc68k32) || defined(m68k) || defined(mc68010) || defined(mc68020)
|
2000-04-15 04:41:27 +00:00
|
|
|
hosttype: : "m68k"
|
|
|
|
vendor : defined(m68k) : "motorola"
|
|
|
|
machtype: : "m68k"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
2012-02-20 00:53:59 +00:00
|
|
|
newdef : defined(m88k)
|
2000-04-15 04:41:27 +00:00
|
|
|
hosttype: : "m88k"
|
|
|
|
machtype: : "m88k"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(M_intel)
|
|
|
|
hosttype: defined(M_i586) : "i586"
|
|
|
|
hosttype: defined(M_i486) : "i486"
|
|
|
|
hosttype: defined(M_i386) : "i386"
|
2012-02-20 00:53:59 +00:00
|
|
|
vendor : : "intel"
|
2000-04-15 04:41:27 +00:00
|
|
|
machtype: defined(M_i586) : "i586"
|
|
|
|
machtype: defined(M_i486) : "i486"
|
|
|
|
machtype: defined(M_i386) : "i386"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
2012-02-20 00:53:59 +00:00
|
|
|
newdef : defined(sparc)
|
2000-04-15 04:41:27 +00:00
|
|
|
hosttype: : "sparc"
|
|
|
|
machtype: : "sparc"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
2012-02-20 00:53:59 +00:00
|
|
|
newdef : defined(i860)
|
2000-04-15 04:41:27 +00:00
|
|
|
hosttype: : "i860"
|
|
|
|
machtype: : "i860"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : defined(osf1)
|
|
|
|
ostype : : "osf1"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : SYSVREL == 0
|
|
|
|
ostype : defined(BSD4_4) : "bsd44"
|
|
|
|
ostype : defined(BSD) : "bsd"
|
|
|
|
ostype : defined(POSIX) : "posix"
|
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : SYSVREL == 1
|
2012-02-20 00:53:59 +00:00
|
|
|
ostype : : "svr1"
|
2000-04-15 04:41:27 +00:00
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : SYSVREL == 2
|
2012-02-20 00:53:59 +00:00
|
|
|
ostype : : "svr2"
|
2000-04-15 04:41:27 +00:00
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : SYSVREL == 3
|
2012-02-20 00:53:59 +00:00
|
|
|
ostype : : "svr3"
|
2000-04-15 04:41:27 +00:00
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
|
|
|
newdef : SYSVREL == 4
|
2012-02-20 00:53:59 +00:00
|
|
|
ostype : : "svr4"
|
2000-04-15 04:41:27 +00:00
|
|
|
enddef :
|
|
|
|
|
|
|
|
|
2012-02-20 00:53:59 +00:00
|
|
|
newcode :
|
2000-04-15 04:41:27 +00:00
|
|
|
#ifndef _hosttype_
|
|
|
|
hosttype = "unknown";
|
|
|
|
#endif
|
|
|
|
#ifndef _ostype_
|
|
|
|
ostype = "unknown";
|
|
|
|
#endif
|
|
|
|
#ifndef _vendor_
|
|
|
|
vendor = "unknown";
|
|
|
|
#endif
|
|
|
|
#ifndef _machtype_
|
|
|
|
machtype = "unknown";
|
|
|
|
#endif
|
|
|
|
tsetenv(STRHOSTTYPE, str2short(hosttype));
|
2012-02-20 00:53:59 +00:00
|
|
|
tsetenv(STRVENDOR, str2short(vendor));
|
|
|
|
tsetenv(STROSTYPE, str2short(ostype));
|
2000-04-15 04:41:27 +00:00
|
|
|
tsetenv(STRMACHTYPE, str2short(machtype));
|
|
|
|
} /* end setmachine */
|
2012-02-20 00:53:59 +00:00
|
|
|
endcode :
|