1GETUTMP(3) Linux Programmer's Manual GETUTMP(3)
2
3
4
6 getutmp, getutmpx - copy utmp structure to utmpx, and vice versa
7
9 #define _GNU_SOURCE /* See feature_test_macros(7) */
10 #include <utmpx.h>
11
12 void getutmp(const struct utmpx *ux, struct utmp *u);
13 void getutmpx(const struct utmp *u, struct utmpx *ux);
14
16 The getutmp() function copies the fields of the utmpx structure pointed
17 to by ux to the corresponding fields of the utmp structure pointed to
18 by u. The getutmpx() function performs the converse operation.
19
21 These functions do not return a value.
22
24 These functions first appeared in glibc in version 2.1.1.
25
27 For an explanation of the terms used in this section, see
28 attributes(7).
29
30 ┌──────────────────────┬───────────────┬─────────┐
31 │Interface │ Attribute │ Value │
32 ├──────────────────────┼───────────────┼─────────┤
33 │getutmp(), getutmpx() │ Thread safety │ MT-Safe │
34 └──────────────────────┴───────────────┴─────────┘
36 These functions are nonstandard, but appear on a few other systems,
37 such as Solaris and NetBSD.
38
40 These functions exist primarily for compatibility with other systems
41 where the utmp and utmpx structures contain different fields, or the
42 size of corresponding fields differs. On Linux, the two structures
43 contain the same fields, and the fields have the same sizes.
44
46 utmpdump(1), getutent(3), utmp(5)
47
49 This page is part of release 5.07 of the Linux man-pages project. A
50 description of the project, information about reporting bugs, and the
51 latest version of this page, can be found at
52 https://www.kernel.org/doc/man-pages/.
53
54
55
56Linux 2015-03-02 GETUTMP(3)