]> git.ipfire.org Git - thirdparty/gcc.git/blame - libsanitizer/sanitizer_common/sanitizer_errno_codes.h
Remove support for alternative Solaris 11.4 ld -V output
[thirdparty/gcc.git] / libsanitizer / sanitizer_common / sanitizer_errno_codes.h
CommitLineData
36093749 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.
15//
16//===----------------------------------------------------------------------===//
17
18#ifndef SANITIZER_ERRNO_CODES_H
19#define SANITIZER_ERRNO_CODES_H
20
21namespace __sanitizer {
22
23#define errno_ENOMEM 12
24#define errno_EBUSY 16
25#define errno_EINVAL 22
26
27// Those might not present or their value differ on different platforms.
28extern const int errno_EOWNERDEAD;
29
30} // namespace __sanitizer
31
32#endif // SANITIZER_ERRNO_CODES_H