diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2006-11-07 18:27:45 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2006-11-07 18:27:45 -0800 |
commit | 63f21c67aa6d025d8fa06793dc7f83f37e7c3fb4 (patch) | |
tree | c8085e4ddd8fcc57b5d7ebaeb86b968ad3e50c88 /filenames.sed.c | |
parent | 98a651ec2ac289b966e0a09557e81b33e202ee9c (diff) |
Substitute correct pathnames for utmp/wtmp files in man pages
ifdefs to find the paths on each platform have been broken out into a new
sessreg.h header that is also preprocessed into sed rules applied to the
man page. Old ifdefs left for Imake compatibility in the 6.9/7.0 hybrid
release have been dropped now that autoconf is required to build.
Diffstat (limited to 'filenames.sed.c')
-rw-r--r-- | filenames.sed.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/filenames.sed.c b/filenames.sed.c new file mode 100644 index 0000000..9ce1dcd --- /dev/null +++ b/filenames.sed.c @@ -0,0 +1,21 @@ +#include "sessreg.h" + +#ifdef UTMPX_FILE +# define UTF UTMPX_FILE +#else +# define UTF UTMP_FILE +#endif + +#ifdef WTMPX_FILE +# define WTF WTMPX_FILE +#else +# define WTF WTMP_FILE +#endif + +#ifndef TTYS_FILE +# define TTYS_FILE "/etc/ttys" +#endif + +s|__utmp_file__|UTF|g +s|__wtmp_file__|WTF|g +s|__ttys_file__|TTYS_FILE|g |