René's URL Explorer Experiment


Title: host_env: export O_* flags, wasm errno, and posix names by youknowone · Pull Request #8788 · RustPython/RustPython · GitHub

Open Graph Title: host_env: export O_* flags, wasm errno, and posix names by youknowone · Pull Request #8788 · RustPython/RustPython

X Title: host_env: export O_* flags, wasm errno, and posix names by youknowone · Pull Request #8788 · RustPython/RustPython

Description: os/posix/nt still took open flags, wait/RTLD/SCHED/SEEK/PRIO names, and wasm errno numbers from libc or a three-constant Linux stub. Those names are shared with pyre, so they belong in host_env. Re-export O_* from host_env::os. wasm32-unknown-unknown uses Darwin/BSD numbers, matching the guest errno table. Expand errno_wasm to that table plus strerror. Publish the remaining posix integer names (RTLD_*, SCHED_*, SEEK_HOLE/SEEK_DATA, PRIO_*, CLD_*, wait flags, AT_*, lockf, ST_RDONLY/ST_NOSUID). os, posix, and nt take the names from host_env. Assisted-by: Claude Summary by CodeRabbit New Features Expanded cross-platform availability of file, process, scheduling, and POSIX constants. Added Darwin/BSD-compatible error codes and descriptive messages for supported errors. Added advisory file-locking constants for supported Unix-like platforms. Added WebAssembly-compatible file and open-mode constants. Bug Fixes Improved Windows file-opening compatibility with platform-appropriate flags. Aligned file-open modes with platform-specific settings across supported operating systems.

Open Graph Description: os/posix/nt still took open flags, wait/RTLD/SCHED/SEEK/PRIO names, and wasm errno numbers from libc or a three-constant Linux stub. Those names are shared with pyre, so they belong in host_env. R...

