DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

__scoinfo(S-osr5)


__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.


© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005