Warning, /include/c++/v1/cerrno is written in an unsupported language. File is not indexed.
0001 // -*- C++ -*-
0002 //===----------------------------------------------------------------------===//
0003 //
0004 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0005 // See https://llvm.org/LICENSE.txt for license information.
0006 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0007 //
0008 //===----------------------------------------------------------------------===//
0009
0010 #ifndef _LIBCPP_CERRNO
0011 #define _LIBCPP_CERRNO
0012
0013 /*
0014 cerrno synopsis
0015
0016 Macros:
0017
0018 EDOM
0019 EILSEQ // C99
0020 ERANGE
0021 errno
0022
0023 */
0024
0025 #if __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
0026 # include <__cxx03/cerrno>
0027 #else
0028 # include <__config>
0029
0030 # include <errno.h>
0031
0032 # ifndef _LIBCPP_ERRNO_H
0033 # error <cerrno> tried including <errno.h> but didn't find libc++'s <errno.h> header. \
0034 This usually means that your header search paths are not configured properly. \
0035 The header search paths should contain the C++ Standard Library headers before \
0036 any C Standard Library, and you are probably using compiler flags that make that \
0037 not be the case.
0038 # endif
0039
0040 # if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
0041 # pragma GCC system_header
0042 # endif
0043
0044 // LWG3869 Deprecate std::errc constants related to UNIX STREAMS
0045 //
0046 // This LWG issue deprecates the POSIX macros ENODATA, ENOSR, ENOSTR, and ETIME. These were
0047 // deprecated in libc++ in https://github.com/llvm/llvm-project/pull/80542.
0048 // Based on the post commit feedback the macro are no longer deprecated.
0049 // Instead libc++ leaves the deprecation to the provider of errno.h.
0050 #endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
0051
0052 #endif // _LIBCPP_CERRNO