SCCS-vsn: sys/vax/uba/dh.c 4.54
SCCS-vsn: sys/vax/uba/dmf.c 4.15
SCCS-vsn: sys/vax/uba/dz.c 4.47
SCCS-vsn: sys/vax/uba/ps.c 4.8
-/* dh.c 4.53 82/10/17 */
+/* dh.c 4.54 82/12/05 */
#include "dh.h"
#if NDH > 0
#include "dh.h"
#if NDH > 0
#include "../h/dir.h"
#include "../h/user.h"
#include "../h/proc.h"
#include "../h/dir.h"
#include "../h/user.h"
#include "../h/proc.h"
#include "../h/tty.h"
#include "../h/map.h"
#include "../h/pte.h"
#include "../h/tty.h"
#include "../h/map.h"
#include "../h/pte.h"
if (tp->t_flags&RAW)
c = 0;
else
if (tp->t_flags&RAW)
c = 0;
else
#if NBK > 0
if (tp->t_line == NETLDISC) {
c &= 0177;
#if NBK > 0
if (tp->t_line == NETLDISC) {
c &= 0177;
lpar = ((tp->t_ospeed)<<10) | ((tp->t_ispeed)<<6);
if ((tp->t_ispeed) == B134)
lpar |= BITS6|PENABLE|HDUPLX;
lpar = ((tp->t_ospeed)<<10) | ((tp->t_ispeed)<<6);
if ((tp->t_ispeed) == B134)
lpar |= BITS6|PENABLE|HDUPLX;
- else if ((tp->t_flags&RAW) || (tp->t_local&LLITOUT))
+ else if (tp->t_flags & (RAW|LITOUT))
lpar |= BITS8;
else
lpar |= BITS7|PENABLE;
lpar |= BITS8;
else
lpar |= BITS7|PENABLE;
*/
if (tp->t_outq.c_cc == 0)
goto out;
*/
if (tp->t_outq.c_cc == 0)
goto out;
- if (tp->t_flags&RAW || tp->t_local&LLITOUT)
+ if (tp->t_flags & (RAW|LITOUT))
nch = ndqb(&tp->t_outq, 0);
else {
nch = ndqb(&tp->t_outq, 0200);
nch = ndqb(&tp->t_outq, 0);
else {
nch = ndqb(&tp->t_outq, 0200);
if (addr->dmcsr&DM_CF) {
tp = &dh11[(dm<<4)+(addr->dmcsr&0xf)];
wakeup((caddr_t)&tp->t_rawq);
if (addr->dmcsr&DM_CF) {
tp = &dh11[(dm<<4)+(addr->dmcsr&0xf)];
wakeup((caddr_t)&tp->t_rawq);
- if ((tp->t_state&TS_WOPEN)==0 &&
- (tp->t_local&LMDMBUF)) {
+ if ((tp->t_state&TS_WOPEN) == 0 &&
+ (tp->t_mode & MDMBUF)) {
if (addr->dmlstat & DML_CAR) {
tp->t_state &= ~TS_TTSTOP;
ttstart(tp);
if (addr->dmlstat & DML_CAR) {
tp->t_state &= ~TS_TTSTOP;
ttstart(tp);
}
} else if ((addr->dmlstat&DML_CAR)==0) {
if ((tp->t_state&TS_WOPEN)==0 &&
}
} else if ((addr->dmlstat&DML_CAR)==0) {
if ((tp->t_state&TS_WOPEN)==0 &&
- (tp->t_local&LNOHANG)==0) {
+ (tp->t_mode & NOHANG) == 0) {
gsignal(tp->t_pgrp, SIGHUP);
gsignal(tp->t_pgrp, SIGCONT);
addr->dmlstat = 0;
gsignal(tp->t_pgrp, SIGHUP);
gsignal(tp->t_pgrp, SIGCONT);
addr->dmlstat = 0;
-/* dmf.c 4.14 82/10/22 */
+/* dmf.c 4.15 82/12/05 */
#include "dmf.h"
#if NDMF > 0
#include "dmf.h"
#if NDMF > 0
#include "../h/conf.h"
#include "../h/dir.h"
#include "../h/user.h"
#include "../h/conf.h"
#include "../h/dir.h"
#include "../h/user.h"
#include "../h/tty.h"
#include "../h/map.h"
#include "../h/pte.h"
#include "../h/tty.h"
#include "../h/map.h"
#include "../h/pte.h"
if (tp->t_flags&RAW)
c = 0;
else
if (tp->t_flags&RAW)
c = 0;
else
#if NBK > 0
if (tp->t_line == NETLDISC) {
c &= 0177;
#if NBK > 0
if (tp->t_line == NETLDISC) {
c &= 0177;
lcr = DMFLCR_ENA;
if ((tp->t_ispeed) == B134)
lpar |= BITS6|PENABLE;
lcr = DMFLCR_ENA;
if ((tp->t_ispeed) == B134)
lpar |= BITS6|PENABLE;
- else if ((tp->t_flags&RAW) || (tp->t_local&LLITOUT))
+ else if (tp->t_flags & (RAW|LITOUT))
lpar |= BITS8;
else {
lpar |= BITS7|PENABLE;
lpar |= BITS8;
else {
lpar |= BITS7|PENABLE;
*/
if (tp->t_outq.c_cc == 0)
goto out;
*/
if (tp->t_outq.c_cc == 0)
goto out;
- if (tp->t_flags&RAW || tp->t_local&LLITOUT)
+ if (tp->t_flags & (RAW|LITOUT))
nch = ndqb(&tp->t_outq, 0);
else {
nch = ndqb(&tp->t_outq, 0200);
nch = ndqb(&tp->t_outq, 0);
else {
nch = ndqb(&tp->t_outq, 0200);
-/* dz.c 4.46 82/10/17 */
+/* dz.c 4.47 82/12/05 */
#include "dz.h"
#if NDZ > 0
#include "dz.h"
#if NDZ > 0
#include "bk.h"
#include "../h/param.h"
#include "../h/systm.h"
#include "bk.h"
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/tty.h"
#include "../h/dir.h"
#include "../h/user.h"
#include "../h/tty.h"
#include "../h/dir.h"
#include "../h/user.h"
if (tp->t_flags & RAW)
c = 0;
else
if (tp->t_flags & RAW)
c = 0;
else
if (c&DZ_DO && overrun == 0) {
/* printf("dz%d,%d: silo overflow\n", dz, (c>>8)&7); */
overrun = 1;
if (c&DZ_DO && overrun == 0) {
/* printf("dz%d,%d: silo overflow\n", dz, (c>>8)&7); */
overrun = 1;
return;
}
lpr = (dz_speeds[tp->t_ispeed]<<8) | (unit & 07);
return;
}
lpr = (dz_speeds[tp->t_ispeed]<<8) | (unit & 07);
- if ((tp->t_local&LLITOUT) || (tp->t_flags&RAW))
+ if (tp->t_flags & (RAW|LITOUT))
lpr |= BITS8;
else
lpr |= (BITS7|PENABLE);
lpr |= BITS8;
else
lpr |= (BITS7|PENABLE);
}
if (tp->t_outq.c_cc == 0)
goto out;
}
if (tp->t_outq.c_cc == 0)
goto out;
- if ((tp->t_flags&RAW) || (tp->t_local&LLITOUT))
+ if (tp->t_flags & (RAW|LITOUT))
cc = ndqb(&tp->t_outq, 0);
else {
cc = ndqb(&tp->t_outq, 0200);
cc = ndqb(&tp->t_outq, 0);
else {
cc = ndqb(&tp->t_outq, 0200);
}
} else {
if ((tp->t_state&TS_CARR_ON) &&
}
} else {
if ((tp->t_state&TS_CARR_ON) &&
- (tp->t_local&LNOHANG)==0) {
+ (tp->t_flags&NOHANG) == 0) {
/* carrier lost */
if (tp->t_state&TS_ISOPEN) {
gsignal(tp->t_pgrp, SIGHUP);
/* carrier lost */
if (tp->t_state&TS_ISOPEN) {
gsignal(tp->t_pgrp, SIGHUP);
/*
* Evans and Sutherland Picture System 2 driver
/*
* Evans and Sutherland Picture System 2 driver
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/pte.h"
#include "../h/map.h"
#include "../h/buf.h"
#include "../h/pte.h"
#include "../h/map.h"
#include "../h/buf.h"