sinfo(2) — CX/UX
NAME
sinfo − get system information
SYNOPSIS
#include <sys/sinfo.h>
int sinfo (cmd, arg)
int cmd, arg;
DESCRIPTION
sinfo returns information about the system
The commands available:
SYSTYPE
Return the current OS type. Return values will be one of the following:
SYSUX CX/UX
SYSRT CX/RT
SYSSXC2 CX/SX configured to C2 level security
SYSSXB1 CX/SX configured to B1 level security
SYSMACHINE
Return the current machine type. Return values will be one of the following:
SYS1000Night Hawk Series 1000 system
SYS2000HCX Series 2000 system
SYS3000Night Hawk Series 3000 system
SYS4400Night Hawk Series 4000 HN4400 system
SYS4800Night Hawk Series 4000 HN4800 system
SYS5800Night Hawk Series 5000 HN5800 system
sinfo will fail if the following is true:
[EINVAL]
type or arg is not valid.
RETURN VALUE
If an error has occurred, a value of −1 is returned and errno is set to indicate the error.
NOTE
The system service is subject to enhancement. Currently the arg argument is unused.
SEE ALSO
CX/UX Programmer’s Reference Manual