1 /* dpb.c - retrieve DPB for physical drive */
8 extern char NoMem[], ParmNum[], BadParm[] ;
9 extern struct sysVarsType SysVars ;
12 /* Walk the DPB list trying to find the appropriate DPB */
18 struct DPBType *pd = &DPB ;
19 struct DPBType far *dptr ;
22 *(long *)(&dptr) = DPB.nextDPB = SysVars.pDPB ;
25 while (DPB.drive != i) {
26 if ((int)DPB.nextDPB == -1)
29 *(long *)(&dptr) = DPB.nextDPB ;
31 for (j=0 ; j < sizeof(DPB) ; j++)
32 *((char *)pd+j) = *((char far *)dptr+j) ;