19 #ifndef __FILEMAPPING__
20 #define __FILEMAPPING__
47 #if PRAGMA_STRUCT_ALIGN
48 #pragma options align = mac68k
49 #elif PRAGMA_STRUCT_PACKPUSH
51 #elif PRAGMA_STRUCT_PACK
73 kInvalidMappedPrivileges = 0x00000000,
92 (
unsigned long)0x80000000,
306 #if CALL_NOT_IN_CARBON
357 const UniChar *forkName,
406 FSpOpenMappedFile(
const FSSpec *spec,
Boolean mapResFork,
463 OpenMappedScratchFile(FSVolumeRefNum volume, ByteCount fileSize,
605 const SInt64 *positionOffset);
913 const UInt64 *newBackingBase) ;
917 #if PRAGMA_STRUCT_ALIGN
918 #pragma options align = reset
919 #elif PRAGMA_STRUCT_PACKPUSH
921 #elif PRAGMA_STRUCT_PACK
925 #ifdef PRAGMA_IMPORT_OFF
OSErr SetFileViewAccess(FileViewID theView, FileViewAccess access)
@ kIsMappedScratchFile
Definition: FileMapping.h:114
struct OpaqueFileViewID * FileViewID
Definition: FileMapping.h:241
@ kMapEntireFork
Definition: FileMapping.h:232
@ kFileViewInformationVersion1
Definition: FileMapping.h:251
OptionBits FileViewOptions
Definition: FileMapping.h:221
OSErr MapFileView(BackingFileID backingFile, const UInt64 *backingBase, ByteCount backingLength, FileViewAccess access, ByteCount guardLength, FileViewOptions options, LogicalAddress *viewBase, ByteCount *viewLength, FileViewID *theView)
UInt32 MappedFileAttributes
Definition: FileMapping.h:106
OSErr GetFileViewAccessOptions(FileViewAccess *access, FileViewOptions *options)
OSErr GetNextFileView(FileViewID *theView)
OSErr GetFileViewInformation(FileViewID theView, PBVersion version, FileViewInformation *fileViewInfo)
@ kFileViewAccessExecuteMask
Definition: FileMapping.h:202
@ kFileViewAccessExcluded
Definition: FileMapping.h:204
@ kFileViewAccessReadBit
Definition: FileMapping.h:188
@ kFileViewAccessWriteMask
Definition: FileMapping.h:200
@ kFileViewAccessExecuteBit
Definition: FileMapping.h:198
@ kFileViewAccessWriteBit
Definition: FileMapping.h:193
@ kFileViewAccessReadOnly
Definition: FileMapping.h:205
@ kFileViewAccessReadMask
Definition: FileMapping.h:199
OSErr SetFileViewBackingBase(FileViewID theView, const UInt64 *newBackingBase)
UInt32 FileViewAccess
Definition: FileMapping.h:181
@ kCanWriteMappedFile
Definition: FileMapping.h:85
@ kValidMappingPrivilegesMask
Definition: FileMapping.h:94
@ kCanReadMappedFile
Definition: FileMapping.h:79
@ kNoProcessMappedFile
Definition: FileMapping.h:91
OSErr GetFileViewFromAddress(LogicalAddress address, FileViewID *theView)
@ kMappedFileInformationVersion1
Definition: FileMapping.h:125
OSErr UnmapFileView(FileViewID theView)
OSErr OpenMappedFile(const FSRef *ref, UniCharCount forkNameLength, const UniChar *forkName, MappingPrivileges privileges, BackingFileID *backingFile)
struct OpaqueBackingFileID * BackingFileID
Definition: FileMapping.h:61
UInt32 MappingPrivileges
Definition: FileMapping.h:70
File Manager (MFS, HFS, and HFS+) Interfaces.
Basic Macintosh data types.
unsigned char Boolean
Definition: MacTypes.h:318
Process Manager Interfaces.
Definition: Processes.h:65
Definition: MacTypes.h:110
Definition: MacTypes.h:104