Commit 1a467159 authored by Steven Murray's avatar Steven Murray
Browse files

Added utils::serrnoToString() and utils::errnoToString()

parent d9f3e153
......@@ -35,7 +35,7 @@
#define EDNSBASEOFF 3000 /* DNS error base offset */
#define SENOERR SEBASEOFF /* No error */
#define SENOSHOST SEBASEOFF+1 /* Host unknown */
#define SENOSHOST SEBASEOFF+1 /* Host not known */
#define SENOSSERV SEBASEOFF+2 /* Service unknown */
#define SENOTRFILE SEBASEOFF+3 /* Not a remote file */
#define SETIMEDOUT SEBASEOFF+4 /* Has timed out */
......
......@@ -81,7 +81,7 @@ The \fBserrno\fP variable is divided into common values and per package values,
The following error values might be returned by any package:
.TP 1.9i
.B SENOSHOST
(1001) Host unknown
(1001) Host not known
.TP
.B SENOSSERV
(1002) Service unknown
......
......@@ -56,6 +56,9 @@
* @param errnum The error number.
* @param buf The buffer.
* @param buflen The length of the buffer.
* @return 0 on success and -1 on error. If -1 is returned then errno is set
* to either EINVAL to indicate the error number is invalid, or to ERANGE to
* indicate the supplied error buffer is not large enough.
*/
EXTERN_C int strerror_r_wrapper(int errnum, char *buf, size_t buflen);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment