Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (F)
Guardian Procedure Calls Reference Manual522629-013
5-93
FILE_GETINFOLISTBYNAME_ Procedure
result-length output
INT .EXT:ref:1
returns the length in bytes of the array of values returned in
result. result-
length is an odd value only if the last value in the array has an odd length.
error-item output
INT .EXT:ref:1
returns the index of the item that was being processed when an error was
detected. The index of the first item in
item-list is 0.
Considerations
Normally if an error is returned, the contents of the result parameter are
undefined. However, if the returned error code is 2 (operation invalid for file type),
the
result parameter contains a combination of correct values (for valid items)
and unchanged memory locations (for invalid items because of the kind of file).
The
error-item value points to the first invalid item.
When error 2 occurs, any items prior to the one pointed to by
error-item are
returned with correct values in the
result parameter; following items might or
might not be valid. If a following item is known to be valid because of the kind of
file involved, the correct
result value for the item can be accessed in the
corresponding location in the
result buffer. To do so, the program will have to
account for space in the buffer reserved for preceding invalid items as well as for
space for preceding valid items. (Preceding in this case refers to
some item that
occurs before the item in question.) See description of items in Table 5-4
to
determine the kinds of files for which an item is valid.
Invalid items that are fixed-size will have the amount of space reserved in the
result buffer, but that section of buffer will be unchanged. Invalid items that are
variable-sized have no space reserved for them, but this should not be depended
upon because they could become valid in a future RVU and thus start occupying
space. The programmer might want to place all the items that could cause error 2
in the item list after those that are not expected to cause this error.
Specifying a subtype 30 process
When FILE_GETINFOLISTBYNAME_ is called with a file name that designates a
subtype 30 process, the procedure sends a device inquiry system message to the
process to determine the device type and subtype. The message sent by
FILE_GETINFOLISTBYNAME_ is in C-series format (message -40) or D-series
format (message -106) depending on the options used when the subtype 30
process opened $RECEIVE through the FILE_OPEN_ procedure. Refer to the
Guardian Procedure Errors and Messages Manual for the formats of messages -40
and -106.