Librarian record access may be set to move mode (the default,
set by LBR$SET_MOVE) or locate mode. The setting affects the
operation of the LBR$GET_RECORD routine. If move mode is set,
LBR$GET_RECORD copies the requested record to the specified user
buffer. For details, see the description of LBR$GET_RECORD.
28.4 – Condition Values Returned
LBR$_ILLCTL Specified library control index not valid.
LBR$_LIBNOTOPN Specified library not open.
29 – LBR$UNMAP_MODULE
The LBR$UNMAP_MODULE routine unmaps a module from process P2
space.
Format
LBR$PUT_MODULE library_index, txtrfa
29.1 – Arguments
library_index
OpenVMS usage:longword_unsigned
type: longword (unsigned)
access: read only
mechanism: by reference
Library control index returned by the LBR$INI_CONTROL library
routine. The library_index argument is the address of the
longword that contains the index.
txtrfa
OpenVMS usage:vector_longword_unsigned
type: longword (unsigned)
access: read only
mechanism: by reference
The module's record file address (RFA) of the library module
header. The txtrfa argument is the address of the 2-longword
array that specifies the RFA of the module header.
29.2 – Description
The LBR$UNMAP_MODULE routine unmaps the module, with the record
file address in txtrfa, from process P2 space. This action
releases the resources used to map the module.
Unlike other LBR services that use RMS services, LBR$UNMAP_MODULE
also uses system services. Because of this, the secondary status
for error returns is placed in LBR$GL_SUBSTS. Use this to find
further status when an error is returned.