up | Inhaltsverzeichniss | Kommentar

Manual page for UNAME(2P)

uname - (POSIX only)get system name

SYNOPSIS

#include <sys/utsname.h>

int uname(struct utsname *name);

DESCRIPTION

The information in this specification applies only to POSIX applications.

Uname stores information identifying the current operating system in the structure pointed to by name.

The structure utsname is defined in the header <sys/utsname.h> and contains the following members:


char	sysname[32] 
char	nodename[32]
char 	release[32]
char 	version[32]
char	machine[32]

Sysname is set to the value ``NEXTSTEP''. Nodename is the hostname set by hostname.1 or sethostname.2 Release and version reflects the level of the operating system. Machine identifies the hardware architecture.

RETURN VALUE

If successful uname returns a nonnegative value. If the request failed, -1 is returned.

SEE ALSO

hostname(1), sethostname(2)


index | Inhaltsverzeichniss | Kommentar

Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97