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
17HANDLE_ERRNO(EPERM, 1)
18HANDLE_ERRNO(ENOENT, 2)
19HANDLE_ERRNO(EINTR, 4)
20HANDLE_ERRNO(EIO, 5)
21HANDLE_ERRNO(EBADF, 9)
22HANDLE_ERRNO(EACCES, 13)
23HANDLE_ERRNO(EFAULT, 14)
24HANDLE_ERRNO(EBUSY, 16)
25HANDLE_ERRNO(EEXIST, 17)
26HANDLE_ERRNO(ENODEV, 19)
27HANDLE_ERRNO(ENOTDIR, 20)
28HANDLE_ERRNO(EISDIR, 21)
29HANDLE_ERRNO(EINVAL, 22)
30HANDLE_ERRNO(ENFILE, 23)
31HANDLE_ERRNO(EMFILE, 24)
32HANDLE_ERRNO(EFBIG, 27)
33HANDLE_ERRNO(ENOSPC, 28)
34HANDLE_ERRNO(ESPIPE, 29)
35HANDLE_ERRNO(EROFS, 30)
36HANDLE_ERRNO(ENOSYS, 88)
37HANDLE_ERRNO(ENAMETOOLONG, 91)
38
39#undef HANDLE_ERRNO
40

source code of lldb/source/Plugins/Process/gdb-remote/GDBRemoteErrno.def