Skip to content
Merged
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
5 changes: 3 additions & 2 deletions Doc/library/os.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3656,9 +3656,10 @@ written in Python, such as a mail server's external command delivery program.

.. data:: EX_OK

Exit code that means no error occurred.
Exit code that means no error occurred. May be taken from the defined value of
``EXIT_SUCCESS`` on some platforms. Generally has a value of zero.

.. availability:: Unix.
.. availability:: Unix, Windows.


.. data:: EX_USAGE
Expand Down
4 changes: 4 additions & 0 deletions Modules/posixmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
# include <pathcch.h>
#endif

#if !defined(EX_OK) && defined(EXIT_SUCCESS)
#define EX_OK EXIT_SUCCESS
Comment thread
SamuelMarks marked this conversation as resolved.
#endif

#ifdef __VXWORKS__
# include "pycore_bitutils.h" // _Py_popcount32()
#endif
Expand Down