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
28       attributes(7).
29
30       ┌──────────────────────┬───────────────┬─────────┐
31Interface             Attribute     Value   
32       ├──────────────────────┼───────────────┼─────────┤
33getutmp(), getutmpx() │ Thread safety │ MT-Safe │
34       └──────────────────────┴───────────────┴─────────┘

CONFORMING TO

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

NOTES

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

SEE ALSO

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

COLOPHON

49       This page is part of release 5.04 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)
Impressum