UNAME(2V) — SYSTEM CALLS
NAME
uname − get name of current UNIX 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/5lib/cc.
uname stores information identifying the current UNIX system in the structure pointed to by name.
uname uses the structure defined in <sys/utsname.h> whose members are:
charsysname[9];
charnodename[9];
charrelease[9];
charversion[9];
charmachine[9];
uname returns a null-terminated character string naming the current UNIX system in sysname and nodename. This name will be the name returned by the gethostname(2) system call, truncated to 8 characters. release and version further identify the operating system. machine contains a name that identifies the hardware that the UNIX system is running on.
SEE ALSO
Sun Release 3.5 — Last change: 16 July 1986