[][src]Function wasi::fd_fdstat_set_rights

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

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

Parameters

  • fs_rights_base - The desired rights of the file descriptor.