gh-90473: WASI requires proper open(2) flags (GH-93529)

(cherry picked from commit 4c71d22c4f9fdde6f2234e7dc6a862419cd6fd98)

Co-authored-by: Christian Heimes <christian@python.org>
3 files changed