File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,9 +57,9 @@ getwd(cwd)
5757 /* First, get the default volume name and working directory ID. */
5858
5959 pb .w .ioNamePtr = (unsigned char * )cwd ;
60- err = PBHGetVol (& pb .w , FALSE );
60+ err = PBHGetVolSync (& pb .w );
6161 if (err != noErr ) {
62- sprintf (cwd , "I/O error %d in PBHGetVol " , err );
62+ sprintf (cwd , "I/O error %d in PBHGetVolSync " , err );
6363 return NULL ;
6464 }
6565 ecwd = strchr ((const char * )p2cstr ((unsigned char * )cwd ), EOS );
@@ -75,9 +75,9 @@ getwd(cwd)
7575 pb .d .ioNamePtr = (unsigned char * ) ++ ebuf ;
7676 pb .d .ioFDirIndex = -1 ;
7777 pb .d .ioDrDirID = dirid ;
78- err = PBGetCatInfo ((CInfoPBPtr )& pb .d , FALSE );
78+ err = PBGetCatInfoSync ((CInfoPBPtr )& pb .d );
7979 if (err != noErr ) {
80- sprintf (cwd , "I/O error %d in PBGetCatInfo " , err );
80+ sprintf (cwd , "I/O error %d in PBGetCatInfoSync " , err );
8181 return NULL ;
8282 }
8383 dirid = pb .d .ioDrParID ;
Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ macstat(path, buf)
2929 pb .d .ioDrDirID = 0 ;
3030 pb .f .ioFVersNum = 0 ; /* Fix found by Timo! See Tech Note 102 */
3131 if (hfsrunning ())
32- err = PBGetCatInfo ((CInfoPBPtr )& pb , FALSE );
32+ err = PBGetCatInfoSync ((CInfoPBPtr )& pb );
3333 else
34- err = PBGetFInfo ((ParmBlkPtr )& pb , FALSE );
34+ err = PBGetFInfoSync ((ParmBlkPtr )& pb );
3535 if (err != noErr ) {
3636 errno = ENOENT ;
3737 return -1 ;
You can’t perform that action at this time.
0 commit comments