]> git.proxmox.com Git - rustc.git/blob - src/libcompiler_builtins/compiler-rt/lib/sanitizer_common/sanitizer_errno_codes.h
New upstream version 1.25.0+dfsg1
[rustc.git] / src / libcompiler_builtins / compiler-rt / lib / sanitizer_common / sanitizer_errno_codes.h
1 //===-- sanitizer_errno_codes.h ---------------------------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file is shared between sanitizers run-time libraries.
11 //
12 // Defines errno codes to avoid including errno.h and its dependencies into
13 // sensitive files (e.g. interceptors are not supposed to include any system
14 // headers).
15 // It's ok to use errno.h directly when your file already depend on other system
16 // includes though.
17 //
18 //===----------------------------------------------------------------------===//
19
20 #ifndef SANITIZER_ERRNO_CODES_H
21 #define SANITIZER_ERRNO_CODES_H
22
23 namespace __sanitizer {
24
25 #define errno_ENOMEM 12
26 #define errno_EBUSY 16
27 #define errno_EINVAL 22
28
29 // Those might not present or their value differ on different platforms.
30 extern const int errno_EOWNERDEAD;
31
32 } // namespace __sanitizer
33
34 #endif // SANITIZER_ERRNO_CODES_H