Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ uname(2V) — SunOS 4.0.2

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

gethostname(2)

uname(1V)

UNAME(2V)  —  SYSTEM CALLS

NAME

uname − get name of current system

SYNOPSIS

#include <sys/utsname.h>

int uname(name)

struct utsname ∗name;

DESCRIPTION

Note: This system call is only available for use with the System V compatibility libraries. These are located in the directory /usr/5lib, and are compiled using the System V version of the C compiler, /usr/5bin/cc. 

uname() stores information identifying the current system in the structure pointed to by name.

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

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

uname() returns a null-terminated string giving the standard host name for the current processor in nodename.  This name will be same as the name returned by the gethostname(2) system call.  It also returns a null-terminated character string naming the current operating system in sysname.  release and version further identify the operating system.  machine contains a name that identifies the hardware of the current processor. 

FILES

/usr/5lib

/usr/5bin/cc

SEE ALSO

gethostname(2), uname(1V)

Sun Release 4.0  —  Last change: 27 January 1988

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