--- BasiliskII/src/include/macos_util.h 1999/10/03 14:16:26 1.1 +++ BasiliskII/src/include/macos_util.h 2000/04/10 18:53:32 1.4 @@ -1,7 +1,7 @@ /* * macos_util.h - MacOS definitions/utility functions * - * Basilisk II (C) 1997-1999 Christian Bauer + * Basilisk II (C) 1997-2000 Christian Bauer * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -68,10 +68,24 @@ enum { closErr = -24, abortErr = -27, notOpenErr = -28, + dskFulErr = -34, + nsvErr = -35, ioErr = -36, + bdNamErr = -37, + fnOpnErr = -38, + eofErr = -39, + posErr = -40, + tmfoErr = -42, + fnfErr = -43, wPrErr = -44, + fLckdErr = -45, + fBsyErr = -47, + dupFNErr = -48, paramErr = -50, + rfNumErr = -51, + permErr = -54, nsDrvErr = -56, + extFSErr = -58, noDriveErr = -64, offLinErr = -65, noNybErr = -66, @@ -93,7 +107,8 @@ enum { fmt1Err = -82, fmt2Err = -83, verErr = -84, - memFullErr = -108 + memFullErr = -108, + dirNFErr = -120 }; // Misc constants @@ -156,7 +171,8 @@ enum { // IOParam struct ioActCount = 40, ioPosMode = 44, ioPosOffset = 46, - ioWPosOffset = 46 // Wide positioning offset when ioPosMode has kWidePosOffsetBit set + ioWPosOffset = 46, // Wide positioning offset when ioPosMode has kWidePosOffsetBit set + SIZEOF_IOParam = 50 }; enum { // CntrlParam struct @@ -228,10 +244,10 @@ enum { // DeferredTask struct // Functions -extern void Enqueue(uint32 elem, uint32 list); // Enqueue QElem in list -extern int FindFreeDriveNumber(int num); // Find first free drive number, starting at "num" -extern void MountVolume(void *fh); // Mount volume with given file handle (see sys.h) -extern bool HasMacStarted(void); // Test if basic MacOS initializations are done +extern void EnqueueMac(uint32 elem, uint32 list); // Enqueue QElem in list +extern int FindFreeDriveNumber(int num); // Find first free drive number, starting at "num" +extern void MountVolume(void *fh); // Mount volume with given file handle (see sys.h) +extern bool HasMacStarted(void); // Test if basic MacOS initializations are done extern void FileDiskLayout(loff_t size, uint8 *data, loff_t &start_byte, loff_t &real_size); // Calculate disk image file layout given file size and first 256 data bytes #endif