AVR Libc Home Page
AVR Libc Development Pages
Main Page
User Manual
Library Reference
FAQ
Alphabetical Index
Example Projects
include
errno.h
Go to the documentation of this file.
1
/* Copyright (c) 2002,2007 Marek Michalkiewicz
2
All rights reserved.
3
4
Redistribution and use in source and binary forms, with or without
5
modification, are permitted provided that the following conditions are met:
6
7
* Redistributions of source code must retain the above copyright
8
notice, this list of conditions and the following disclaimer.
9
10
* Redistributions in binary form must reproduce the above copyright
11
notice, this list of conditions and the following disclaimer in
12
the documentation and/or other materials provided with the
13
distribution.
14
15
* Neither the name of the copyright holders nor the names of
16
contributors may be used to endorse or promote products derived
17
from this software without specific prior written permission.
18
19
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
23
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29
POSSIBILITY OF SUCH DAMAGE. */
30
31
/* $Id: errno.h 2427 2014-05-01 14:06:03Z amylaar $ */
32
33
#ifndef __ERRNO_H_
34
#define __ERRNO_H_ 1
35
36
/** \file */
37
/** \defgroup avr_errno <errno.h>: System Errors
38
39
\code #include <errno.h>\endcode
40
41
Some functions in the library set the global variable \c errno when an
42
error occurs. The file, \c <errno.h>, provides symbolic names for various
43
error codes.
44
45
\warning The \c errno global variable is not safe to use in a threaded or
46
multi-task system. A race condition can occur if a task is interrupted
47
between the call which sets \c error and when the task examines \c
48
errno. If another task changes \c errno during this time, the result will
49
be incorrect for the interrupted task. */
50
51
#ifdef __cplusplus
52
extern
"C"
{
53
#endif
54
55
extern
int
errno;
56
57
#ifdef __cplusplus
58
}
59
#endif
60
61
/** \ingroup avr_errno
62
\def EDOM
63
64
Domain error. */
65
#define EDOM 33
66
67
/** \ingroup avr_errno
68
\def ERANGE
69
70
Range error. */
71
#define ERANGE 34
72
73
/* ((((('E'-64)*26+('N'-64))*26+('O'-64))*26+('S'-64))*26+('Y'-64))*26+'S'-64 */
74
#define ENOSYS ((int)(66081697 & 0x7fff))
75
76
/* (((('E'-64)*26+('I'-64))*26+('N'-64))*26+('T'-64))*26+('R'-64) */
77
#define EINTR ((int)(2453066 & 0x7fff))
78
79
#define E2BIG ENOERR
80
#define EACCES ENOERR
81
#define EADDRINUSE ENOERR
82
#define EADDRNOTAVAIL ENOERR
83
#define EAFNOSUPPORT ENOERR
84
#define EAGAIN ENOERR
85
#define EALREADY ENOERR
86
#define EBADF ENOERR
87
#define EBUSY ENOERR
88
#define ECHILD ENOERR
89
#define ECONNABORTED ENOERR
90
#define ECONNREFUSED ENOERR
91
#define ECONNRESET ENOERR
92
#define EDEADLK ENOERR
93
#define EDESTADDRREQ ENOERR
94
#define EEXIST ENOERR
95
#define EFAULT ENOERR
96
#define EFBIG ENOERR
97
#define EHOSTUNREACH ENOERR
98
#define EILSEQ ENOERR
99
#define EINPROGRESS ENOERR
100
#define EINVAL ENOERR
101
#define EIO ENOERR
102
#define EISCONN ENOERR
103
#define EISDIR ENOERR
104
#define ELOOP ENOERR
105
#define EMFILE ENOERR
106
#define EMLINK ENOERR
107
#define EMSGSIZE ENOERR
108
#define ENAMETOOLONG ENOERR
109
#define ENETDOWN ENOERR
110
#define ENETRESET ENOERR
111
#define ENETUNREACH ENOERR
112
#define ENFILE ENOERR
113
#define ENOBUFS ENOERR
114
#define ENODEV ENOERR
115
#define ENOENT ENOERR
116
#define ENOEXEC ENOERR
117
#define ENOLCK ENOERR
118
#define ENOMEM ENOERR
119
#define ENOMSG ENOERR
120
#define ENOPROTOOPT ENOERR
121
#define ENOSPC ENOERR
122
#define ENOTCONN ENOERR
123
#define ENOTDIR ENOERR
124
#define ENOTEMPTY ENOERR
125
#define ENOTSOCK ENOERR
126
#define ENOTTY ENOERR
127
#define ENXIO ENOERR
128
#define EOPNOTSUPP ENOERR
129
#define EPERM ENOERR
130
#define EPIPE ENOERR
131
#define EPROTONOSUPPORT ENOERR
132
#define EPROTOTYPE ENOERR
133
#define EROFS ENOERR
134
#define ESPIPE ENOERR
135
#define ESRCH ENOERR
136
#define ETIMEDOUT ENOERR
137
#define EWOULDBLOCK ENOERR
138
#define EXDEV ENOERR
139
140
/* ((((('E'-64)*26+('N'-64))*26+('O'-64))*26+('E'-64))*26+('R'-64))*26+'R'-64 */
141
#define ENOERR ((int)(66072050 & 0xffff))
142
143
#endif
Automatically generated by Doxygen 1.8.7 on Tue Aug 12 2014.