• the utmp.h header file

    From Wolfgang Agnes@21:1/5 to All on Fri Nov 22 18:04:39 2024
    The program qbiff from the qmail package uses the header utmp.h, which
    houses the declaration of various structures needed to use the login
    database in systems that are perhaps not FreeBSD. The program qbiff.c
    doesn't compile because it can't find utmp.h.

    It seems FreeBSD has either evolved the system to use utmpx.h or perhaps
    it never used the utmp.h header we perhaps find in GNU systems. I've no
    idea.

    I'm wondering if there's anything easy that can be done so that qbiff
    would compile and work correctly. Just making a symbolic link from
    utmp.h to utmpx.h wouldn't suffice because all structures defined by
    utmpx.h in FreeBSD have different names. So perhaps I'm out of luck.

    By the way, I'm not really interested in qbiff. On the contrary, I'm
    more interested in understanding FreeBSD with regard to this
    compatibility question involving other systems.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Steven G. Kargl@21:1/5 to Wolfgang Agnes on Fri Nov 22 21:26:09 2024
    On Fri, 22 Nov 2024 18:04:39 -0300, Wolfgang Agnes wrote:

    It seems FreeBSD has either evolved the system to use utmpx.h or perhaps
    it never used the utmp.h header we perhaps find in GNU systems. I've no idea.

    % git log /usr/src/include/utmpx.h | more

    commit a627ac61ab8d660acfe6c88b01bdca8e8c1590aa
    Author: Ed Schouten <ed@FreeBSD.org>
    Date: Wed Jan 13 17:29:55 2010 +0000

    Implement <utmpx.h>.
    ...
    I'll bump __FreeBSD_version later this evening. I first
    want to convert everything to <utmpx.h> and get rid of
    <utmp.h>.

    By the way, I'm not really interested in qbiff. On the contrary, I'm
    more interested in understanding FreeBSD with regard to this
    compatibility question involving other systems.

    It seems utmp.h was removed in the 9.0 timeframe. It is present
    in 8.4.

    --
    steve

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)