aboutsummaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2010-01-14 05:37:43 +0000
committerEd Schouten <ed@FreeBSD.org>2010-01-14 05:37:43 +0000
commit9457bcdc6044cc2ef92b748fbfecd9675488be21 (patch)
tree68f7455e39b6cd0ae355f277be66c8a189a5aa34 /lib/libc
parent88b69f52ee074783e019b5ab2ba0c63e8a3fd2e7 (diff)
downloadsrc-9457bcdc6044cc2ef92b748fbfecd9675488be21.tar.gz
src-9457bcdc6044cc2ef92b748fbfecd9675488be21.zip
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.
Notes
Notes: svn path=/head/; revision=202275
Diffstat (limited to 'lib/libc')
-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 2c0cb780c641..2f562dae839f 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 0be79910013e..18c3f07c1aad 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 ,