mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-10-31 17:04:42 +00:00
1 line
9.8 KiB
C
1 line
9.8 KiB
C
|
/********************************************
; File: ProDOS.h
;
;
; Copyright Apple Computer, Inc.1986-90
; All Rights Reserved
;
********************************************/
#ifndef __TYPES__
#include <TYPES.h>
#endif
#ifndef __PRODOS__
#define __PRODOS__
#ifdef __GSOS__
#undef GetSysPrefs
#undef BeginSession
#undef EndSession
#undef SessionStatus
#undef ResetCache
#undef ChangePath
#undef ClearBackupBit
#undef Close
#undef Create
#undef DControl
#undef Destroy
#undef DInfo
#undef DRead
#undef DStatus
#undef DWrite
#undef EraseDisk
#undef Flush
#undef Format
#undef GetBootVol
#undef GetDevNumber
#undef GetDirEntry
#undef GetEOF
#undef GetFileInfo
#undef GetFSTInfo
#undef GetLevel
#undef GetMark
#undef GetName
#undef GetPrefix
#undef GetVersion
#undef Newline
#undef Null
#undef Open
#undef Quit
#undef Read
#undef SetEOF
#undef SetFileInfo
#undef SetLevel
#undef SetMark
#undef SetPrefix
#undef UnbindInt
#undef Volume
#undef Write
#undef BindInt
#undef ChangePathRec
#undef CreateRec
#undef DAccessRec
#undef DevNumRec
#undef DInfoRec
#undef DIORec
#undef DirEntryRec
#undef EOFRec
#undef FileInfoRec
#undef FormatRec
#undef FSTInfoRec
#undef InterruptRec
#undef IORec
#undef LevelRec
#undef NameRec
#undef GetNameRec
#undef NewlineRec
#undef OpenRec
#undef PositionRec
#undef PrefixRec
#undef QuitRec
#undef RefNumRec
#undef SetPositionRec
#undef SysPrefRec
#undef VersionRec
#undef VolumeRec
#endif
/* Error Codes */
#define invalidCallNum 0x0001 /* invalid call number */
#define unclaimedIntErr 0x01 /* fatal error - unclaimed interrupt */
#define badPBlockPtr 0x05 /* call pointer out of bounds */
#define pdosActiveErr 0x06 /* ProDOS is active */
#define pdosBusyErr 0x07 /* ProDOS is busy */
#define vcbUnusable 0x0A /* fatal error - VCB unusable */
#define fcbUnusable 0x0B /* fatal error - FCB unusable */
#define badBlockZero 0x0C /* fatal error - block zero allocated illegally */
#define shdwInterruptErr 0x0D /* fatal error - interrupt occured while I/O shadowing off */
#ifndef devNotFound /* device not found */
#define devNotFound 0x10
#endif
#define badDevRefNum 0x11 /* invalid device reference number */
#define osVersionErr 0x11 /* Wrong OS version */
#define badReqCode 0x20 /* invalid request code */
#define intTableFull 0x25 /* interrupt table full */
#define invalidOperation 0x26 /* invalid operation */
#define ioError 0x27 /* I/O error */
#define noDevConnect 0x28 /* no device connected */
#define writeProtectErr 0x2B /* write protect error */
#define diskSwitchErr 0x2E /* disk switched error */
#define badPathname 0x40 /* invalid pathname syntax */
#define fcbFullErr 0x42 /* FCB full error */
#define badFileRefNum 0x43 /* invalid file reference number */
#ifndef pathNotFound /* path not found */
#define pathNotFound 0x44
#endif
#define volumeNotFound 0x45 /* volume not found */
#ifndef fileNotFound /* file not found */
#define fileNotFound 0x46
#endif
#define dupFileName 0x47 /* duplicate file name */
#define volumeFullErr 0x48 /* volume full error */
#define dirFullErr 0x49 /* directory full error */
#define versionErr 0x4A /* version error (incompatible file format) */
#ifndef badStoreType /* unsupported (or incorrect) storage type */
#define badStoreType 0x4B
#endif
#ifndef eofEncountered /* end-of-file encountered */
#define eofEncountered 0x4C
#endif
#define positionRangeErr 0x4D /* position out of range */
#define accessErr 0x4E /* access not allowed */
#define fileOpenErr 0x50 /* file is open */
#define dirDamaged 0x51 /* directory structure is damaged */
#define badVolType 0x52 /* unsupport
|