summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2022-10-13 15:30:47 +0100
committerAsh Wolf <ninji@wuffs.org>2022-10-13 15:30:47 +0100
commit59a724bd4cc7a543686c633572510e6763b34d39 (patch)
tree8a29e94d9ca50a7f175f10b7f22290d6948b59cf /includes
parentc198d1135a80d607161c62ec43c1d1182f62bbf7 (diff)
downloadMWCC-59a724bd4cc7a543686c633572510e6763b34d39.tar.gz
MWCC-59a724bd4cc7a543686c633572510e6763b34d39.zip
fix issues in OSLib Memory and ErrMgr, fully match OSLib Files
Diffstat (limited to '')
-rw-r--r--includes/common.h14
1 files changed, 13 insertions, 1 deletions
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;