1GETUTMP(3)                 Linux Programmer's Manual                GETUTMP(3)
2
3
4

NAME

6       getutmp, getutmpx - copy utmp structure to utmpx, and vice versa
7

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

21       These functions do not return a value.
22

VERSIONS

24       These functions first appeared in glibc in version 2.1.1.
25

ATTRIBUTES

27       For  an  explanation  of  the  terms  used  in  this  section,  see at‐
28       tributes(7).
29
30       ┌────────────────────────────────────────────┬───────────────┬─────────┐
31Interface                                   Attribute     Value   
32       ├────────────────────────────────────────────┼───────────────┼─────────┤
33getutmp(), getutmpx()                       │ Thread safety │ MT-Safe │
34       └────────────────────────────────────────────┴───────────────┴─────────┘
35

CONFORMING TO

37       These functions are nonstandard, but appear on  a  few  other  systems,
38       such as Solaris and NetBSD.
39

NOTES

41       These  functions  exist  primarily for compatibility with other systems
42       where the utmp and utmpx structures contain different  fields,  or  the
43       size  of  corresponding  fields  differs.  On Linux, the two structures
44       contain the same fields, and the fields have the same sizes.
45

SEE ALSO

47       utmpdump(1), getutent(3), utmp(5)
48

COLOPHON

50       This page is part of release 5.12 of the Linux  man-pages  project.   A
51       description  of  the project, information about reporting bugs, and the
52       latest    version    of    this    page,    can     be     found     at
53       https://www.kernel.org/doc/man-pages/.
54
55
56
57Linux                             2021-03-22                        GETUTMP(3)
Impressum