-
Notifications
You must be signed in to change notification settings - Fork 5
Support pre-opened files #1
Comments
This seems like it could be consistent. NaCl sel_ldr has command line flags
Perhaps we could remove the existing special case for FDs 0, 1, and 2. IIRC these are currently kind of magically pre-opened? Would libpreopen need to be involved at all? I mean would |
This could be used to solve a major ergonomic issue with CLI WASI applications too! It'd be simple for a runtime to detect if arguments going to the WASI program are paths and then automatically preopen them. |
This would be a useful feature. We unfortunately didn't get to it for preview1, but we should do it for preview2: WebAssembly/WASI#509. |
Currently WASI only supports pre-opened directories. It'd be useful to have a preopen type indicating a file rather than just a directory.
The text was updated successfully, but these errors were encountered: