-- --**************************************************************************** --* * --* Copyright (c) 2001 * --* by DIGITAL Equipment Corporation, Maynard, Mass. * --* * --* This software is furnished under a license and may be used and copied * --* only in accordance with the terms of such license and with the * --* inclusion of the above copyright notice. This software or any other * --* copies thereof may not be provided or otherwise made available to any * --* other person. No title to and ownership of the software is hereby * --* transferred. * --* * --* The information in this software is subject to change without notice * --* and should not be construed as a commitment by DIGITAL Equipment * --* Corporation. * --* * --* DIGITAL assumes no responsibility for the use or reliability of its * --* software on equipment which is not supplied by DIGITAL. * --* * --**************************************************************************** --******************************************************************************************************************** -- Created: 15-MAR-2001 22:53:01 by OpenVMS SDL EV1-33 -- Source: 2-SEP-1989 10:49:35 $11$DUA933:[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 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;