Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ uname(2) — DG/UX 5.4R3.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

uname(1)

hostname(1C)

sethostname(2)



uname(2)                       DG/UX 5.4R3.00                       uname(2)


NAME
       uname, nuname - get name of current UNIX system

SYNOPSIS
       #include <sys/utsname.h>

       int    uname (name)
       struct utsname * name;

       int    nuname (name)
       struct utsname * name;

   where:
       name      Address of a structure to be filled with the current system
                 name

DESCRIPTION
       uname and its synonym nuname store information identifying the
       current UNIX system in the structure pointed to by name.  This
       information is set during the system generation procedure and may be
       meaningful to other software.  The utsname structure is defined in
       the include file <sys/utsname.h>.  See <sys/utsname.h> for a
       description of the fields.

ACCESS CONTROL
       None.

RETURN VALUE
       uname will return a non-negative value if the operation was
              successful.

       Otherwise, it will return -1 and
              errno will be set to indicate the error.

DIAGNOSTICS
       Errno may be set to one of the following error codes:

       EFAULT    uname and nuname will fail if name points to an invalid
                 address.

SEE ALSO
       uname(1), hostname(1C), sethostname(2)

NOTES
       The command hostname(1C) and the system call sethostname(2) modify
       the system's nodename, and thus change the value returned in the
       nodename field of the utsname structure.










Licensed material--property of copyright holder(s)                         1


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026