osdPlatform

osdPlatform

osd

1998 12-05


NAME

osdPlatform - Current platform description


SYNOPSIS

char *osdPlatform(const char *fields)

This function returns a string with underscore delimited fields describing the current platform. The fields to be return are specified by the fields argument. A long return string may be truncated to OSD_MAX_PLATFORM_LEN. If fields is NULL the format "hor" is used. The possible fields are:
h hardware/chip
o operating system
r operating system revision
c compiler type
t thread support


The return text for hardware/chip:
mips SGI/MIPS R series
sparc Sun Sparc
hppa Hewlett Packard HPPA
x86 Intel X86
axp Digital Alpha
moto Motorola 680x0


The return text for operating system:
irix Silicon Graphics IRIX
sunos Sun SunOS & Solaris
hpux Hewlett Packard HP-UX
nt Windows NT
win31 Windows 3.1
win95 Windows 95
linux Linux
ews NEC EWS
fbsd FreeBSD
lynx LynxOS
sco SCO Unix


The return text for operating system revision:
number The major revision number of the operating system


The return text for compiler type:
ansi ANSI Standard
kr K&R Style
gnu GNU Compiler
visual Microsoft Visual C++
noc unknown


The return text for thread support:
cthread C-Thread Package
sproc IRIX sproc() threading
win32th Win32 threads
pthread POSIX threads
noth no threads



ARGUMENTS


fields Specifes the fields to be returned


AUTHOR

orang