1 /* 2 * Copyright (C) Internet Systems Consortium, Inc. ("ISC") 3 * 4 * This Source Code Form is subject to the terms of the Mozilla Public 5 * License, v. 2.0. If a copy of the MPL was not distributed with this 6 * file, you can obtain one at https://mozilla.org/MPL/2.0/. 7 * 8 * See the COPYRIGHT file distributed with this work for additional 9 * information regarding copyright ownership. 10 */ 11 12 #ifndef ISC_ERRNO_H 13 #define ISC_ERRNO_H 1 14 15 /*! \file isc/file.h */ 16 17 #include <isc/types.h> 18 19 ISC_LANG_BEGINDECLS 20 21 isc_result_t 22 isc_errno_toresult(int err); 23 /*!< 24 * \brief Convert a POSIX errno value to an ISC result code. 25 */ 26 ISC_LANG_ENDDECLS 27 28 #endif /* ISC_ERRNO_H */ 29