setRights(_:base:inheriting:)¶
Sets the fs_rights_base and fs_rights_inheriting values for the file descriptor.
Declaration
func setRights(
_ id: Int32,
base: UInt64,
inheriting: UInt64
) -> Bool
Parameters
id: The WASI file number.
base: The new fs_rights_base value.
inheriting: The new fs_rights_inheriting value.
Returns
false if the file descriptor is not opened. true otherwise.