[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 3/4] ptsname_r: port to Solaris
From: |
Bruno Haible |
Subject: |
Re: [PATCH 3/4] ptsname_r: port to Solaris |
Date: |
Tue, 8 Nov 2011 12:25:50 +0100 |
User-agent: |
KMail/1.13.6 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.0; x86_64; ; ) |
Eric Blake wrote:
> + * lib/ptsname_r.c (ptsname_r): Provide wrapper around ptsname,
> + when it is available, since Solaris isatty doesn't set errno.
> ...
> I would expect feedback
> to include whether ptsname_r should drag in locking
The new ptsname_r replacement is active on platforms where our old
ptsname replacement was not needed:
MacOS X 10.5, FreeBSD 6.0, NetBSD 5.0, AIX 5.1, HP-UX 11, IRIX 6.5,
Solaris 11 2010-11, Cygwin.
Having ptsname_r call ptsname brings up the issue of locking, and seems
backwards. It would be nicer to have ptsname_r be built only on top of
isatty() and ttyname_r(). The question is whether this is possible, and
only testing on all of the above systems can show.
Can you therefore please commit parts 1 and 2 only, and hold off for
parts 3 and 4, to give me time to investigate whether the simpler
implementation essentially works on all platforms?
Bruno
--
In memoriam The inmates of the Daugavpils Ghetto
<http://en.wikipedia.org/wiki/Daugavpils_Ghetto>
- Re: [PATCH 2/4] ptsname_r-tests: new test module, (continued)
- Re: [PATCH 2/4] ptsname_r-tests: new test module, Bruno Haible, 2011/11/10
- Re: [PATCH 2/4] ptsname_r-tests: new test module, Bruno Haible, 2011/11/10
- Re: [PATCH 2/4] ptsname_r-tests: new test module, Eric Blake, 2011/11/10
- Re: [PATCH 2/4] ptsname_r-tests: new test module, Bruno Haible, 2011/11/10
- Re: [PATCH 2/4] ptsname_r-tests: new test module, Eric Blake, 2011/11/10
[PATCH 4/4] ptsname_r: work around FreeBSD issue, Eric Blake, 2011/11/07
[PATCH 3/4] ptsname_r: port to Solaris, Eric Blake, 2011/11/07
- Re: [PATCH 3/4] ptsname_r: port to Solaris,
Bruno Haible <=
[PATCH 1/4] ptsname_r: new module, Eric Blake, 2011/11/07
- Re: [PATCH 1/4] ptsname_r: new module, Bruno Haible, 2011/11/08
- Re: [PATCH 1/4] ptsname_r: new module, Karl Berry, 2011/11/08
- Re: [PATCH 1/4] ptsname_r: new module, Bruno Haible, 2011/11/08
- Re: [PATCH 1/4] ptsname_r: new module, Karl Berry, 2011/11/08
- Re: [PATCH 1/4] ptsname_r: new module, Jim Meyering, 2011/11/09
- Re: [PATCH 1/4] ptsname_r: new module, Bruno Haible, 2011/11/09
- Re: [PATCH 1/4] ptsname_r: new module, Karl Berry, 2011/11/09
- Re: info readers, Bruno Haible, 2011/11/09
- Re: info readers, Karl Berry, 2011/11/09