I want to find the utmp.h, but there are two different virsion

  • 1
    Open those files, you can see this #error "Never include <bits/utmp.h> directly; use <utmp.h> instead.". – Biswapriyo Apr 27 '19 at 5:29

The header files in /usr/include/x86_64-linux-gnu/bits/ are included by a corresponding header in /usr/include/. If I open up /usr/include/utmp.h on my machine and go to lines 28 and 29, I'll find:

/* Get system dependent values and data structures.  */
#include <bits/utmp.h>

This means that the bits headers are used to define data structures and preprocessor macros that differ between systems. These definitions can then be used by the standard /usr/include headers, instead of having to create and distribute different /usr/include headers for every possible system configuration.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.