Skip to content

gh-85046: Add EHWPOISON error code #126397

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

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Doc/library/errno.rst
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,13 @@ defined by the module. The specific list of defined symbols is available as
No route to host


.. data:: EHWPOISON

Memory page has hardware error

.. versionadded:: next


.. data:: EALREADY

Operation already in progress. This error is mapped to the
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add ``EHWPOISON`` error code to :mod:`errno`.
3 changes: 3 additions & 0 deletions Modules/errnomodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,9 @@ errno_exec(PyObject *module)
#ifdef ENOKEY
add_errcode("ENOKEY", ENOKEY, "Required key not available");
#endif
#ifdef EHWPOISON
add_errcode("EHWPOISON", EHWPOISON, "Memory page has hardware error");
#endif
#ifdef EKEYEXPIRED
add_errcode("EKEYEXPIRED", EKEYEXPIRED, "Key has expired");
#endif
Expand Down
Loading