|
From: | Ken Brown |
Subject: | Re: ptsname_r on Cygwin |
Date: | Thu, 21 Jan 2021 17:45:29 -0500 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 |
On 1/21/2021 3:26 PM, Bruno Haible wrote:
Ken Brown wrote:Thanks for the report. I've submitted a patch that fixes this: https://cygwin.com/pipermail/cygwin-patches/2021q1/010995.htmlThanks. EBADF is the more "proper" errno value here, for fd < 0. But glibc produces errno ENOTTY in this case; so it should be acceptable too.
I thought EBADF made more sense too, but Cygwin generally tries to emulate Linux. We'll see what Corinna thinks.
Ken
[Prev in Thread] | Current Thread | [Next in Thread] |