Debian Codegraph @

liblastlog2/man/ll2_unref_context.3

raw
1 '\" t
2 .\" Title: ll2_unref_context
3 .\" Author: [see the "AUTHOR(S)" section]
4 .\" Generator: Asciidoctor 2.0.20
5 .\" Date: 2026-04-28
6 .\" Manual: Programmer's Manual
7 .\" Source: util-linux 2.42.1
8 .\" Language: English
9 .\"
10 .TH "LL2_UNREF_CONTEXT" "3" "2026-04-28" "util\-linux 2.42.1" "Programmer\*(Aqs Manual"
11 .ie \n(.g .ds Aq \(aq
12 .el .ds Aq '
13 .ss \n[.ss] 0
14 .nh
15 .ad l
16 .de URL
17 \fI\\$2\fP <\\$1>\\$3
18 ..
19 .als MTO URL
20 .if \n[.g] \{\
21 . mso www.tmac
22 . am URL
23 . ad l
24 . .
25 . am MTO
26 . ad l
27 . .
28 . LINKSTYLE blue R < >
29 .\}
30 .SH "NAME"
31 ll2_unref_context \- Frees lastlog2 context.
32 .SH "SYNOPSIS"
33 .sp
34 \fB#include <lastlog2.h>\fP
35 .sp
36 *context * ll2_unref_context(ll2_context *context);
37 .SH "DESCRIPTION"
38 .sp
39 Frees lastlog2 context, which has been allocated by
40 \fIll2_new_context\fP.
41 .sp
42 .if n .RS 4
43 .nf
44 .fam C
45 const char *db_path = "/var/lib/lastlog/lastlog2.db";
46 ll2_context *context = ll2_new_context(db_path);
47
48 /* other lastlog2 calls..... */
49
50 ll2_unref_context(context);
51 .fam
52 .fi
53 .if n .RE
54 .SH "AUTHORS"
55 .sp
56 .MTO "kukuk\(atsuse.de" "Thorsten Kukuk" ""
57 .SH "SEE ALSO"
58 .sp
59 \fBlastlog2\fP(3),
60 \fBll2_new_context\fP(3),
61 \fBll2_read_all\fP(3),
62 \fBll2_write_entry\fP(3),
63 \fBll2_read_entry\fP(3),
64 \fBll2_remove_entry\fP(3),
65 \fBll2_update_login_time\fP(3),
66 \fBll2_import_lastlog\fP(3)
67 .SH "REPORTING BUGS"
68 .sp
69 For bug reports, use the \c
70 .URL "https://github.com/util\-linux/util\-linux/issues" "issue tracker" "."
71 .SH "AVAILABILITY"
72 .sp
73 The \fBliblastlog2\fP library is part of the util\-linux package since version 2.40. It can be downloaded from \c
74 .URL "https://www.kernel.org/pub/linux/utils/util\-linux/" "Linux Kernel Archive" "."