bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: readutmp: Non-portable UT_PID use.


From: Mats Erik Andersson
Subject: Re: readutmp: Non-portable UT_PID use.
Date: Fri, 14 Sep 2012 22:27:18 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

Dear all,

torsdag den  6 september 2012 klockan 07:59 skrev Jim Meyering detta:
> Eric Blake wrote:
> >
> > Jim likes favoring < over >, so I'm swapping this to '0 < UT_PID (u)'.
> 
> Thanks Mats and Eric.  That looks fine.

With this new readutmp module, I have renovated the talkd server of
GNU Inetutils to work correctly for GNU/Linux, DragonflyBSD,
both using utmpx, and for OpenBSD, FreeBSD (<= 8.3), these using
a minimal utmp.

Unfortunately, the author of the new utmpx support in FreeBSD 9.0
has implemented so noticeable deviations that the module is now
broken for that release. The most obvious cause is that utmpname()
or utmpxname() do not exist. The closest replacement is setutxdb().

Furthermore, the functionality of pututxline() is particular to
say the least, and the file names are singular:

   /var/run/utx.active
   /var/run/utx.lastlogin
   /var/run/utx.log

The module needs some adaption in order to fit well enough.

Best regards,
  Mats Erik Andersson, on behalf of GNU Inetutils



reply via email to

[Prev in Thread] Current Thread [Next in Thread]