#include <config.h>
#include <isc/result.h>
#include <isc/strerror.h>
#include <isc/util.h>
#include "errno2result.h"
Go to the source code of this file.
Functions | |
isc_result_t | isc___errno2result (int posixerrno, const char *file, unsigned int line) |
Convert a POSIX errno value into an isc_result_t. The list of supported errno values is not complete; new users of this function should add any expected errors that are not already there. |
Definition in file errno2result.c.
isc_result_t isc___errno2result | ( | int | posixerrno, | |
const char * | file, | |||
unsigned int | line | |||
) |
Convert a POSIX errno value into an isc_result_t. The list of supported errno values is not complete; new users of this function should add any expected errors that are not already there.
Definition at line 37 of file errno2result.c.
References isc__strerror(), ISC_R_ADDRINUSE, ISC_R_ADDRNOTAVAIL, ISC_R_CONNECTIONRESET, ISC_R_CONNREFUSED, ISC_R_FAMILYNOSUPPORT, ISC_R_FILEEXISTS, ISC_R_FILENOTFOUND, ISC_R_HOSTDOWN, ISC_R_HOSTUNREACH, ISC_R_INVALIDFILE, ISC_R_IOERROR, ISC_R_NETDOWN, ISC_R_NETUNREACH, ISC_R_NOMEMORY, ISC_R_NOPERM, ISC_R_NORESOURCES, ISC_R_NOTCONNECTED, ISC_R_RANGE, ISC_R_TIMEDOUT, ISC_R_TOOMANYOPENFILES, ISC_R_UNEXPECTED, ISC_STRERRORSIZE, and UNEXPECTED_ERROR.