nis_error(3N)
NAME
nis_error, nis_sperrno, nis_perror, nis_lerror, nis_sperror − display NIS+ error messages
SYNOPSIS
#include <rpcsvc/nis.h>
char ∗nis_sperrno(const nis_error status);
void nis_perror(const nis_error status, const char ∗label);
void nis_lerror(const nis_error status, const char ∗label);
char ∗nis_sperror(const nis_error status, const char ∗label);
MT-LEVEL
Unsafe
DESCRIPTION
These functions convert NIS+ status values into text strings.
nis_sperrno() simply returns a pointer to a string constant which is the error string.
nis_perror() prints the error message “label: error message” on the standard error.
nis_lerror() sends the error text to syslog(3) at level LOG_ERR.
The last function nis_sperror() simply returns a pointer to a statically allocated string that can be used or copied using the strdup() function, see string(3C).
SEE ALSO
niserror(1), string(3C), syslog(3)
NOTES
These interfaces are unsafe in multithreaded applications. Unsafe interfaces should be called only from the main thread.
SunOS 5.2 — Last change: 22 Jan 1993