summaryrefslogtreecommitdiffstats
path: root/lib/libutil/login_tty.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1996-01-01 08:27:41 +0000
committerpeter <peter@FreeBSD.org>1996-01-01 08:27:41 +0000
commit42bbbd28614c699542553f24fb84264a5130e8e7 (patch)
treeaac25102c388712f99b4b8c8c49d800d87028e5a /lib/libutil/login_tty.c
parentcaa7284440e2e3d7c0e61a6365754b0094120761 (diff)
downloadFreeBSD-src-42bbbd28614c699542553f24fb84264a5130e8e7.zip
FreeBSD-src-42bbbd28614c699542553f24fb84264a5130e8e7.tar.gz
Bump libutil revision after recent addition of setproctitle().
Install (optional) libutil.h with prototypes for the functions and document this in the man page. minor cleanups to the various routines, include the prototype file, declare return codes etc.
Diffstat (limited to 'lib/libutil/login_tty.c')
-rw-r--r--lib/libutil/login_tty.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libutil/login_tty.c b/lib/libutil/login_tty.c
index 5692637..a5b19ba 100644
--- a/lib/libutil/login_tty.c
+++ b/lib/libutil/login_tty.c
@@ -38,6 +38,11 @@ static char sccsid[] = "@(#)login_tty.c 8.1 (Berkeley) 6/4/93";
#include <sys/param.h>
#include <sys/ioctl.h>
+#include <unistd.h>
+#include <stdlib.h>
+#include <libutil.h>
+
+int
login_tty(fd)
int fd;
{
OpenPOWER on IntegriCloud