fdFdStatSetRights

fnErrno fdFdStatSetRights(Fd fd, Rights rightsBase, Rights rightsInheriting) @importName("fd_fdstat_set_rights")

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.