[1030] in Kerberos_V5_Development

home help back first fref pref prev next nref lref last post

SGI pty handling

daemon@ATHENA.MIT.EDU (Sam Hartman)
Sat Mar 23 03:22:11 1996

Date: Sat, 23 Mar 1996 03:21:50 -0500
From: Sam Hartman <hartmans@MIT.EDU>
To: raeburn@cygnus.com
Cc: krbdev@MIT.EDU


	It appears that both Irix 5.2 and 5.3 support all the
streams-based pty handling interfaces (/dev/ptmx, unlockpt, grantpt,
etc), and absolutely none of them work.  Apparently, ptsname only
gives you a name between /dev/pts/0 and /dev/pts/8; you are out of
luck if you want more than 9~users using the ptys  at once.

	In addition, unlockpt doesn't actually unlock the pty so you
can open it; you tend to get permission denied or no-such-device
messages.

	Also, the entry for pty in section 4 hints that SGI would
really much rather pretend that they were a BSD operating system and
forget about streams when it comes to ptys; they don't suggest pushing
any modules, and support the old Berkeley ioctls.

	To make things worse, most of the pty special files are not
created initially; they are created as they are needed. 

	In short, the only way I can see to get things to work is to
call the SGI-specific hack (_getpty) that allocates a pty and gives
you the name of it.  I will submit a patch later today.

--Sam


home help back first fref pref prev next nref lref last post