2000-05-11 15:09:30 +00:00
|
|
|
/*
|
2018-02-23 09:53:12 +01:00
|
|
|
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
2000-08-01 01:33:37 +00:00
|
|
|
*
|
2016-06-27 14:56:38 +10:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2018-02-23 09:53:12 +01:00
|
|
|
*
|
|
|
|
* See the COPYRIGHT file distributed with this work for additional
|
|
|
|
* information regarding copyright ownership.
|
2000-05-11 15:09:30 +00:00
|
|
|
*/
|
|
|
|
|
2000-06-23 03:03:57 +00:00
|
|
|
#ifndef UNIX_ERRNO2RESULT_H
|
|
|
|
#define UNIX_ERRNO2RESULT_H 1
|
|
|
|
|
2005-04-27 04:57:32 +00:00
|
|
|
/*! \file */
|
|
|
|
|
2000-06-23 03:03:57 +00:00
|
|
|
/* XXXDCL this should be moved to lib/isc/include/isc/errno2result.h. */
|
|
|
|
|
2000-11-14 23:37:10 +00:00
|
|
|
#include <errno.h> /* Provides errno. */
|
|
|
|
|
2000-06-23 03:03:57 +00:00
|
|
|
#include <isc/lang.h>
|
2000-05-11 15:09:30 +00:00
|
|
|
#include <isc/types.h>
|
|
|
|
|
2000-06-23 03:03:57 +00:00
|
|
|
ISC_LANG_BEGINDECLS
|
|
|
|
|
2016-08-17 11:22:09 -07:00
|
|
|
#define isc__errno2result(x) isc___errno2result(x, ISC_TRUE, __FILE__, __LINE__)
|
2011-12-02 07:15:17 +00:00
|
|
|
|
2000-05-11 15:09:30 +00:00
|
|
|
isc_result_t
|
2016-08-17 11:22:09 -07:00
|
|
|
isc___errno2result(int posixerrno, isc_boolean_t dolog,
|
|
|
|
const char *file, unsigned int line);
|
2000-06-23 03:03:57 +00:00
|
|
|
|
|
|
|
ISC_LANG_ENDDECLS
|
|
|
|
|
|
|
|
#endif /* UNIX_ERRNO2RESULT_H */
|