1 parent 0d6d315 commit 47bf6baCopy full SHA for 47bf6ba
1 file changed
py/moduerrno.c
@@ -32,12 +32,27 @@
32
33
#if MICROPY_PY_UERRNO
34
35
+// This list could be defined per port in mpconfigport.h to tailor it to a
36
+// specific port's needs. But for now we have a common list.
37
#define ERRNO_LIST \
38
X(EPERM) \
39
X(ENOENT) \
40
X(EIO) \
41
+ X(EBADF) \
42
X(EAGAIN) \
43
+ X(ENOMEM) \
44
+ X(ENODEV) \
45
+ X(EINVAL) \
46
+ X(EOPNOTSUPP) \
47
+ X(EADDRINUSE) \
48
+ X(ECONNABORTED) \
49
+ X(ECONNRESET) \
50
+ X(ENOBUFS) \
51
+ X(ENOTCONN) \
52
X(ETIMEDOUT) \
53
+ X(EHOSTUNREACH) \
54
+ X(EALREADY) \
55
+ X(EINPROGRESS) \
56
57
STATIC const mp_rom_map_elem_t errorcode_table[] = {
58
#define X(e) { MP_ROM_INT(MP_ ## e), MP_ROM_QSTR(MP_QSTR_## e) },
0 commit comments