uname

Returns information about the system and the calling NLM.

Library:LibC
Classification:Single UNIX
Service:General C Services

Syntax

  #include <sys/utsname.h> 
   
  int uname (
     struct utsname   *name);
  

Parameters

name

(OUT) Points to a structure which contains information about the system.

Return Values

If successful, returns a nonnegative value, usually 0. Otherwise, returns -1 and sets errno to indicate the error.

Decimal

Constant

Description

105

ENOCONTEXT

The operation cannot be completed because an interrupt occurred.

Remarks

The uname function returns information about the operating system, LibC, the calling NLM, and the NetWare server. For a complete list, see the utsname structure.

See Also

uname2