DV.TYP - get device type information.
Usage:
type = dv.typ(dev, bcdflag);
Where:
- dev
- identifies the device being queried. This is either the
3-character BCD device name, or the negative of the SCT
value.
- bcdflag
- indicates what type of information you want. If
"bcdflag" is zero, the result is the 18-bit
device type number. If "bcdflag" is 1, the
result is the device type name (six BCD characters).
- type
- is either a type number or type name, as dictated by
"bcdflag".
Description:
DV.TYP looks up device type information. Before SR4500, you
obtained this information by accessing the 6-bit device code in
.LSCT1 or .CRCT1. However with SR4500, the device code expanded
to 18 bits, and a table was added to GCOS8 itself with the
corresponding BCD names. When possible, you should use DV.TYP
instead of the B library external table DV.NAM.
Copyright © 1996, Thinkage Ltd.