Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add errno.EROFS and errno.ENOSPC #9731

Merged
merged 1 commit into from
Oct 21, 2024
Merged

Conversation

dhalbert
Copy link
Collaborator

@dhalbert dhalbert commented Oct 18, 2024

Motivated by https://forums.adafruit.com/viewtopic.php?t=214213. Fixes #9733

errno.EROFS and errno.NOSPC didn't exist, but they get nicer error messages already in mp_common_errno_to_str(). Add them. A user wanted to check for errno.EROFS and was surprised it was not available. errno.EROFS is common, given that CIRCUITPY is read-only when connected to USB.

These have not been added to the smallest builds, for space reasons.

Copy link
Member

@jepler jepler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, makes sense.

@jepler jepler merged commit 56071fd into adafruit:main Oct 21, 2024
562 checks passed
@jepler jepler deleted the errno-additions branch October 21, 2024 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

errno.EROFS isn't available but its error string is
2 participants