Setting up /dev/tty in SunOS Streams drivers

Simon Taylor simon at vision.UUCP
Wed Dec 13 02:28:02 AEST 1989


We are currently porting our Streams multiplexor driver to a Sun 3/80 
SunOS 4.03.

To be blunt.... /dev/tty doesn't work.

Let me explain, if we run a Bourne shell on one of the pseudo devices, then
cat a file > /dev/tty, we see the message

	cat: write error: Invalid argument

When we run "su", it prompts for Password: and then (without being given any
input) returns the Sorry message and returns to the shell prompt. I guess that
here su is reading from /dev/tty and we have not set it up properly.

Other than this everything seems to work fine.

We have looked through all the relevant documentation, and spent a great deal
of time groveling through header files, and the kernel with adb (looking to 
see what other drivers do in their open routines), but to no avail.

Has anyone encountered similar problems in this area, if so can you help?


Thanks in advance

Simon


Simon Taylor                    UUCP    : simon at vision.uucp
VisionWare Ltd                  BANGNET : ...!uunet!mcsun!ukc!vision!simon
Systime House                   PHONE   : +44 532 529292 Ex. 2458
Leeds Business Park             FAX     : +44 532 526614
Leeds LS27 0JG                  TELEX   : 556283 SYSTIM G
England                     
-------------------------------------------------------------------------------
---------------- VisionWare: The Home Of DOS-UNIX Integration -----------------
-------------------------------------------------------------------------------



More information about the Comp.unix.questions mailing list