blob: b5b1b676dacc352d2ae06165a7c0cad450c2198f [file] [log] [blame]
Siva Chandra Reddy5e750b82022-12-20 08:45:501//===-- Definition of generic error number macros -------------------------===//
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
Nick Desaulniers330793c2024-02-28 20:53:569#ifndef LLVM_LIBC_MACROS_GENERIC_ERROR_NUMBER_MACROS_H
10#define LLVM_LIBC_MACROS_GENERIC_ERROR_NUMBER_MACROS_H
Siva Chandra Reddy5e750b82022-12-20 08:45:5011
12#define EPERM 1
13#define ENOENT 2
14#define ESRCH 3
15#define EINTR 4
16#define EIO 5
17#define ENXIO 6
18#define E2BIG 7
19#define ENOEXEC 8
20#define EBADF 9
21#define ECHILD 10
22#define EAGAIN 11
23#define ENOMEM 12
24#define EACCES 13
25#define EFAULT 14
26#define ENOTBLK 15
27#define EBUSY 16
28#define EEXIST 17
29#define EXDEV 18
30#define ENODEV 19
31#define ENOTDIR 20
32#define EISDIR 21
33#define EINVAL 22
34#define ENFILE 23
35#define EMFILE 24
36#define ENOTTY 25
37#define ETXTBSY 26
38#define EFBIG 27
39#define ENOSPC 28
40#define ESPIPE 29
41#define EROFS 30
42#define EMLINK 31
43#define EPIPE 32
44#define EDOM 33
45#define ERANGE 34
Siva Chandra Reddy4f1fe192023-05-15 22:12:2646#define EILSEQ 35
Robin Caloudis561c42d2024-05-13 21:56:0147#define ENAMETOOLONG 36
48#define EOVERFLOW 75
Siva Chandra Reddy5e750b82022-12-20 08:45:5049
Nick Desaulniers330793c2024-02-28 20:53:5650#endif // LLVM_LIBC_MACROS_GENERIC_ERROR_NUMBER_MACROS_H