hi,

Between exams, I'll have some time to work on lsh. (or at least I'll make
some time available :-)) I thought it would be handy, if lshd could
allocate a pseudo-tty, so real full-screen programs could be run.

My question is about how I should allocate that given pseudo tty. I found
a function openpty() in glibc, but this doesn't seem to be portable. (at
least I didn't find this one on solaris). Other way would be to try to
open all /dev/ptyp*, the one which can be successfully opened will be the
master, and the corresponding /dev/ttyp0 is the slave pty. But what
happens when we'll have a /dev/ptmx, and will have to use ioctls to
allocate a pty. This last one seems to be supported by latest linux
kernels, and seem to be standard in solaris.

So which way to choose?

--- Bazsi

Reply via email to