Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ uname(2) — svr4 — mips UMIPS RISC/os 5.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

uname(1)



UNAME(2-SVR4)       RISC/os Reference Manual        UNAME(2-SVR4)



NAME
     uname - get name of current UNIX system

SYNOPSIS
     #include <sys/utsname.h>

     int uname(struct utsname *name);

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

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

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

     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 communications network.  release and version further
     identify the operating system.  machine contains a standard
     name that identifies the hardware that the UNIX system is
     running on.

     EFAULT         uname fails if name points to an invalid
                    address.

SEE ALSO
     uname(1) in the User's Reference Manual.

DIAGNOSTICS
     Upon successful completion, a non-negative value is
     returned.  Otherwise, a value of -1 is returned and errno is
     set to indicate the error.
















                        Printed 11/19/92                   Page 1



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