]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/getutmp.3
ctime.3: wfix
[thirdparty/man-pages.git] / man3 / getutmp.3
CommitLineData
35e0c2ec
MK
1.\" Copyright (c) 2008, Linux Foundation, written by Michael Kerrisk
2.\" <mtk.manpages@gmail.com>
3.\"
93015253 4.\" %%%LICENSE_START(VERBATIM)
35e0c2ec
MK
5.\" Permission is granted to make and distribute verbatim copies of this
6.\" manual provided the copyright notice and this permission notice are
7.\" preserved on all copies.
8.\"
9.\" Permission is granted to copy and distribute modified versions of this
10.\" manual under the conditions for verbatim copying, provided that the
11.\" entire resulting derived work is distributed under the terms of a
12.\" permission notice identical to this one.
13.\"
14.\" Since the Linux kernel and libraries are constantly changing, this
15.\" manual page may be incorrect or out-of-date. The author(s) assume no
16.\" responsibility for errors or omissions, or for damages resulting from
17.\" the use of the information contained herein. The author(s) may not
18.\" have taken the same level of care in the production of this manual,
19.\" which is licensed free of charge, as they might when working
20.\" professionally.
21.\"
22.\" Formatted or processed versions of this manual, if unaccompanied by
23.\" the source, must acknowledge the copyright and authors of this work.
4b72fb64 24.\" %%%LICENSE_END
35e0c2ec 25.\"
fe0fefbf 26.TH GETUTMP 3 2015-03-02 "Linux" "Linux Programmer's Manual"
35e0c2ec
MK
27.SH NAME
28getutmp, getutmpx \- copy utmp structure to utmpx, and vice versa
29.SH SYNOPSIS
30.nf
86b91fdf 31.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
35e0c2ec 32.B #include <utmpx.h>
dbfe9c70 33.PP
35e0c2ec
MK
34.BI " void getutmp(const struct utmpx *" ux ", struct utmp *" u );
35.BI " void getutmpx(const struct utmp *" u ", struct utmpx *" ux );
36.fi
37.SH DESCRIPTION
38The
39.BR getutmp ()
40function copies the fields of the
41.I utmpx
42structure pointed to by
43.I ux
44to the corresponding fields of the
45.I utmp
46structure pointed to by
47.IR u .
48The
49.BR getutmpx ()
50function performs the converse operation.
6f65dd85 51.SH RETURN VALUE
ca9484da 52These functions do not return a value.
35e0c2ec
MK
53.SH VERSIONS
54These functions first appeared in glibc in version 2.1.1.
e511c66a 55.SH ATTRIBUTES
b09a42f1
MK
56For an explanation of the terms used in this section, see
57.BR attributes (7).
58.TS
59allbox;
60lbw21 lb lb
61l l l.
62Interface Attribute Value
63T{
64.BR getutmp (),
e511c66a 65.BR getutmpx ()
b09a42f1
MK
66T} Thread safety MT-Safe
67.TE
35e0c2ec 68.SH CONFORMING TO
c8f2dd47 69These functions are nonstandard, but appear on a few other systems,
35e0c2ec
MK
70such as Solaris and NetBSD.
71.SH NOTES
72These functions exist primarily for compatibility with other
73systems where the
74.I utmp
75and
76.I utmpx
77structures contain different fields,
78or the size of corresponding fields differs.
d957336e 79.\" e.g., on Solaris, the utmpx structure is rather larger than utmp.
35e0c2ec
MK
80On Linux, the two structures contain the same fields,
81and the fields have the same sizes.
82.SH SEE ALSO
392a12b2 83.BR utmpdump (1),
35e0c2ec
MK
84.BR getutent (3),
85.BR utmp (5)