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:
Michael Kerrisk 2012-11-11 11:57:30 +01:00
parent fec75159e1
commit 4bcf05347c
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,6 @@ The function
.BR ttyname_r () .BR ttyname_r ()
returns 0 on success, and an error number upon error. returns 0 on success, and an error number upon error.
.SH ERRORS .SH ERRORS
.BR ttyname_r ():
.TP .TP
.B EBADF .B EBADF
Bad file descriptor. Bad file descriptor.
@ -68,6 +67,7 @@ Bad file descriptor.
File descriptor does not refer to a terminal device. File descriptor does not refer to a terminal device.
.TP .TP
.B ERANGE .B ERANGE
.RB ( ttyname_r ())
.I buflen .I buflen
was too small to allow storing the pathname. was too small to allow storing the pathname.
.SH "CONFORMING TO" .SH "CONFORMING TO"