ll2_unref_context - Man Page
Frees lastlog2 context.
Synopsis
#include <lastlog2.h>
*context * ll2_unref_context(ll2_context *context);
Description
Frees lastlog2 context, which has been allocated by ll2_new_context.
const char *db_path = "/var/lib/lastlog/lastlog2.db"; ll2_context *context = ll2_new_context(db_path); /* other lastlog2 calls..... */ ll2_unref_context(context);
Authors
See Also
lastlog2(3), ll2_new_context(3), ll2_read_all(3), ll2_write_entry(3), ll2_read_entry(3), ll2_remove_entry(3), ll2_update_login_time(3), ll2_import_lastlog(3)
Reporting Bugs
For bug reports, use the issue tracker.
Availability
The liblastlog2 library is part of the util-linux package since version 2.40. It can be downloaded from Linux Kernel Archive.
Referenced By
lastlog2(3), ll2_import_lastlog(3), ll2_new_context(3), ll2_read_all(3), ll2_read_entry(3), ll2_remove_entry(3), ll2_rename_user(3), ll2_update_login_time(3), ll2_write_entry(3).
2026-03-31 util-linux 2.42 Programmers Manual