(Temporarily) revived after a long sleep, for building MacPython without GUSI

This commit is contained in:
Jack Jansen 2000-05-12 21:37:45 +00:00
parent 7bfc2ebb01
commit 8f7f91fa2a
1 changed files with 5 additions and 5 deletions

View File

@ -37,11 +37,11 @@ opendir(path)
if (hfsrunning()) { if (hfsrunning()) {
pb.d.ioWDProcID= 0; pb.d.ioWDProcID= 0;
pb.d.ioWDDirID= 0; pb.d.ioWDDirID= 0;
err= PBOpenWD((WDPBPtr)&pb, FALSE); err= PBOpenWD((WDPBPtr)&pb, 0);
} }
else { else {
pb.v.ioVolIndex= 0; pb.v.ioVolIndex= 0;
err= PBGetVInfo((ParmBlkPtr)&pb, FALSE); err= PBGetVInfo((ParmBlkPtr)&pb, 0);
} }
if (err != noErr) { if (err != noErr) {
errno = ENOENT; errno = ENOENT;
@ -64,7 +64,7 @@ closedir(dirp)
WDPBRec pb; WDPBRec pb;
pb.ioVRefNum= dirp->dirid; pb.ioVRefNum= dirp->dirid;
(void) PBCloseWD(&pb, FALSE); (void) PBCloseWD(&pb, 0);
} }
dirp->dirid= 0; dirp->dirid= 0;
dirp->nextfile= 0; dirp->nextfile= 0;
@ -92,9 +92,9 @@ readdir(dp)
pb.d.ioFDirIndex= dp->nextfile++; pb.d.ioFDirIndex= dp->nextfile++;
pb.d.ioDrDirID= 0; pb.d.ioDrDirID= 0;
if (hfsrunning()) if (hfsrunning())
err= PBGetCatInfo((CInfoPBPtr)&pb, FALSE); err= PBGetCatInfo((CInfoPBPtr)&pb, 0);
else else
err= PBGetFInfo((ParmBlkPtr)&pb, FALSE); err= PBGetFInfo((ParmBlkPtr)&pb, 0);
if (err != noErr) { if (err != noErr) {
errno = EIO; errno = EIO;
return NULL; return NULL;