Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ uname(2) — CX/UX 6.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

uname(1)

uname(2)

NAME

uname − get name of current CX/UX system

SYNOPSIS

#include <sys/utsname.h>

int uname (name)
struct utsname ∗name;

DESCRIPTION

uname stores information identifying the current CX/UX system in the structure pointed to by name.

uname uses the structure defined in <sys/utsname.h> whose members are:

charsysname[];
charnodename[];
charrelease[];
charversion[];
charmachine[];

uname returns a null-terminated character string naming the current CX/UX system in the character array sysname. Similarly, nodename contains the name that the system is known by on a communications network.  Release and version further identify the operating system.  Machine contains a standard name that identifies the hardware that the CX/UX system is running on. 


­[EFAULT] uname will fail if name points to an invalid address. 

RETURN VALUE

Upon successful completion, a non-negative value is returned.  Otherwise, −1 is returned and errno is set to indicate the error.

SEE ALSO

uname(1) in the CX/UX User’s Reference Manual. 

CX/UX Programmer’s Reference Manual

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