🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #9216

Get state of a terminal port on an ALM-II?

#9216
From: Leonard Sitongia
Date: Wed, 23 Nov 1988 04:01
22 lines
1447 bytes
System:   Sun-4/280S
OS:       4.0
Category: Operating System / terminal driver

How do I get the state of a terminal port on an ALM-II?  I want to find
out if a user has the terminal stopped (XON, CNTL-S).

Under Berkeley line discipline terminal drivers a process's user structure
has a pointer to a tty structure that contains t_state,
user->u_ttyp->t_state.  t_state is an int that can be tested for the
stopped state.

u_ttyp points to a tty structure under a BSD terminal driver, but under
SunOS 4.0 the include file says "pointer to pgrp in streamtab".

In general, there are no tty structures in the kernel under SunOS 4.0's
STREAMS terminal driver, right?

-Leonard E. Sitongia    System Programmer		 (303) 497-1509
USPS Mail: High Altitude Observatory P.O. Box 3000 Boulder CO  80307
Internet:               sitongia@hao.ucar.edu
SPAN:			NSFGW::"hao.ucar.edu!sitongia"	[NSFGW=9580]
Technical Details
Message-ID: <8811111841.AA20072@hao.UCAR.EDU>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!convex!killer!mit-eddie!uw-beaver!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!convex!killer!mit-eddie!uw-beaver!rice!sun-spots-request
From: sitongia@hao.ucar.edu (Leonard Sitongia)
Newsgroups: comp.sys.sun
Subject: Get state of a terminal port on an ALM-II?
Message-ID: <8811111841.AA20072@hao.UCAR.EDU>
Date: 23 Nov 88 04:01:09 GMT
Sender: usenet@rice.edu
Reply-To: Sun-Spots@Rice.edu
Organization: Rice University, Houston, Texas
Lines: 22
Approved: Sun-Spots@rice.edu
Original-Date: Fri, 11 Nov 88 11:41:21 MST
X-Sun-Spots-Digest: Volume 7, Issue 23, message 7 of 12