Date: Mon, 18 Jan 2010 19:05:51 +0300 From: Yuri Pankov <yuri.pankov@gmail.com> To: Ed Schouten <ed@80386.nl> Cc: ports@freebsd.org, mav@freebsd.org, current@freebsd.org Subject: Re: HEADS UP: <utmp.h> gone. All welcome <utmpx.h>. Message-ID: <20100118160551.GA1699@darklight.org.ru> In-Reply-To: <20100113194254.GR64905@hoeg.nl> References: <20100113194254.GR64905@hoeg.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 13, 2010 at 08:42:54PM +0100, Ed Schouten wrote: > Hello everyone, > > I just made various commits to FreeBSD HEAD to remove our old user > accounting database interface (see utmp(5)) and replace it by the POSIX > standardized utmpx interface (see getutxent(3)). This means we just got > rid of some annoyances that are as old as the FreeBSD project itself: > > - Hostnames were originally restricted to 16 bytes, which is way too > short for your average hostname generated by your ISP, but also for > IPv6 addresses, which are at most 32 + 7 = 39 characters. > > - No support for login sessions not related to TTYs, like ppp(8), > ftpd(8) sessions. > > - No support for multiple login sessions on one TTY, for example > generated by login(1). > > I was not able to give us a smooth transition from utmp towards utmpx, > simply because our utmp implementation offered almost no utility > functions, which means all consumers modify the database files > themselves. This means you should probably recompile any applications > you're interested in that uses the user accounting database. I realize > this may be quite uncomfortable, but we can't always win. > > [ This information is mainly for port maintainers: ] > > I've noticed there is some breakage in ports, but it shouldn't be too > serious. I've seen cases where an application includes <utmp.h>, even > though it doesn't use anything provided by that header. In other cases > they used fields like UT_NAMESIZE to derive the maximum user name length > supported by the system, which is clearly not what this definition was > intended for. I've incremented __FreeBSD_version to 900007 to identify > the import of utmpx. In case a certain port breaks badly, let me know > and I'm willing to take a look at it. > > Be sure to give it a try and report any issues. Thanks! > > -- > Ed Schouten <ed@80386.nl> > WWW: http://80386.nl/ net/mpd{4,5} seem to be broken as well: In file included from auth.h:22, from bund.h:22, from ppp.h:117, from modem.c:10: /usr/include/utmp.h:2:2: error: #error "<utmp.h> has been replaced by <utmpx.h>" *** Error code 1 Yuri
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100118160551.GA1699>