.NLIST BIN .IDENT /X01.01/ .ENABLE LC ; ; USERPRE - User Terminal Activity Monitor prefix file ; ; Companion source file to USER.MAC ; ; Author: ; Bruce R. Mitchell ; ; Patterned after the POOL monitor task supplied by Digital ; Equipment Corporation on RSX-11M-PLUS V1.0 Autopatch E. ; ; ; Source Site: ; Engineering Systems and Technology Laboratory ; 3M Company, 3M Center, St. Paul, Minnesota 55144 ; ; Revision History: ; ; 1-Jan-82 Source ripped out of SLPRE.MAC ; 2-Jan-82 Warning message bit definitions added ; 21-Jun-82 Modified to fit CBD's 11/44 system ; Added software to log off TT0: ; ; .page ; ; ; special characters ; esc = 33 ; escape bel = 07 ; bell lf = 12 ; line-feed cr = 15 ; carriage return ; ; ; local assignments ; lun1 = 1 ; lun1 is for console i/o lun2 = 2 ; lun2 is for user terminal i/o efn1 = 1 ; efn1 is for all i/o efn2 = 2 ; efn2 is for mark times spnefn = 3 ; efn3 is for spawns cvtprm = 10012 ; conversion parameters for $CBTA ; ; ; Bit masks for terminal and task characteristics ; tm.log = 1 ; terminal logged in tm.tsk = 2 ; task active on terminal tm.mcr = 4 ; terminal CLI is MCR (not used) tm.1st = 10 ; first warning message sent tm.2nd = 20 ; second warning message sent and demoted to ; non-privileged status tm.3rd = 40 ; final warning message sent tm.prv = 100 ; terminal is privileged ; ; ; number of TT type terminals ; ntt = d$$l11 ; Start with number of dl11's .if df d$$h11 ; if any dh11's ntt = ntt + ; 16 tty's per dh11 .endc .if df d$$z11 ; if any dz11's ntt = ntt + ; 16 tty's per dz11 .endc .if df d$$j11 ; if any dj11's ntt = ntt + ; 16 tty's per dj11 .endc itt = ntt - 1 ; Used for 0-offset terminal counting ; ; ; number of HT type terminals in system (if DECNET) ; .if df rs.nsl ; if decnet supported nht = rs.nsl ; start with number of dl11's iht = nht - 1 ; Used for 0-offset terminal counting .endc ; ; ; time parameters ; ;