genders_errnum - genders error routines
#include <genders.h> int genders_errnum(genders_t handle); char *genders_strerror(int errnum); char *genders_errormsg(genders_t handle); void genders_perror(genders_t handle, const char *msg);
GENDERS_ERRNUM(3) LIBGENDERS GENDERS_ERRNUM(3)
NAME
genders_errnum, genders_strerror, genders_errormsg, genders_perror -
genders error routines
SYNOPSIS
#include <genders.h>
int genders_errnum(genders_t handle);
char *genders_strerror(int errnum);
char *genders_errormsg(genders_t handle);
void genders_perror(genders_t handle, const char *msg);
DESCRIPTION
genders_errnum() returns the error code stored in handle.
genders_strerror() returns a pointer to a string describing the error
code errnum.
Generally, an error code is retrieved by genders_errnum() and then
passed to genders_strerror().
genders_errormsg() returns a pointer to a string describing the error
stored in handle. It is logically equivalent to:
char *genders_strerror(genders_errnum(genders_t handle));
genders_perror() is similar to perror(3). It produces a message on
standard error output, describing the error stored in handle. If msg
is not NULL, the string pointed to by msg, a colon, and a blank are
printed before the error message.
FILES
/usr/include/genders.h
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
+---------------+-----------------------+
|ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+---------------+-----------------------+
|Availability | library/libgenders |
+---------------+-----------------------+
|Stability | Pass-through volatile |
+---------------+-----------------------+
NOTES
Source code for open source software components in Oracle Solaris can
be found at https://www.oracle.com/downloads/opensource/solaris-source-
code-downloads.html.
This software was built from source available at
https://github.com/oracle/solaris-userland. The original community
source was downloaded from https://github.com/chaos/genders/ar-
chive/refs/tags/genders-1-28-1.tar.gz.
Further information about this software can be found on the open source
community website at https://github.com/chaos/genders.
LLNL August 2003 GENDERS_ERRNUM(3)