summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-06-06 10:32:23 (GMT)
committerGitHub <noreply@github.com>2022-06-06 10:32:23 (GMT)
commit20be4a11fe40149876808bafd6fa0876278e591a (patch)
treeb5bc3ee61d84132243b4228b3b183f72235899be /Tools
parenta848a9894d2b23386512df875a29c0ff6353e78f (diff)
downloadcpython-20be4a11fe40149876808bafd6fa0876278e591a.zip
cpython-20be4a11fe40149876808bafd6fa0876278e591a.tar.gz
cpython-20be4a11fe40149876808bafd6fa0876278e591a.tar.bz2
gh-90473: WASI requires proper open(2) flags (GH-93529)
(cherry picked from commit 4c71d22c4f9fdde6f2234e7dc6a862419cd6fd98) Co-authored-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Tools')
-rw-r--r--Tools/wasm/README.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tools/wasm/README.md b/Tools/wasm/README.md
index 6bb9bd9..3b7a7ae 100644
--- a/Tools/wasm/README.md
+++ b/Tools/wasm/README.md
@@ -235,6 +235,9 @@ are:
call read/write/accept on a file descriptor that is passed into the process.
- ``socket.gethostname()`` and host name resolution APIs like
``socket.gethostbyname()`` are not implemented and always fail.
+- ``open(2)`` checks flags more strictly. Caller must pass either
+ ``O_RDONLY``, ``O_RDWR``, or ``O_WDONLY`` to ``os.open``. Directory file
+ descriptors must be created with flags ``O_RDONLY | O_DIRECTORY``.
- ``chmod(2)`` is not available. It's not possible to modify file permissions,
yet. A future version of WASI may provide a limited ``set_permissions`` API.
- User/group related features like ``os.chown()``, ``os.getuid``, etc. are