pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/56936: posix_openpt(O_RDWR | O_NOCTTY) fails when configuring pkgsrc/x11/mlterm



The following reply was made to PR pkg/56936; it has been noted by GNATS.

From: David Holland <dholland-pbugs%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/56936: posix_openpt(O_RDWR | O_NOCTTY) fails when
 configuring pkgsrc/x11/mlterm
Date: Sat, 10 Sep 2022 04:05:25 +0000

 also,
 
 On Wed, Sep 07, 2022 at 09:35:01PM +0000, David H. Gutteridge wrote:
  >  > What does it fall back to? openpty(3) ought to work correctly whether
  >  > or not ptyfs is present. (And why doesn't posix_openpt?)
  >  
  >  It falls back to its own home-rolled "open_pty" function, which
  >  ultimately does
  >  
  >  if ((*master = open(name, O_RDWR, 0)) == -1)
  >  
  >  following its own hard-coded list of "old-style" BSD ptys.
 
 Ugh. I mean, you need that code if you want to run everywhere, but it
 ought to know about openpty().
 
 (My question about posix_openpt stands, too.)
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index