classification
Title: os.EX_OK for Windows
Type: enhancement Stage: patch review
Components: Windows Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: paul.moore, samuelmarks, steve.dower, tim.golden, zach.ware
Priority: normal Keywords: patch

Created on 2021-06-06 10:40 by samuelmarks, last changed 2021-06-06 10:52 by samuelmarks.

Pull Requests
URL Status Linked Edit
PR 26559 open samuelmarks, 2021-06-06 10:41
Messages (2)
msg395203 - (view) Author: Samuel Marks (samuelmarks) * Date: 2021-06-06 10:40
Since Python 2.3 alpha 2 [19-Feb-2003] `EX_OK` has existed… but only for Unix. This adds support for Windows.
msg395204 - (view) Author: Samuel Marks (samuelmarks) * Date: 2021-06-06 10:52
`EXIT_SUCCESS` is defined in `stdlib.h`, as per https://docs.microsoft.com/en-us/cpp/c-runtime-library/exit-success-exit-failure (following the standard https://pubs.opengroup.org/onlinepubs/009695399/basedefs/stdlib.h.html)

There are also https://docs.microsoft.com/en-us/cpp/c-runtime-library/errno-constants which has many equivalents to the `<sysexists.h>` (in `<errno.h>`).

Kinda related: https://bugs.python.org/issue24053
History
Date User Action Args
2021-06-06 10:52:33samuelmarkssetmessages: + msg395204
2021-06-06 10:41:44samuelmarkssetkeywords: + patch
stage: patch review
pull_requests: + pull_request25147
2021-06-06 10:40:29samuelmarkscreate