error enum

This commit is contained in:
Kelvin Sherlock 2013-07-13 19:19:58 -04:00
parent 7f59b64aad
commit 4995a12be5

View File

@ -24,6 +24,8 @@
#include <toolbox/os.h>
#include <toolbox/os_internal.h>
#include <macos/errors.h>
/*
* access return errors are |= 0x40000000. Not entirely sure why...
* may return an errno or an oserr, too, apparently.
@ -105,7 +107,7 @@ namespace MPW
{
// return an errno.
d0 = 0x40000000 | errno_to_errno(errno);
f.error = -36; // ioErr ... whatever.
f.error = MacOS::ioErr;
f.cookie = 0;
}
else