.\" Distributed under GPL
.\" %%%LICENSE_END
.\"
-.TH GETTTYENT 3 2002-07-18 "GNU" "Linux Programmer's Manual"
+.TH GETTTYENT 3 2013-06-21 "GNU" "Linux Programmer's Manual"
.SH NAME
getttyent, getttynam, setttyent, endttyent \- get ttys file entry
.SH SYNOPSIS
#define TTY_ON 0x01 /* enable logins (start ty_getty program) */
#define TTY_SECURE 0x02 /* allow UID 0 to login */
.fi
+.SH ATTRIBUTES
+.SS Multithreading (see pthreads(7))
+The
+.BR getttyent ()
+returns a pointer to a static variable, so it is not thread-safe.
+.LP
+The
+.BR setttyent ()
+and
+.BR endttyent ()
+use a static variable, so they are not thread-safe.
+.LP
+The
+.BR getttynam ()
+calls thread-unsafe function
+.BR getttyent ()
+so it is not thread-safe.
.SH CONFORMING TO
Not in POSIX.1-2001.
Present on the BSDs, and perhaps other systems.