1 //===-- sanitizer_errno_codes.h ---------------------------------*- C++ -*-===//
3 // This file is distributed under the University of Illinois Open Source
4 // License. See LICENSE.TXT for details.
6 //===----------------------------------------------------------------------===//
8 // This file is shared between sanitizers run-time libraries.
10 // Defines errno codes to avoid including errno.h and its dependencies into
11 // sensitive files (e.g. interceptors are not supposed to include any system
13 // It's ok to use errno.h directly when your file already depend on other system
16 //===----------------------------------------------------------------------===//
18 #ifndef SANITIZER_ERRNO_CODES_H
19 #define SANITIZER_ERRNO_CODES_H
21 namespace __sanitizer
{
23 #define errno_ENOMEM 12
24 #define errno_EBUSY 16
25 #define errno_EINVAL 22
27 // Those might not present or their value differ on different platforms.
28 extern const int errno_EOWNERDEAD
;
30 } // namespace __sanitizer
32 #endif // SANITIZER_ERRNO_CODES_H