2 .\" Copyright (c) 2008, Linux Foundation, written by Michael Kerrisk
3 .\" <mtk.manpages@gmail.com>
5 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
7 .TH getutmp 3 (date) "Linux man-pages (unreleased)"
9 getutmp, getutmpx \- copy utmp structure to utmpx, and vice versa
12 .RI ( libc ", " \-lc )
15 .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
18 .BI "void getutmp(const struct utmpx *" ux ", struct utmp *" u );
19 .BI "void getutmpx(const struct utmp *" u ", struct utmpx *" ux );
24 function copies the fields of the
26 structure pointed to by
28 to the corresponding fields of the
30 structure pointed to by
34 function performs the converse operation.
36 These functions do not return a value.
38 For an explanation of the terms used in this section, see
44 Interface Attribute Value
50 T} Thread safety MT-Safe
59 These functions exist primarily for compatibility with other
64 structures contain different fields,
65 or the size of corresponding fields differs.
66 .\" e.g., on Solaris, the utmpx structure is rather larger than utmp.
67 On Linux, the two structures contain the same fields,
68 and the fields have the same sizes.