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§
- Utmpx
Error - Error creating Utmpx instance.
Functions§
- close_
database - Close the utmpx database for the current thread.
- find_
by_ id - Find the next entry by
ut_typeandut_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.