LL2_IMPORT_LASTLOG(3) ll2_import_lastlog - ,,lastlog" . #include int ll2_import_lastlog (struct ll2_context *context, const char *lastlog_file, char **error); lastlog_file (lastlog(8)) ,,lastlog2" context-. context , , LL2_DEFAULT_DATABASE. char *error = NULL; const char *lastlog_path = "/var/log/lastlog"; int ret = ll2_import_lastlog (NULL, lastlog_path, &error); 0 , -ENOMEM -1 . error -1. error , . error . Thorsten Kukuk ( ) lastlog2(3), ll2_new_context(3), *ll2_unref_context(3), *ll2_read_all(3), ll2_write_entry(3), ll2_read_entry(3), ll2_update_login_time(3), ll2_rename_user(3), ll2_remove_entry(3) , ,,https://github.com/util-linux/util-linux/issues[issue tracker]". liblastlog2 ,,util-linux" 2.40. . util-linux 2.41.1 2025-06-24 LL2_IMPORT_LASTLOG(3)