X Description: os/posix/nt still took open flags, wait/RTLD/SCHED/SEEK/PRIO names, and wasm errno numbers from libc or a three-constant Linux stub. Those names are shared with pyre, so they belong in host_env. R...

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

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:d826e331-cdc4-a604-21ae-d47d15e88669
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8D0A:24D752:565972:7423CA:6B003170
html-safe-noncef574a091dbe9874874b2bd96f886826365c2ef63d26a794f2d0aa0b7a7b0ba3a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDBBOjI0RDc1Mjo1NjU5NzI6NzQyM0NBOjZCMDAzMTcwIiwidmlzaXRvcl9pZCI6IjY4NDY5NTYxMzY4NzMwNzkxNTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb9e8446b6ee5cfdcf1951f286682a8c22ba501c2787a3a2639d1d793dd50a3a3
hovercard-subject-tagpull_request:4606971462
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/8788/files
twitter:imagehttps://avatars.githubusercontent.com/u/69878?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/69878?s=400&v=4
og:image:altos/posix/nt still took open flags, wait/RTLD/SCHED/SEEK/PRIO names, and wasm errno numbers from libc or a three-constant Linux stub. Those names are shared with pyre, so they belong in host_env. R...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0
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
releasef3f3a43ca095cdea3abbb394112e971f9fdb94fa
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/8788/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F8788%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%2F8788%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/8788/files
Reloadhttps://github.com/RustPython/RustPython/pull/8788/files
Reloadhttps://github.com/RustPython/RustPython/pull/8788/files
RustPythonhttps://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Codehttps://github.com/RustPython/RustPython
Issues195 (195)https://github.com/RustPython/RustPython/issues
Pull requests144 (144)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
youknowone:host-env-open-flagshttps://github.com/youknowone/RustPython/tree/host-env-open-flags
Conversation 6 https://github.com/RustPython/RustPython/pull/8788
Commits 6 https://github.com/RustPython/RustPython/pull/8788/commits
Checks 28 https://github.com/RustPython/RustPython/pull/8788/checks
Files changed https://github.com/RustPython/RustPython/pull/8788/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/8788/files
host_env: export O_* flags, wasm errno, and posix names https://github.com/RustPython/RustPython/pull/8788/files#top
Show all changes 6 commits https://github.com/RustPython/RustPython/pull/8788/files
fa2551e host_env: export O_* flags and wasm errno youknowone Sep 22, 2026 https://github.com/RustPython/RustPython/pull/8788/commits/fa2551eaa1975fecfde4f9cc88c7010e364247a8
d3a812b stdlib: take O_* open flags from host_env youknowone Sep 22, 2026 https://github.com/RustPython/RustPython/pull/8788/commits/d3a812bc38b31910879e4db2183000de000b6a7c
8f7178e host_env: export remaining posix integer names youknowone Sep 22, 2026 https://github.com/RustPython/RustPython/pull/8788/commits/8f7178e5149398a37cfa8c2785ff3e39e679cc78
29dcad8 stdlib: take remaining posix names from host_env youknowone Sep 22, 2026 https://github.com/RustPython/RustPython/pull/8788/commits/29dcad8758d76d3f7d418ee1cd9d19cd74c59e6a
d7be5ed host_env: define AT_EACCESS on Android youknowone Sep 22, 2026 https://github.com/RustPython/RustPython/pull/8788/commits/d7be5ed5a156bc45fff218c77f80e3f43ce1fb72
a22f50c vm: gate stop_bit_set to tests youknowone Sep 22, 2026 https://github.com/RustPython/RustPython/pull/8788/commits/a22f50cd927fa527918bb853f1c72b860889c921
Clear filters https://github.com/RustPython/RustPython/pull/8788/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/8788/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/8788/files
errno_wasm.rs https://github.com/RustPython/RustPython/pull/8788/files#diff-2b4bc3babe013f78ef884172abbf265bbda4352356ce29ded5c43db793bdecfe
fcntl.rs https://github.com/RustPython/RustPython/pull/8788/files#diff-006c2f257dcc8f094d866c95b617bc462b5d04948e7cc9da6264e3f5025843f8
fileutils.rs https://github.com/RustPython/RustPython/pull/8788/files#diff-70d1bf37d9d92575484e3b8b9c47cfb1c5874a1bf545def2c971b0ff318a5749
io.rs https://github.com/RustPython/RustPython/pull/8788/files#diff-7def538d0e9f63d8eaa731a33e50a4a2152a1a98226a76fe893bb508179a7206
io_unsupported.rs https://github.com/RustPython/RustPython/pull/8788/files#diff-cd75750d8896b1bbaa3f8674ef7e0849d2851ef9768de84f3fa934107c316fcf
msvcrt.rs https://github.com/RustPython/RustPython/pull/8788/files#diff-4859e8955a0916a82c3e8c70b0482e3f72836859eddee187ac0607c743b523db
multiprocessing.rs https://github.com/RustPython/RustPython/pull/8788/files#diff-9ee6435592c8d14109537709e91a74c5ff51741026c609f01ee6ebc974d956cf
nt.rs https://github.com/RustPython/RustPython/pull/8788/files#diff-3df76f567fd36f94f81724208d27173956cfd5ab3b89ae4ce94f5e2c28a61ce8
os.rs https://github.com/RustPython/RustPython/pull/8788/files#diff-8386eeda7531a21596cda0264432ca6be99373cd18eefa363578485488b1bcf9
posix.rs https://github.com/RustPython/RustPython/pull/8788/files#diff-c4d8d17cd194261af90a2541465d39d6a285b66572131399a8690bd4c7bd599a
signal.rs https://github.com/RustPython/RustPython/pull/8788/files#diff-8f647854e4313a46abb2732c90b0e631a66a98d32423bbe1f306db05ab4e72de
nt.rs https://github.com/RustPython/RustPython/pull/8788/files#diff-b6dbcd2c4153830809b8a9bda455dd41046ee3d8db21e0e79b636a15dde0d936
os.rs https://github.com/RustPython/RustPython/pull/8788/files#diff-3a1b2246dc47369778bf6889ee62be670eee468a599dee319ca981ead50d686a
posix.rs https://github.com/RustPython/RustPython/pull/8788/files#diff-8a094b07fd40ee7a3b9e440782ded748539a5214c242b6b3438421fe0d616c6e
interpreter.rs https://github.com/RustPython/RustPython/pull/8788/files#diff-2361f366cc46771907dbd3b09eb8b9c839e7f059710345f2265c1753862a1b20
crates/host_env/src/errno_wasm.rshttps://github.com/RustPython/RustPython/pull/8788/files#diff-2b4bc3babe013f78ef884172abbf265bbda4352356ce29ded5c43db793bdecfe
View file https://github.com/youknowone/RustPython/blob/a22f50cd927fa527918bb853f1c72b860889c921/crates/host_env/src/errno_wasm.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/8788/{{ revealButtonHref }}
coderabbitaihttps://github.com/apps/coderabbitai
Sep 22, 2026https://github.com/RustPython/RustPython/pull/8788/files#r4076665220
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/RustPython/RustPython/pull/8788/files
crates/host_env/src/fcntl.rshttps://github.com/RustPython/RustPython/pull/8788/files#diff-006c2f257dcc8f094d866c95b617bc462b5d04948e7cc9da6264e3f5025843f8
View file https://github.com/youknowone/RustPython/blob/a22f50cd927fa527918bb853f1c72b860889c921/crates/host_env/src/fcntl.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/8788/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/8788/files#diff-006c2f257dcc8f094d866c95b617bc462b5d04948e7cc9da6264e3f5025843f8
https://github.com/RustPython/RustPython/pull/8788/files#diff-006c2f257dcc8f094d866c95b617bc462b5d04948e7cc9da6264e3f5025843f8
crates/host_env/src/fileutils.rshttps://github.com/RustPython/RustPython/pull/8788/files#diff-70d1bf37d9d92575484e3b8b9c47cfb1c5874a1bf545def2c971b0ff318a5749
View file https://github.com/youknowone/RustPython/blob/a22f50cd927fa527918bb853f1c72b860889c921/crates/host_env/src/fileutils.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/8788/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/8788/files#diff-70d1bf37d9d92575484e3b8b9c47cfb1c5874a1bf545def2c971b0ff318a5749
https://github.com/RustPython/RustPython/pull/8788/files#diff-70d1bf37d9d92575484e3b8b9c47cfb1c5874a1bf545def2c971b0ff318a5749
crates/host_env/src/io.rshttps://github.com/RustPython/RustPython/pull/8788/files#diff-7def538d0e9f63d8eaa731a33e50a4a2152a1a98226a76fe893bb508179a7206
View file https://github.com/youknowone/RustPython/blob/a22f50cd927fa527918bb853f1c72b860889c921/crates/host_env/src/io.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/8788/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/8788/files#diff-7def538d0e9f63d8eaa731a33e50a4a2152a1a98226a76fe893bb508179a7206
https://github.com/RustPython/RustPython/pull/8788/files#diff-7def538d0e9f63d8eaa731a33e50a4a2152a1a98226a76fe893bb508179a7206
https://github.com/RustPython/RustPython/pull/8788/files#diff-7def538d0e9f63d8eaa731a33e50a4a2152a1a98226a76fe893bb508179a7206
https://github.com/RustPython/RustPython/pull/8788/files#diff-7def538d0e9f63d8eaa731a33e50a4a2152a1a98226a76fe893bb508179a7206
crates/host_env/src/io_unsupported.rshttps://github.com/RustPython/RustPython/pull/8788/files#diff-cd75750d8896b1bbaa3f8674ef7e0849d2851ef9768de84f3fa934107c316fcf
View file https://github.com/youknowone/RustPython/blob/a22f50cd927fa527918bb853f1c72b860889c921/crates/host_env/src/io_unsupported.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/8788/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/8788/files#diff-cd75750d8896b1bbaa3f8674ef7e0849d2851ef9768de84f3fa934107c316fcf
https://github.com/RustPython/RustPython/pull/8788/files#diff-cd75750d8896b1bbaa3f8674ef7e0849d2851ef9768de84f3fa934107c316fcf
crates/host_env/src/msvcrt.rshttps://github.com/RustPython/RustPython/pull/8788/files#diff-4859e8955a0916a82c3e8c70b0482e3f72836859eddee187ac0607c743b523db
View file https://github.com/youknowone/RustPython/blob/a22f50cd927fa527918bb853f1c72b860889c921/crates/host_env/src/msvcrt.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/8788/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/8788/files#diff-4859e8955a0916a82c3e8c70b0482e3f72836859eddee187ac0607c743b523db
https://github.com/RustPython/RustPython/pull/8788/files#diff-4859e8955a0916a82c3e8c70b0482e3f72836859eddee187ac0607c743b523db
crates/host_env/src/multiprocessing.rshttps://github.com/RustPython/RustPython/pull/8788/files#diff-9ee6435592c8d14109537709e91a74c5ff51741026c609f01ee6ebc974d956cf
View file https://github.com/youknowone/RustPython/blob/a22f50cd927fa527918bb853f1c72b860889c921/crates/host_env/src/multiprocessing.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/8788/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/8788/files#diff-9ee6435592c8d14109537709e91a74c5ff51741026c609f01ee6ebc974d956cf
https://github.com/RustPython/RustPython/pull/8788/files#diff-9ee6435592c8d14109537709e91a74c5ff51741026c609f01ee6ebc974d956cf
crates/host_env/src/nt.rshttps://github.com/RustPython/RustPython/pull/8788/files#diff-3df76f567fd36f94f81724208d27173956cfd5ab3b89ae4ce94f5e2c28a61ce8
View file https://github.com/youknowone/RustPython/blob/a22f50cd927fa527918bb853f1c72b860889c921/crates/host_env/src/nt.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/8788/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/8788/files#diff-3df76f567fd36f94f81724208d27173956cfd5ab3b89ae4ce94f5e2c28a61ce8
https://github.com/RustPython/RustPython/pull/8788/files#diff-3df76f567fd36f94f81724208d27173956cfd5ab3b89ae4ce94f5e2c28a61ce8
https://github.com/RustPython/RustPython/pull/8788/files#diff-3df76f567fd36f94f81724208d27173956cfd5ab3b89ae4ce94f5e2c28a61ce8
https://github.com/RustPython/RustPython/pull/8788/files#diff-3df76f567fd36f94f81724208d27173956cfd5ab3b89ae4ce94f5e2c28a61ce8
crates/host_env/src/os.rshttps://github.com/RustPython/RustPython/pull/8788/files#diff-8386eeda7531a21596cda0264432ca6be99373cd18eefa363578485488b1bcf9
View file https://github.com/youknowone/RustPython/blob/a22f50cd927fa527918bb853f1c72b860889c921/crates/host_env/src/os.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/8788/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/8788/files#diff-8386eeda7531a21596cda0264432ca6be99373cd18eefa363578485488b1bcf9
https://github.com/RustPython/RustPython/pull/8788/files#diff-8386eeda7531a21596cda0264432ca6be99373cd18eefa363578485488b1bcf9
https://github.com/RustPython/RustPython/pull/8788/files#diff-8386eeda7531a21596cda0264432ca6be99373cd18eefa363578485488b1bcf9
Please reload this pagehttps://github.com/RustPython/RustPython/pull/8788/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/8788/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.