Control: tag -1 +fixed-upstream Hi,
On Tue, Jun 05, 2012 at 11:59:22AM -0700, Regid Ichira wrote: > 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. Fixed by upstream in man-pages-3.45: [main] 4bcf05347cb29dcda3ae90cfb800cac06d952800 Commit: Michael Kerrisk <mtk.manpa...@gmail.com> CommitDate: Sun Nov 11 11:57:30 2012 +0100 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.manpa...@gmail.com> --- man3/ttyname.3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- Simon Paillard -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org