Skip to content

Commit 47bf6ba

Browse files
committed
py/moduerrno: Add more constants to the errno module.
1 parent 0d6d315 commit 47bf6ba

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

py/moduerrno.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,27 @@
3232

3333
#if MICROPY_PY_UERRNO
3434

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.
3537
#define ERRNO_LIST \
3638
X(EPERM) \
3739
X(ENOENT) \
3840
X(EIO) \
41+
X(EBADF) \
3942
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) \
4052
X(ETIMEDOUT) \
53+
X(EHOSTUNREACH) \
54+
X(EALREADY) \
55+
X(EINPROGRESS) \
4156

4257
STATIC const mp_rom_map_elem_t errorcode_table[] = {
4358
#define X(e) { MP_ROM_INT(MP_ ## e), MP_ROM_QSTR(MP_QSTR_## e) },

0 commit comments

Comments
 (0)