:orphan:
.. _s_11PytoRuntime9WASIStateC:
``WASIState``
=============
The state of a WASI virtual machine.
.. raw:: html
.. rubric:: Declaration
.. raw:: html
class WASIState: @unchecked
Sendable
.. rubric:: Initializers
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9WASIStateCACycfc
.. raw:: html
Initializes the instance.
.. rubric:: Members
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9WASIStateCfd
.. raw:: html
.. rubric:: Signals
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9WASIStateC13activeThreadsSaySpySo17_opaque_pthread_tVG6native_Si11workerIndextGvp
.. raw:: html
An array threads currently executing a syscall.
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9WASIStateC14pendingSignalsSays5Int32V6signal_Si11workerIndextGvp
.. raw:: html
An array of pending signals.
.. rubric:: Descriptors
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9WASIStateC13standardInputs5Int32VSgvp
.. raw:: html
The host’s file descriptor of the standard input handle. Setting it will map the fileno 0 to this one.
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9WASIStateC14standardOutputs5Int32VSgvp
.. raw:: html
The host’s file descriptor of the standard output handle. Setting it maps the fileno 1 to this one.
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9WASIStateC13standardErrors5Int32VSgvp
.. raw:: html
The host’s file descriptor of the standard error handle. Setting it maps the fileno 0 to this one.
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9WASIStateC20workingDirectoryPathSSSgvp
.. raw:: html
The working directory path.
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9WASIStateC14FileDescriptorV
.. raw:: html
Represents an opened file.
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9WASIStateC11descriptorsSDys5Int32VAC14FileDescriptorVGvp
.. raw:: html
A dictionary of opened files keyed by the WASI file descriptor.
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9WASIStateC9allRightss6UInt64VvpZ
.. raw:: html
Default value for :swift:symbol:`PytoRuntime.WASIState.FileDescriptor.rightsBase` and :swift:symbol:`PytoRuntime.WASIState.FileDescriptor.rightsInheriting`.
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9WASIStateC11resolvePath6baseFd08relativeE0SSs5Int32V_SStF
.. raw:: html
Resolves a relative path with a file descriptor.
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9WASIStateC13addDescriptor2fd4path11isDirectory5flags7fdflags10rightsBase0L10Inheritings5Int32VAM_SSSbSDySSypGs6UInt16Vs6UInt64VARtF
.. raw:: html
Opens a file descriptor.
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9WASIStateC13getDescriptoryAC04FileE0VSgs5Int32VF
.. raw:: html
Returns a :swift:symbol:`PytoRuntime.WASIState.FileDescriptor` from a WASI file number.
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9WASIStateC10setFdflags_7fdflagsSbs5Int32V_s6UInt16VtF
.. raw:: html
Sets the fdflags for a file descriptor.
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9WASIStateC9setRights_4base10inheritingSbs5Int32V_s6UInt64VAJtF
.. raw:: html
Sets the fs_rights_base and fs_rights_inheriting values for the file descriptor.
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9WASIStateC16removeDescriptoryys5Int32VF
.. raw:: html
Closes a file descriptor.
.. rubric:: Sockets
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9WASIStateC10SocketInfoV
.. raw:: html
A socket file descriptor.
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9WASIStateC7socketsSDys5Int32VAC10SocketInfoVGvp
.. raw:: html
A dictionary of opened sockets, keyed by their WASI file number.
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9WASIStateC9addSocket2fd6domain4types5Int32VAI_A2ItF
.. raw:: html
Opens a socket.
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9WASIStateC9getSocketyAC0E4InfoVSgs5Int32VF
.. raw:: html
Returns the :swift:symbol:`PytoRuntime.WASIState.SocketInfo` for a given WASI socket file number.
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9WASIStateC12removeSocketyys5Int32VF
.. raw:: html
Closes a socket.
.. rubric:: Clock
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9WASIStateC22clockOffsetNanosecondss5Int64Vvp
.. raw:: html
The clock’s offset in nano seconds.
.. rubric:: Subprocesses
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9WASIStateC3pids5Int32Vvp
.. raw:: html
The id of the current process. It is assigned by *ios_system* and passed via the ``wasm`` command.
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9WASIStateC9parentPids5Int32Vvp
.. raw:: html
The id of the parent process.
.. raw:: html
.. toctree::
:maxdepth: 1
s_11PytoRuntime9WASIStateC12subprocessesSDys5Int32VACGvpZ
.. raw:: html
Maps PIDs to their WASI states.
.. rubric:: Conforms to
- ``@unchecked Sendable``