1 .\" Copyright (c) 2008, Linux Foundation, written by Michael Kerrisk
2 .\" <mtk.manpages@gmail.com>
4 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
6 .TH getutmp 3 (date) "Linux man-pages (unreleased)"
8 getutmp, getutmpx \- copy utmp structure to utmpx, and vice versa
11 .RI ( libc ", " \-lc )
14 .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
17 .BI "void getutmp(const struct utmpx *" ux ", struct utmp *" u );
18 .BI "void getutmpx(const struct utmp *" u ", struct utmpx *" ux );
23 function copies the fields of the
25 structure pointed to by
27 to the corresponding fields of the
29 structure pointed to by
33 function performs the converse operation.
35 These functions do not return a value.
37 These functions first appeared in glibc in version 2.1.1.
39 For an explanation of the terms used in this section, see
47 Interface Attribute Value
51 T} Thread safety MT-Safe
57 These functions are nonstandard, but appear on a few other systems,
58 such as Solaris and NetBSD.
60 These functions exist primarily for compatibility with other
65 structures contain different fields,
66 or the size of corresponding fields differs.
67 .\" e.g., on Solaris, the utmpx structure is rather larger than utmp.
68 On Linux, the two structures contain the same fields,
69 and the fields have the same sizes.