LL2_READ_ENTRY(3) ll2_read_entry - . #include int ll2_read_entry (struct ll2_context *context, const char *user, int64_t *ll_time, char tty, char rhost, char pam_service, char error); , context-, user. context , , LL2_DEFAULT_DATABASE. char *error = NULL; const char *user = "root"; int64_t res_time; char *res_tty = NULL; char *res_rhost = NULL; char *res_service = NULL; int ret = ll2_read_entry (NULL, user, &res_time, &res_tty, &res_rhost, &res_service, &error); 0 , -ENOMEM -1 . error -1. error , . error . ,,lastlog2" , ,,errno ENOENT" . ll_time, tty, rhost pam_service. Thorsten Kukuk lastlog2(3), ll2_new_context(3), ll2_unref_context(3), ll2_read_all(3), ll2_write_entry(3), ll2_update_login_time(3), ll2_remove_entry(3), ll2_rename_user(3), ll2_import_lastlog(3) , ,,https://github.com/util-linux/util-linux/issues[issue tracker]". liblastlog2 ,,util-linux" 2.40. . util-linux 2.41.2 2025-09-22 LL2_READ_ENTRY(3)