x11-xserver-utils/sessreg/man/filenames.sed.c

37 lines
681 B
C
Raw Normal View History

2007-08-22 01:36:07 -05:00
#include "sessreg.h"
#ifdef UTMPX_FILE
# define UTF UTMPX_FILE
2009-12-06 06:02:51 -06:00
# define UTM utmpx
2015-05-02 11:32:19 -05:00
/* delete utmp-only content */
/__BEGIN_UTMP_ONLY__/,/__END_UTMP_ONLY__/ d
2007-08-22 01:36:07 -05:00
#else
# define UTF UTMP_FILE
2009-12-06 06:02:51 -06:00
# define UTM utmp
2015-05-02 11:32:19 -05:00
/* delete utmpx-only content */
/__BEGIN_UTMPX_ONLY__/,/__END_UTMPX_ONLY__/ d
2007-08-22 01:36:07 -05:00
#endif
#ifdef WTMPX_FILE
# define WTF WTMPX_FILE
2015-05-02 11:32:19 -05:00
# define WTM wtmpx
2007-08-22 01:36:07 -05:00
#else
# define WTF WTMP_FILE
2015-05-02 11:32:19 -05:00
# define WTM wtmp
2007-08-22 01:36:07 -05:00
#endif
#ifndef TTYS_FILE
# define TTYS_FILE "/etc/ttys"
#endif
2009-12-06 06:02:51 -06:00
#ifndef LLOG_FILE
# define LLOG_FILE "/var/log/lastlog"
#endif
s|__utmp_manpage__|UTM|g
2007-08-22 01:36:07 -05:00
s|__utmp_file__|UTF|g
2015-05-02 11:32:19 -05:00
s|__wtmp_manpage__|WTM|g
2007-08-22 01:36:07 -05:00
s|__wtmp_file__|WTF|g
s|__ttys_file__|TTYS_FILE|g
2009-12-06 06:02:51 -06:00
s|__lastlog_file__|LLOG_FILE|g