Go to main content

Reference for Oracle Solaris Cluster 4.4

Exit Print View

Updated: August 2018
 
 

scds_error_string(3HA)

Name

scds_error_string, scds_error_string_i18n - generate an error string from an error code

Synopsis

cc [flags…] –I /usr/cluster/include file –L /usr/cluster/lib 
     –l dsdev#include <rgm/libdsdev.h>
     const char *scds_error_string(scha_err_t error_code);
const char *scds_error_string_i18n(scha_err_t error_code);

Description

The scds_error_string() and scds_error_string_i18n () functions generate a short string that describes an error from an error code that is returned by a DSDL function. Strings that are returned by scds_error_string() are displayed in English. Strings that are returned by scds_error_string_i18n() are displayed in the native language that is specified by the LC_MESSAGES locale category. See setlocale(3C). Invalid error codes return NULL.

The pointer that is returned by this function points to memory that belongs to the DSDL. Do not modify this memory.

Parameters

The following parameters are supported:

error_code

Error code that is returned by a DSDL function.

Files

/usr/cluster/include/rgm/libdsdev.h

Include file

/usr/cluster/lib/libdsdev.so

Library

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
ha-cluster/developer/api
Interface Stability
Evolving

See Also

setlocale(3C), scha_calls(3HA), attributes(7)