'\" t .\" Title: ll2_import_lastlog .\" Author: [see the "AUTHOR(S)" section] .\" Generator: Asciidoctor 2.0.26 .\" Date: 2026-09-02 .\" Manual: Podręcznik programisty .\" Source: util-linux 2.42.3 .\" Language: English .\" .TH "LL2_IMPORT_LASTLOG" "3" "2026-09-02" "util\-linux 2.42.3" "Podręcznik programisty" .ie \n(.g .ds Aq \(aq .el .ds Aq ' .ss \n[.ss] 0 .nh .ad l .de URL \fI\\$2\fP <\\$1>\\$3 .. .als MTO URL .if \n[.g] \{\ . mso www.tmac . am URL . ad l . . . am MTO . ad l . . . LINKSTYLE blue R < > .\} .SH "NAZWA" ll2_import_lastlog \- importuje stary plik lastlog .SH "SKŁADNIA" .sp \fB#include \fP .sp \fBint ll2_import_lastlog (struct ll2_context *\fIcontext\fP, const char *\fIlastlog_file\fP, char **\fIerror\fP);\fP .SH "OPIS" .sp Importuje wszystkie wpisy z pliku \fIlastlog_file\fP (\fBlastlog\fP(8)) do bazy danych lastlog2 zdefiniowanej w \fIcontext\fP. Jeśli \fIcontext\fP wynosi NULL, zostanie przyjęta domyślna baza danych, zdefiniowana w \fILL2_DEFAULT_DATABASE\fP. .sp .if n .RS 4 .nf .fam C char\& *error = NULL; const\& char *lastlog_path = "/var/log/lastlog"; int ret = ll2_import_lastlog (NULL, lastlog_path, &error); .fam .fi .if n .RE .SH "WARTOŚĆ ZWRACANA" .sp Zwraca 0 przy powodzeniu, \-ENOMEM lub \-1 przy innym błędzie. \fIerror\fP zawiera łańcuch błędu, jeśli zwracaną wartością jest \-1. Nie ma gwarancji, że \fIerror\fP będzie zawierał łańcuch błędu, może też wynosić NULL. \fIerror\fP powinien być zwalniany przez wywołującego. .SH "AUTORZY" .sp .MTO "kukuk\(atsuse.de" "Thorsten Kukuk" "" .SH "ZOBACZ TAKŻE" .sp \fBlastlog2\fP(3), \fBll2_new_context\fP(3), \fBll2_unref_context\fP(3), \fBll2_read_all\fP(3), \fBll2_write_entry\fP(3), \fBll2_read_entry\fP(3), \fBll2_update_login_time\fP(3), \fBll2_rename_user\fP(3), \fBll2_remove_entry\fP(3) .SH "ZGŁASZANIE BŁĘDÓW" .sp Problemy należy zgłaszać w \c .URL "https://github.com/util\-linux/util\-linux/issues" "systemie śledzenia błędów" "." .SH "DOSTĘPNOŚĆ" .sp Biblioteka \fBliblastlog2\fP jest częścią pakietu util\-linux od wersji 2.40. Można go pobrać ze strony \c .URL "https://www.kernel.org/pub/linux/utils/util\-linux/" "Archiwum jądra Linux" "."