1getutmp(3)                 Library Functions Manual                 getutmp(3)
2
3
4

NAME

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

LIBRARY

9       Standard C library (libc, -lc)
10

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

24       These functions do not return a value.
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

STANDARDS

37       None.
38

HISTORY

40       glibc 2.1.1.  Solaris, NetBSD.
41

NOTES

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

SEE ALSO

49       utmpdump(1), getutent(3), utmp(5)
50
51
52
53Linux man-pages 6.05              2023-07-20                        getutmp(3)
Impressum