ORCA-C/bin/Libraries/ORCACDefs/gsos.h

1 line
22 KiB
C
Raw Normal View History

/******************************************** * * GS/OS * * Copyright Apple Computer, Inc.1986-91 * All Rights Reserved * * Copyright 1992, Byte Works, Inc. * ********************************************/ #ifndef __TYPES__ #include <TYPES.h> #endif #ifndef __GSOS__ #define __GSOS__ /* Read/Write enable bit Codes for CreateRec/OpenRec access and requestAccess fields */ #define readEnableAllowWrite 0x0000 #define readEnable 0x0001 #define writeEnable 0x0002 #define readWriteEnable 0x0003 #define fileInvisible 0x0004 /* Invisible bit */ #define backupNeeded 0x0020 /* backup needed bit: CreateRec/ OpenRec access field. (Must be 0 in requestAccess field ) */ #define renameEnable 0x0040 /* rename enable bit: CreateRec/ OpenRec access and requestAccess fields */ #define destroyEnable 0x0080 /* destroy enable bit: CreateRec/ OpenRec access and requestAccess fields */ #define startPlus 0x0000 /* base -> setMark = displacement */ #define eofMinus 0x0001 /* base -> setMark = eof - displacement */ #define markPlus 0x0002 /* base -> setMark = mark + displacement */ #define markMinus 0x0003 /* base -> setMark = mark - displacement */ /* cachePriority Codes */ #define cacheOff 0x0000 /* do not cache blocks invloved in this read */ #define cacheOn 0x0001 /* cache blocks invloved in this read if possible */ /* Error Codes */ #define badSystemCall 0x0001 /* bad system call number */ #define invalidPcount 0x0004 /* invalid parameter count */ #define gsosActive 0x0007 /* GS/OS already active */ #ifndef devNotFound /* device not found */ #define devNotFound 0x0010 #endif #define invalidDevNum 0x0011 /* invalid device number */ #define drvrBadReq 0x0020 /* bad request or command */ #define drvrBadCode 0x0021 /* bad control or status code */ #define drvrBadParm 0x0022 /* bad call parameter */ #define drvrNotOpen 0x0023 /* character device not open */ #define drvrPriorOpen 0x0024 /* character device already open */ #define irqTableFull 0x0025 /* interrupt table full */ #define drvrNoResrc 0x0026 /* resources not available */ #define drvrIOError 0x0027 /* I/O error */ #define drvrNoDevice 0x0028 /* device not connected */ #define drvrBusy 0x0029 /* call aborted; driver is busy */ #define drvrWrtProt 0x002B /* device is write protected */ #define drvrBadCount 0x002C /* invalid byte count */ #define drvrBadBlock 0x002D /* invalid block address */ #define drvrDiskSwitch 0x002E /* disk has been switched */ #define drvrOffLine 0x002F /* device off line/ no media present */ #define badPathSyntax 0x0040 /* invalid pathname syntax */ #define tooManyFilesOpen 0x0042 /* too many files open on server volume */ #define invalidRefNum 0x0043 /* invalid reference number */ #ifndef pathNotFound /* subdirectory does not exist */ #define pathNotFound 0x0044 #endif #define volNotFound 0x0045 /* volume not found */ #ifndef fileNotFound /* file not found */ #define fileNotFound 0x0046 #endif #define dupPathname 0x0047 /* create or rename with existing name */ #define volumeFull 0x0048 /* volume full error */ #define volDirFull 0x0049 /* volume directory full */ #define badFileFormat 0x004A /* version error (incompatible file format) */ #ifndef badStoreType /* unsupported (or incorrect) storage type */ #define badStoreType 0x004B #endif #ifndef eofEncountered /* end-of-file encountered */ #define eofEncountered 0x004C #endif #define outOfRange 0x004D /* position out of range */ #define invalidAccess 0x004E /* access not allowed */ #define buffTooSmall 0x004F