Library /sys$common/syshlp/helplib.hlb  —  CRTL  uname
    Gets system identification information.

    Format

      #include  <utsname.h>

      int uname  (struct utsname *name);

1  –  Argument

 name

    The current system identifier.

2  –  Description

    The uname function stores null-terminated strings of information
    identifying the current system into the structure referenced by
    the name argument.

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

    sysname        Name of the operating system implementation
    nodename       Network name of this machine
    release        Release level of the operating system
    version        Version level of the operating system
    machine        Machine hardware platform

3  –  Return Values

    0                  Indicates success.
    -1                 Indicates an error; errno or vaxc$errno is set
                       as appropriate.
Close Help