If a path_open call is requesting __WASI_RIGHT_FD_FILESTAT_SET_SIZE, interpret that as a request for write privleges. If it is requesting O_TRUNC, require __WASI_RIGHT_PATH_FILESTAT_SET_SIZE, since this is a path operation rather than a FD operation.
This repository contains adapted forms of the CloudABI project's "libemulator" library, which includes implementations the CloudABI system calls using standard native platform support. See the README.md and LICENSE files in the individual subdirectories for details.
src/ - cloudabi-utils' libemulator; see src/README.md for details include/ - wasi headers
This is currently an experimental prototype.