1 | //===-- GDBRemoteErrno.def --------------------------------------*- C++ -*-===// |
2 | // |
3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
4 | // See https://llvm.org/LICENSE.txt for license information. |
5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
6 | // |
7 | //===----------------------------------------------------------------------===// |
8 | |
9 | // NOTE: NO INCLUDE GUARD DESIRED! |
10 | |
11 | // HANDLE_ERRNO(name, value) |
12 | #ifndef HANDLE_ERRNO |
13 | #error "HANDLE_ERRNO must be defined" |
14 | #endif |
15 | |
16 | // from gdb's include/gdb/fileio.h |
17 | HANDLE_ERRNO(EPERM, 1) |
18 | HANDLE_ERRNO(ENOENT, 2) |
19 | HANDLE_ERRNO(EINTR, 4) |
20 | HANDLE_ERRNO(EIO, 5) |
21 | HANDLE_ERRNO(EBADF, 9) |
22 | HANDLE_ERRNO(EACCES, 13) |
23 | HANDLE_ERRNO(EFAULT, 14) |
24 | HANDLE_ERRNO(EBUSY, 16) |
25 | HANDLE_ERRNO(EEXIST, 17) |
26 | HANDLE_ERRNO(ENODEV, 19) |
27 | HANDLE_ERRNO(ENOTDIR, 20) |
28 | HANDLE_ERRNO(EISDIR, 21) |
29 | HANDLE_ERRNO(EINVAL, 22) |
30 | HANDLE_ERRNO(ENFILE, 23) |
31 | HANDLE_ERRNO(EMFILE, 24) |
32 | HANDLE_ERRNO(EFBIG, 27) |
33 | HANDLE_ERRNO(ENOSPC, 28) |
34 | HANDLE_ERRNO(ESPIPE, 29) |
35 | HANDLE_ERRNO(EROFS, 30) |
36 | HANDLE_ERRNO(ENOSYS, 88) |
37 | HANDLE_ERRNO(ENAMETOOLONG, 91) |
38 | |
39 | #undef HANDLE_ERRNO |
40 | |