logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Attributes

       For an explanation of the terms used in this section, see attributes(7).
       ┌─────────────────────────────────────────────────────────────────────────────┬───────────────┬─────────┐
       │ InterfaceAttributeValue   │
       ├─────────────────────────────────────────────────────────────────────────────┼───────────────┼─────────┤
       │ getutmp(), getutmpx()                                                       │ Thread safety │ MT-Safe │
       └─────────────────────────────────────────────────────────────────────────────┴───────────────┴─────────┘

Description

       The  getutmp()  function  copies  the fields of the utmpx structure pointed to by ux to the corresponding
       fields of the utmp structure pointed to by u.  The getutmpx() function performs the converse operation.

History

       glibc 2.1.1.  Solaris, NetBSD.

Library

       Standard C library (libc, -lc)

Name

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

Notes

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

Return Value

       These functions do not return a value.

See Also

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

Linux man-pages 6.9.1                              2024-05-02                                         getutmp(3)

Standards

       None.

Synopsis

#define_GNU_SOURCE             /* See feature_test_macros(7) */
       #include<utmpx.h>voidgetutmp(conststructutmpx*ux,structutmp*u);voidgetutmpx(conststructutmp*u,structutmpx*ux);

See Also