about summary refs log tree commit diff
path: root/login
diff options
context:
space:
mode:
Diffstat (limited to 'login')
-rw-r--r--login/utmp.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/login/utmp.h b/login/utmp.h
index b53e13a9e0..71f1a093df 100644
--- a/login/utmp.h
+++ b/login/utmp.h
@@ -24,10 +24,16 @@ Boston, MA 02111-1307, USA.  */
 
 #include <sys/types.h>
 
+
 /* Get system dependent values and data structures.  */
 #include <utmpbits.h>
 
 
+/* Make FD be the controlling terminal, stdin, stdout, and stderr;
+   then close FD.  Returns 0 on success, nonzero on error.  */
+extern int login_tty __P ((int fd));
+
+
 /* Write the given entry into utmp and wtmp.  */
 extern void login __P ((__const struct utmp *));
 
@@ -38,7 +44,7 @@ extern int logout __P ((__const char *ut_line));
 extern void logwtmp __P ((__const char *ut_line, __const char *ut_name,
 			  __const char *ut_host));
 
-/* Change name of the examine utmp file.  */
+/* Change name of the utmp file to be examined.  */
 extern int utmpname __P ((__const char *__file));
 
 /* Read next entry from a utmp-like file.  */