Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

40. Login Accounting > The utmpx Structure

The utmpx Structure

The utmp and wtmp files consist of utmpx records. The utmpx structure is defined in <utmpx.h>, as shown in Example 40-1.

Note

The SUSv3 specification of the utmpx structure doesn’t include the ut_host, ut_exit, ut_session, or ut_addr_v6 fields. The ut_host and ut_exit fields are present on most other implementations; ut_session is present on a few other implementations; and ut_addr_v6 is Linux-specific. SUSv3 specifies the ut_line and ut_user fields, but leaves their lengths unspecified.

The int32_t data type used to define the ut_addr_v6 field of the utmpx structure is a 32-bit integer.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint