I've having a devil of a time trying to grok packet mode
pseudo terms (ptys). I can push the pckt module on to
the pty master OK, and I can read data using getmsg().
I can even see ordinary text messages when control buffer
is 0, indicating (to my understading at least), that an M_DATA
message has been received. Printing the associated
data buffer prints the text as normal.
But when I'm trying to tickle the sort of behaviour packet
mode is supposed to detect (by using the stty command in
a program that runs a given command in a pty), the only
non-data message types are 0x0e, which from <sys/stream.h>
woudl seem to be M_IOCTL messages. This is the start of
my confusion, according to Appendix C of the STREAMS
Programming Guide (806-6546) (page 345 to be exact), I
should be seeing an M_PROTO message. What gives?
My goal is to write a program that uses packet mode ptys,
and prints out the status changes it is notified of.
OS is Solaris 9.
Rich Teer, SCNA, SCSA
Rite Online Inc.
Voice: +1 (250) 979-1638