Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ uname(2) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

uname(1)

uname(2)                                                           uname(2)

NAME
     uname - get name of current Reliant UNIX system

SYNOPSIS
     #include <sys/utsname.h>

     int uname(struct utsname *name);

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

     uname() uses the structure utsname defined in sys/utsname.h whose
     members are:

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

     uname() returns a null-terminated character string naming the current
     Reliant UNIX system in the character array sysname. Similarly,
     nodename contains the name that the system is known by on a communica-
     tions network. release and version further identify the operating sys-
     tem. machine contains a standard name that identifies the hardware
     that the Reliant UNIX system is running on.

     EFAULT  uname() fails if name points to an invalid address.

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

NOTES
     uname can now be used in conjunction with four environment variables,
     OLDSYSNAME, OLDRELEASE, OLDMACHINE, OLDVERSION, to change the
     default values returned for the system, the release, the machine and
     the version names, respectively.

     The user who wishes to maintain backwards compatibility with the old
     releases, needs to set the desired environment variable to the old
     name, and uname will return the value set instead of the default.

SEE ALSO
     uname(1).








Page 1                       Reliant UNIX 5.44                Printed 11/98

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