mirror of
https://github.com/aaru-dps/fstester.git
synced 2025-12-16 19:24:39 +00:00
Remove sync/async definitions. Use sync functions for MacOS.
This commit is contained in:
@@ -69,7 +69,7 @@ void DirectoryDepth(const char* path)
|
||||
hpb.ioNamePtr = str255;
|
||||
hpb.ioVRefNum = 0;
|
||||
hpb.ioVolIndex = -1;
|
||||
rc = PBHGetVInfo((HParmBlkPtr)&hpb, 0);
|
||||
rc = PBHGetVInfoSync((HParmBlkPtr)&hpb);
|
||||
if(rc)
|
||||
{
|
||||
printf("Could not get volume information.\n");
|
||||
@@ -84,7 +84,7 @@ void DirectoryDepth(const char* path)
|
||||
dirPB.fileParam.ioNamePtr = (StringPtr) "\pDEPTH"; // Directory name to create
|
||||
dirPB.fileParam.ioDirID = 0; // ID of parent directory, 0 for root of volume
|
||||
|
||||
rc = PBDirCreate(&dirPB, 0);
|
||||
rc = PBDirCreateSync(&dirPB);
|
||||
|
||||
if(rc)
|
||||
{
|
||||
@@ -112,7 +112,7 @@ void DirectoryDepth(const char* path)
|
||||
dirPB.fileParam.ioNamePtr = str255; // Directory name to create
|
||||
dirPB.fileParam.ioDirID = dirId; // ID of parent directory, 0 for root of volume
|
||||
|
||||
rc = PBDirCreate(&dirPB, 0);
|
||||
rc = PBDirCreateSync(&dirPB);
|
||||
|
||||
pos++;
|
||||
/* Mac OS has no limit, but it will crash because the catalog is single threaded */
|
||||
|
||||
Reference in New Issue
Block a user