Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getversion(2) — GL2 W2.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

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. 

The file descriptor is returned in D0. 

Version 2.3  —  July 04, 1985

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026