VMS Help
LBR Routines, LBR$LOOKUP_KEY
*Conan The Librarian (sorry for the slow response - running on an old VAX)
|
|
The LBR$LOOKUP_KEY routine looks up a key in the library's
current index and prepares to access the data in the module
associated with the key.
Format
LBR$LOOKUP_KEY library_index ,key_name ,txtrfa
OpenVMS usage:cond_value
type: longword (unsigned)
access: write only
mechanism: by value
Longword condition value. Most utility routines return a
condition value in R0. Condition values that this routine can
return are listed under Condition Values Returned.
library_index
OpenVMS usage:longword_unsigned
type: longword (unsigned)
access: read only
mechanism: by reference
Library control index returned by the LBR$INI_CONTROL routine.
The library_index argument is the address of the longword that
contains the index.
key_name
OpenVMS usage:longword_unsigned
type: longword (unsigned)
access: read only
mechanism: by reference
Name of the library key. If the library uses binary keys, the
key_name argument is the address of the unsigned longword value
of the key.
If the library uses ASCII keys, the key_name argument is the
address of a string descriptor for the key with the following
argument characteristics:
Argument
Characteristics Entry
OpenVMS usage char_string
type character string
access read only
mechanism by descriptor
txtrfa
OpenVMS usage:vector_longword_unsigned
type: longword (unsigned)
access: write only
mechanism: by reference
The record's file address (RFA) of the library module header.
The txtrfa argument is the address of the 2-longword array that
receives the RFA of the module header.
If LBR$LOOKUP_KEY finds the specified key, it initializes
internal tables so you can access the associated data.
This routine returns the RFA (consisting of the virtual block
number (VBN) and the byte offset) to the 2-longword array
referenced by txtrfa. Note that the RFA is only 6 bytes long.
4 - Condition Values Returned
|
LBR$_ILLCTL Specified library control index not valid.
LBR$_INVRFA RFA obtained not valid.
LBR$_KEYNOTFND Specified key not found.
LBR$_LIBNOTOPN Specified library not open.
[legal]
[privacy]
[GNU]
[policy]
[netiquette]
[sponsors]
[FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.