8000 gh-85046: Adding missing errno system symbols descriptions by YoSTEALTH · Pull Request #20665 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-85046: Adding missing errno system symbols descriptions #20665

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 10 commits 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
232 changes: 232 additions & 0 deletions Doc/library/errno.rst
10000
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,7 @@ defined by the module. The specific list of defined symbols is available as

Quota exceeded


.. data:: EQFULL

Interface output queue is full
Expand All @@ -666,3 +667,234 @@ defined by the module. The specific list of defined symbols is available as
.. availability:: WASI, FreeBSD

.. versionadded:: 3.11.1


.. data:: ENOMEDIUM

No medium found


.. data:: EMEDIUMTYPE

Wrong medium type


.. data:: ECANCELED

Operation Canceled


.. data:: ENOKEY

Required key not available


.. data:: EKEYEXPIRED

Key has expired


.. data:: EKEYREVOKED

Key has been revoked


.. data:: EKEYREJECTED

Key was rejected by service


.. data:: EOWNERDEAD

Owner died


.. data:: ENOTRECOVERABLE

State not recoverable


.. data:: ERFKILL

Operation not possible due to RF-kill


.. data:: EHWPOISON
Copy link
Contributor

Choose a reason for hiding this comment

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

This one is not present in Modules/errnomodule.c

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks, added EHWPOISON


Memory page has hardware error


.. data:: ENOTSUP

Operation not supported

.. availability:: Unix.


.. data:: ELOCKUNMAPPED

Locked lock was unmapped

.. availability:: Unix.


.. data:: ENOTACTIVE

Facility is not active

.. availability:: Unix.


.. data:: EAUTH

Authentication error

.. availability:: OSX.


.. data:: EBADARCH

Bad CPU type in executable

.. availability:: OSX.


.. data:: EBADEXEC

Bad executable (or shared library)

.. availability:: OSX.


.. data:: EBADMACHO

Malformed Mach-o file

.. availability:: OSX.


.. data:: EBADRPC

RPC struct is bad

.. availability:: OSX.


.. data:: EDEVERR

Device error

.. availability:: OSX.


.. data:: EFTYPE

Inappropriate file type or format

.. availability:: OSX.


.. data:: ENEEDAUTH

Need authenticator

.. availability:: OSX.


.. data:: ENEEDAUTH

Need authenticator

.. availability:: OSX.


.. data:: ENOATTR

Attribute not found

.. availability:: OSX.


.. data:: ENOPOLICY

Policy not found

.. availability:: OSX.


.. data:: EPROCLIM

Too many processes

.. availability:: OSX.


.. data:: EPROCUNAVAIL

Bad procedure for program

.. availability:: OSX.


.. data:: EPROGMISMATCH

Program version wrong

.. availability:: OSX.


.. data:: EPROGUNAVAIL

RPC prog. not avail

.. availability:: OSX.


.. data:: EPWROFF

Device power is off

.. availability:: OSX.


.. data:: ERPCMISMATCH

RPC version wrong

.. availability:: OSX.


.. data:: ESHLIBVERS

Shared library version mismatch

.. availability:: OSX.


.. data:: WSASYSNOTREADY

Network subsystem is unavailable.

.. availability:: Windows.


.. data:: WSANOTINITIALISED

Successful WSAStartup not yet performed.

.. availability:: Windows.


.. data:: WSAEDISCON

Graceful shutdown in progress.

.. availability:: Windows.


.. data:: WSAVERNOTSUPPORTED

Winsock.dll version out of range.

.. availability:: Windows.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added :data:`errno.EHWPOISON` descriptions into :mod:`errno`
16 changes: 10 additions & 6 deletions Modules/errnomodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ errno_exec(PyObject *module)
add_errcode("EBFONT", EBFONT, "Bad font file format");
#endif
#ifdef EDEADLOCK
add_errcode("EDEADLOCK", EDEADLOCK, "Error EDEADLOCK");
add_errcode("EDEADLOCK", EDEADLOCK, "File locking deadlock error");
#endif
#ifdef ETOOMANYREFS
add_errcode("ETOOMANYREFS", ETOOMANYREFS, "Too many references: cannot splice");
Expand Down Expand Up @@ -671,19 +671,19 @@ errno_exec(PyObject *module)
add_errcode("WSAESTALE", WSAESTALE, "Stale NFS file handle");
#endif
#ifdef WSAVERNOTSUPPORTED
add_errcode("WSAVERNOTSUPPORTED", WSAVERNOTSUPPORTED, "Error WSAVERNOTSUPPORTED");
add_errcode("WSAVERNOTSUPPORTED", WSAVERNOTSUPPORTED, "Winsock.dll version out of range.");
#endif
#ifdef WSAENETUNREACH
add_errcode("WSAENETUNREACH", WSAENETUNREACH, "Network is unreachable");
#endif
#ifdef WSAEPROCLIM
add_errcode("WSAEPROCLIM", WSAEPROCLIM, "Error WSAEPROCLIM");
add_errcode("WSAEPROCLIM", WSAEPROCLIM, "Too many processes.");
#endif
#ifdef WSAEFAULT
add_errcode("WSAEFAULT", WSAEFAULT, "Bad address");
#endif
#ifdef WSANOTINITIALISED
add_errcode("WSANOTINITIALISED", WSANOTINITIALISED, "Error WSANOTINITIALISED");
add_errcode("WSANOTINITIALISED", WSANOTINITIALISED, "Successful WSAStartup not yet performed.");
#endif
#ifdef WSAEUSERS
add_errcode("WSAEUSERS", WSAEUSERS, "Too many users");
Expand Down Expand Up @@ -743,7 +743,7 @@ errno_exec(PyObject *module)
add_errcode("WSAENOBUFS", WSAENOBUFS, "No buffer space available");
#endif
#ifdef WSAEDISCON
add_errcode("WSAEDISCON", WSAEDISCON, "Error WSAEDISCON");
add_errcode("WSAEDISCON", WSAEDISCON, "Graceful shutdown in progress.");
#endif
#ifdef WSAEINTR
add_errcode("WSAEINTR", WSAEINTR, "Interrupted system call");
Expand All @@ -767,7 +767,7 @@ errno_exec(PyObject *module)
add_errcode("WSAEPROTONOSUPPORT", WSAEPROTONOSUPPORT, "Protocol not supported");
#endif
#ifdef WSASYSNOTREADY
add_errcode("WSASYSNOTREADY", WSASYSNOTREADY, "Error WSASYSNOTREADY");
add_errcode("WSASYSNOTREADY", WSASYSNOTREADY, "Network subsystem is unavailable.");
#endif
#ifdef WSAEWOULDBLOCK
add_errcode("WSAEWOULDBLOCK", WSAEWOULDBLOCK, "Operation would block");
Expand Down Expand Up @@ -853,6 +853,10 @@ errno_exec(PyObject *module)
#ifdef ERFKILL
add_errcode("ERFKILL", ERFKILL, "Operation not possible due to RF-kill");
#endif
#ifdef EHWPOISON
add_errcode("EHWPOISON", EHWPOISON, "Memory page has hardware error");
#endif


/* Solaris-specific errnos */
#ifdef ECANCELED
Expand Down
0