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 These functions are nonstandard, but appear on a few other systems,
28 such as Solaris and NetBSD.
29
31 These functions exist primarily for compatibility with other systems
32 where the utmp and utmpx structures contain different fields, or the
33 size of corresponding fields differs. On Linux, the two structures
34 contain the same fields, and the fields have the same sizes.
35
37 getutent(3), utmp(5)
38
40 This page is part of release 3.53 of the Linux man-pages project. A
41 description of the project, and information about reporting bugs, can
42 be found at http://www.kernel.org/doc/man-pages/.
43
44
45
46Linux 2010-09-10 GETUTMP(3)