ttyname.3: Document ENODEV error code

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Dmitry V. Levin 2017-03-20 23:51:04 +03:00 committed by Michael Kerrisk
parent 86e5364425
commit 1e88383bc3
1 changed files with 7 additions and 1 deletions

View File

@ -71,6 +71,11 @@ File descriptor does not refer to a terminal device.
.RB ( ttyname_r ())
.I buflen
was too small to allow storing the pathname.
.TP
.\" glibc commit 15e9a4f378c8607c2ae1aa465436af4321db0e23
.B ENODEV
File descriptor refers to a slave pseudoterminal device
but the corresponding pathname could not be found.
.SH ATTRIBUTES
For an explanation of the terms used in this section, see
.BR attributes (7).
@ -92,4 +97,5 @@ POSIX.1-2001, POSIX.1-2008, 4.2BSD.
.BR tty (1),
.BR fstat (2),
.BR ctermid (3),
.BR isatty (3)
.BR isatty (3),
.BR pts (4)