Home | History | Annotate | Download | only in include
History log of /src/include/utmpx.h
RevisionDateAuthorComments
 1.18  15-Aug-2021  gutteridge utmpx.h: fix comment missed in r. 1.10 _NETBSD_SOURCE changes
 1.17  11-Jan-2009  christos don't do size computations because g++ does not like it.
 1.16  11-Jan-2009  christos merge christos-time_t
 1.15  28-Apr-2008  martin branches: 1.15.10;
Remove clause 3 and 4 from TNF licenses
 1.14  22-Sep-2006  christos branches: 1.14.16;
Add run level messages.
 1.13  13-Sep-2005  christos compat code reorg
 1.12  03-Feb-2005  perry de-__P -- the hack is long since useless. Discussed with christos,
matt, kleink, others. Approved by christos.
 1.11  26-Aug-2003  wiz Make getlastlogx have the pathname to the lastlogx database as first
argument, to be consistent with updlastlogx.

Approved by christos, reviewed by kleink.

[The lastlogxname function should not be used any longer.]
 1.10  28-Apr-2003  bjh21 Add a new feature-test macro, _NETBSD_SOURCE. If this is defined
by the application, all NetBSD interfaces are made visible, even
if some other feature-test macro (like _POSIX_C_SOURCE) is defined.
<sys/featuretest.h> defined _NETBSD_SOURCE if none of _ANSI_SOURCE,
_POSIX_C_SOURCE and _XOPEN_SOURCE is defined, so as to preserve
existing behaviour.

This has two major advantages:
+ Programs that require non-POSIX facilities but define _POSIX_C_SOURCE
can trivially be overruled by putting -D_NETBSD_SOURCE in their CFLAGS.
+ It makes most of the #ifs simpler, in that they're all now ORs of the
various macros, rather than having checks for (!defined(_ANSI_SOURCE) ||
!defined(_POSIX_C_SOURCE) || !defined(_XOPEN_SOURCE)) all over the place.

I've tried not to change the semantics of the headers in any case where
_NETBSD_SOURCE wasn't defined, but there were some places where the
current semantics were clearly mad, and retaining them was harder than
correcting them. In particular, I've mostly normalised things so that
_ANSI_SOURCE gets you the smallest set of stuff, then _POSIX_C_SOURCE,
_XOPEN_SOURCE and _NETBSD_SOURCE in that order.

Tested by building for vax, encouraged by thorpej, and uncontested in
tech-userlevel for a week.
 1.9  28-Jul-2002  christos Add __P(()); noticed by wiz.
 1.8  27-Jul-2002  christos updates to lastlogx implementation.
 1.7  02-Jun-2002  christos forward declaration for struct utmp.
 1.6  04-Apr-2002  christos - reverse the #define ut_user<->ut_name so that we don't affect utmp.
- add a couple of gnuisms.
 1.5  05-Mar-2002  christos branches: 1.5.2;
add a couple of XOPEN compatibility defines, and a non-xopen function that
we are expected to have (updwtmpx). Requested by tron.
 1.4  05-Mar-2002  tron Include "sys/time.h" here to get the definition of "struct timeval".
 1.3  25-Feb-2002  christos s/ut_name/ut_user/ from Simon Burge.
 1.2  25-Feb-2002  christos - include <sys/socket.h> because we use sockaddr_storage
- it is PATH_LASTLOGX not PATH_LASTLOG
 1.1  22-Feb-2002  christos A utmpx implementation.
 1.5.2.5  01-Aug-2002  nathanw Catch up to -current.
 1.5.2.4  21-Jun-2002  nathanw Catch up to -current.
 1.5.2.3  25-Apr-2002  nathanw Catch up to -current.
 1.5.2.2  11-Mar-2002  nathanw Catch up to -current.
 1.5.2.1  05-Mar-2002  nathanw file utmpx.h was added on branch nathanw_sa on 2002-03-11 21:07:51 +0000
 1.14.16.1  18-May-2008  yamt sync with head.
 1.15.10.4  28-Dec-2008  christos more compat changes
- new functions
- adjust utmp size.
 1.15.10.3  09-Nov-2008  christos no need to version {set,end}utmpx
 1.15.10.2  08-Nov-2008  christos changes for 64 bit time_t
 1.15.10.1  28-Apr-2008  christos file utmpx.h was added on branch christos-time_t on 2008-11-08 21:13:13 +0000

RSS XML Feed