Fix SetFPos signature

This commit is contained in:
Iliyas Jorio 2021-02-22 01:03:14 +01:00
parent 766d4ddc1b
commit 8fb5ed8e1b
3 changed files with 13 additions and 3 deletions

View File

@ -351,9 +351,9 @@ OSErr GetFPos(short refNum, long* filePos)
return noErr;
}
OSErr SetFPos(short refNum, long filePos)
OSErr SetFPos(short refNum, short posMode, long filePos)
{
TODO();
TODOFATAL();
return unimpErr;
}

View File

@ -66,7 +66,7 @@ OSErr SetEOF(short refNum, long logEOF);
OSErr GetFPos(short refNum, long* filePos);
OSErr SetFPos(short refNum, long filePos);
OSErr SetFPos(short refNum, short posMode, long filePos);
//-----------------------------------------------------------------------------
// Resource file management

View File

@ -11,6 +11,16 @@ enum EFSPermissions
fsRdWrPerm = 3,
};
//-----------------------------------------------------------------------------
// Position mode constants
enum {
fsAtMark = 0,
fsFromStart = 1,
fsFromLEOF = 2,
fsFromMark = 3
};
//-----------------------------------------------------------------------------
// Folder types