| |
The scha_cluster_getnodename() function returns the name of the cluster node on which the function is called. The cluster node name is not necessarily the same as the Solaris system name. The function returns an error status, and if successful, a string containing the node name
in the location pointed to by the nodename argument. The nodename is set to NULL if the call fails. The caller of scha_cluster_getnodename() is responsible for freeing the memory allocated for the returned string
value using the standard C library function free(3c). To avoid a core dump, only free the memory upon successful return of the function.
|