1 //===-- sanitizer_errno_codes.h ---------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file is shared between sanitizers run-time libraries.
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
15 // It's ok to use errno.h directly when your file already depend on other system
18 //===----------------------------------------------------------------------===//
20 #ifndef SANITIZER_ERRNO_CODES_H
21 #define SANITIZER_ERRNO_CODES_H
23 namespace __sanitizer {
25 #define errno_ENOMEM 12
26 #define errno_EBUSY 16
27 #define errno_EINVAL 22
29 // Those might not present or their value differ on different platforms.
30 extern const int errno_EOWNERDEAD;
32 } // namespace __sanitizer
34 #endif // SANITIZER_ERRNO_CODES_H