:orphan: .. _s_11PytoRuntime9WASIStateC10setFdflags_7fdflagsSbs5Int32V_s6UInt16VtF: ``setFdflags(_:fdflags:)`` ========================== Sets the fdflags for a file descriptor. .. raw:: html .. rubric:: Declaration .. raw:: html
func setFdflags(
       _ id: Int32,
       fdflags: UInt16
   ) -> Bool
   
.. rubric:: Parameters - **id**: The WASI file descriptor. - **fdflags**: The new fdflags value. .. rubric:: Returns ``false`` if the file descriptor is not opened. ``true`` otherwise.