Come up with TARGET_GET_VALID_OPTION_VALUES option hook (PR driver/83193).
[official-gcc.git] / libsanitizer / sanitizer_common / sanitizer_errno_codes.h
blob709f43b768929ce55626ab060e4dca7bb3fa3003
1 //===-- sanitizer_errno_codes.h ---------------------------------*- C++ -*-===//
2 //
3 // This file is distributed under the University of Illinois Open Source
4 // License. See LICENSE.TXT for details.
5 //
6 //===----------------------------------------------------------------------===//
7 //
8 // This file is shared between sanitizers run-time libraries.
9 //
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
12 // headers).
13 // It's ok to use errno.h directly when your file already depend on other system
14 // includes though.
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