From 95b5d7a6cdfc0f85a7c17929880e46958d4860e3 Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Fri, 18 Oct 2024 16:09:46 -0400 Subject: [PATCH] Add errno.EROFS and errno.ENOSPC --- py/moderrno.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/py/moderrno.c b/py/moderrno.c index b5116bcadc7d9..140ae1cc0a640 100644 --- a/py/moderrno.c +++ b/py/moderrno.c @@ -35,6 +35,7 @@ // This list can be defined per port in mpconfigport.h to tailor it to a // specific port's needs. If it's not defined then we provide a default. #ifndef MICROPY_PY_ERRNO_LIST +// CIRCUITPY-CHANGE: add ENOSPC and EROFS, because they are in mp_common_errno_to_str(). #define MICROPY_PY_ERRNO_LIST \ X(EPERM) \ X(ENOENT) \ @@ -47,6 +48,8 @@ X(ENODEV) \ X(EISDIR) \ X(EINVAL) \ + X(ENOSPC) \ + X(EROFS) \ X(EOPNOTSUPP) \ X(EADDRINUSE) \ X(ECONNABORTED) \