annotate libsanitizer/sanitizer_common/sanitizer_errno_codes.h @ 133:420680fc7707

do normal call in goto codesegment in normal function
author anatofuz
date Sat, 03 Nov 2018 19:49:09 +0900
parents 04ced10e8804
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 //===-- sanitizer_errno_codes.h ---------------------------------*- C++ -*-===//
kono
parents:
diff changeset
2 //
kono
parents:
diff changeset
3 // This file is distributed under the University of Illinois Open Source
kono
parents:
diff changeset
4 // License. See LICENSE.TXT for details.
kono
parents:
diff changeset
5 //
kono
parents:
diff changeset
6 //===----------------------------------------------------------------------===//
kono
parents:
diff changeset
7 //
kono
parents:
diff changeset
8 // This file is shared between sanitizers run-time libraries.
kono
parents:
diff changeset
9 //
kono
parents:
diff changeset
10 // Defines errno codes to avoid including errno.h and its dependencies into
kono
parents:
diff changeset
11 // sensitive files (e.g. interceptors are not supposed to include any system
kono
parents:
diff changeset
12 // headers).
kono
parents:
diff changeset
13 // It's ok to use errno.h directly when your file already depend on other system
kono
parents:
diff changeset
14 // includes though.
kono
parents:
diff changeset
15 //
kono
parents:
diff changeset
16 //===----------------------------------------------------------------------===//
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 #ifndef SANITIZER_ERRNO_CODES_H
kono
parents:
diff changeset
19 #define SANITIZER_ERRNO_CODES_H
kono
parents:
diff changeset
20
kono
parents:
diff changeset
21 namespace __sanitizer {
kono
parents:
diff changeset
22
kono
parents:
diff changeset
23 #define errno_ENOMEM 12
kono
parents:
diff changeset
24 #define errno_EBUSY 16
kono
parents:
diff changeset
25 #define errno_EINVAL 22
kono
parents:
diff changeset
26
kono
parents:
diff changeset
27 // Those might not present or their value differ on different platforms.
kono
parents:
diff changeset
28 extern const int errno_EOWNERDEAD;
kono
parents:
diff changeset
29
kono
parents:
diff changeset
30 } // namespace __sanitizer
kono
parents:
diff changeset
31
kono
parents:
diff changeset
32 #endif // SANITIZER_ERRNO_CODES_H