--******************************************************************************************************************** -- Created: 9-Mar-2021 22:28:29 by OpenVMS SDL EV3-3 -- Source: 19-APR-1993 14:43:48 $1$DGA8085:[LIB_ADA.LIS]NAFDEF.SDL;1 --******************************************************************************************************************** with SYSTEM; use SYSTEM; with STARLET; use STARLET; with CONDITION_HANDLING; use CONDITION_HANDLING; package NAFDEF is -- module $NAFDEF --++ -- -- Structure for network proxy login file, NETUAF.DAT (VMS version 4.x) -- ---- NAF_M_TASK : constant := 16#00000001#; NAF_M_BATCH : constant := 16#00000002#; NAF_M_INTERACTIVE : constant := 16#00000004#; NAF_K_LENGTH : constant := 100; -- Length of record NAF_C_LENGTH : constant := 100; -- Length of record NAF_S_NAFDEF : constant := 100; type NAF_REMNAME_TYPE is -- Combined nodename and remote username record NODE : STRING(1 .. 32); -- Node name REMUSER : STRING(1 .. 32); -- Remote username end record; for NAF_REMNAME_TYPE use record NODE at 0 range 0 .. 255; REMUSER at 32 range 0 .. 255; end record; for NAF_REMNAME_TYPE'SIZE use 512; NAF_REMNAME_TYPE_INIT : constant NAF_REMNAME_TYPE := (NODE => (others => ASCII.NUL), REMUSER => (others => ASCII.NUL)); type NAF_FLAGS_TYPE is -- Flags longword record TAS : BOOLEAN; -- Allow task=0 access BATCH : BOOLEAN; -- Allow batch jobs INTERACTIVE : BOOLEAN; -- Allow interactive login FILLER_1 : UNSIGNED_29; end record; for NAF_FLAGS_TYPE use record TAS at 0 range 0 .. 0; BATCH at 0 range 1 .. 1; INTERACTIVE at 0 range 2 .. 2; FILLER_1 at 0 range 3 .. 31; end record; for NAF_FLAGS_TYPE'SIZE use 32; NAF_FLAGS_TYPE_INIT : constant NAF_FLAGS_TYPE := (TAS => FALSE, BATCH => FALSE, INTERACTIVE => FALSE, FILLER_1 => 0); type NAF_TYPE is record REMNAME : NAF_REMNAME_TYPE; -- Combined nodename and remote username LOCALUSER : STRING(1 .. 32); -- Local username FLAGS : NAF_FLAGS_TYPE; -- Flags longword end record; for NAF_TYPE use record REMNAME at 0 range 0 .. 511; LOCALUSER at 64 range 0 .. 255; FLAGS at 96 range 0 .. 31; end record; for NAF_TYPE'SIZE use 800; NAF_TYPE_INIT : constant NAF_TYPE := ( REMNAME => NAF_REMNAME_TYPE_INIT, LOCALUSER => (others => ASCII.NUL), FLAGS => NAF_FLAGS_TYPE_INIT ); end NAFDEF;