[PATCH app-sessreg 1/4] man: computing the ttys file location is not required

Gaetan Nadon memsize at videotron.ca
Mon Mar 14 11:19:46 PDT 2011


All platforms having this file is located in the same place
in the filesystem.

Platforms I have checked: *BSD and MAC have it.
SCO, Solaris and Linux don't have it.

The man pages explains the different implementations of utmp
where the ttys file may or may not be exist.

Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
---
 man/filenames.sed.c |    5 -----
 man/sessreg.man     |   10 +++++-----
 2 files changed, 5 insertions(+), 10 deletions(-)

diff --git a/man/filenames.sed.c b/man/filenames.sed.c
index 2db7845..667552d 100644
--- a/man/filenames.sed.c
+++ b/man/filenames.sed.c
@@ -14,10 +14,6 @@
 # define WTF WTMP_FILE
 #endif
 
-#ifndef TTYS_FILE
-# define TTYS_FILE "/etc/ttys"
-#endif
-
 #ifndef LLOG_FILE
 # define LLOG_FILE "/var/log/lastlog"
 #endif
@@ -25,5 +21,4 @@
 s|__utmp_manpage__|UTM|g
 s|__utmp_file__|UTF|g
 s|__wtmp_file__|WTF|g
-s|__ttys_file__|TTYS_FILE|g
 s|__lastlog_file__|LLOG_FILE|g
diff --git a/man/sessreg.man b/man/sessreg.man
index bb1d9c8..cf86774 100644
--- a/man/sessreg.man
+++ b/man/sessreg.man
@@ -49,18 +49,18 @@ entries for xdm sessions.
 System V has a better interface to utmp than BSD; it
 dynamically allocates entries in the file, instead of writing them at fixed
 positions indexed by position in
-.BR __ttys_file__ .
+.BR /etc/ttys .
 .PP
 To manage BSD-style utmp files, \fIsessreg\fP has two strategies.  In
 conjunction with xdm, the -x option counts the number of lines in
-.B __ttys_file__
+.B /etc/ttys
 and then adds to that the number of the line in the Xservers file which
 specifies the display.  The display name must be specified as the
 "line-name" using the -l option.  This sum is used as the "slot-number" in
 the utmp file that this entry will be written at.  In the more general case,
 the -s option specifies the slot-number directly.  If for some strange reason
 your system uses a file other than
-.B __ttys_file__
+.B /etc/ttys
 to manage init, the -t option can direct
 \fIsessreg\fP to look elsewhere for a count of terminal sessions.
 .PP
@@ -112,8 +112,8 @@ a remote host.  In typical xdm usage, this options is not used.
 .IP "\fB-s\fP \fIslot-number\fP"
 Each potential session has a unique slot number in BSD systems, most are
 identified by the position of the \fIline-name\fP in the
-.BR __ttys_file__ file.
-This option overrides the default position determined with ttyslot(__libmansuffix__).
+.BR /etc/ttys
+file.  This option overrides the default position determined with ttyslot(__libmansuffix__).
 This option is inappropriate for use with xdm, the -x option is more useful.
 .IP "\fB-x\fP \fIXservers-file\fP"
 As X sessions are one-per-display, and each display is entered in this file,
-- 
1.6.0.4



More information about the xorg-devel mailing list