Guardian Procedure Calls Reference Manual
DEVICEINFO Procedure (Superseded by FILE_GETINFOBYNAME_
Procedure or FILE_GETINFOLISTBYNAME_ Procedure)
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Considerations
Summary
NOTE: This procedure is supported for compatibility with previous software and should not be
used for new development. DEVICEINFO cannot obtain information on devices that have a device
type greater than 63.
The DEVICEINFO procedure is used to obtain the device type and the physical record length of a
file. The file can be opened or closed.
Syntax for C Programmers
This procedure does not have a C syntax, because it is superseded and should not be used for
new development. This procedure is supported only for compatibility with previous software.
Syntax for TAL Programmers
CALL DEVICEINFO ( file-name ! i
,devtype ! o
,physical-recordlen ); ! o
Parameters
file-name
input
INT:ref:12
is an array containing the name of the device whose characteristics are to be returned. Any
form of 12-word internal-format file name is permitted. For disk files, only the first eight characters
(that is, the volume name) are significant; however, the remaining 16 characters still must be
in a valid file name format. If a logical device number is specified, the last 16 characters must
be blanks.
devtype
output
INT:ref:1
returns the device type of the associated file in this form:
Demountable<0>
Audited disk, or the file name specified was a subdevice<1>
Undefined<2:3>
Device type<4:9>
Device subtype<10:15>
If the device type is greater than 63, bits <4:9> are set to 44. To obtain information on devices
with a device type greater than 63, call either the FILE_GETINFOBYNAME_ or
DEVICEINFO Procedure (Superseded by FILE_GETINFOBYNAME_ Procedure or FILE_GETINFOLISTBYNAME_ Procedure) 313