🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.unix.programmer
1 messages
1 total messages Started by William J. Bogstad Sat, 06 Oct 1990 01:42
Question on BSD Pseudo-TTY ioctl's (slave vs. master)
#982
Author: William J. Bogstad
Date: Sat, 06 Oct 1990 01:42
17 lines
1453 bytes
	I'm trying to port a 4.3BSD program (window(1))to SUN OS 4.0.3 and
am having a minor problem with code that deals with pseudo-ttys.  The code
attempts to change the slave side terminals settings of the pseudo-tty by
doing the same ioctl's on the master side.  I currently open the slave set
the terminal settings and then close it.  Unfortunately, after closing the
PTY the terminal settings get reset to the defaults.  The USENIX 4.3BSD
manual pages for PTYs list the master side ioctl's, but don't say whether or
not the slave side ioctl's are supposed to work on either side.  I would
assume that 4.2BSD does work that way, but I would like to know if that is
just accidental or an intended capability.  Is there any way do this other
then opening (and keeping open) the slave side?  A "portable" solution would
be preferred.  I would also be curious about how other UNIX systems that
implement PTYs deal with this question.

				Thanks,
				Bill Bogstad
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads