> Yes, it's implemented.  The streamio.c strioctl()
> implementation is the
> real one.  The gentty.c module is a red herring.
>  It's part of the
> bscure "sy" driver ... which has no man page and
> dates back to the USL
> implementation.  I have no idea what it does.  :-/

At least on Solaris 10 (don't have anything newer
handy at the moment):
# modinfo|grep ' sy '
190 7b7f5570      59c 22    1  sy (Indirect driver for tty 'sy' 1.)
# ls -lL /dev/tty
crw-rw-rw-   1 root     tty       22,  0 Aug 6 11:44 /dev/tty

In other words, sy implements /dev/tty...and probably
predates STREAMS-based ttys even.

(I'm having SVR2 flashbacks, having read a lot of that code
way back when.  In fact, I think back in even earlier code,
the sy driver handled something else in addition, maybe
the console, as another minor device.  But maybe my memory
is playing tricks on me.)

So I'm presuming that under normal use, the streamio code
takes care of the TIOCNOTTY ioctl, and it never gets down to
the sy driver (which by the comments, couldn't safely handle it).
-- 
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to