2006-11-25 13:07:29 -07:00
|
|
|
#include "sessreg.h"
|
|
|
|
|
|
|
|
#ifdef UTMPX_FILE
|
|
|
|
# define UTF UTMPX_FILE
|
2010-07-31 03:14:09 -06:00
|
|
|
# define UTM utmpx
|
2015-01-25 04:32:22 -07:00
|
|
|
/* delete utmp-only content */
|
|
|
|
/__BEGIN_UTMP_ONLY__/,/__END_UTMP_ONLY__/ d
|
2006-11-25 13:07:29 -07:00
|
|
|
#else
|
|
|
|
# define UTF UTMP_FILE
|
2010-07-31 03:14:09 -06:00
|
|
|
# define UTM utmp
|
2015-01-25 04:32:22 -07:00
|
|
|
/* delete utmpx-only content */
|
|
|
|
/__BEGIN_UTMPX_ONLY__/,/__END_UTMPX_ONLY__/ d
|
2006-11-25 13:07:29 -07:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef WTMPX_FILE
|
|
|
|
# define WTF WTMPX_FILE
|
2015-01-25 04:32:22 -07:00
|
|
|
# define WTM wtmpx
|
2006-11-25 13:07:29 -07:00
|
|
|
#else
|
|
|
|
# define WTF WTMP_FILE
|
2015-01-25 04:32:22 -07:00
|
|
|
# define WTM wtmp
|
2006-11-25 13:07:29 -07:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef TTYS_FILE
|
|
|
|
# define TTYS_FILE "/etc/ttys"
|
|
|
|
#endif
|
|
|
|
|
2010-07-31 03:14:09 -06:00
|
|
|
#ifndef LLOG_FILE
|
|
|
|
# define LLOG_FILE "/var/log/lastlog"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
s|__utmp_manpage__|UTM|g
|
2006-11-25 13:07:29 -07:00
|
|
|
s|__utmp_file__|UTF|g
|
2015-01-25 04:32:22 -07:00
|
|
|
s|__wtmp_manpage__|WTM|g
|
2006-11-25 13:07:29 -07:00
|
|
|
s|__wtmp_file__|WTF|g
|
|
|
|
s|__ttys_file__|TTYS_FILE|g
|
2010-07-31 03:14:09 -06:00
|
|
|
s|__lastlog_file__|LLOG_FILE|g
|