#include <errno.h>
#include <isc/lang.h>
#include <isc/types.h>
Go to the source code of this file.
Defines | |
#define | UNIX_ERRNO2RESULT_H 1 |
#define | isc__errno2result(x) isc___errno2result(x, __FILE__, __LINE__) |
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.h.
#define UNIX_ERRNO2RESULT_H 1 |
Definition at line 21 of file errno2result.h.
#define isc__errno2result | ( | x | ) | isc___errno2result(x, __FILE__, __LINE__) |
Definition at line 34 of file errno2result.h.
Referenced by dir_current(), doio_recv(), doio_send(), fd_stats(), file_stats(), isc_dir_chdir(), isc_dir_chroot(), isc_dir_createunique(), isc_dir_open(), isc_entropy_createfilesource(), isc_file_isdirectory(), isc_file_isplainfile(), isc_file_isplainfilefd(), isc_file_openuniquemode(), isc_file_remove(), isc_file_rename(), isc_file_renameunique(), isc_file_safecreate(), isc_file_settime(), isc_file_truncate(), isc_fsaccess_set(), isc_resource_setlimit(), isc_stdio_close(), isc_stdio_flush(), isc_stdio_open(), isc_stdio_read(), isc_stdio_seek(), isc_stdio_sync(), isc_stdio_tell(), isc_stdio_write(), setup_watcher(), unwatch_fd(), and watch_fd().
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.