|
Message-ID: <1318220c-7daa-053f-12a8-9f4a41cb4b61@adelielinux.org>
Date: Wed, 12 Sep 2018 22:23:37 -0500
From: "A. Wilcox" <awilfox@...lielinux.org>
To: musl@...ts.openwall.com
Subject: Re: [PATCH] return EBADF from ttyname_r
On 09/12/18 21:07, Rich Felker wrote:
> The EBADF error for isatty is optional and musl's does not set it, so
> this patch does not work as-is. I think returning ENOTTY for cases for
> which it does not apply in ttyname_r is non-conforming though, so
> some change similar to this is probably needed. If isatty were
> modified to set errno, I think we could just return errno here.
>
> Rich
>
Please do feel free to work on isatty's error handling, though, Benjamin
(or others).
It is non-conformant as it stands; it returns 0 for /dev/null and it
does not error on a closed fd.
We're tracking this and other issues at the following URL (but note,
it's a little bit behind and a few have been fixed since):
https://wiki.adelielinux.org/wiki/POSIX
Best,
--arw
--
A. Wilcox (awilfox)
Project Lead, Adélie Linux
https://www.adelielinux.org
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.