1getutmp(3) Library Functions Manual getutmp(3)
2
3
4
6 getutmp, getutmpx - copy utmp structure to utmpx, and vice versa
7
9 Standard C library (libc, -lc)
10
12 #define _GNU_SOURCE /* See feature_test_macros(7) */
13 #include <utmpx.h>
14
15 void getutmp(const struct utmpx *ux, struct utmp *u);
16 void getutmpx(const struct utmp *u, struct utmpx *ux);
17
19 The getutmp() function copies the fields of the utmpx structure pointed
20 to by ux to the corresponding fields of the utmp structure pointed to
21 by u. The getutmpx() function performs the converse operation.
22
24 These functions do not return a value.
25
27 For an explanation of the terms used in this section, see at‐
28 tributes(7).
29
30 ┌────────────────────────────────────────────┬───────────────┬─────────┐
31 │Interface │ Attribute │ Value │
32 ├────────────────────────────────────────────┼───────────────┼─────────┤
33 │getutmp(), getutmpx() │ Thread safety │ MT-Safe │
34 └────────────────────────────────────────────┴───────────────┴─────────┘
35
37 None.
38
40 glibc 2.1.1. Solaris, NetBSD.
41
43 These functions exist primarily for compatibility with other systems
44 where the utmp and utmpx structures contain different fields, or the
45 size of corresponding fields differs. On Linux, the two structures
46 contain the same fields, and the fields have the same sizes.
47
49 utmpdump(1), getutent(3), utmp(5)
50
51
52
53Linux man-pages 6.04 2023-03-30 getutmp(3)