DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

uname(S)


uname -- get name of current system

Syntax

cc . . . -lc

#include <sys/utsname.h>

int uname (name) struct utsname *name;

Description

The uname system call stores information identifying the current system in the structure pointed to by name.

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

   struct utsname {
           char	sysname[9];
           char	nodename[9];
           char	release[9];
           char	version[9];
           char	machine[9];
   };
The uname system call returns a null-terminated character string naming the current system in the character array sysname. nodename contains the name that the system is known by on a communications network; however the inclusion of this member does not imply that it is sufficient information for interfacing to communications networks. release and version further identify the operating system. machine contains a standard name that identifies the hardware that the system is running on.

See also

uname(C), __scoinfo(S)

Return value

Upon successful completion, a non-negative value is returned.

Standards conformance

uname is conformant with:

X/Open Portability Guide, Issue 3, 1989 ;
IEEE POSIX Std 1003.1-1990 System Application Program Interface (API) [C Language] (ISO/IEC 9945-1) ;
and NIST FIPS 151-1 .


© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003