Package: manpages-dev Version: 3.40-0.1 Severity: normal Tags: patch File: /usr/share/man/man3/ttyname.3.gz
From the return value section, with no other verifications, I conclude that EBADF and ENOTTY are possible error codes for ttyname() too. --- a/ttyname.3 2012-06-05 21:49:03.646218048 +0300 +++ b/ttyname.3 2012-06-05 21:47:52.000000000 +0300 @@ -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. @@ -67,6 +66,7 @@ Bad file descriptor. .B ENOTTY File descriptor does not refer to a terminal device. .TP +.BR "ttyname_r () "only: .B ERANGE .I buflen was too small to allow storing the pathname. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org