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 These functions were added in glibc 2.1.1.
40 For an explanation of the terms used in this section, see
48 Interface Attribute Value
52 T} Thread safety MT-Safe
58 These functions are nonstandard, but appear on a few other systems,
59 such as Solaris and NetBSD.
61 These functions exist primarily for compatibility with other
66 structures contain different fields,
67 or the size of corresponding fields differs.
68 .\" e.g., on Solaris, the utmpx structure is rather larger than utmp.
69 On Linux, the two structures contain the same fields,
70 and the fields have the same sizes.