Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ uname(S) — Xenix 2.3.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

uname(C)



     UNAME(S)                 XENIX System V                  UNAME(S)



     Name
          uname - Gets name of current XENIX system.

     Syntax
          #include <sys/utsname.h>

          int uname (name)
          struct utsname *name;

     Description
          uname stores information identifying the current XENIX
          system in the structure pointed to by name.

          uname uses the structure defined in <sys/utsname.h>:

               struct utsname {
                    char sysname[9];
                    char nodename[9];
                    char release[9];
                    char version[9];
                    char machine[9];
                    char reserved[15];
                    unsigned short sysorigin;
                    unsigned short sysoem;
                    long sysserial;
               };

          uname returns a null-terminated character string naming the
          current XENIX system in the character array sysname.
          Similarly, nodename contains the name that the system is
          known by on a communications network. Should be the same as
          site name in /etc/systemid.  release and version further
          identify the operating system.  machine identifies the
          processor that the system runs on, from the list: i8086,
          i80186, i80286, i80386, MC68000, MC68010, MC68020, NS16032,
          NS32032, Z8001, Z8002, VAX11780, VAX11730, PDP1123, and
          PDP1170.  reserved is a reserved field.  sysorigin and
          syseom identify the source (numbers) of the XENIX version.
          sysserial is a software serial number which may be zero if
          unused.

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

     Return Value
          Upon successful completion, a nonnegative value is returned.
          Otherwise, -1 is returned and errno is set to indicate the
          error.







     Page 1                                           (printed 8/7/87)





     UNAME(S)                 XENIX System V                  UNAME(S)



     See Also
          uname(C)

     Notes
          Not all fields may be set on a particular system.

          This function is a XENIX specific enhancement and may not be
          present on all UNIX implementations.















































     Page 2                                           (printed 8/7/87)



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