Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: curts@compgen.com (Curt Smith)
Subject: ??/dev/pts/N are NOT full duplex like SVR4??
Date: 1996/09/27	[thread overview]
Message-ID: <52gc5m$l86@metro.atlanta.com> (raw)


I need full duplex pseudodevices that can be written to from both
ends and selected() from both ends like SVR4 stream based ptys.

The following code on DUX does not result in pty device path, that
another task can open and select() on input:

fd = open(/dev/ptmx, O_RDWR);
grantpt(fd)
unlockpt(fd);
pttypath = ptsname(fd);

Then pttypath is sent to another task, who opens pttypath and select()s
on that fd.  This select will never return for input.  This works
fine on SVR4 pttys.

Is there a ptty on DUX that is selectable on both ends.

I'm aware of the DUX proprietary (not in Spec 1170) call of:
openpty().  Is the path name returned, open'able by another task
and then select'able?

Thanks.


Curt Smith
curts@compgen.com




                 reply	other threads:[~1996-09-27  4:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox