Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ uname(S) — OpenDesktop Software Development System 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

uname(C)


 uname(S)                       6 January 1993                       uname(S)


 Name

    uname - get name of current system

 Syntax


    cc  . . .  -lc


    #include <sys/utsname.h>

    int uname (name)
    struct utsname *name;


 Description

    The uname system call stores information identifying the current system
    in the structure pointed to by name.

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

       struct utsname {
               char    sysname[9];
               char    nodename[9];
               char    release[9];
               char    version[9];
               char    machine[9];
       };

    The uname system call returns a null-terminated character string naming
    the current system in the character array sysname.  nodename contains the
    name that the system is known by on a communications network; however the
    inclusion of this member does not imply that it is sufficient information
    for interfacing to communications networks.  release and version further
    identify the operating system.  machine contains a standard name that
    identifies the hardware that the system is running on.

 See also

    uname(C), scoinfo(S)

 Return value

    Upon successful completion, a non-negative value is returned.

 Standards conformance

    uname is conformant with:
    AT&T SVID Issue 2;
    X/Open Portability Guide, Issue 3, 1989;
    IEEE POSIX Std 1003.1-1990 System Application Program Interface (API) [C
    Language] (ISO/IEC 9945-1);
    and NIST FIPS 151-1.


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