forked from atmelcorp/atmel-software-package
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherrno.h
123 lines (119 loc) · 6.27 KB
/
errno.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
/* ----------------------------------------------------------------------------
* SAM Software Package License
* ----------------------------------------------------------------------------
* Copyright (c) 2016, Atmel Corporation
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
* this list of conditions and the disclaimer below.
*
* Atmel's name may not be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
* DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* ----------------------------------------------------------------------------
*/
#ifndef ERRNO_H_
#define ERRNO_H_
/*
* List of system errors numbers from:
*
* The Open Group Base Specifications Issue 7
* IEEE Std 1003.1-2008, 2016 Edition
* http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/errno.h.html
*/
#define E2BIG ( 1) /* Argument list too long */
#define EACCES ( 2) /* Permission denied */
#define EADDRINUSE ( 3) /* Address in use */
#define EADDRNOTAVAIL ( 4) /* Address not available */
#define EAFNOSUPPORT ( 5) /* Address family not supported */
#define EAGAIN ( 6) /* Resource unavailable, try again */
#define EALREADY ( 7) /* Connection already in progress */
#define EBADF ( 8) /* Bad file descriptor */
#define EBADMSG ( 9) /* Bad message */
#define EBUSY (10) /* Device or resource busy */
#define ECANCELED (11) /* Operation canceled */
#define ECHILD (12) /* No child processes */
#define ECONNABORTED (13) /* Connection aborted */
#define ECONNREFUSED (14) /* Connection refused */
#define ECONNRESET (15) /* Connection reset */
#define EDEADLK (16) /* Resource deadlock would occur */
#define EDESTADDRREQ (17) /* Destination address required */
#define EDOM (18) /* Mathematics argument out of domain of function */
#define EDQUOT (19) /* Reserved */
#define EEXIST (20) /* File exists */
#define EFAULT (21) /* Bad address */
#define EFBIG (22) /* File too large */
#define EHOSTUNREACH (23) /* Host is unreachable */
#define EIDRM (24) /* Identifier removed */
#define EILSEQ (25) /* Illegal byte sequence */
#define EINPROGRESS (26) /* Operation in progress */
#define EINTR (27) /* Interrupted function */
#define EINVAL (28) /* Invalid argument */
#define EIO (29) /* I/O error */
#define EISCONN (30) /* Socket is connected */
#define EISDIR (31) /* Is a directory */
#define ELOOP (32) /* Too many levels of symbolic links */
#define EMFILE (33) /* File descriptor value too large */
#define EMLINK (34) /* Too many links */
#define EMSGSIZE (35) /* Message too large */
#define EMULTIHOP (36) /* Reserved */
#define ENAMETOOLONG (37) /* Filename too long */
#define ENETDOWN (38) /* Network is down */
#define ENETRESET (39) /* Connection aborted by network */
#define ENETUNREACH (40) /* Network unreachable */
#define ENFILE (41) /* Too many files open in system */
#define ENOBUFS (42) /* No buffer space available */
#define ENODATA (43) /* No message is available on the STREAM head read queue */
#define ENODEV (44) /* No such device */
#define ENOENT (45) /* No such file or directory */
#define ENOEXEC (46) /* Executable file format error */
#define ENOLCK (47) /* No locks available */
#define ENOLINK (48) /* Reserved */
#define ENOMEM (49) /* Not enough space */
#define ENOMSG (50) /* No message of the desired type */
#define ENOPROTOOPT (51) /* Protocol not available */
#define ENOSPC (52) /* No space left on device */
#define ENOSR (53) /* No STREAM resources */
#define ENOSTR (54) /* Not a STREAM */
#define ENOSYS (55) /* Functionality not supported */
#define ENOTCONN (56) /* The socket is not connected */
#define ENOTDIR (57) /* Not a directory or a symbolic link to a directory */
#define ENOTEMPTY (58) /* Directory not empty */
#define ENOTRECOVERABLE (59) /* State not recoverable */
#define ENOTSOCK (60) /* Not a socket */
#define ENOTSUP (61) /* Not supported */
#define ENOTTY (62) /* Inappropriate I/O control operation */
#define ENXIO (63) /* No such device or address */
#define EOPNOTSUPP (64) /* Operation not supported on socket */
#define EOVERFLOW (65) /* Value too large to be stored in data type */
#define EOWNERDEAD (66) /* Previous owner died */
#define EPERM (67) /* Operation not permitted */
#define EPIPE (68) /* Broken pipe */
#define EPROTONOSUPPORT (69) /* Protocol not supported */
#define EPROTO (70) /* Protocol error */
#define EPROTOTYPE (71) /* Protocol wrong type for socket */
#define ERANGE (72) /* Result too large */
#define EROFS (73) /* Read-only file system */
#define ESPIPE (74) /* Invalid seek */
#define ESRCH (75) /* No such process */
#define ESTALE (76) /* Reserved */
#define ETIMEDOUT (77) /* Connection timed out */
#define ETIME (78) /* Stream ioctl() timeout */
#define ETXTBSY (79) /* Text file busy */
#define EWOULDBLOCK (80) /* Operation would block */
#define EXDEV (81) /* Cross-device link */
#endif /* ERRNO_H_ */