Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jan 2010 22:17:04 +0100
From:      dirk.meyer@dinoex.sub.org (Dirk Meyer)
To:        freebsd-ports@freebsd.org
Subject:   Re: HEADS UP: <utmp.h> gone. All welcome <utmpx.h>.
Message-ID:  <Ubi2XTn6mD@dmeyer.dinoex.sub.org>
References:  <20100113194254.GR64905@hoeg.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
Hallo Ed Schouten,

1. POLA

http://www.freebsd.org/doc/en_US.ISO8859-1/articles/committers-guide/rules.html

$ man utmp
does not mention that this interafce is deprectaed (see 11.4)


2. there is now new manpage?
$ man -k utmp
login(3)                 - log a new login record to the utmp and wtmp files
logout(3)                - remove an entry from the utmp file
utempter_add_record(3), utempter_remove_added_record(3), utempter_remove_record(3), addToUtmp(3), removeFromUtmp(3), removeLineFromUtmp(3) - utempter compatibility interface
utmp(5), wtmp(5), lastlog(5) - login records
wtmpcvt(1)               - convert wtmp files to the utmpx format

2. radiusd-cistron

http://pointyhat.freebsd.org/errorlogs/i386-9-latest/radiusd-cistron-1.6.8.log

Has support for sysv utmpx,
but this differs with the freebsd implementaion.

3. vsftpd

http://pointyhat.freebsd.org/errorlogs/i386-9-latest/vsftpd-2.2.2.log

this needs updwtmpx which is not avialible.
this seemms to differ from other implementations.

4. freebsd-uucp

http://pointyhat.freebsd.org/errorlogs/i386-9-latest/freebsd-uucp-1.07.3_1.log

use of UT_NAMELEN can be fixed.

What is the replacement of "_PATH_LASTLOG" ?

What is the replacement of "logwtmp()" ?

5. hylafax

http://pointyhat.freebsd.org/errorlogs/i386-9-latest/hylafax-6.0.4.log

... configure use of <utmpx.h> (extended utmp interface)
but fails.

Even forcing it to use the SysV interface fails:
GettySysV.c++: In member function 'void SysVGetty::writeWtmp(utmpx*)':
GettySysV.c++:177: error: '_PATH_WTMPX' was not declared in this scope
GettySysV.c++:177: error: 'updwtmpx' was not declared in this scope
GettySysV.c++: In member function 'void SysVGetty::loginAccount()':
GettySysV.c++:200: error: 'struct utmpx' has no member named 'ut_xtime'
GettySysV.c++: In member function 'virtual void SysVGetty::hangup()':
GettySysV.c++:243: error: 'struct utmpx' has no member named 'ut_xtime'
*** Error code 1

6. manpage

$ man getutxent

Please proivide some example here.

It looks like there is a lot of new code needed for porting.

kind regards Dirk

- Dirk Meyer, Im Grund 4, 34317 Habichtswald, Germany
- [dirk.meyer@dinoex.sub.org],[dirk.meyer@guug.de],[dinoex@FreeBSD.org]
http://people.freebsd.org/~dinoex/errorlogs/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Ubi2XTn6mD>