annotate libsanitizer/sanitizer_common/sanitizer_errno_codes.h @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 1830386684a0
children
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 //
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
4 // See https://llvm.org/LICENSE.txt for license information.
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
111
kono
parents:
diff changeset
6 //
kono
parents:
diff changeset
7 //===----------------------------------------------------------------------===//
kono
parents:
diff changeset
8 //
kono
parents:
diff changeset
9 // This file is shared between sanitizers run-time libraries.
kono
parents:
diff changeset
10 //
kono
parents:
diff changeset
11 // Defines errno codes to avoid including errno.h and its dependencies into
kono
parents:
diff changeset
12 // sensitive files (e.g. interceptors are not supposed to include any system
kono
parents:
diff changeset
13 // headers).
kono
parents:
diff changeset
14 // It's ok to use errno.h directly when your file already depend on other system
kono
parents:
diff changeset
15 // includes though.
kono
parents:
diff changeset
16 //
kono
parents:
diff changeset
17 //===----------------------------------------------------------------------===//
kono
parents:
diff changeset
18
kono
parents:
diff changeset
19 #ifndef SANITIZER_ERRNO_CODES_H
kono
parents:
diff changeset
20 #define SANITIZER_ERRNO_CODES_H
kono
parents:
diff changeset
21
kono
parents:
diff changeset
22 namespace __sanitizer {
kono
parents:
diff changeset
23
kono
parents:
diff changeset
24 #define errno_ENOMEM 12
kono
parents:
diff changeset
25 #define errno_EBUSY 16
kono
parents:
diff changeset
26 #define errno_EINVAL 22
kono
parents:
diff changeset
27
kono
parents:
diff changeset
28 // Those might not present or their value differ on different platforms.
kono
parents:
diff changeset
29 extern const int errno_EOWNERDEAD;
kono
parents:
diff changeset
30
kono
parents:
diff changeset
31 } // namespace __sanitizer
kono
parents:
diff changeset
32
kono
parents:
diff changeset
33 #endif // SANITIZER_ERRNO_CODES_H