]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-95174: Handle missing dup() and constants in WASI (GH-95229)
authorChristian Heimes <christian@python.org>
Tue, 26 Jul 2022 09:16:51 +0000 (11:16 +0200)
committerGitHub <noreply@github.com>
Tue, 26 Jul 2022 09:16:51 +0000 (11:16 +0200)
commit0d35a59ce3242b7326890a8c8cc41b321192ec9a
tree0d165365dff1a2131594c209d16719aca25813eb
parente8f3e8f0ab8aa5d667229ce9694e6e1477e524fd
gh-95174: Handle missing dup() and constants in WASI (GH-95229)

- check for ``dup()`` libc function
- handle missing ``F_DUPFD`` in ``dup2()`` replacement function
- add workaround for WASI libc bug in MSG_TRUNC
- ESHUTDOWN is missing, use EPIPE instead
- POLLPRI is missing, define as 0 (no-op)
12 files changed:
Misc/NEWS.d/next/Build/2022-07-25-08-59-35.gh-issue-95174.g8woUW.rst [new file with mode: 0644]
Modules/clinic/posixmodule.c.h
Modules/errnomodule.c
Modules/posixmodule.c
Modules/selectmodule.c
Modules/socketmodule.c
PC/pyconfig.h
Python/dup2.c
Python/fileutils.c
configure
configure.ac
pyconfig.h.in