py/moduerrno: Add more constants to the errno module.
This commit is contained in:
parent
0d6d315ba6
commit
47bf6ba61a
@ -32,12 +32,27 @@
|
|||||||
|
|
||||||
#if MICROPY_PY_UERRNO
|
#if MICROPY_PY_UERRNO
|
||||||
|
|
||||||
|
// This list could be defined per port in mpconfigport.h to tailor it to a
|
||||||
|
// specific port's needs. But for now we have a common list.
|
||||||
#define ERRNO_LIST \
|
#define ERRNO_LIST \
|
||||||
X(EPERM) \
|
X(EPERM) \
|
||||||
X(ENOENT) \
|
X(ENOENT) \
|
||||||
X(EIO) \
|
X(EIO) \
|
||||||
|
X(EBADF) \
|
||||||
X(EAGAIN) \
|
X(EAGAIN) \
|
||||||
|
X(ENOMEM) \
|
||||||
|
X(ENODEV) \
|
||||||
|
X(EINVAL) \
|
||||||
|
X(EOPNOTSUPP) \
|
||||||
|
X(EADDRINUSE) \
|
||||||
|
X(ECONNABORTED) \
|
||||||
|
X(ECONNRESET) \
|
||||||
|
X(ENOBUFS) \
|
||||||
|
X(ENOTCONN) \
|
||||||
X(ETIMEDOUT) \
|
X(ETIMEDOUT) \
|
||||||
|
X(EHOSTUNREACH) \
|
||||||
|
X(EALREADY) \
|
||||||
|
X(EINPROGRESS) \
|
||||||
|
|
||||||
STATIC const mp_rom_map_elem_t errorcode_table[] = {
|
STATIC const mp_rom_map_elem_t errorcode_table[] = {
|
||||||
#define X(e) { MP_ROM_INT(MP_ ## e), MP_ROM_QSTR(MP_QSTR_## e) },
|
#define X(e) { MP_ROM_INT(MP_ ## e), MP_ROM_QSTR(MP_QSTR_## e) },
|
||||||
|
Loading…
Reference in New Issue
Block a user