• Mazdak Farrokhzad's avatar
    Rollup merge of #59727 - alexcrichton:wasi-apis, r=fitzgen · 8455818b
    Mazdak Farrokhzad authored
    wasi: Use shared API for preopened fds
    
    This commit updates the wasi target with supported added in
    CraneStation/wasi-sysroot#10. That function allows both C and Rust to
    cooperate in how preopened files are managed, enabling us to learn about
    propened files through the same interface. The `open_parent` function in
    the wasi `fs` module was updated to avoid its own initialization of a
    global preopened map and instead delegate to libc to perform this
    functionality.
    
    This should both be more robust into the future in terms of handling
    path logic as well as ensuring the propened map is correctly set up at
    process boot time. This does currently require some unfortunate
    allocations on our side, but if that becomes an issue we can always
    paper over those in time!
    8455818b
Name
Last commit
Last update
src Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYRIGHT Loading commit data...
Cargo.lock Loading commit data...
Cargo.toml Loading commit data...
LICENSE-APACHE Loading commit data...
LICENSE-MIT Loading commit data...
README.md Loading commit data...
RELEASES.md Loading commit data...
appveyor.yml Loading commit data...
config.toml.example Loading commit data...
configure Loading commit data...
x.py Loading commit data...