Zephyr API Documentation  3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
errno.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 1984-1999, 2012 Wind River Systems, Inc.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/*
8 * Copyright (c) 1982, 1986 Regents of the University of California.
9 * All rights reserved. The Berkeley software License Agreement
10 * specifies the terms and conditions for redistribution.
11 *
12 * @(#)errno.h 7.1 (Berkeley) 6/4/86
13 */
14
20#ifndef ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_ERRNO_H_
21#define ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_ERRNO_H_
22
32
33#ifdef __cplusplus
34extern "C" {
35#endif
36
37#define errno (*z_errno())
38
39#define EPERM 1
40#define ENOENT 2
41#define ESRCH 3
42#define EINTR 4
43#define EIO 5
44#define ENXIO 6
45#define E2BIG 7
46#define ENOEXEC 8
47#define EBADF 9
48#define ECHILD 10
49#define EAGAIN 11
50#define ENOMEM 12
51#define EACCES 13
52#define EFAULT 14
53#define ENOTBLK 15
54#define EBUSY 16
55#define EEXIST 17
56#define EXDEV 18
57#define ENODEV 19
58#define ENOTDIR 20
59#define EISDIR 21
60#define EINVAL 22
61#define ENFILE 23
62#define EMFILE 24
63#define ENOTTY 25
64#define ETXTBSY 26
65#define EFBIG 27
66#define ENOSPC 28
67#define ESPIPE 29
68#define EROFS 30
69#define EMLINK 31
70#define EPIPE 32
71#define EDOM 33
72#define ERANGE 34
73#define ENOMSG 35
74#define EDEADLK 45
75#define ENOLCK 46
76#define ENOSTR 60
77#define ENODATA 61
78#define ETIME 62
79#define ENOSR 63
80#define EPROTO 71
81#define EBADMSG 77
82#define ENOSYS 88
83#define ENOTEMPTY 90
84#define ENAMETOOLONG 91
85#define ELOOP 92
86#define EOPNOTSUPP 95
87#define EPFNOSUPPORT 96
88#define ECONNRESET 104
89#define ENOBUFS 105
90#define EAFNOSUPPORT 106
91#define EPROTOTYPE 107
92#define ENOTSOCK 108
93#define ENOPROTOOPT 109
94#define ESHUTDOWN 110
95#define ECONNREFUSED 111
96#define EADDRINUSE 112
97#define ECONNABORTED 113
98#define ENETUNREACH 114
99#define ENETDOWN 115
100#define ETIMEDOUT 116
101#define EHOSTDOWN 117
102#define EHOSTUNREACH 118
103#define EINPROGRESS 119
104#define EALREADY 120
105#define EDESTADDRREQ 121
106#define EMSGSIZE 122
107#define EPROTONOSUPPORT 123
108#define ESOCKTNOSUPPORT 124
109#define EADDRNOTAVAIL 125
110#define ENETRESET 126
111#define EISCONN 127
112#define ENOTCONN 128
113#define ETOOMANYREFS 129
114#define ENOTSUP 134
115#define EILSEQ 138
116#define EOVERFLOW 139
117#define ECANCELED 140
119#define EWOULDBLOCK EAGAIN
125#ifdef __cplusplus
126}
127#endif
128
129#endif /* ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_ERRNO_H_ */