Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ scoinfo(S) — OpenDesktop Software Development System 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

uname(C)


 __scoinfo(S)                   6 January 1993                   __scoinfo(S)


 Name

    __scoinfo - get kernel and system information

 Syntax


    #include  <sys/utsname.h>

    int __scoinfo (buffer, bufsize)
    struct scoutsname *buffer;
    int bufsize;


 Description

    The scoinfo system call fills the scoutsname structure pointed to by
    buffer with information on kernel and system parameters. The following
    are the contents of this structure:

           struct scoutsname {
               char           sysname[9];
               char           nodename[9];
               char           release[16];
               char           kernelid[20];
               char           machine[9];
               char           bustype[9];
               char           sysserial[10];
               unsigned short sysorigin;
               unsigned short sysoem;
               char           numuser[9];
               unsigned short numcpu;
           };

    The information returned by scoinfo is displayed by the command uname
    -X.

 Diagnostics

    scoinfo fails if errno contains either of the following errors:

    [EINVAL]       bufsize is larger than the scoutsname structure

    [EFAULT]       buffer points to an illegal address


 Return value

    Upon error, -1 is returned and errno is set to indicate the error.

 See also

    uname(C)

 Standards conformance

    scoinfo is an extension of AT&T System V provided by The Santa Cruz
    Operation, Inc.


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