Crate fdio

source ·
Expand description

Bindings for the Zircon fdio library

Structs

Entry in a flat representation of a namespace.
An action to take in spawn_etc.
Convience wrapper for spawn_etc.
Options to allow some or all of the environment of the running process to be shared with the process being spawned.

Enums

Functions

Bind a handle to a specific file descriptor.
Clones an object’s underlying handle and checks that it is a channel.
Clones an object’s underlying handle.
Create an object from a handle.
Retrieves the topological path for a device node.
Returns the handle for the given FIDL service, or a Zircon Error Status. This function takes ownership of ‘service’ because the File is released when acquiring the service handle.
Gets a read-only VMO containing the whole contents of the file. This function creates a clone of the underlying VMO when possible, falling back to eagerly reading the contents into a freshly-created VMO.
Gets a read-exec VMO containing the whole contents of the file.
Opens the remote object at the given path with the given flags asynchronously. (‘asynchronous’ here is refering to fuchsia.io.Directory.Open not having a return value).
Opens the remote object at the given path relative to the given dir with the given flags asynchronously. (‘asynchronous’ here is refering to fuchsia.io.Directory.Open not having a return value).
Opens the remote object at the given path with the given flags synchronously, and on success, binds that channel to a file descriptor and returns it.
Opens the remote object at the given path relative to the given dir with the given flags synchronously, and on success, binds that channel to a file descriptor and returns it.
Creates a named pipe and returns one end as a zx::Socket.
Connects a channel to a named service.
Connects a channel to a named service relative to a directory dir. dir must be a directory protocol channel.
Spawn a process in the given job.
Spawn a process in the given job using a series of SpawnActions. All SpawnActions are nullified after their use in this function.
Spawn a process in the given job using an executable VMO.
Removes an object from the file descriptor table and returns its underlying handle.