[flang][cuda] Adapt ExternalNameConversion to work in gpu module (#117039)
[llvm-project.git] / compiler-rt / lib / sanitizer_common / sanitizer_errno_codes.h
blob9e6e71ec80c15c441d09b6ba9b7ac6a8db86c65a
1 //===-- sanitizer_errno_codes.h ---------------------------------*- C++ -*-===//
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-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file is shared between sanitizers run-time libraries.
11 // Defines errno codes to avoid including errno.h and its dependencies into
12 // sensitive files (e.g. interceptors are not supposed to include any system
13 // headers).
14 // It's ok to use errno.h directly when your file already depend on other system
15 // includes though.
17 //===----------------------------------------------------------------------===//
19 #ifndef SANITIZER_ERRNO_CODES_H
20 #define SANITIZER_ERRNO_CODES_H
22 namespace __sanitizer {
24 #define errno_ENOMEM 12
25 #define errno_EBUSY 16
26 #define errno_EINVAL 22
27 #define errno_ERANGE 34
28 #define errno_ENAMETOOLONG 36
29 #define errno_ENOSYS 38
31 // Those might not present or their value differ on different platforms.
32 extern const int errno_EOWNERDEAD;
34 } // namespace __sanitizer
36 #endif // SANITIZER_ERRNO_CODES_H