summaryrefslogtreecommitdiff
path: root/man/filenames.sed.c
blob: 2ca7f1d80f623db81bedd09a2f3eefe74d9c0eee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include "sessreg.h"

#ifdef UTMPX_FILE
# define UTF UTMPX_FILE
# define UTM utmpx
/* delete utmp-only content */
/__BEGIN_UTMP_ONLY__/,/__END_UTMP_ONLY__/ d
#else
# define UTF UTMP_FILE
# define UTM utmp
/* delete utmpx-only content */
/__BEGIN_UTMPX_ONLY__/,/__END_UTMPX_ONLY__/ d
#endif

#ifdef WTMPX_FILE
# define WTF WTMPX_FILE
# define WTM wtmpx
#else
# define WTF WTMP_FILE
# define WTM wtmp
#endif

#ifndef TTYS_FILE
# define TTYS_FILE "/etc/ttys"
#endif

#ifndef LLOG_FILE
# define LLOG_FILE "/var/log/lastlog"
#endif

s|__utmp_manpage__|UTM|g
s|__utmp_file__|UTF|g
s|__wtmp_manpage__|WTM|g
s|__wtmp_file__|WTF|g
s|__ttys_file__|TTYS_FILE|g
s|__lastlog_file__|LLOG_FILE|g