From 59a724bd4cc7a543686c633572510e6763b34d39 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Thu, 13 Oct 2022 15:30:47 +0100 Subject: fix issues in OSLib Memory and ErrMgr, fully match OSLib Files --- includes/common.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/common.h b/includes/common.h index 809f99f..39a9abf 100644 --- a/includes/common.h +++ b/includes/common.h @@ -58,8 +58,10 @@ typedef uint8_t Boolean; enum { noErr = 0, abortErr = -27, + nsvErr = -35, ioErr = -36, bdNamErr = -37, + eofErr = -39, tmfoErr = -42, fnfErr = -43, // file not found dupFNErr = -48, // duplicate filename @@ -121,6 +123,16 @@ enum { fsFromLEOF = 2, fsFromMark = 3 }; +enum { + fsRtParID = 1, + fsRtDirID = 2 +}; +enum { + ioDirMask = 0x10 +}; +enum { + kIsAlias = 0x8000 +}; typedef struct FSSpec { SInt16 vRefNum; @@ -161,7 +173,7 @@ typedef struct DXInfo { } DXInfo; typedef struct IOParam { - SInt16 ioResult; + OSErr ioResult; SInt16 ioRefNum; char *ioBuffer; SInt32 ioReqCount; -- cgit v1.2.3