René's URL Explorer Experiment


Title: Align wasm32-unknown errno values with WASI preview1 by youknowdot · Pull Request #9868 · RustPython/RustPython · GitHub

Open Graph Title: Align wasm32-unknown errno values with WASI preview1 by youknowdot · Pull Request #9868 · RustPython/RustPython

X Title: Align wasm32-unknown errno values with WASI preview1 by youknowdot · Pull Request #9868 · RustPython/RustPython

Description: Summary Implement the independent errno stage (step 3) of #9853, not the complete host I/O sandbox. Align the 31 currently exported wasm32-unknown-unknown errno names with WASI preview1. Native host errno values and open flags are unchanged. Pass WASI host errors through directly instead of translating to BSD values or collapsing unlisted errors into EIO. Remove wasm ESHUTDOWN: WASI does not define it, and the old BSD value collides with WASI ENOTSUP. Export the existing ENOTCAPABLE constant on wasip1 too. Extend the existing filesystem contract with exception-class checks and an optional cross-guest errno-table comparison (supply both runtime/module pairs). Document the browser-facing numeric change. This does not add missing errno names, change capability checks, implement the native sandbox, or grow the syscall surface. Validation Actual small wasm32-unknown-unknown and wasm32-wasip1 modules executed under Node: all 31 exported values equal WASI libc. Actual guest wasi_p1::close/error-checking path executed under Node with a host import returning each WASI errno 1–76: all values preserved. cargo check -p rustpython-host_env --target wasm32-unknown-unknown --features host_io passed. cargo check -p rustpython-vm --target wasm32-unknown-unknown --no-default-features --features compiler,host_io passed. Targeted host_env Clippy passed with the pre-existing readline.rs unnecessary-wraps warning; -D warnings fails on that warning. Existing errno unit test, fmt, changed-file pre-commit checks passed. The wasm checks used the unsupported getrandom backend. Full Python filesystem-contract runs, workspace/C-API tests, full workspace Clippy and performance measurements have not run locally (limited disk); CI is pending. The cross-guest comparison requires both runtimes/modules and otherwise skips, while the existing single-mode commands remain supported. AI assistance: implementation, inspection and validation by OpenAI Codex, at the maintainer's request. Summary by CodeRabbit Bug Fixes WebAssembly builds now use WASI preview1 values for supported errno constants, while native builds retain platform-specific values. EAGAIN and EWOULDBLOCK remain aliases. ESHUTDOWN is no longer available on wasm32-unknown. WASI errors now retain their original error numbers when converted to runtime errors. Documentation Added guidance on errno compatibility for no-JavaScript and browser WebAssembly builds, including using symbolic errno constants.

Open Graph Description: Summary Implement the independent errno stage (step 3) of #9853, not the complete host I/O sandbox. Align the 31 currently exported wasm32-unknown-unknown errno names with WASI preview1. Native ho...

X Description: Summary Implement the independent errno stage (step 3) of #9853, not the complete host I/O sandbox. Align the 31 currently exported wasm32-unknown-unknown errno names with WASI preview1. Native ho...

