brintos

brintos / llvm-project-archived public Read only

0
0
Text · 844 B · aa1f6c9 Raw
37 lines · plain
1//===-- C standard library header errno.h ---------------------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLVM_LIBC_ERRNO_H10#define LLVM_LIBC_ERRNO_H11 12#include "__llvm-libc-common.h"13 14#ifdef __linux__15 16#include <linux/errno.h>17 18#ifndef ENOTSUP19#define ENOTSUP EOPNOTSUPP20#endif // ENOTSUP21 22#include "llvm-libc-macros/linux/error-number-macros.h"23 24#else // __linux__25#include "llvm-libc-macros/generic-error-number-macros.h"26#endif27 28__BEGIN_C_DECLS29 30int *__llvm_libc_errno(void) __NOEXCEPT;31 32__END_C_DECLS33 34#define errno (*__llvm_libc_errno())35 36#endif // LLVM_LIBC_ERRNO_H37