NAME | SYNOPSIS | DESCRIPTION | RETURN VALUES | EXAMPLES | FILES | ATTRIBUTES | SEE ALSO
cc [flags…]-I /usr/cluster/include file -L /usr/cluster/lib -l scha #include <scha.h>char *scha_strerror(scha_err_t err_code);
The scha_strerror() routine translates the given scha_err_t error code to an appropriate, but terse, error message. The char* string returned by this routine is not internationalized, as its return value is to be used by the resource type implementation for logging to the system log facility, syslog(3C).
The following return value is supported:
String describing the meaning of the error_code.
sample() { scha_err_t err; char * resource_group = "example_RG"; /* resource group containing example_R */ char * resource_name = "example_R"; /* a configured resource */ err = scha_control(SCHA_GIVEOVER, resource_group, resource_name); if (err != SCHA_ERR_NOERR) { syslog(LOG_ERR, "scha_control GIVEOVER failed: %s", scha_strerror(err)); } }
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE |
ATTRIBUTE VALUE |
---|---|
Availability |
SUNWscdev |
Interface Stability |
Evolving |
NAME | SYNOPSIS | DESCRIPTION | RETURN VALUES | EXAMPLES | FILES | ATTRIBUTES | SEE ALSO