Crate utmpx

Source
Expand description

This library contains bindings to the types and functions in utmpx.h.

The sys module contains the raw bindings. The root module contains idiomatic wrappers.

The underlying utmpx functions work with per-thread cursors. Care should be taken when using this in multiple threads, but all functions should be usable from different threads.

For platforms that implement utmp.h but not utmpx.h, the intent is for wrappers to call the utmp.h equivalents.

Modules§

sys
Contains definitions for system-provided function and types.

Enums§

UtmpxError
Error creating Utmpx instance.

Functions§

close_database
Close the utmpx database for the current thread.
find_by_id
Find the next entry by ut_type and ut_id.
find_by_line
Find the next entry by ut_line.
read_next_entry
Read in the next entry from the utmpx database.
reset_cursor
Resets the cursor for the current thread.
set_filename
Change the filename of the database opened by the current thread.
write_line
Write the provided structure into the utmpx database.