Opengraph URL: https://github.com/RustPython/RustPython/pull/9868

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:3e68f5b4-929f-4b99-ffe0-8c62bee76a61
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE704:D1D28:10DA5E3:1667C44:6B01E403
html-safe-nonce9366aa3363e853d8b76fdb55d0585d9b09f4d204e689f759cc16ed0f51069afe
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzA0OkQxRDI4OjEwREE1RTM6MTY2N0M0NDo2QjAxRTQwMyIsInZpc2l0b3JfaWQiOiIyMzA0Nzk0NTc0MTA5OTkyOTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca0a4e22ab2f79b5f80afc4587c593e16e51af68d430cd55a81c735accbcefa3f
hovercard-subject-tagpull_request:5330762373
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/9868/files
twitter:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
og:image:altSummary Implement the independent errno stage (step 3) of #9853, not the complete host I/O sandbox. Align the 31 currently exported wasm32-unknown-unknown errno names with WASI preview1. Native ho...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git
octolytics-dimension-user_id39710557
octolytics-dimension-user_loginRustPython
octolytics-dimension-repository_id135201145
octolytics-dimension-repository_nwoRustPython/RustPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id135201145
octolytics-dimension-repository_network_root_nwoRustPython/RustPython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/9868/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9868%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9868%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=RustPython%2FRustPython
Reloadhttps://github.com/RustPython/RustPython/pull/9868/files
Reloadhttps://github.com/RustPython/RustPython/pull/9868/files
Reloadhttps://github.com/RustPython/RustPython/pull/9868/files
RustPythonhttps://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Codehttps://github.com/RustPython/RustPython
Issues195 (195)https://github.com/RustPython/RustPython/issues
Pull requests133 (133)https://github.com/RustPython/RustPython/pulls
Discussionshttps://github.com/RustPython/RustPython/discussions
Actionshttps://github.com/RustPython/RustPython/actions
Projectshttps://github.com/RustPython/RustPython/projects
Wikihttps://github.com/RustPython/RustPython/wiki
Security and qualityhttps://github.com/RustPython/RustPython/security
Insightshttps://github.com/RustPython/RustPython/insights
Sign up for GitHub https://github.com/signup?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
youknowonehttps://github.com/youknowone
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
youknowdot:fix/wasi-errno-unificationhttps://github.com/youknowdot/RustPython/tree/fix/wasi-errno-unification
Conversation 5 https://github.com/RustPython/RustPython/pull/9868
Commits 1 https://github.com/RustPython/RustPython/pull/9868/commits
Checks 27 https://github.com/RustPython/RustPython/pull/9868/checks
Files changed https://github.com/RustPython/RustPython/pull/9868/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9868/files
Align wasm32-unknown errno values with WASI preview1 https://github.com/RustPython/RustPython/pull/9868/files#top
Show all changes 1 commit https://github.com/RustPython/RustPython/pull/9868/files
3f49d21 Align wasm32-unknown errno values with WASI preview1 youknowdot Nov 16, 2026 https://github.com/RustPython/RustPython/pull/9868/commits/3f49d218337fdf18c4737a4f1661df1ae7a44f1f
Clear filters https://github.com/RustPython/RustPython/pull/9868/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9868/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9868/files
errno_wasm.rs https://github.com/RustPython/RustPython/pull/9868/files#diff-2b4bc3babe013f78ef884172abbf265bbda4352356ce29ded5c43db793bdecfe
os.rs https://github.com/RustPython/RustPython/pull/9868/files#diff-8386eeda7531a21596cda0264432ca6be99373cd18eefa363578485488b1bcf9
wasi_p1.rs https://github.com/RustPython/RustPython/pull/9868/files#diff-2847c5b574045832e43bf6bd5342d40b5dcdee8682ee788cad7739cc9e2452d7
exceptions.rs https://github.com/RustPython/RustPython/pull/9868/files#diff-f527bc3e68302079a32d6da36816531e3e22dd31ff91ef0ff0f2688673712747
errno.rs https://github.com/RustPython/RustPython/pull/9868/files#diff-8c4c83b2c8d0bee69874f136168119f0345470714fd4ff2382a3c91e3a893e1f
README.md https://github.com/RustPython/RustPython/pull/9868/files#diff-236d7b7ce9ac6398e2360aa48107fa02020bc5e571d0162ecb81f42623b1607d
test_wasi_fs.py https://github.com/RustPython/RustPython/pull/9868/files#diff-f62eb5327b2aab5dc8be9101049209d85fa6b8bb50941c88dc36b35a2250954b
crates/host_env/src/errno_wasm.rshttps://github.com/RustPython/RustPython/pull/9868/files#diff-2b4bc3babe013f78ef884172abbf265bbda4352356ce29ded5c43db793bdecfe
View file https://github.com/youknowdot/RustPython/blob/3f49d218337fdf18c4737a4f1661df1ae7a44f1f/crates/host_env/src/errno_wasm.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9868/{{ revealButtonHref }}
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
Nov 16, 2026https://github.com/RustPython/RustPython/pull/9868/files#r4582300519
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://camo.githubusercontent.com/0854bfc38139c0d2b58a9d5d71f5ad92840cf0c17144621e462b474041793354/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50322d79656c6c6f773f7374796c653d666c6174
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9868/files
https://github.com/RustPython/RustPython/pull/9868/files#diff-2b4bc3babe013f78ef884172abbf265bbda4352356ce29ded5c43db793bdecfe
https://github.com/RustPython/RustPython/pull/9868/files#diff-2b4bc3babe013f78ef884172abbf265bbda4352356ce29ded5c43db793bdecfe
https://github.com/RustPython/RustPython/pull/9868/files#diff-2b4bc3babe013f78ef884172abbf265bbda4352356ce29ded5c43db793bdecfe
https://github.com/RustPython/RustPython/pull/9868/files#diff-2b4bc3babe013f78ef884172abbf265bbda4352356ce29ded5c43db793bdecfe
crates/host_env/src/os.rshttps://github.com/RustPython/RustPython/pull/9868/files#diff-8386eeda7531a21596cda0264432ca6be99373cd18eefa363578485488b1bcf9
View file https://github.com/youknowdot/RustPython/blob/3f49d218337fdf18c4737a4f1661df1ae7a44f1f/crates/host_env/src/os.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9868/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9868/files#diff-8386eeda7531a21596cda0264432ca6be99373cd18eefa363578485488b1bcf9
https://github.com/RustPython/RustPython/pull/9868/files#diff-8386eeda7531a21596cda0264432ca6be99373cd18eefa363578485488b1bcf9
crates/host_env/src/wasi_p1.rshttps://github.com/RustPython/RustPython/pull/9868/files#diff-2847c5b574045832e43bf6bd5342d40b5dcdee8682ee788cad7739cc9e2452d7
View file https://github.com/youknowdot/RustPython/blob/3f49d218337fdf18c4737a4f1661df1ae7a44f1f/crates/host_env/src/wasi_p1.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9868/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9868/files#diff-2847c5b574045832e43bf6bd5342d40b5dcdee8682ee788cad7739cc9e2452d7
https://github.com/RustPython/RustPython/pull/9868/files#diff-2847c5b574045832e43bf6bd5342d40b5dcdee8682ee788cad7739cc9e2452d7
https://github.com/RustPython/RustPython/pull/9868/files#diff-2847c5b574045832e43bf6bd5342d40b5dcdee8682ee788cad7739cc9e2452d7
https://github.com/RustPython/RustPython/pull/9868/files#diff-2847c5b574045832e43bf6bd5342d40b5dcdee8682ee788cad7739cc9e2452d7
crates/vm/src/exceptions.rshttps://github.com/RustPython/RustPython/pull/9868/files#diff-f527bc3e68302079a32d6da36816531e3e22dd31ff91ef0ff0f2688673712747
View file https://github.com/youknowdot/RustPython/blob/3f49d218337fdf18c4737a4f1661df1ae7a44f1f/crates/vm/src/exceptions.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9868/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9868/files#diff-f527bc3e68302079a32d6da36816531e3e22dd31ff91ef0ff0f2688673712747
https://github.com/RustPython/RustPython/pull/9868/files#diff-f527bc3e68302079a32d6da36816531e3e22dd31ff91ef0ff0f2688673712747
crates/vm/src/stdlib/errno.rshttps://github.com/RustPython/RustPython/pull/9868/files#diff-8c4c83b2c8d0bee69874f136168119f0345470714fd4ff2382a3c91e3a893e1f
View file https://github.com/youknowdot/RustPython/blob/3f49d218337fdf18c4737a4f1661df1ae7a44f1f/crates/vm/src/stdlib/errno.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9868/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9868/files#diff-8c4c83b2c8d0bee69874f136168119f0345470714fd4ff2382a3c91e3a893e1f
https://github.com/RustPython/RustPython/pull/9868/files#diff-8c4c83b2c8d0bee69874f136168119f0345470714fd4ff2382a3c91e3a893e1f
https://github.com/RustPython/RustPython/pull/9868/files#diff-8c4c83b2c8d0bee69874f136168119f0345470714fd4ff2382a3c91e3a893e1f
https://github.com/RustPython/RustPython/pull/9868/files#diff-8c4c83b2c8d0bee69874f136168119f0345470714fd4ff2382a3c91e3a893e1f
example_projects/wasm32_without_js/README.mdhttps://github.com/RustPython/RustPython/pull/9868/files#diff-236d7b7ce9ac6398e2360aa48107fa02020bc5e571d0162ecb81f42623b1607d
View file https://github.com/youknowdot/RustPython/blob/3f49d218337fdf18c4737a4f1661df1ae7a44f1f/example_projects/wasm32_without_js/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9868/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9868/files#diff-236d7b7ce9ac6398e2360aa48107fa02020bc5e571d0162ecb81f42623b1607d
example_projects/wasm32_without_js/test_wasi_fs.pyhttps://github.com/RustPython/RustPython/pull/9868/files#diff-f62eb5327b2aab5dc8be9101049209d85fa6b8bb50941c88dc36b35a2250954b
View file https://github.com/youknowdot/RustPython/blob/3f49d218337fdf18c4737a4f1661df1ae7a44f1f/example_projects/wasm32_without_js/test_wasi_fs.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9868/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9868/files#diff-f62eb5327b2aab5dc8be9101049209d85fa6b8bb50941c88dc36b35a2250954b
https://github.com/RustPython/RustPython/pull/9868/files#diff-f62eb5327b2aab5dc8be9101049209d85fa6b8bb50941c88dc36b35a2250954b
https://github.com/RustPython/RustPython/pull/9868/files#diff-f62eb5327b2aab5dc8be9101049209d85fa6b8bb50941c88dc36b35a2250954b
https://github.com/RustPython/RustPython/pull/9868/files#diff-f62eb5327b2aab5dc8be9101049209d85fa6b8bb50941c88dc36b35a2250954b
https://github.com/RustPython/RustPython/pull/9868/files#diff-f62eb5327b2aab5dc8be9101049209d85fa6b8bb50941c88dc36b35a2250954b
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9868/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.