From 4bcf05347cb29dcda3ae90cfb800cac06d952800 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sun, 11 Nov 2012 11:57:30 +0100 Subject: [PATCH] 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 --- man3/ttyname.3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man3/ttyname.3 b/man3/ttyname.3 index 64ad7408e..634168d72 100644 --- a/man3/ttyname.3 +++ b/man3/ttyname.3 @@ -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"