|
From: | Ken Brown |
Subject: | Re: ptsname_r on Cygwin |
Date: | Fri, 22 Jan 2021 10:48:14 -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 5:45 PM, Ken Brown wrote:
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.
Corinna agreed with you but left it up to me, so I went with EBADF. Thanks. Ken
[Prev in Thread] | Current Thread | [Next in Thread] |