Expand description
Bindings for the Zircon fdio library
Structs§
- Namespace
- Namespace
Entry - Entry in a flat representation of a namespace.
- Spawn
Action - An action to take in
spawn_etc
. - Spawn
Builder - Convience wrapper for
spawn_etc
. - Spawn
Options - Options to allow some or all of the environment of the running process to be shared with the process being spawned.
Enums§
Functions§
- bind_
to_ fd - Bind a handle to a specific file descriptor.
- clone_
channel - Clones an object’s underlying handle and checks that it is a channel.
- clone_
fd - Clones an object’s underlying handle.
- create_
fd - Create an object from a handle.
- create_
transferrable - Creates a transferrable object and returns one end as a zx::Channel.
- get_
vmo_ copy_ from_ file - 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.
- get_
vmo_ exact_ from_ file - Get a read-only handle to the exact VMO used by the file system server to represent the file. This VMO will track size and content changes to the file.
- get_
vmo_ exec_ from_ file - Gets a read-exec VMO containing the whole contents of the file.
- open
- Opens the remote object at the given
path
with the givenflags
asynchronously. (‘asynchronous’ here is referring to fuchsia.io.Directory.Open not having a return value). - open_at
- Opens the remote object at the given
path
relative to the givendir
with the givenflags
asynchronously. (‘asynchronous’ here is referring to fuchsia.io.Directory.Open not having a return value). - open_fd
- Opens the remote object at the given
path
with the givenflags
synchronously, and on success, binds that channel to a file descriptor and returns it. - open_
fd_ at - Opens the remote object at the given
path
relative to the givendir
with the givenflags
synchronously, and on success, binds that channel to a file descriptor and returns it. - pipe_
half - Creates a named pipe and returns one end as a zx::Socket.
- service_
connect - Connects a channel to a named service.
- service_
connect_ at - Connects a channel to a named service relative to a directory
dir
.dir
must be a directory protocol channel. - spawn
- Spawn a process in the given
job
. - spawn_
etc - Spawn a process in the given
job
using a series ofSpawnAction
s. AllSpawnAction
s are nullified after their use in this function. - spawn_
vmo - Spawn a process in the given job using an executable VMO.
- transfer_
fd - Removes an object from the file descriptor table and returns its underlying handle.