Guardian Native C Library Calls Reference Manual (G06.28+, H06.05+)
Guardian Native C Library Calls (g - i) get_assign_msg(3)
short access_spec;
short record_size;
short block_size;
} assign_msg_type;
In the type assign_msg_type, the structure members provide the following information:
msg_code value of -2 for an ASSIGN message.
logical_unit_name name of logical unit used in program and consists of program unit and
file name.
field_mask bit mask that indicates which of the following fields were supplied (1 =
supplied):
filename physical file name to be associated with logical unit.
primary_extent primary extent size.
secondary_extent secondary extent size.
file_code file-code.
exclusion_spec exclusion mode is one of:
%00 if SHARED
%20 if EXCLUSIVE
%60 if PROTECTED
access_spec access mode is one of:
%0000 if read/write
%2000 if read only
%4000 if write only
record_size record size
block_size block size
RETURN VALUES
If the assign message is found, the value 0 (zero) is returned. If the assign message is not found,
-1 is returned.
RELATED INFORMATION
Functions: get_assign_msg_by_name(3), get_max_assign_msg_ordinal(3),
get_param_by_name(3), get_param_msg(3), get_startup_msg(3).
STANDARDS CONFORMANCE
The get_assign_msg() function is an HP extension to the XPG4 Version 2 specification.
527192-007 Hewlett-Packard Company 3−7