no-OS
errno.h
Go to the documentation of this file.
1 /***************************************************************************/
38 #ifndef MBED_ERRNO_H_
39 #define MBED_ERRNO_H_
40 
41 // Platform drivers needs to be C-compatible to work with other drivers
42 #ifdef __cplusplus
43 extern "C"
44 {
45 #endif // _cplusplus
46 
47 /******************************************************************************/
48 /********************** Macros and Constants Definitions **********************/
49 /******************************************************************************/
50 
51 #if defined(__ARMCC_VERSION)
52 #if !defined(__ELASTERROR)
53 #define __ELASTERROR 2000
54 #endif
55 #if !defined(ENOTSUP)
56 #define ENOTSUP 9926
57 #endif
58 #if !defined(EBADMSG)
59 #define EBADMSG 9905
60 #endif
61 #if !defined(ETIME)
62 #define ETIME 9935
63 #endif
64 #if !defined(EACCES)
65 #define EACCES 9973
66 #endif
67 #if !defined(ETIMEDOUT)
68 #define ETIMEDOUT 9938
69 #endif
70 #if !defined(ENODEV)
71 #define ENODEV 9967
72 #endif
73 #if !defined(EFAULT)
74 #define EFAULT 9948
75 #endif
76 #if !defined(EIO)
77 #define EIO 9961
78 #endif
79 #if !defined(ENOENT)
80 #define ENOENT 9968
81 #endif
82 #if !defined(EBUSY)
83 #define EBUSY 9952
84 #endif
85 #if !defined(EAGAIN)
86 #define EAGAIN 9976
87 #endif
88 #if !defined(EINVAL)
89 #define EINVAL 9943
90 #endif
91 #if !defined(ENOMEM)
92 #define ENOMEM 9971
93 #endif
94 #if !defined(ENOSYS)
95 #define ENOSYS 88
96 #endif
97 #if !defined(ENOTCONN)
98 #define ENOTCONN 128
99 #endif
100 
101 // End of defined(__ARMCC_VERSION)
102 #endif
103 
104 #include_next <errno.h>
105 
106 #ifdef __cplusplus
107 }
108 #endif // _cplusplus
109 
110 #endif // MBED_ERRNO_H_