Zephyr API Documentation  3.6.99
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
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
38#define errno (*z_errno())
39
40#define EPERM 1
41#define ENOENT 2
42#define ESRCH 3
43#define EINTR 4
44#define EIO 5
45#define ENXIO 6
46#define E2BIG 7
47#define ENOEXEC 8
48#define EBADF 9
49#define ECHILD 10
50#define EAGAIN 11
51#define ENOMEM 12
52#define EACCES 13
53#define EFAULT 14
54#define ENOTBLK 15
55#define EBUSY 16
56#define EEXIST 17
57#define EXDEV 18
58#define ENODEV 19
59#define ENOTDIR 20
60#define EISDIR 21
61#define EINVAL 22
62#define ENFILE 23
63#define EMFILE 24
64#define ENOTTY 25
65#define ETXTBSY 26
66#define EFBIG 27
67#define ENOSPC 28
68#define ESPIPE 29
69#define EROFS 30
70#define EMLINK 31
71#define EPIPE 32
72#define EDOM 33
73#define ERANGE 34
74#define ENOMSG 35
75#define EDEADLK 45
76#define ENOLCK 46
77#define ENOSTR 60
78#define ENODATA 61
79#define ETIME 62
80#define ENOSR 63
81#define EPROTO 71
82#define EBADMSG 77
83#define ENOSYS 88
84#define ENOTEMPTY 90
85#define ENAMETOOLONG 91
86#define ELOOP 92
87#define EOPNOTSUPP 95
88#define EPFNOSUPPORT 96
89#define ECONNRESET 104
90#define ENOBUFS 105
91#define EAFNOSUPPORT 106
92#define EPROTOTYPE 107
93#define ENOTSOCK 108
94#define ENOPROTOOPT 109
95#define ESHUTDOWN 110
96#define ECONNREFUSED 111
97#define EADDRINUSE 112
98#define ECONNABORTED 113
99#define ENETUNREACH 114
100#define ENETDOWN 115
101#define ETIMEDOUT 116
102#define EHOSTDOWN 117
103#define EHOSTUNREACH 118
104#define EINPROGRESS 119
105#define EALREADY 120
106#define EDESTADDRREQ 121
107#define EMSGSIZE 122
108#define EPROTONOSUPPORT 123
109#define ESOCKTNOSUPPORT 124
110#define EADDRNOTAVAIL 125
111#define ENETRESET 126
112#define EISCONN 127
113#define ENOTCONN 128
114#define ETOOMANYREFS 129
115#define ENOTSUP 134
116#define EILSEQ 138
117#define EOVERFLOW 139
118#define ECANCELED 140
120#define EWOULDBLOCK EAGAIN
126#ifdef __cplusplus
127}
128#endif
129
130#endif /* ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_ERRNO_H_ */