wasi

Function fd_fdstat_set_rights

Source
pub unsafe fn fd_fdstat_set_rights(
    fd: Fd,
    fs_rights_base: Rights,
    fs_rights_inheriting: Rights,
) -> Result<(), Errno>
Expand description

Adjust the rights associated with a file descriptor. This can only be used to remove rights, and returns errno::notcapable if called in a way that would attempt to add rights

ยงParameters

  • fs_rights_base - The desired rights of the file descriptor.