summaryrefslogtreecommitdiffstats
path: root/man3/getttyent.3
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--man3/getttyent.321
1 files changed, 10 insertions, 11 deletions
diff --git a/man3/getttyent.3 b/man3/getttyent.3
index 81c4c4c..aeb87ac 100644
--- a/man3/getttyent.3
+++ b/man3/getttyent.3
@@ -3,7 +3,7 @@
.\"
.\" SPDX-License-Identifier: GPL-1.0-or-later
.\"
-.TH getttyent 3 2023-07-20 "Linux man-pages 6.05.01"
+.TH getttyent 3 2023-10-31 "Linux man-pages 6.7"
.SH NAME
getttyent, getttynam, setttyent, endttyent \- get ttys file entry
.SH LIBRARY
@@ -12,10 +12,10 @@ Standard C library
.SH SYNOPSIS
.nf
.B "#include <ttyent.h>"
-.PP
+.P
.B "struct ttyent *getttyent(void);"
.BI "struct ttyent *getttynam(const char *" name );
-.PP
+.P
.B "int setttyent(void);"
.B "int endttyent(void);"
.fi
@@ -24,22 +24,22 @@ These functions provide an interface to the file
.B _PATH_TTYS
(e.g.,
.IR /etc/ttys ).
-.PP
+.P
The function
.BR setttyent ()
opens the file or rewinds it if already open.
-.PP
+.P
The function
.BR endttyent ()
closes the file.
-.PP
+.P
The function
.BR getttynam ()
searches for a given terminal name in the file.
It returns a pointer to a
.I ttyent
structure (description below).
-.PP
+.P
The function
.BR getttyent ()
opens the file
@@ -49,7 +49,7 @@ If the file is already open, the next entry.
The
.I ttyent
structure has the form:
-.PP
+.P
.in +4n
.EX
struct ttyent {
@@ -62,10 +62,10 @@ struct ttyent {
};
.EE
.in
-.PP
+.P
.I ty_status
can be:
-.PP
+.P
.in +4n
.EX
#define TTY_ON 0x01 /* enable logins (start ty_getty program) */
@@ -89,7 +89,6 @@ T{
.BR getttynam ()
T} Thread safety MT-Unsafe race:ttyent
.TE
-.sp 1
.SH STANDARDS
BSD.
.SH NOTES