I am trying to get the proper device settings for a Dev driver that gets set
with the stty utility. When I have a driver with more than one device, if I
try changing the baud rate for example on /dev/tst2 the tios->handle is
always 0 and I can never get the correct handle passed in. The example is
below. I just trigger a proxy that tells me when stty has been called and to
set the actual h/w. Are some flags to the driver that need to get set? It
is in raw mode. Thanks.
int far Stty (struct termios far *tios)
{
extern int lastSttyDevice;
extern pid_t stty_proxy;
lastSttyDevice = tios->handle;
Trigger(stty_proxy);
return 1;