__scoinfo(S)
__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.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003