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
|
|
|
*
|
2021-06-03 08:37:05 +02:00
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
*
|
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
|
2020-09-14 16:20:40 -07:00
|
|
|
* file, you can obtain one at https://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
|
|
|
*/
|
|
|
|
|
2021-10-05 16:49:47 +02:00
|
|
|
#pragma once
|
2000-06-23 03:03:57 +00:00
|
|
|
|
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. */
|
|
|
|
|
2020-02-12 13:59:18 +01:00
|
|
|
#include <errno.h> /* Provides errno. */
|
2018-04-17 08:29:14 -07:00
|
|
|
#include <stdbool.h>
|
2000-11-14 23:37:10 +00:00
|
|
|
|
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
|
|
|
|
|
2018-04-17 08:29:14 -07:00
|
|
|
#define isc__errno2result(x) isc___errno2result(x, true, __FILE__, __LINE__)
|
2011-12-02 07:15:17 +00:00
|
|
|
|
2000-05-11 15:09:30 +00:00
|
|
|
isc_result_t
|
2020-02-12 13:59:18 +01:00
|
|
|
isc___errno2result(int posixerrno, bool dolog, const char *file,
|
|
|
|
unsigned int line);
|
2000-06-23 03:03:57 +00:00
|
|
|
|
|
|
|
ISC_LANG_ENDDECLS
|