Expand description
Domain-independent platform, text and time helpers shared across Yoctui.
Structs§
- Process
Group Guard - Kill an owned child process group when an asynchronous operation is dropped. Callers must start the child in a new group whose ID equals its PID, and disarm after normal completion. The child handle remains responsible for reaping.
Functions§
- append_
truncation_ marker - Append bounded UTF-8 text without splitting characters.
- config_
dir - XDG configuration root. Relative or empty overrides are ignored.
- format_
duration - home_
dir - Resolve the user’s home, falling back to the current directory for browsing. Do not use this fallback to choose a persistent configuration destination.
- home_
path - is_
absolute_ normal_ path - Validate a non-root absolute path whose components never traverse upward or redundantly refer to the current directory.
- is_
absolute_ normal_ path_ within - is_
bounded_ identifier - Validate the shared BitBake identifier alphabet used by recipe, machine, distro, image and test selector identities.
- is_
bounded_ plain_ text - is_
csi_ final_ byte - ECMA-48 CSI final bytes include punctuation, not only letters.
- is_
transient_ spawn_ error - Return whether a failed spawn can succeed once the executable stops being rewritten by another process.
- lower_
process_ priority - Best-effort Unix process-priority reduction for background discovery work. A larger nice value gives interactive work precedence. Callers choose whether inability to lower priority should fail the operation.
- path_
entry_ exists - Report whether any filesystem entry occupies
path, including a dangling symbolic link. UnlikePath::exists, this does not follow the final link. - poll_
timeout_ ms - A positive bounded poll timeout; callers handle nonblocking zero separately.
- push_
bounded - Append bounded UTF-8 text without splitting characters.
- push_
unique_ bounded - state_
dir - XDG state root. Relative or empty overrides are ignored.
- strip_
ansi - Strip terminal escape sequences while preserving ordinary text and whitespace. Unterminated control strings are discarded through the end of the input.
- truncate_
utf8 - Truncate to a byte budget without splitting a UTF-8 character.
- unix_ms
- Current Unix milliseconds, saturating for out-of-range system clocks.
- utf8_
prefix - Return the longest prefix within the byte budget.