Skip to content

Commit 56071fd

Browse files
authored
Merge pull request #9731 from dhalbert/errno-additions
2 parents cdcff79 + 95b5d7a commit 56071fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

py/moderrno.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
// This list can be defined per port in mpconfigport.h to tailor it to a
3636
// specific port's needs. If it's not defined then we provide a default.
3737
#ifndef MICROPY_PY_ERRNO_LIST
38+
// CIRCUITPY-CHANGE: add ENOSPC and EROFS, because they are in mp_common_errno_to_str().
3839
#define MICROPY_PY_ERRNO_LIST \
3940
X(EPERM) \
4041
X(ENOENT) \
@@ -47,6 +48,8 @@
4748
X(ENODEV) \
4849
X(EISDIR) \
4950
X(EINVAL) \
51+
X(ENOSPC) \
52+
X(EROFS) \
5053
X(EOPNOTSUPP) \
5154
X(EADDRINUSE) \
5255
X(ECONNABORTED) \

0 commit comments

Comments
 (0)