GETVERSION(2) — Silicon Graphics
NAME
getversion − get version information from the operating system
SYNOPSIS
getversion (type, buf)
int type;
char ∗buf;
DESCRIPTION
Getversion returns version information about various features of the running operating system. Type is used to identify which type of version information is being requested. In all cases, buf will contain the result of the particular version request. For a complete list of the types and expected return values, see <sys/kversion.h>.
Getversion will fail if one or more of the following are true:
The type value is outside the allowable range. [EINVAL]
Buf points outside the process’s allocated address space. [EFAULT]
RETURN VALUE
Upon successful completion, a zero result is returned. Otherwise, a value of -1 is returned and errno is to to indicate the error.
ASSEMBLER
moveq#66, D0
movltype, A0
movlbuf, D1
trap#0
Carry bit set on failure and cleared on success.
Version 2.5 — April 22, 1987