[Bug 191931] isatty(-1)/ttyname_r(-1, ...) sets EBADF instead of ENOTTY; does not conform to manpage/POSIX

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jul 17 20:47:06 UTC 2014


Jilles Tjoelker <jilles at FreeBSD.org> changed:

           What    |Removed                     |Added
             Status|Needs Triage                |Issue Resolved
                 CC|                            |jilles at FreeBSD.org
         Resolution|---                         |Works As Intended

--- Comment #1 from Jilles Tjoelker <jilles at FreeBSD.org> ---
This looks like a bug in the standard that was fixed for POSIX.1-2008/SUSv4,
which has the expected [EBADF] (invalid file descriptor) and [ENOTTY] (not a
terminal) error conditions. According to the change history, the erratum is

You are receiving this mail because:
You are the assignee for the bug.

More information about the freebsd-bugs mailing list