--******************************************************************************************************************** -- Created: 9-Mar-2021 22:28:34 by OpenVMS SDL EV3-3 -- Source: 22-APR-1993 13:47:28 $1$DGA8085:[LIB_ADA.LIS]RDIDEF.SDL;1 --******************************************************************************************************************** with SYSTEM; use SYSTEM; with STARLET; use STARLET; with CONDITION_HANDLING; use CONDITION_HANDLING; package RDIDEF is -- module $RDIDEF --++ -- Rights Database Identifier Block definitions: This structure contains the -- RMS Internal File Identifiers (IFI's) and Internal Stream Identifiers -- (ISI's) for the rights database. This structure is allocated from the -- process allocation region pool. ---- RDI_K_ISI_MAX : constant := 10; -- Maximum number of concurrent record streams RDI_M_READ_CHECK : constant := 16#00000001#; RDI_M_READ_ACCESS : constant := 16#00000002#; RDI_S_RDIDEF : constant := 64; type RDI_FLAGS_TYPE is -- Flags longword record READ_CHECK : BOOLEAN; -- Set if read access checked READ_ACCESS : BOOLEAN; -- Set if there is read access to RDB FILLER_1 : UNSIGNED_30; end record; for RDI_FLAGS_TYPE use record READ_CHECK at 0 range 0 .. 0; READ_ACCESS at 0 range 1 .. 1; FILLER_1 at 0 range 2 .. 31; end record; for RDI_FLAGS_TYPE'SIZE use 32; RDI_FLAGS_TYPE_INIT : constant RDI_FLAGS_TYPE := (READ_CHECK => FALSE, READ_ACCESS => FALSE, FILLER_1 => 0); type RDI_TYPE is record SIZE : UNSIGNED_LONGWORD; -- Size of allocated block IFI_READ : UNSIGNED_LONGWORD; -- Internal File Identifier for read operations IFI_WRITE : UNSIGNED_LONGWORD; -- Internal File Identifier for write operations READ_CHANNEL : UNSIGNED_LONGWORD; -- Holds channel used for reading RDB. FLAGS : RDI_FLAGS_TYPE; -- Flags longword ISI_VEC : UNSIGNED_LONGWORD_ARRAY (0 .. 10); -- Internal Stream Identifier vector end record; for RDI_TYPE use record SIZE at 0 range 0 .. 31; IFI_READ at 4 range 0 .. 31; IFI_WRITE at 8 range 0 .. 31; READ_CHANNEL at 12 range 0 .. 31; FLAGS at 16 range 0 .. 31; ISI_VEC at 20 range 0 .. 351; end record; for RDI_TYPE'SIZE use 512; RDI_TYPE_INIT : constant RDI_TYPE := (SIZE => 0, IFI_READ => 0, IFI_WRITE => 0, READ_CHANNEL => 0, FLAGS => RDI_FLAGS_TYPE_INIT, ISI_VEC => (others => 0)); end RDIDEF;