Commit Graph

14 Commits

Author SHA1 Message Date
christos
3600b1e75a Add run level messages. 2006-09-22 21:31:55 +00:00
christos
66412e7240 compat code reorg 2005-09-13 01:44:32 +00:00
perry
19b7469a00 de-__P -- the hack is long since useless. Discussed with christos,
matt, kleink, others. Approved by christos.
2005-02-03 04:39:32 +00:00
wiz
31fd31ccf7 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.]
2003-08-26 16:48:32 +00:00
bjh21
4be7a2dcf3 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.
2003-04-28 23:16:11 +00:00
christos
2caaca4c2b Add __P(()); noticed by wiz. 2002-07-28 22:48:38 +00:00
christos
230d3c5bc9 updates to lastlogx implementation. 2002-07-27 19:38:08 +00:00
christos
310f799ea7 forward declaration for struct utmp. 2002-06-02 00:00:27 +00:00
christos
2704769243 - reverse the #define ut_user<->ut_name so that we don't affect utmp.
- add a couple of gnuisms.
2002-04-04 19:39:57 +00:00
christos
2e53a01f3e add a couple of XOPEN compatibility defines, and a non-xopen function that
we are expected to have (updwtmpx). Requested by tron.
2002-03-05 16:09:06 +00:00
tron
a7422358e9 Include "sys/time.h" here to get the definition of "struct timeval". 2002-03-05 14:23:32 +00:00
christos
2d29557059 s/ut_name/ut_user/ from Simon Burge. 2002-02-25 13:57:24 +00:00
christos
230cba3981 - include <sys/socket.h> because we use sockaddr_storage
- it is PATH_LASTLOGX not PATH_LASTLOG
2002-02-25 03:19:15 +00:00
christos
4ac6388b63 A utmpx implementation. 2002-02-22 20:09:01 +00:00