summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2010-01-14 05:37:43 +0000
committered <ed@FreeBSD.org>2010-01-14 05:37:43 +0000
commit2bf206e0010131bb276c0d1c657a8081f2c17359 (patch)
tree68f7455e39b6cd0ae355f277be66c8a189a5aa34 /lib
parentc47f4ccef36eabbc9ea7c65e2a8e9b2e9814d08a (diff)
downloadFreeBSD-src-2bf206e0010131bb276c0d1c657a8081f2c17359.zip
FreeBSD-src-2bf206e0010131bb276c0d1c657a8081f2c17359.tar.gz
Add two changes that should have gone into commit r202274.
Phase out ttyslot(3). The ttyslot() function was originally part for SUSv1, marked LEGACY in SUSv2 and removed later on. This function only makes sense when using utmp(5), because it was used to determine the offset of the record for the controlling TTY. It makes little sense to keep it here, because the new utmpx file format doesn't index based on TTY slots.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/Makefile.inc2
-rw-r--r--lib/libc/gen/getttyent.31
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/gen/Makefile.inc b/lib/libc/gen/Makefile.inc
index 2c0cb78..2f562da 100644
--- a/lib/libc/gen/Makefile.inc
+++ b/lib/libc/gen/Makefile.inc
@@ -177,7 +177,7 @@ MLINKS+=tcsetattr.3 cfgetispeed.3 tcsetattr.3 cfgetospeed.3 \
tcsetattr.3 cfmakeraw.3 tcsetattr.3 cfsetispeed.3 \
tcsetattr.3 cfsetospeed.3 tcsetattr.3 cfsetspeed.3 \
tcsetattr.3 tcgetattr.3
-MLINKS+=ttyname.3 isatty.3 ttyname.3 ttyname_r.3 ttyname.3 ttyslot.3
+MLINKS+=ttyname.3 isatty.3 ttyname.3 ttyname_r.3
MLINKS+=tzset.3 tzsetwall.3
MLINKS+=unvis.3 strunvis.3 unvis.3 strunvisx.3
MLINKS+=vis.3 strvis.3 vis.3 strvisx.3
diff --git a/lib/libc/gen/getttyent.3 b/lib/libc/gen/getttyent.3
index 0be7991..18c3f07 100644
--- a/lib/libc/gen/getttyent.3
+++ b/lib/libc/gen/getttyent.3
@@ -188,7 +188,6 @@ zero otherwise.
.El
.Sh SEE ALSO
.Xr login 1 ,
-.Xr ttyslot 3 ,
.Xr gettytab 5 ,
.Xr termcap 5 ,
.Xr ttys 5 ,
OpenPOWER on IntegriCloud