summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/ttyslot.c
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2010-01-14 05:35:32 +0000
committered <ed@FreeBSD.org>2010-01-14 05:35:32 +0000
commitc47f4ccef36eabbc9ea7c65e2a8e9b2e9814d08a (patch)
treecca50b6992f3e458c9b643cfea07b527623e9879 /lib/libc/gen/ttyslot.c
parent47afb8a1a7c815fd4e3f38832563ee8e7bae7e89 (diff)
downloadFreeBSD-src-c47f4ccef36eabbc9ea7c65e2a8e9b2e9814d08a.zip
FreeBSD-src-c47f4ccef36eabbc9ea7c65e2a8e9b2e9814d08a.tar.gz
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/libc/gen/ttyslot.c')
-rw-r--r--lib/libc/gen/ttyslot.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/gen/ttyslot.c b/lib/libc/gen/ttyslot.c
index 31cc156..b2fac7c 100644
--- a/lib/libc/gen/ttyslot.c
+++ b/lib/libc/gen/ttyslot.c
@@ -40,7 +40,7 @@ __FBSDID("$FreeBSD$");
#include <unistd.h>
int
-ttyslot()
+__ttyslot(void)
{
struct ttyent *ttyp;
int slot;
@@ -63,3 +63,5 @@ ttyslot()
endttyent();
return(0);
}
+
+__sym_compat(ttyslot, __ttyslot, FBSD_1.0);
OpenPOWER on IntegriCloud