Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ uname(2) — sys5 — Apollo Domain/IX SR9.5

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

uname(1)



UNAME(2)                 DOMAIN/IX SYS5                  UNAME(2)



NAME
     uname - get name of current UNIX system

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


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

     Uname uses the structure defined in <sys/utsname.h> whose
     members are:

       char sysname[9];
       char nodename[9];
       char release[9];
       char version[9];
       char machine[9];


     Uname returns a null-terminated character string naming the
     current UNIX system in the character array sysname.  Simi-
     larly, nodename contains the name that the system is known
     by on a dial-up communications network.  (This field does
     not specify a node's DOMAIN network name.) Release and ver-
     sion further identify the operating system.  Machine con-
     tains a standard name that identifies the hardware that the
     system is running on.

RETURN VALUE
     A successful call returns a non-negative value.  A failed
     call returns -1 and sets errno as indicated below.

ERRORS
     [EFAULT]  Uname will fail if name points to an invalid
               address.

RELATED INFORMATION
     uname(1)











Printed 12/4/86                                           UNAME-1





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