2000-05-11 11:09:30 -04:00
|
|
|
/*
|
2011-12-02 18:46:56 -05:00
|
|
|
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
2000-05-11 11:09:30 -04:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
2021-06-03 02:37:05 -04:00
|
|
|
*
|
2000-05-11 11:09:30 -04: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 https://mozilla.org/MPL/2.0/.
|
2018-02-23 03:53:12 -05:00
|
|
|
*
|
2000-05-11 11:09:30 -04:00
|
|
|
* See the COPYRIGHT file distributed with this work for additional
|
|
|
|
|
* information regarding copyright ownership.
|
|
|
|
|
*/
|
|
|
|
|
|
2021-10-05 10:49:47 -04:00
|
|
|
#pragma once
|
2000-06-22 23:03:57 -04:00
|
|
|
|
2005-04-27 00:57:32 -04:00
|
|
|
/*! \file */
|
|
|
|
|
|
2000-06-22 23:03:57 -04:00
|
|
|
/* XXXDCL this should be moved to lib/isc/include/isc/errno2result.h. */
|
|
|
|
|
|
2000-11-14 18:37:10 -05:00
|
|
|
#include <errno.h> /* Provides errno. */
|
2018-04-17 11:29:14 -04:00
|
|
|
#include <stdbool.h>
|
2000-11-14 18:37:10 -05:00
|
|
|
|
2000-05-11 11:09:30 -04:00
|
|
|
#include <isc/types.h>
|
|
|
|
|
|
2018-04-17 11:29:14 -04:00
|
|
|
#define isc__errno2result(x) isc___errno2result(x, true, __FILE__, __LINE__)
|
2011-12-02 02:15:17 -05:00
|
|
|
|
2000-05-11 11:09:30 -04:00
|
|
|
isc_result_t
|
2018-04-17 11:29:14 -04:00
|
|
|
isc___errno2result(int posixerrno, bool dolog, const char *file,
|
2016-08-17 14:22:09 -04:00
|
|
|
unsigned int line);
|