|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: ┃ T f ┃
Length: 533 (0x215) Types: TextFile Names: »findtty.c«
└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki └─ ⟦this⟧ »EUUGD11/euug-87hel/sec8/sps/findtty.c«
# include "sps.h" # include <h/ioctl.h> # include <h/tty.h> /* FINDTTY - Attempts to determine to which tty a process is connected */ struct ttyline *findtty ( p ) register struct process *p ; { register struct ttyline *lp ; extern struct info Info ; extern struct ttyline Notty ; extern union userstate User ; if ( !p->pr_p.p_pgrp ) return ( &Notty ) ; for ( lp = Info.i_ttyline ; lp->l_name[0] ; lp++ ) if ( lp->l_dev == User.u_us.u_ttyd ) return ( lp ) ; return ( &Notty ) ; }