Oberon || Library || Module Index || Search Engine || Definition || Module


Ulm's Oberon Library:
SysUname


NAME

SysUname - get credentials of the current operating system

SYNOPSIS

PROCEDURE GetSysName(VAR name: ARRAY OF CHAR);
PROCEDURE GetNodeName(VAR name: ARRAY OF CHAR);
PROCEDURE GetRelease(VAR name: ARRAY OF CHAR);
PROCEDURE GetVersion(VAR name: ARRAY OF CHAR);
PROCEDURE GetMachine(VAR name: ARRAY OF CHAR);

DESCRIPTION

SysUname returns some of the credentials of the current operating system.

GetSysName returns the general name of the current operating system, e.g. ``Linux'' or ``SunOS''.

GetNodeName returns the hostname. In many cases this name is not a fully qualified domain name.

GetRelease returns the release number of the current kernel of the operating system.

GetVersion returns a version tag identifying the current build of the kernel. This is sometimes a simple time stamp (Linux) or a more general attribute with patch indications in case of kernels that are built dynamically (Solaris).

GetMachine returns the machine architecture, e.g. ``i686'' on a Intel system or ``sun4u'' on an UltraSPARC system.

DIAGNOSTICS

All calls return an empty string in case of errors.

BUGS

All return values are assumed to remain constant during the lifetime of a process.
Edited by: borchert, last change: 2001/04/30, revision: 1.1, converted to HTML: 2001/04/30

Oberon || Library || Module Index || Search Engine || Definition || Module