1 /* BEGIN INCLUDE FILE ... mc_anstbl.incl.pl1 */
  2 
  3 
  4 /****^  HISTORY COMMENTS:
  5   1) change(85-12-19,MSharpe), approve(87-05-25,MCR7690),
  6      audit(87-03-30,GDixon), install(87-08-04,MR12.1-1056):
  7      Added the pending and virtual flags and virtual_tty_name to mc_ate;
  8      changed mc_ate.tty_name to mc_ate.real_tty_name; added mc_ate.ls_procid,
  9      mc_ate.ls_term_ev_chn, mc_ate.ls_resp_ev_chn, mc_ate.ls_handle.
 10   2) change(87-02-04,GDixon), approve(87-05-25,MCR7690),
 11      audit(87-06-01,Parisek), install(87-08-04,MR12.1-1056):
 12      Add mc_ate.vchn_requires_accept in support of virtual channels. Explicitly
 13      declare implicit pad fields which the compile adds for element alignment
 14      purposes.  Declare mc_ansp and mc_atep, on which major structures are
 15      based, rather than depending upon includers do to so.
 16   3) change(87-03-27,Parisek), approve(87-05-25,MCR7690),
 17      audit(87-06-11,GDixon), install(87-08-04,MR12.1-1056):
 18      Added the dsa_ring_number element to provide a constant for determining
 19      the DSA ring.
 20                                                    END HISTORY COMMENTS */
 21 
 22 
 23 /* format: style3,idind30 */
 24 
 25 dcl       1 mc_anstbl                   based (mc_ansp) aligned,
 26                                                             /* Structure of answer table */
 27             2 max_size                  fixed bin,          /* max number of entries table can grow */
 28             2 current_size              fixed bin,          /* actual size of table (in entries) */
 29             2 mc_procid                 bit (36),           /* process ID of message coordinator */
 30             2 sysdir                    char (168),         /* name of main system control directory */
 31             2 pad_ptrs                  bit (36),
 32             2 mrtp                      ptr,
 33             2 vconsp                    ptr,
 34             2 cons_cont_proc            entry,              /* mc_tty_ */
 35             2 con_rec,                                      /* Data for console recovery. */
 36               3 mc_ate_ptr              ptr,                /* Pts to recovery device. */
 37               3 ec_id                   fixed bin (71),     /* Recovery event chan. */
 38               3 seq_num                 fixed bin (35),     /* Syserr sequence number. */
 39               3 offset                  bit (18),           /* Log entry offset. */
 40               3 flags,
 41               ( 4 enabled               bit (1),            /* ON => recovery possible. */
 42                 4 active                bit (1),
 43                 4 pad_flags             bit (16)
 44                 )                       unaligned,          /* ON => recovery going on. */
 45             2 n_sources                 fixed bin,          /* number of communicating sources */
 46             2 max_sources               fixed bin,          /* maximum number of sources allowed */
 47             2 current_time              fixed bin (71),     /* Time of last transaction */
 48             2 trace                     bit (1) aligned,
 49             2 dsa_ring_number           fixed bin,          /* DSA ring number */
 50             2 pad_entries               (30) bit (36) aligned,
 51             2 entry                     (0 refer (mc_anstbl.current_size)) aligned like mc_ate,
 52           mc_ansp                       ptr;
 53 ^L
 54 dcl       1 mc_ate                      based (mc_atep) aligned,
 55                                                             /* declaration of a single answer table entry */
 56             2 flags                     aligned,
 57               3 virtual                 bit (1) unaligned,  /* 1 => login -vchn XXX */
 58               3 pending                 bit (1) unaligned,  /* 1 => pending entry created for DSA channel
 59                                                                since we can't keep info in cdte for it */
 60               3 active                  bit (1) unaligned,
 61               3 the_system_console      bit (1) unaligned,  /* otw_/ocd_ */
 62               3 a_system_console        bit (1) unaligned,  /* Not yet implemented -- a random opc through a  */
 63                                                             /*  nonexistent I/O module                        */
 64               3 pad001                  bit (1) unaligned,
 65               3 signed_on               bit (1) unaligned,
 66               3 reply_restricted        bit (1) unaligned,
 67               3 broadcast               bit (1) unaligned,
 68               3 broadcast_all           bit (1) unaligned,
 69               3 vchn_requires_accept    bit (1) unaligned,
 70               3 pad_flags               bit (25) unaligned,
 71             2 virtual_tty_name          char (32) unaligned,
 72             2 real_tty_name             char (32) unaligned,
 73             2 pad_ptrs                  bit (36),
 74             2 cdtep                     pointer,            /* we get info from cdt */
 75             2 iocb                      pointer,            /* do I/O here */
 76             2 sci_ptr                   pointer,
 77             2 tra_vec                   fixed bin,
 78             2 restrict_reply            char (32),          /* Source name. if "", everybody. */
 79                                                             /* Broadcasting information. */
 80             2 n_casts                   fixed bin,          /* If flag is 1 */
 81             2 cast                      (10) char (32),     /* If flag is 1, list of consoles. */
 82             2 oper_info,                                    /* for oper assigned this console... */
 83               3 personid                char (32),
 84               3 last_input_time         fixed bin (71),     /* time of last input on this console... */
 85             2 queue_ptr                 ptr,
 86             2 queue_event               fixed bin (71),
 87             2 event                     fixed binary (71),  /* name of event call channel associated with TTY */
 88             2 ls_procid                 bit (36),           /* ID of login_server who will wake us up with connect
 89                                                                and disconnect -- used only for network channels */
 90             2 pad_ev_chn                bit (36),
 91             2 ls_term_ev_chn            fixed bin (71),     /* event channel to send terminate response to ls */
 92             2 ls_resp_ev_chn            fixed bin (71),     /* event channel to send operator response to ls */
 93             2 ls_handle                 bit (72),           /* login server handle for this connection */
 94             2 authority,
 95               3 privilege               (36) bit (1) unaligned,
 96             2 control,
 97               3 inhibit                 bit (1) unal,
 98               3 output_wait             bit (1) unal,
 99               3 output_pending          bit (1) unal,
100               3 pad_control             bit (33) unal,
101           mc_atep                       ptr;
102 
103 declare   (
104           MC_WAIT_DIALUP                init (1),
105           MC_WAIT_ANSWERBACK            init (2),
106           MC_WAIT_READY                 init (3),
107           MC_WAIT_COMMAND               init (4)
108           )                             fixed bin int static options (constant);
109 
110 /* END INCLUDE FILE ... mc_anstbl.incl.pl1 */