mirror of https://github.com/mkerrisk/man-pages
ttyname.3: Fix confused text in ERRORS
The existing text suggested that the ERRORS applied only for ttyname_r(). However, 2 of the 3 errors can occur for ttyname(). Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
fec75159e1
commit
4bcf05347c
|
@ -59,7 +59,6 @@ The function
|
|||
.BR ttyname_r ()
|
||||
returns 0 on success, and an error number upon error.
|
||||
.SH ERRORS
|
||||
.BR ttyname_r ():
|
||||
.TP
|
||||
.B EBADF
|
||||
Bad file descriptor.
|
||||
|
@ -68,6 +67,7 @@ Bad file descriptor.
|
|||
File descriptor does not refer to a terminal device.
|
||||
.TP
|
||||
.B ERANGE
|
||||
.RB ( ttyname_r ())
|
||||
.I buflen
|
||||
was too small to allow storing the pathname.
|
||||
.SH "CONFORMING TO"
|
||||
|
|
Loading…
Reference in New Issue