Expand description
Type-safe bindings for Fuchsia-specific libc
functionality.
This crate is a minimal extension on top of the fuchsia-zircon
crate,
which provides bindings to the Zircon kernel’s syscalls, but does not
depend on functionality from libc
.
Structs§
- Metadata information for a handle in a processargs message. Contains a handle type and an unsigned 16-bit value, whose meaning is handle type dependent.
- Marker type for the UTC timeline.
Enums§
- Possible errors when converting a raw u32 to a HandleInfo with the TryFrom
impl on HandleInfo. - Handle types as defined by the processargs protocol.
Functions§
- Duplicate the UTC
Clock
registered with the runtime. - Get a reference to the default
Job
provided to the process on startup. - Get a reference to the fuchsia.ldsvc.Loader channel.
- Get a reference to the handle of the current process.
- Swaps the current process-global UTC clock with
new_clock
, returning the old clock on success. Ifnew_clock
is a valid handle but does not have the ZX_RIGHT_READ right, an error is returned andnew_clock
is dropped. - Removes the handle of type
HandleType
from the list of handles received at startup. - Get a reference to the handle of the current thread.
- Reads time from the UTC
Clock
registered with the runtime. - Get a reference to the handle of the current address space.
Type Aliases§
- A clock that will return UTC timestamps.
- Details of a UTC clock.
- A transformation for the UTC clock.
- An update for the UTC clock.
- A duration in the UTC timeline.
- A UTC timestamp, measured in nanoseconds since Jan 1 1970.