Skip to main content

Module sys

Module sys 

Source
Expand description

Low-level interface to the underlying C library.

Modules§

careful

Structs§

Label
OwnedString
String

Functions§

clone
Clone the given label set.
current
Get a pointer to the current label set on this thread.
debug_string
Writes a debug string representing the given label set into out. If successful, the caller must free out->buf.
delete
Delete a custom label, if it exists, on the given label set.
free
Frees all memory associated with a label set.
get
Get the label corresponding to a key on the given label set, or NULL if none exists.
new
Create a new label set.
replace
Install the given label set as the current one, returning the old one.
run_with
Run the supplied callback function (passing it the supplied data pointer) with the supplied set of N labels applied, then re-set the old values. Optionally, if out is non-NULL, write the return value of the callback into out.
set
Set a new custom label, or reset an existing one, on the given label set.

Type Aliases§

Labelset