MACHINEINFO(3C-SVR3)RISC/os Reference ManualACHINEINFO(3C-SVR3)
NAME
machine_info - get information about the running system
SYNOPSIS
#include <machineinfo.h>
int machineinfo (command)
int command;
DESCRIPTION
machineinfo is an interface for getting information about
the current system. It is intended to be used by commands
to determine what type or class of system is running, since
it is possible to run the same object code on all types of
Mips hardware.
The command argument specifies which information is
requested, such as the type of the machine or the class of
the machine. See the machine_info.h include file for the
currently-supported set of commands.
The return value is the information requested. If the com-
mand is not supported, the return value is -1. In all other
cases, the value will be as described by definitions found
in the include file or be an integer value as appropriate
(e.g., in the future, there may be a command to obtain the
number of megabytes of system memory).
Information that has been requested is saved as static data
so that multiple calls to machineinfo simply return the
data.
As the system evolves, with new system calls and other means
of getting dynamic system information, machineinfo will
present a consistent interface for obtaining certain useful
items, instead of requiring programmers to deal with more
system calls with various interfaces.
SEE ALSO
uname(2).
Printed 11/19/92 Page 1