UNAME(2V)

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:

    char	sysname[9];
    char	nodename[65];
    char	release[9];
    char	version[9];
    char	machine[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)