Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/c++/v1/__cxx03/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___CXX03_CERRNO
0011 #define _LIBCPP___CXX03_CERRNO
0012 
0013 /*
0014     cerrno synopsis
0015 
0016 Macros:
0017 
0018     EDOM
0019     EILSEQ  // C99
0020     ERANGE
0021     errno
0022 
0023 */
0024 
0025 #include <__cxx03/__config>
0026 
0027 #include <__cxx03/errno.h>
0028 
0029 #ifndef _LIBCPP___CXX03_ERRNO_H
0030 #   error <cerrno> tried including <errno.h> but didn't find libc++'s <errno.h> header. \
0031           This usually means that your header search paths are not configured properly. \
0032           The header search paths should contain the C++ Standard Library headers before \
0033           any C Standard Library, and you are probably using compiler flags that make that \
0034           not be the case.
0035 #endif
0036 
0037 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
0038 #  pragma GCC system_header
0039 #endif
0040 
0041 // LWG3869 Deprecate std::errc constants related to UNIX STREAMS
0042 //
0043 // This LWG issue deprecates the POSIX macros ENODATA, ENOSR, ENOSTR, and ETIME. These were
0044 // deprecated in libc++ in https://github.com/llvm/llvm-project/pull/80542.
0045 // Based on the post commit feedback the macro are no longer deprecated.
0046 // Instead libc++ leaves the deprecation to the provider of errno.h.
0047 
0048 #endif // _LIBCPP___CXX03_CERRNO