34 #ifndef __TEXTCOMMON__
60 #if PRAGMA_STRUCT_ALIGN
61 #pragma options align = mac68k
62 #elif PRAGMA_STRUCT_PACKPUSH
64 #elif PRAGMA_STRUCT_PACK
105 pleaseCacheMask = 0x0010,
107 noCacheMask = 0x0020,
109 rdVerifyMask = 0x0040,
112 forceReadMask = 0x0040,
114 newLineMask = 0x0080,
115 newLineCharMask = 0xFF00
132 fsSBFlXFndrInfo = 4096,
140 fsSBDrFndrInfo = 4096,
147 fsSBPartialNameBit = 0,
150 fsSBFlFndrInfoBit = 3,
158 fsSBFlXFndrInfoBit = 12,
166 fsSBDrFndrInfoBit = 12,
193 bHasPersonalAccessPrivileges = 9,
194 bHasUserGroupList = 8,
198 bHasBlankAccessPrivileges = 4,
199 bSupportsAsyncRequests = 3,
201 bSupportsTrashVolumeCache = 2
208 bSupportsHFSPlusAPIs = 1,
210 bSupportsFSCatalogSearch = 2,
211 bSupportsFSExchangeObjects = 3,
212 bSupports2TBFiles = 4,
213 bSupportsLongNames = 5,
215 bSupportsMultiScriptNames =
218 bSupportsNamedForks =
220 bSupportsSubtreeIterators =
222 bL2PCanMapFileBlocks = 9
228 bParentModDateChanges =
230 bAncestorModDateChanges =
237 bSupportsSymbolicLinks = 13,
240 bAllowCDiDataHandler =
260 kLargeIconSize = 256,
261 kLarge4BitIconSize = 512,
262 kLarge8BitIconSize = 1024,
264 kSmall4BitIconSize = 128,
265 kSmall8BitIconSize = 256
271 kWidePosOffsetBit = 8,
272 kUseWidePositioning = (1 << kWidePosOffsetBit),
273 kMaximumBlocksIn4GB = 0x007FFFFF
285 kNoUserAuthentication = 1,
287 kEncryptPassword = 3,
288 kTwoWayEncryptPassword = 6
300 kReturnNextGroup = 2,
307 kVCBFlagsIdleFlushBit = 3,
308 kVCBFlagsIdleFlushMask = 0x0008,
309 kVCBFlagsHFSPlusAPIsBit =
311 kVCBFlagsHFSPlusAPIsMask = 0x0010,
312 kVCBFlagsHardwareGoneBit =
314 kVCBFlagsHardwareGoneMask = 0x0020,
315 kVCBFlagsVolumeDirtyBit =
317 kVCBFlagsVolumeDirtyMask = 0x8000
323 kioVAtrbDefaultVolumeBit = 5,
324 kioVAtrbDefaultVolumeMask = 0x0020,
325 kioVAtrbFilesOpenBit = 6,
326 kioVAtrbFilesOpenMask = 0x0040,
327 kioVAtrbHardwareLockedBit =
329 kioVAtrbHardwareLockedMask = 0x0080,
330 kioVAtrbSoftwareLockedBit = 15,
331 kioVAtrbSoftwareLockedMask = 0x8000
338 kioFlAttribLockedBit = 0,
339 kioFlAttribLockedMask = 0x01,
340 kioFlAttribResOpenBit = 2,
341 kioFlAttribResOpenMask = 0x04,
342 kioFlAttribDataOpenBit = 3,
343 kioFlAttribDataOpenMask = 0x08,
344 kioFlAttribDirBit = 4,
345 kioFlAttribDirMask = 0x10,
348 kioFlAttribCopyProtBit =
350 kioFlAttribCopyProtMask = 0x40,
351 kioFlAttribFileOpenBit = 7,
352 kioFlAttribFileOpenMask = 0x80,
353 kioFlAttribInSharedBit = 2,
355 kioFlAttribInSharedMask = 0x04,
356 kioFlAttribMountedBit = 3,
358 kioFlAttribMountedMask = 0x08,
359 kioFlAttribSharePointBit = 5,
360 kioFlAttribSharePointMask = 0x20
367 kioFCBWriteMask = 0x0100,
368 kioFCBResourceBit = 9,
369 kioFCBResourceMask = 0x0200,
370 kioFCBWriteLockedBit = 10,
371 kioFCBWriteLockedMask = 0x0400,
374 kioFCBLargeFileMask = 0x0800,
375 kioFCBSharedWriteBit = 12,
376 kioFCBSharedWriteMask = 0x1000,
377 kioFCBFileLockedBit = 13,
378 kioFCBFileLockedMask = 0x2000,
379 kioFCBOwnClumpBit = 14,
380 kioFCBOwnClumpMask = 0x4000,
381 kioFCBModifiedBit = 15,
382 kioFCBModifiedMask = 0x8000
390 kioACUserNoSeeFolderBit =
392 kioACUserNoSeeFolderMask = 0x01,
393 kioACUserNoSeeFilesBit =
395 kioACUserNoSeeFilesMask = 0x02,
396 kioACUserNoMakeChangesBit =
398 kioACUserNoMakeChangesMask = 0x04,
399 kioACUserNotOwnerBit = 7,
400 kioACUserNotOwnerMask = 0x80
406 kioACAccessOwnerBit = 31,
407 kioACAccessOwnerMask = (long)0x80000000,
408 kioACAccessBlankAccessBit = 28,
409 kioACAccessBlankAccessMask = 0x10000000,
410 kioACAccessUserWriteBit = 26,
411 kioACAccessUserWriteMask = 0x04000000,
412 kioACAccessUserReadBit = 25,
413 kioACAccessUserReadMask = 0x02000000,
414 kioACAccessUserSearchBit = 24,
415 kioACAccessUserSearchMask = 0x01000000,
416 kioACAccessEveryoneWriteBit = 18,
417 kioACAccessEveryoneWriteMask = 0x00040000,
418 kioACAccessEveryoneReadBit = 17,
419 kioACAccessEveryoneReadMask = 0x00020000,
420 kioACAccessEveryoneSearchBit = 16,
421 kioACAccessEveryoneSearchMask = 0x00010000,
422 kioACAccessGroupWriteBit = 10,
423 kioACAccessGroupWriteMask = 0x00000400,
424 kioACAccessGroupReadBit = 9,
425 kioACAccessGroupReadMask = 0x00000200,
426 kioACAccessGroupSearchBit = 8,
427 kioACAccessGroupSearchMask = 0x00000100,
428 kioACAccessOwnerWriteBit = 2,
429 kioACAccessOwnerWriteMask = 0x00000004,
430 kioACAccessOwnerReadBit = 1,
431 kioACAccessOwnerReadMask = 0x00000002,
432 kioACAccessOwnerSearchBit = 0,
433 kioACAccessOwnerSearchMask = 0x00000001,
434 kfullPrivileges = 0x00070007,
435 kownerPrivileges = 0x00000007
442 kadministratorUser = 1
458 short vMForeignPrivID;
460 long vMExtendedAttributes;
479 IOCompletionUPP ioCompletion;
480 volatile OSErr ioResult;
502 IOCompletionUPP ioCompletion;
503 volatile OSErr ioResult;
513 unsigned long ioFlNum;
514 unsigned short ioFlStBlk;
517 unsigned short ioFlRStBlk;
520 unsigned long ioFlCrDat;
521 unsigned long ioFlMdDat;
531 IOCompletionUPP ioCompletion;
532 volatile OSErr ioResult;
537 unsigned long ioVCrDate;
538 unsigned long ioVLsBkUp;
539 unsigned short ioVAtrb;
540 unsigned short ioVNmFls;
541 unsigned short ioVDirSt;
547 unsigned long ioVClpSiz;
548 unsigned short ioAlBlSt;
549 unsigned long ioVNxtFNum;
550 unsigned short ioVFrBlk;
560 IOCompletionUPP ioCompletion;
561 volatile OSErr ioResult;
576 IOCompletionUPP ioCompletion;
577 volatile OSErr ioResult;
596 IOCompletionUPP ioCompletion;
597 volatile OSErr ioResult;
655 IOCompletionUPP ioCompletion;
656 volatile OSErr ioResult;
667 unsigned short ioFlStBlk;
670 unsigned short ioFlRStBlk;
673 unsigned long ioFlCrDat;
674 unsigned long ioFlMdDat;
675 unsigned long ioFlBkDat;
687 IOCompletionUPP ioCompletion;
688 volatile OSErr ioResult;
699 unsigned short ioDrNmFls;
701 unsigned long ioDrCrDat;
702 unsigned long ioDrMdDat;
703 unsigned long ioDrBkDat;
719 cipb.hFileInfo.vRefNum = 2;
720 cipb.dirInfo.ioDrFndrInfo.frLocation.h = 100;
722 dipb->ioDrFndrInfo.frLocation.h = 100;
723 You can also perform ad hoc type coercion :
unsigned char pb[108];
726 ((HFileParam *)
pb)->ioFlLgLen = 1000L;
730 printf(
"File type is '%c%c%c%c'\n",
pb[32],
pb[33],
pb[34],
pb[35]);
732 * \copyright THINK Reference © 1991 - 1992 Symantec Corporation
740 typedef union CInfoPBRec CInfoPBRec;
741 typedef CInfoPBRec *CInfoPBPtr;
748 ProcPtr ioCompletion;
749 volatile OSErr ioResult;
761 typedef struct XCInfoPBRec XCInfoPBRec;
762 typedef XCInfoPBRec *XCInfoPBPtr;
764 struct CatPositionRec
769 typedef struct CatPositionRec CatPositionRec;
776 typedef struct FSSpec FSSpec;
777 typedef FSSpec *FSSpecPtr;
778 typedef FSSpecPtr *FSSpecHandle;
780 typedef FSSpecPtr FSSpecArrayPtr;
785 typedef const FSSpec *ConstFSSpecPtr;
792 typedef OSType VolumeType;
796 AppleShareMediaType = FOUR_CHAR_CODE(
'afpm')
802 struct VolMountInfoHeader
807 typedef struct VolMountInfoHeader VolMountInfoHeader;
808 typedef VolMountInfoHeader *VolMountInfoPtr;
813 struct VolumeMountInfoHeader
819 typedef struct VolumeMountInfoHeader VolumeMountInfoHeader;
820 typedef VolumeMountInfoHeader *VolumeMountInfoHeaderPtr;
824 volMountNoLoginMsgFlagBit =
826 volMountNoLoginMsgFlagMask =
828 volMountExtendedFlagsBit =
830 volMountExtendedFlagsMask =
832 volMountInteractBit =
834 volMountInteractMask =
838 volMountChangedMask =
840 volMountFSReservedMask =
842 volMountSysReservedMask =
846 struct AFPVolMountInfo
854 short zoneNameOffset;
856 short serverNameOffset;
858 short userNameOffset;
859 short userPasswordOffset;
860 short volPasswordOffset;
863 typedef struct AFPVolMountInfo AFPVolMountInfo;
864 typedef AFPVolMountInfo *AFPVolMountInfoPtr;
868 struct AFPXVolMountInfo
876 short zoneNameOffset;
878 short serverNameOffset;
880 short userNameOffset;
881 short userPasswordOffset;
882 short volPasswordOffset;
885 short alternateAddressOffset;
889 typedef struct AFPXVolMountInfo AFPXVolMountInfo;
890 typedef AFPXVolMountInfo *AFPXVolMountInfoPtr;
893 kAFPExtendedFlagsAlternateAddressMask =
901 kAFPTagTypeIP = 0x01,
902 kAFPTagTypeIPPort = 0x02,
903 kAFPTagTypeDDP = 0x03,
905 kAFPTagTypeDNS = 0x04
912 kAFPTagLengthIP = 0x06,
913 kAFPTagLengthIPPort = 0x08,
914 kAFPTagLengthDDP = 0x06
923 typedef struct AFPTagData AFPTagData;
924 struct AFPAlternateAddress
929 UInt8 fAddressList[1];
931 typedef struct AFPAlternateAddress AFPAlternateAddress;
938 IOCompletionUPP ioCompletion;
939 volatile OSErr ioResult;
952 OSType ioFileCreator;
960 typedef struct DTPBRec DTPBRec;
961 typedef DTPBRec *DTPBPtr;
969 IOCompletionUPP ioCompletion;
970 volatile OSErr ioResult;
983 typedef struct HIOParam HIOParam;
984 typedef HIOParam *HIOParamPtr;
991 IOCompletionUPP ioCompletion;
992 volatile OSErr ioResult;
1003 unsigned short ioFlStBlk;
1006 unsigned short ioFlRStBlk;
1009 unsigned long ioFlCrDat;
1010 unsigned long ioFlMdDat;
1012 typedef struct HFileParam HFileParam;
1013 typedef HFileParam *HFileParamPtr;
1020 IOCompletionUPP ioCompletion;
1021 volatile OSErr ioResult;
1026 unsigned long ioVCrDate;
1027 unsigned long ioVLsMod;
1029 unsigned short ioVNmFls;
1030 unsigned short ioVBitMap;
1031 unsigned short ioAllocPtr;
1032 unsigned short ioVNmAlBlks;
1033 unsigned long ioVAlBlkSiz;
1034 unsigned long ioVClpSiz;
1035 unsigned short ioAlBlSt;
1036 unsigned long ioVNxtCNID;
1037 unsigned short ioVFrBlk;
1038 unsigned short ioVSigWord;
1042 unsigned long ioVBkUp;
1044 unsigned long ioVWrCnt;
1045 unsigned long ioVFilCnt;
1046 unsigned long ioVDirCnt;
1047 long ioVFndrInfo[8];
1049 typedef struct HVolumeParam HVolumeParam;
1050 typedef HVolumeParam *HVolumeParamPtr;
1057 IOCompletionUPP ioCompletion;
1058 volatile OSErr ioResult;
1071 typedef struct XIOParam XIOParam;
1072 typedef XIOParam *XIOParamPtr;
1079 IOCompletionUPP ioCompletion;
1080 volatile OSErr ioResult;
1083 unsigned long ioXVersion;
1085 unsigned long ioVCrDate;
1086 unsigned long ioVLsMod;
1088 unsigned short ioVNmFls;
1089 unsigned short ioVBitMap;
1090 unsigned short ioAllocPtr;
1091 unsigned short ioVNmAlBlks;
1092 unsigned long ioVAlBlkSiz;
1093 unsigned long ioVClpSiz;
1094 unsigned short ioAlBlSt;
1095 unsigned long ioVNxtCNID;
1096 unsigned short ioVFrBlk;
1097 unsigned short ioVSigWord;
1101 unsigned long ioVBkUp;
1103 unsigned long ioVWrCnt;
1104 unsigned long ioVFilCnt;
1105 unsigned long ioVDirCnt;
1106 long ioVFndrInfo[8];
1110 typedef struct XVolumeParam XVolumeParam;
1111 typedef XVolumeParam *XVolumeParamPtr;
1118 IOCompletionUPP ioCompletion;
1119 volatile OSErr ioResult;
1133 typedef struct AccessParam AccessParam;
1134 typedef AccessParam *AccessParamPtr;
1141 IOCompletionUPP ioCompletion;
1142 volatile OSErr ioResult;
1150 typedef struct ObjParam ObjParam;
1151 typedef ObjParam *ObjParamPtr;
1158 IOCompletionUPP ioCompletion;
1159 volatile OSErr ioResult;
1171 typedef struct CopyParam CopyParam;
1172 typedef CopyParam *CopyParamPtr;
1179 IOCompletionUPP ioCompletion;
1180 volatile OSErr ioResult;
1193 typedef struct WDParam WDParam;
1194 typedef WDParam *WDParamPtr;
1201 IOCompletionUPP ioCompletion;
1202 volatile OSErr ioResult;
1215 typedef struct FIDParam FIDParam;
1216 typedef FIDParam *FIDParamPtr;
1217 struct ForeignPrivParam
1223 IOCompletionUPP ioCompletion;
1224 volatile OSErr ioResult;
1229 Ptr ioForeignPrivBuffer;
1230 long ioForeignPrivActCount;
1231 long ioForeignPrivReqCount;
1233 long ioForeignPrivDirID;
1234 long ioForeignPrivInfo1;
1235 long ioForeignPrivInfo2;
1236 long ioForeignPrivInfo3;
1237 long ioForeignPrivInfo4;
1239 typedef struct ForeignPrivParam ForeignPrivParam;
1240 typedef ForeignPrivParam *ForeignPrivParamPtr;
1247 IOCompletionUPP ioCompletion;
1248 volatile OSErr ioResult;
1251 FSSpecPtr ioMatchPtr;
1252 long ioReqMatchCount;
1253 long ioActMatchCount;
1255 CInfoPBPtr ioSearchInfo1;
1256 CInfoPBPtr ioSearchInfo2;
1258 CatPositionRec ioCatPosition;
1262 typedef struct CSParam CSParam;
1263 typedef CSParam *CSParamPtr;
1278 HFileParam *hfpb = (HFileParam *)&hpb;
1279 HVolumeParam *hvpb = (HVolumeParam *)&hpb;
1280 AccessParam *hapb = (AccessParam *)&hpb;
1281 ObjParam *hopb = (ObjParam *)&hpb;
1282 CopyParam *hcpb = (CopyParam *)&hpb;
1283 WDParam *hwpb = (WDParam *)&hpb;
1284 hpb.ioParam.ioVRefNum = 2;
1285 hpb.fileParam.ioFlFndrInfo.fdType =
'TEXT';
1286 hpb.volumeParam.ioVolIndex = 0;
1287 hpb.accessParam.ioDenyModes = 0;
1288 hpb.objParam.ioObjType = 2;
1289 hpb.copyParam.ioDstVRefNum = 1;
1290 hpb.wdParam.ioWDIndex = 1;
1291 hipb->ioVRefNum = 2;
1292 hfpb->ioFlFndrInfo.fdType =
'TEXT';
1294 * \copyright THINK Reference © 1991 - 1992 Symantec Corporation
1320 IOCompletionUPP ioCompletion;
1321 volatile OSErr ioResult;
1339 IOCompletionUPP ioCompletion;
1340 volatile OSErr ioResult;
1358 IOCompletionUPP ioCompletion;
1359 volatile OSErr ioResult;
1368 unsigned short ioFCBStBlk;
1383 unsigned short vcbSigWord;
1384 unsigned long vcbCrDate;
1385 unsigned long vcbLsMod;
1387 unsigned short vcbNmFls;
1390 unsigned short vcbNmAlBlks;
1395 unsigned short vcbFreeBks;
1406 unsigned long vcbVolBkUp;
1407 unsigned short vcbVSeqNum;
1411 unsigned short vcbNmRtDirs;
1414 long vcbFndrInfo[8];
1415 unsigned short vcbVCSize;
1416 unsigned short vcbVBMCSiz;
1417 unsigned short vcbCtlCSiz;
1418 unsigned short vcbXTAlBlks;
1419 unsigned short vcbCTAlBlks;
1435 unsigned short dQDrvSz;
1436 unsigned short dQDrvSz2;
1450 #if !OPAQUE_UPP_TYPES
1453 uppIOCompletionProcInfo = 0x00009802
1459 uppIOCompletionProcInfo,
1460 GetCurrentArchitecture());
1463 #define NewIOCompletionUPP(userRoutine) \
1465 NewRoutineDescriptor((ProcPtr)(userRoutine), uppIOCompletionProcInfo, \
1466 GetCurrentArchitecture())
1480 #if !OPAQUE_UPP_TYPES
1487 #define DisposeIOCompletionUPP(userUPP) DisposeRoutineDescriptor(userUPP)
1499 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1500 #pragma parameter InvokeIOCompletionUPP(__A0, __A1)
1504 #if !OPAQUE_UPP_TYPES && \
1505 (!TARGET_OS_MAC || !TARGET_CPU_68K || TARGET_RT_MAC_CFM)
1508 IOCompletionUPP userUPP)
1510 CALL_ONE_PARAMETER_UPP(userUPP, uppIOCompletionProcInfo, paramBlock);
1513 #define InvokeIOCompletionUPP(paramBlock, userUPP) \
1514 CALL_ONE_PARAMETER_UPP((userUPP), uppIOCompletionProcInfo, (paramBlock))
1518 #if CALL_NOT_IN_CARBON || OLDROUTINENAMES
1520 #define NewIOCompletionProc(userRoutine) NewIOCompletionUPP(userRoutine)
1521 #define CallIOCompletionProc(userRoutine, paramBlock) \
1522 InvokeIOCompletionUPP(paramBlock, userRoutine)
1532 #if CALL_NOT_IN_CARBON
1541 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1542 #pragma parameter __D0 PBGetVInfoSync(__A0)
1555 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1556 #pragma parameter __D0 PBGetVInfoAsync(__A0)
1571 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1572 #pragma parameter __D0 PBXGetVolInfoSync(__A0)
1585 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1586 #pragma parameter __D0 PBXGetVolInfoAsync(__A0)
1591 #if CALL_NOT_IN_CARBON
1600 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1601 #pragma parameter __D0 PBGetVolSync(__A0)
1614 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1615 #pragma parameter __D0 PBGetVolAsync(__A0)
1628 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1629 #pragma parameter __D0 PBSetVolSync(__A0)
1642 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1643 #pragma parameter __D0 PBSetVolAsync(__A0)
1658 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1659 #pragma parameter __D0 PBFlushVolSync(__A0)
1672 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1673 #pragma parameter __D0 PBFlushVolAsync(__A0)
1678 #if CALL_NOT_IN_CARBON
1687 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1688 #pragma parameter __D0 PBHTrashVolumeCachesSync(__A0)
1701 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1702 #pragma parameter __D0 PBCreateSync(__A0)
1715 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1716 #pragma parameter __D0 PBCreateAsync(__A0)
1729 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1730 #pragma parameter __D0 PBDeleteSync(__A0)
1743 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1744 #pragma parameter __D0 PBDeleteAsync(__A0)
1757 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1758 #pragma parameter __D0 PBOpenDFSync(__A0)
1771 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1772 #pragma parameter __D0 PBOpenDFAsync(__A0)
1785 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1786 #pragma parameter __D0 PBOpenRFSync(__A0)
1799 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1800 #pragma parameter __D0 PBOpenRFAsync(__A0)
1813 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1814 #pragma parameter __D0 PBRenameSync(__A0)
1827 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1828 #pragma parameter __D0 PBRenameAsync(__A0)
1841 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1842 #pragma parameter __D0 PBGetFInfoSync(__A0)
1855 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1856 #pragma parameter __D0 PBGetFInfoAsync(__A0)
1869 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1870 #pragma parameter __D0 PBSetFInfoSync(__A0)
1883 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1884 #pragma parameter __D0 PBSetFInfoAsync(__A0)
1897 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1898 #pragma parameter __D0 PBSetFLockSync(__A0)
1911 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1912 #pragma parameter __D0 PBSetFLockAsync(__A0)
1925 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1926 #pragma parameter __D0 PBRstFLockSync(__A0)
1939 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1940 #pragma parameter __D0 PBRstFLockAsync(__A0)
1953 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1954 #pragma parameter __D0 PBSetFVersSync(__A0)
1967 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1968 #pragma parameter __D0 PBSetFVersAsync(__A0)
1983 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1984 #pragma parameter __D0 PBAllocateSync(__A0)
1997 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
1998 #pragma parameter __D0 PBAllocateAsync(__A0)
2011 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
2012 #pragma parameter __D0 PBGetEOFSync(__A0)
2025 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
2026 #pragma parameter __D0 PBGetEOFAsync(__A0)
2039 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
2040 #pragma parameter __D0 PBSetEOFSync(__A0)
2053 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
2054 #pragma parameter __D0 PBSetEOFAsync(__A0)
2067 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
2068 #pragma parameter __D0 PBGetFPosSync(__A0)
2081 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
2082 #pragma parameter __D0 PBGetFPosAsync(__A0)
2095 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
2096 #pragma parameter __D0 PBSetFPosSync(__A0)
2109 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
2110 #pragma parameter __D0 PBSetFPosAsync(__A0)
2123 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
2124 #pragma parameter __D0 PBFlushFileSync(__A0)
2137 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
2138 #pragma parameter __D0 PBFlushFileAsync(__A0)
2143 #if CALL_NOT_IN_CARBON
2152 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
2153 #pragma parameter __D0 PBMountVol(__A0)
2205 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
2206 #pragma parameter __D0 PBUnmountVol(__A0)
2211 #if CALL_NOT_IN_CARBON
2220 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
2221 #pragma parameter __D0 PBUnmountVolImmed(__A0)
2234 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
2235 #pragma parameter __D0 PBEject(__A0)
2248 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
2249 #pragma parameter __D0 PBOffLine(__A0)
2264 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
2265 #pragma parameter __D0 PBCatSearchSync(__A0)
2278 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
2279 #pragma parameter __D0 PBCatSearchAsync(__A0)
2284 #if CALL_NOT_IN_CARBON
2312 err = SetVol(
"\pMy HardDisk:", 0);
2313 The
volName string should NOT be a multiple - name pathname(such as
2314 "\pHardDisk:Ltrs:Old") nor should it be an empty string(i.e.,
"\p");
2315 this parameter is checked first and anything but a valid name(except a NIL
2316 pointer) is rejected as an error.PBHSetVol lets you select both the
default volume and
default directory(see the second example, below)
2317 .You can pass a working directory number(i.e., the value of ioVRefNum after a call to PBOpenWD, or a volume reference returned by Standard
2319 but only
if volName is NIL on entry(see the third example).Also,
if you
do use a working directory reference, a subsequent call to
GetVol will
return that number, rather than a
"hard" volume ID.</ pre> * \copyright THINK Reference © 1991 - 1992 Symantec Corporation * \non_carbon_cfm in InterfaceLib 7.1 and later * \carbon_lib not available * \mac_os_x not available * / OSErr SetVol(ConstStr63Param
volName,
2346 #if CALL_NOT_IN_CARBON
2421 short vRefNum,
long dirID);
2425 #if CALL_NOT_IN_CARBON
2476 FSOpen(ConstStr255Param fileName,
short vRefNum,
short *refNum);
2487 OpenDF(ConstStr255Param fileName,
short vRefNum,
short *refNum);
2574 FSRead(
short refNum,
long *count,
void *buffPtr);
2624 FSWrite(
short refNum,
long *count,
const void *buffPtr);
2626 #if CALL_NOT_IN_CARBON
2667 * \copyright THINK Reference © 1991 - 1992 Symantec Corporation
2668 * \non_carbon_cfm in InterfaceLib 7.1 and
2670 * \carbon_lib not available * \mac_os_x not available *
2673 GetVInfo(
short drvNum,
StringPtr volName,
short *vRefNum,
long *freeBytes);
2822 Create(ConstStr255Param fileName,
short vRefNum, OSType creator,
2864 rc = FSDelete(
"\pHardDisk:Ltrs:", 0);
2869 * \copyright THINK Reference © 1991 - 1992 Symantec Corporation
2870 * \non_carbon_cfm in InterfaceLib 7.1 and
2872 * \carbon_lib not available * \mac_os_x not available *
2875 FSDelete(ConstStr255Param fileName,
short vRefNum);
2886 OpenRF(ConstStr255Param fileName,
short vRefNum,
short *refNum);
2938 Rename(ConstStr255Param oldName,
short vRefNum, ConstStr255Param newName);
3115 This attempts to extend the file by 1
byte, but it will always eat up one full
3116 allocation unit (e.g., 512 or 1K) of disk space. Before
using Allocate , you
3117 may wish to learn the current physical file length by examining the
3119 The PBAllocContig attempts to expand a file by adding contiguous disk
3120 blocks to the file (
for fastest I/O)
SetEOF can also be used to increase file
3123 * \copyright THINK Reference © 1991-1992 Symantec Corporation
3124 * \non_carbon_cfm in InterfaceLib 7.1 and later
3125 * \carbon_lib in CarbonLib 1.0 and later
3126 * \mac_os_x in version 10.0 and later
3129 Allocate(
short refNum,
long *count);
3162 rc =
FSOpen(
"\pHardDisk:MyFile", 0, &fRef);
3166 rc = GetEOF(fRef, &fileSize);
3174 rc =
FSRead(fRef, &fileSize, *hData);
3176 * \copyright THINK Reference © 1991 - 1992 Symantec Corporation
3177 * \non_carbon_cfm in InterfaceLib 7.1 and
3179 * \carbon_lib in CarbonLib 1.0 and
3181 * \mac_os_x in version 10.0 and
3185 GetEOF(
short refNum,
long *logEOF);
3307 OSErr
SetFPos(
short refNum,
short posMode,
long posOff);
3334 #if CALL_NOT_IN_CARBON
3343 OSErr
fsopen(
const char *fileName,
short vRefNum,
short *refNum);
3423 OSErr
create(
const char *fileName,
short vRefNum, OSType creator, OSType fileType);
3443 OSErr
openrf(
const char *fileName,
short vRefNum,
short *refNum);
3453 OSErr
fsrename(
const char *oldName,
short vRefNum,
const char *newName);
3487 #if CALL_NOT_IN_CARBON
3496 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3497 #pragma parameter __D0 PBOpenWDSync(__A0)
3510 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3511 #pragma parameter __D0 PBOpenWDAsync(__A0)
3524 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3525 #pragma parameter __D0 PBCloseWDSync(__A0)
3538 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3539 #pragma parameter __D0 PBCloseWDAsync(__A0)
3554 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3555 #pragma parameter __D0 PBHSetVolSync(__A0)
3568 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3569 #pragma parameter __D0 PBHSetVolAsync(__A0)
3582 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3583 #pragma parameter __D0 PBHGetVolSync(__A0)
3596 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3597 #pragma parameter __D0 PBHGetVolAsync(__A0)
3610 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3611 #pragma parameter __D0 PBCatMoveSync(__A0)
3624 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3625 #pragma parameter __D0 PBCatMoveAsync(__A0)
3638 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3639 #pragma parameter __D0 PBDirCreateSync(__A0)
3652 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3653 #pragma parameter __D0 PBDirCreateAsync(__A0)
3658 #if CALL_NOT_IN_CARBON
3667 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3668 #pragma parameter __D0 PBGetWDInfoSync(__A0)
3681 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3682 #pragma parameter __D0 PBGetWDInfoAsync(__A0)
3697 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3698 #pragma parameter __D0 PBGetFCBInfoSync(__A0)
3711 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3712 #pragma parameter __D0 PBGetFCBInfoAsync(__A0)
3725 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3726 #pragma parameter __D0 PBGetCatInfoSync(__A0)
3739 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3740 #pragma parameter __D0 PBGetCatInfoAsync(__A0)
3753 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3754 #pragma parameter __D0 PBSetCatInfoSync(__A0)
3767 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3768 #pragma parameter __D0 PBSetCatInfoAsync(__A0)
3781 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3782 #pragma parameter __D0 PBAllocContigSync(__A0)
3795 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3796 #pragma parameter __D0 PBAllocContigAsync(__A0)
3809 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3810 #pragma parameter __D0 PBLockRangeSync(__A0)
3823 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3824 #pragma parameter __D0 PBLockRangeAsync(__A0)
3837 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3838 #pragma parameter __D0 PBUnlockRangeSync(__A0)
3851 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3852 #pragma parameter __D0 PBUnlockRangeAsync(__A0)
3865 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3866 #pragma parameter __D0 PBSetVInfoSync(__A0)
3879 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3880 #pragma parameter __D0 PBSetVInfoAsync(__A0)
3893 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3894 #pragma parameter __D0 PBHGetVInfoSync(__A0)
3907 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3908 #pragma parameter __D0 PBHGetVInfoAsync(__A0)
3921 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3922 #pragma parameter __D0 PBHOpenSync(__A0)
3935 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3936 #pragma parameter __D0 PBHOpenAsync(__A0)
3949 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3950 #pragma parameter __D0 PBHOpenRFSync(__A0)
3963 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3964 #pragma parameter __D0 PBHOpenRFAsync(__A0)
3977 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3978 #pragma parameter __D0 PBHOpenDFSync(__A0)
3991 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
3992 #pragma parameter __D0 PBHOpenDFAsync(__A0)
4005 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
4006 #pragma parameter __D0 PBHCreateSync(__A0)
4019 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
4020 #pragma parameter __D0 PBHCreateAsync(__A0)
4033 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
4034 #pragma parameter __D0 PBHDeleteSync(__A0)
4047 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
4048 #pragma parameter __D0 PBHDeleteAsync(__A0)
4061 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
4062 #pragma parameter __D0 PBHRenameSync(__A0)
4075 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
4076 #pragma parameter __D0 PBHRenameAsync(__A0)
4089 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
4090 #pragma parameter __D0 PBHRstFLockSync(__A0)
4103 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
4104 #pragma parameter __D0 PBHRstFLockAsync(__A0)
4117 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
4118 #pragma parameter __D0 PBHSetFLockSync(__A0)
4131 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
4132 #pragma parameter __D0 PBHSetFLockAsync(__A0)
4145 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
4146 #pragma parameter __D0 PBHGetFInfoSync(__A0)
4159 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
4160 #pragma parameter __D0 PBHGetFInfoAsync(__A0)
4173 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
4174 #pragma parameter __D0 PBHSetFInfoSync(__A0)
4187 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
4188 #pragma parameter __D0 PBHSetFInfoAsync(__A0)
4201 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
4202 #pragma parameter __D0 PBMakeFSSpecSync(__A0)
4215 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
4216 #pragma parameter __D0 PBMakeFSSpecAsync(__A0)
4221 #if CALL_NOT_IN_CARBON
4245 #if CALL_NOT_IN_CARBON
4310 printf(
"First vcb is at = %lx\n", qhp->qHead);
4311 vcbp = (
VCB *)qhp->qHead;
4312 printf(
"Volume's drive # is: %d\n", vcbp->vcbDrvNum);
4313 printf(
"number of files in root = %d\n", vcbp->vcbNmFls);
4314 printf(
"Next vcb is at = %lx\n", vcbp->qLink);
4316 * \copyright THINK Reference © 1991 - 1992 Symantec Corporation
4317 * \non_carbon_cfm in InterfaceLib 7.1 and
4319 * \carbon_lib not available * \mac_os_x not available *
4362 HOpen(
short vRefNum,
long dirID, ConstStr255Param fileName, SInt8 permission,
4374 HOpenDF(
short vRefNum,
long dirID, ConstStr255Param fileName, SInt8 permission,
4386 HOpenRF(
short vRefNum,
long dirID, ConstStr255Param fileName, SInt8 permission,
4466 HCreate(
short vRefNum,
long dirID, ConstStr255Param fileName, OSType creator,
4501 DirCreate(
short vRefNum,
long parentDirID, ConstStr255Param directoryName,
4502 long *createdDirID);
4544 HDelete(
short vRefNum,
long dirID, ConstStr255Param fileName);
4590 HGetFInfo(
short vRefNum,
long dirID, ConstStr255Param fileName,
4637 HSetFInfo(
short vRefNum,
long dirID, ConstStr255Param fileName,
4638 const FInfo *fndrInfo);
4688 HSetFLock(
short vRefNum,
long dirID, ConstStr255Param fileName);
4730 HRstFLock(
short vRefNum,
long dirID, ConstStr255Param fileName);
4761 HRename(
short vRefNum,
long dirID, ConstStr255Param oldName,
4762 ConstStr255Param newName);
4797 CatMove(
short vRefNum,
long dirID, ConstStr255Param oldName,
long newDirID,
4798 ConstStr255Param newName);
4800 #if CALL_NOT_IN_CARBON
4810 OpenWD(
short vRefNum,
long dirID,
long procID,
short *wdRefNum);
4849 GetWDInfo(
short wdRefNum,
short *vRefNum,
long *dirID,
long *procID);
4862 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
4863 #pragma parameter __D0 PBHGetVolParmsSync(__A0)
4876 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
4877 #pragma parameter __D0 PBHGetVolParmsAsync(__A0)
4890 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
4891 #pragma parameter __D0 PBHGetLogInInfoSync(__A0)
4904 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
4905 #pragma parameter __D0 PBHGetLogInInfoAsync(__A0)
4918 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
4919 #pragma parameter __D0 PBHGetDirAccessSync(__A0)
4932 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
4933 #pragma parameter __D0 PBHGetDirAccessAsync(__A0)
4946 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
4947 #pragma parameter __D0 PBHSetDirAccessSync(__A0)
4960 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
4961 #pragma parameter __D0 PBHSetDirAccessAsync(__A0)
4974 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
4975 #pragma parameter __D0 PBHMapIDSync(__A0)
4988 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
4989 #pragma parameter __D0 PBHMapIDAsync(__A0)
5002 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5003 #pragma parameter __D0 PBHMapNameSync(__A0)
5016 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5017 #pragma parameter __D0 PBHMapNameAsync(__A0)
5030 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5031 #pragma parameter __D0 PBHCopyFileSync(__A0)
5044 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5045 #pragma parameter __D0 PBHCopyFileAsync(__A0)
5058 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5059 #pragma parameter __D0 PBHMoveRenameSync(__A0)
5072 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5073 #pragma parameter __D0 PBHMoveRenameAsync(__A0)
5086 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5087 #pragma parameter __D0 PBHOpenDenySync(__A0)
5100 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5101 #pragma parameter __D0 PBHOpenDenyAsync(__A0)
5114 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5115 #pragma parameter __D0 PBHOpenRFDenySync(__A0)
5128 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5129 #pragma parameter __D0 PBHOpenRFDenyAsync(__A0)
5142 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5143 #pragma parameter __D0 PBGetXCatInfoSync(__A0)
5156 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5157 #pragma parameter __D0 PBGetXCatInfoAsync(__A0)
5170 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5171 #pragma parameter __D0 PBExchangeFilesSync(__A0)
5184 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5185 #pragma parameter __D0 PBExchangeFilesAsync(__A0)
5198 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5199 #pragma parameter __D0 PBCreateFileIDRefSync(__A0)
5212 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5213 #pragma parameter __D0 PBCreateFileIDRefAsync(__A0)
5226 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5227 #pragma parameter __D0 PBResolveFileIDRefSync(__A0)
5240 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5241 #pragma parameter __D0 PBResolveFileIDRefAsync(__A0)
5254 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5255 #pragma parameter __D0 PBDeleteFileIDRefSync(__A0)
5268 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5269 #pragma parameter __D0 PBDeleteFileIDRefAsync(__A0)
5282 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5283 #pragma parameter __D0 PBGetForeignPrivsSync(__A0)
5296 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5297 #pragma parameter __D0 PBGetForeignPrivsAsync(__A0)
5310 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5311 #pragma parameter __D0 PBSetForeignPrivsSync(__A0)
5324 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5325 #pragma parameter __D0 PBSetForeignPrivsAsync(__A0)
5339 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5340 #pragma parameter __D0 PBDTGetPath(__A0)
5353 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5354 #pragma parameter __D0 PBDTCloseDown(__A0)
5367 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5368 #pragma parameter __D0 PBDTAddIconSync(__A0)
5381 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5382 #pragma parameter __D0 PBDTAddIconAsync(__A0)
5395 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5396 #pragma parameter __D0 PBDTGetIconSync(__A0)
5409 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5410 #pragma parameter __D0 PBDTGetIconAsync(__A0)
5423 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5424 #pragma parameter __D0 PBDTGetIconInfoSync(__A0)
5437 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5438 #pragma parameter __D0 PBDTGetIconInfoAsync(__A0)
5451 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5452 #pragma parameter __D0 PBDTAddAPPLSync(__A0)
5465 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5466 #pragma parameter __D0 PBDTAddAPPLAsync(__A0)
5479 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5480 #pragma parameter __D0 PBDTRemoveAPPLSync(__A0)
5493 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5494 #pragma parameter __D0 PBDTRemoveAPPLAsync(__A0)
5507 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5508 #pragma parameter __D0 PBDTGetAPPLSync(__A0)
5521 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5522 #pragma parameter __D0 PBDTGetAPPLAsync(__A0)
5535 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5536 #pragma parameter __D0 PBDTSetCommentSync(__A0)
5549 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5550 #pragma parameter __D0 PBDTSetCommentAsync(__A0)
5563 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5564 #pragma parameter __D0 PBDTRemoveCommentSync(__A0)
5577 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5578 #pragma parameter __D0 PBDTRemoveCommentAsync(__A0)
5591 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5592 #pragma parameter __D0 PBDTGetCommentSync(__A0)
5605 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5606 #pragma parameter __D0 PBDTGetCommentAsync(__A0)
5619 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5620 #pragma parameter __D0 PBDTFlushSync(__A0)
5633 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5634 #pragma parameter __D0 PBDTFlushAsync(__A0)
5647 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5648 #pragma parameter __D0 PBDTResetSync(__A0)
5661 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5662 #pragma parameter __D0 PBDTResetAsync(__A0)
5675 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5676 #pragma parameter __D0 PBDTGetInfoSync(__A0)
5689 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5690 #pragma parameter __D0 PBDTGetInfoAsync(__A0)
5703 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5704 #pragma parameter __D0 PBDTOpenInform(__A0)
5717 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5718 #pragma parameter __D0 PBDTDeleteSync(__A0)
5731 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5732 #pragma parameter __D0 PBDTDeleteAsync(__A0)
5772 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5773 #pragma parameter __D0 PBGetVolMountInfoSize(__A0)
5813 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5814 #pragma parameter __D0 PBGetVolMountInfo(__A0)
5827 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
5828 #pragma parameter __D0 PBVolumeMount(__A0)
5881 FSMakeFSSpec(
short vRefNum,
long dirID, ConstStr255Param fileName, FSSpec *spec);
5892 FSpOpenDF(
const FSSpec *spec, SInt8 permission,
short *refNum);
5903 FSpOpenRF(
const FSSpec *spec, SInt8 permission,
short *refNum);
5941 FSpCreate(
const FSSpec *spec, OSType creator, OSType fileType,
5942 ScriptCode scriptTag);
5972 FSpDirCreate(
const FSSpec *spec, ScriptCode scriptTag,
long *createdDirID);
6238 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
6239 #pragma parameter __D0 PBShareSync(__A0)
6252 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
6253 #pragma parameter __D0 PBShareAsync(__A0)
6266 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
6267 #pragma parameter __D0 PBUnshareSync(__A0)
6280 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
6281 #pragma parameter __D0 PBUnshareAsync(__A0)
6294 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
6295 #pragma parameter __D0 PBGetUGEntrySync(__A0)
6308 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
6309 #pragma parameter __D0 PBGetUGEntryAsync(__A0)
6320 #if CALL_NOT_IN_CARBON
6329 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
6330 #pragma parameter __D0 PBGetAltAccessSync(__A0)
6333 PBGetAltAccessSync(HParmBlkPtr paramBlock);
6343 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
6344 #pragma parameter __D0 PBGetAltAccessAsync(__A0)
6347 PBGetAltAccessAsync(HParmBlkPtr paramBlock);
6357 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
6358 #pragma parameter __D0 PBSetAltAccessSync(__A0)
6361 PBSetAltAccessSync(HParmBlkPtr paramBlock);
6371 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
6372 #pragma parameter __D0 PBSetAltAccessAsync(__A0)
6375 PBSetAltAccessAsync(HParmBlkPtr paramBlock);
6379 #define PBSetAltAccess(pb, async) \
6380 ((async) ? PBSetAltAccessAsync(pb) : PBSetAltAccessSync(pb))
6381 #define PBGetAltAccess(pb, async) \
6382 ((async) ? PBGetAltAccessAsync(pb) : PBGetAltAccessSync(pb))
6390 #define PBGetVInfo(pb, async) \
6391 ((async) ? PBGetVInfoAsync(pb) : PBGetVInfoSync(pb))
6392 #define PBXGetVolInfo(pb, async) \
6393 ((async) ? PBXGetVolInfoAsync(pb) : PBXGetVolInfoSync(pb))
6394 #define PBGetVol(pb, async) ((async) ? PBGetVolAsync(pb) : PBGetVolSync(pb))
6395 #define PBSetVol(pb, async) ((async) ? PBSetVolAsync(pb) : PBSetVolSync(pb))
6396 #define PBFlushVol(pb, async) \
6397 ((async) ? PBFlushVolAsync(pb) : PBFlushVolSync(pb))
6398 #define PBCreate(pb, async) ((async) ? PBCreateAsync(pb) : PBCreateSync(pb))
6399 #define PBDelete(pb, async) ((async) ? PBDeleteAsync(pb) : PBDeleteSync(pb))
6400 #define PBOpenDF(pb, async) ((async) ? PBOpenDFAsync(pb) : PBOpenDFSync(pb))
6401 #define PBOpenRF(pb, async) ((async) ? PBOpenRFAsync(pb) : PBOpenRFSync(pb))
6402 #define PBRename(pb, async) ((async) ? PBRenameAsync(pb) : PBRenameSync(pb))
6403 #define PBGetFInfo(pb, async) \
6404 ((async) ? PBGetFInfoAsync(pb) : PBGetFInfoSync(pb))
6405 #define PBSetFInfo(pb, async) \
6406 ((async) ? PBSetFInfoAsync(pb) : PBSetFInfoSync(pb))
6407 #define PBSetFLock(pb, async) \
6408 ((async) ? PBSetFLockAsync(pb) : PBSetFLockSync(pb))
6409 #define PBRstFLock(pb, async) \
6410 ((async) ? PBRstFLockAsync(pb) : PBRstFLockSync(pb))
6411 #define PBSetFVers(pb, async) \
6412 ((async) ? PBSetFVersAsync(pb) : PBSetFVersSync(pb))
6413 #define PBAllocate(pb, async) \
6414 ((async) ? PBAllocateAsync(pb) : PBAllocateSync(pb))
6415 #define PBGetEOF(pb, async) ((async) ? PBGetEOFAsync(pb) : PBGetEOFSync(pb))
6416 #define PBSetEOF(pb, async) ((async) ? PBSetEOFAsync(pb) : PBSetEOFSync(pb))
6417 #define PBGetFPos(pb, async) ((async) ? PBGetFPosAsync(pb) : PBGetFPosSync(pb))
6418 #define PBSetFPos(pb, async) ((async) ? PBSetFPosAsync(pb) : PBSetFPosSync(pb))
6419 #define PBFlushFile(pb, async) \
6420 ((async) ? PBFlushFileAsync(pb) : PBFlushFileSync(pb))
6421 #define PBCatSearch(pb, async) \
6422 ((async) ? PBCatSearchAsync(pb) : PBCatSearchSync(pb))
6423 #define PBOpenWD(pb, async) ((async) ? PBOpenWDAsync(pb) : PBOpenWDSync(pb))
6424 #define PBCloseWD(pb, async) ((async) ? PBCloseWDAsync(pb) : PBCloseWDSync(pb))
6425 #define PBHSetVol(pb, async) ((async) ? PBHSetVolAsync(pb) : PBHSetVolSync(pb))
6426 #define PBHGetVol(pb, async) ((async) ? PBHGetVolAsync(pb) : PBHGetVolSync(pb))
6427 #define PBCatMove(pb, async) ((async) ? PBCatMoveAsync(pb) : PBCatMoveSync(pb))
6428 #define PBDirCreate(pb, async) \
6429 ((async) ? PBDirCreateAsync(pb) : PBDirCreateSync(pb))
6430 #define PBGetWDInfo(pb, async) \
6431 ((async) ? PBGetWDInfoAsync(pb) : PBGetWDInfoSync(pb))
6432 #define PBGetFCBInfo(pb, async) \
6433 ((async) ? PBGetFCBInfoAsync(pb) : PBGetFCBInfoSync(pb))
6434 #define PBGetCatInfo(pb, async) \
6435 ((async) ? PBGetCatInfoAsync(pb) : PBGetCatInfoSync(pb))
6436 #define PBSetCatInfo(pb, async) \
6437 ((async) ? PBSetCatInfoAsync(pb) : PBSetCatInfoSync(pb))
6438 #define PBAllocContig(pb, async) \
6439 ((async) ? PBAllocContigAsync(pb) : PBAllocContigSync(pb))
6440 #define PBLockRange(pb, async) \
6441 ((async) ? PBLockRangeAsync(pb) : PBLockRangeSync(pb))
6442 #define PBUnlockRange(pb, async) \
6443 ((async) ? PBUnlockRangeAsync(pb) : PBUnlockRangeSync(pb))
6444 #define PBSetVInfo(pb, async) \
6445 ((async) ? PBSetVInfoAsync(pb) : PBSetVInfoSync(pb))
6446 #define PBHGetVInfo(pb, async) \
6447 ((async) ? PBHGetVInfoAsync(pb) : PBHGetVInfoSync(pb))
6448 #define PBHOpen(pb, async) ((async) ? PBHOpenAsync(pb) : PBHOpenSync(pb))
6449 #define PBHOpenRF(pb, async) ((async) ? PBHOpenRFAsync(pb) : PBHOpenRFSync(pb))
6450 #define PBHOpenDF(pb, async) ((async) ? PBHOpenDFAsync(pb) : PBHOpenDFSync(pb))
6451 #define PBHCreate(pb, async) ((async) ? PBHCreateAsync(pb) : PBHCreateSync(pb))
6452 #define PBHDelete(pb, async) ((async) ? PBHDeleteAsync(pb) : PBHDeleteSync(pb))
6453 #define PBHRename(pb, async) ((async) ? PBHRenameAsync(pb) : PBHRenameSync(pb))
6454 #define PBHRstFLock(pb, async) \
6455 ((async) ? PBHRstFLockAsync(pb) : PBHRstFLockSync(pb))
6456 #define PBHSetFLock(pb, async) \
6457 ((async) ? PBHSetFLockAsync(pb) : PBHSetFLockSync(pb))
6458 #define PBHGetFInfo(pb, async) \
6459 ((async) ? PBHGetFInfoAsync(pb) : PBHGetFInfoSync(pb))
6460 #define PBHSetFInfo(pb, async) \
6461 ((async) ? PBHSetFInfoAsync(pb) : PBHSetFInfoSync(pb))
6462 #define PBMakeFSSpec(pb, async) \
6463 ((async) ? PBMakeFSSpecAsync(pb) : PBMakeFSSpecSync(pb))
6464 #define PBHGetVolParms(pb, async) \
6465 ((async) ? PBHGetVolParmsAsync(pb) : PBHGetVolParmsSync(pb))
6466 #define PBHGetLogInInfo(pb, async) \
6467 ((async) ? PBHGetLogInInfoAsync(pb) : PBHGetLogInInfoSync(pb))
6468 #define PBHGetDirAccess(pb, async) \
6469 ((async) ? PBHGetDirAccessAsync(pb) : PBHGetDirAccessSync(pb))
6470 #define PBHSetDirAccess(pb, async) \
6471 ((async) ? PBHSetDirAccessAsync(pb) : PBHSetDirAccessSync(pb))
6472 #define PBHMapID(pb, async) ((async) ? PBHMapIDAsync(pb) : PBHMapIDSync(pb))
6473 #define PBHMapName(pb, async) \
6474 ((async) ? PBHMapNameAsync(pb) : PBHMapNameSync(pb))
6475 #define PBHCopyFile(pb, async) \
6476 ((async) ? PBHCopyFileAsync(pb) : PBHCopyFileSync(pb))
6477 #define PBHMoveRename(pb, async) \
6478 ((async) ? PBHMoveRenameAsync(pb) : PBHMoveRenameSync(pb))
6479 #define PBHOpenDeny(pb, async) \
6480 ((async) ? PBHOpenDenyAsync(pb) : PBHOpenDenySync(pb))
6481 #define PBHOpenRFDeny(pb, async) \
6482 ((async) ? PBHOpenRFDenyAsync(pb) : PBHOpenRFDenySync(pb))
6483 #define PBExchangeFiles(pb, async) \
6484 ((async) ? PBExchangeFilesAsync(pb) : PBExchangeFilesSync(pb))
6485 #define PBCreateFileIDRef(pb, async) \
6486 ((async) ? PBCreateFileIDRefAsync(pb) : PBCreateFileIDRefSync(pb))
6487 #define PBResolveFileIDRef(pb, async) \
6488 ((async) ? PBResolveFileIDRefAsync(pb) : PBResolveFileIDRefSync(pb))
6489 #define PBDeleteFileIDRef(pb, async) \
6490 ((async) ? PBDeleteFileIDRefAsync(pb) : PBDeleteFileIDRefSync(pb))
6491 #define PBGetForeignPrivs(pb, async) \
6492 ((async) ? PBGetForeignPrivsAsync(pb) : PBGetForeignPrivsSync(pb))
6493 #define PBSetForeignPrivs(pb, async) \
6494 ((async) ? PBSetForeignPrivsAsync(pb) : PBSetForeignPrivsSync(pb))
6495 #define PBDTAddIcon(pb, async) \
6496 ((async) ? PBDTAddIconAsync(pb) : PBDTAddIconSync(pb))
6497 #define PBDTGetIcon(pb, async) \
6498 ((async) ? PBDTGetIconAsync(pb) : PBDTGetIconSync(pb))
6499 #define PBDTGetIconInfo(pb, async) \
6500 ((async) ? PBDTGetIconInfoAsync(pb) : PBDTGetIconInfoSync(pb))
6501 #define PBDTAddAPPL(pb, async) \
6502 ((async) ? PBDTAddAPPLAsync(pb) : PBDTAddAPPLSync(pb))
6503 #define PBDTRemoveAPPL(pb, async) \
6504 ((async) ? PBDTRemoveAPPLAsync(pb) : PBDTRemoveAPPLSync(pb))
6505 #define PBDTGetAPPL(pb, async) \
6506 ((async) ? PBDTGetAPPLAsync(pb) : PBDTGetAPPLSync(pb))
6507 #define PBDTSetComment(pb, async) \
6508 ((async) ? PBDTSetCommentAsync(pb) : PBDTSetCommentSync(pb))
6509 #define PBDTRemoveComment(pb, async) \
6510 ((async) ? PBDTRemoveCommentAsync(pb) : PBDTRemoveCommentSync(pb))
6511 #define PBDTGetComment(pb, async) \
6512 ((async) ? PBDTGetCommentAsync(pb) : PBDTGetCommentSync(pb))
6513 #define PBDTFlush(pb, async) ((async) ? PBDTFlushAsync(pb) : PBDTFlushSync(pb))
6514 #define PBDTReset(pb, async) ((async) ? PBDTResetAsync(pb) : PBDTResetSync(pb))
6515 #define PBDTGetInfo(pb, async) \
6516 ((async) ? PBDTGetInfoAsync(pb) : PBDTGetInfoSync(pb))
6517 #define PBDTDelete(pb, async) \
6518 ((async) ? PBDTDeleteAsync(pb) : PBDTDeleteSync(pb))
6520 typedef SInt16 FSVolumeRefNum;
6523 kFSInvalidVolumeRefNum = 0
6557 typedef UInt32 FSCatalogInfoBitmap;
6560 kFSCatInfoNone = 0x00000000,
6561 kFSCatInfoTextEncoding = 0x00000001,
6562 kFSCatInfoNodeFlags =
6564 kFSCatInfoVolume = 0x00000004,
6565 kFSCatInfoParentDirID = 0x00000008,
6566 kFSCatInfoNodeID = 0x00000010,
6567 kFSCatInfoCreateDate = 0x00000020,
6568 kFSCatInfoContentMod = 0x00000040,
6569 kFSCatInfoAttrMod = 0x00000080,
6570 kFSCatInfoAccessDate = 0x00000100,
6571 kFSCatInfoBackupDate = 0x00000200,
6572 kFSCatInfoPermissions = 0x00000400,
6573 kFSCatInfoFinderInfo = 0x00000800,
6574 kFSCatInfoFinderXInfo = 0x00001000,
6575 kFSCatInfoValence = 0x00002000,
6576 kFSCatInfoDataSizes = 0x00004000,
6577 kFSCatInfoRsrcSizes =
6579 kFSCatInfoSharingFlags = 0x00010000,
6581 kFSCatInfoUserPrivs = 0x00020000,
6582 kFSCatInfoUserAccess = 0x00080000,
6583 kFSCatInfoAllDates = 0x000003E0,
6584 kFSCatInfoGettableInfo = 0x0003FFFF,
6585 kFSCatInfoSettableInfo =
6587 kFSCatInfoReserved = (long)0xFFFC0000
6593 kFSNodeLockedBit = 0,
6594 kFSNodeLockedMask = 0x0001,
6595 kFSNodeResOpenBit = 2,
6596 kFSNodeResOpenMask = 0x0004,
6597 kFSNodeDataOpenBit = 3,
6598 kFSNodeDataOpenMask = 0x0008,
6599 kFSNodeIsDirectoryBit = 4,
6600 kFSNodeIsDirectoryMask = 0x0010,
6601 kFSNodeCopyProtectBit = 6,
6602 kFSNodeCopyProtectMask = 0x0040,
6603 kFSNodeForkOpenBit = 7,
6604 kFSNodeForkOpenMask = 0x0080
6610 kFSNodeInSharedBit = 2,
6611 kFSNodeInSharedMask = 0x0004,
6612 kFSNodeIsMountedBit = 3,
6614 kFSNodeIsMountedMask = 0x0008,
6615 kFSNodeIsSharePointBit =
6617 kFSNodeIsSharePointMask = 0x0020
6623 FSVolumeRefNum volume;
6627 UInt8 userPrivileges;
6637 UInt32 permissions[4];
6639 UInt8 finderInfo[16];
6640 UInt8 extFinderInfo[16];
6648 TextEncoding textEncodingHint;
6658 IOCompletionUPP ioCompletion;
6659 volatile OSErr ioResult;
6660 ConstStringPtr ioNamePtr;
6668 FSCatalogInfoBitmap whichInfo;
6670 UniCharCount nameLength;
6671 const UniChar *name;
6676 TextEncoding textEncodingHint;
6681 typedef struct OpaqueFSIterator *FSIterator;
6685 kFSIterateSubtree = 1,
6686 kFSIterateDelete = 2,
6687 kFSIterateReserved = (long)0xFFFFFFFC
6690 typedef OptionBits FSIteratorFlags;
6694 fsSBNodeID = 0x00008000,
6695 fsSBAttributeModDate = 0x00010000,
6696 fsSBAccessDate = 0x00020000,
6697 fsSBPermissions = 0x00040000,
6699 fsSBAttributeModDateBit = 16,
6700 fsSBAccessDateBit = 17,
6701 fsSBPermissionsBit = 18
6706 Duration searchTime;
6707 OptionBits searchBits;
6708 UniCharCount searchNameLength;
6709 const UniChar *searchName;
6721 IOCompletionUPP ioCompletion;
6722 volatile OSErr ioResult;
6726 FSIteratorFlags iteratorFlags;
6727 FSIterator iterator;
6729 ItemCount maximumItems;
6730 ItemCount actualItems;
6731 FSCatalogInfoBitmap whichInfo;
6740 typedef UInt16 FSAllocationFlags;
6743 kFSAllocDefaultFlags = 0x0000,
6744 kFSAllocAllOrNothingMask = 0x0001,
6745 kFSAllocContiguousMask = 0x0002,
6746 kFSAllocNoRoundUpMask = 0x0004,
6747 kFSAllocReservedMask =
6757 IOCompletionUPP ioCompletion;
6758 volatile OSErr ioResult;
6767 UInt32 requestCount;
6769 UInt16 positionMode;
6772 FSAllocationFlags allocationFlags;
6775 UniCharCount forkNameLength;
6776 const UniChar *forkName;
6778 CatPositionRec forkIterator;
6787 FSVolumeRefNum volume;
6804 IOCompletionUPP ioCompletion;
6805 volatile OSErr ioResult;
6806 SInt16 desiredRefNum;
6807 SInt16 volumeRefNum;
6809 SInt16 actualRefNum;
6817 typedef UInt32 FSVolumeInfoBitmap;
6820 kFSVolInfoNone = 0x0000,
6821 kFSVolInfoCreateDate = 0x0001,
6822 kFSVolInfoModDate = 0x0002,
6823 kFSVolInfoBackupDate = 0x0004,
6824 kFSVolInfoCheckedDate = 0x0008,
6825 kFSVolInfoFileCount = 0x0010,
6826 kFSVolInfoDirCount = 0x0020,
6827 kFSVolInfoSizes = 0x0040,
6828 kFSVolInfoBlocks = 0x0080,
6829 kFSVolInfoNextAlloc = 0x0100,
6830 kFSVolInfoRsrcClump = 0x0200,
6831 kFSVolInfoDataClump = 0x0400,
6832 kFSVolInfoNextID = 0x0800,
6833 kFSVolInfoFinderInfo = 0x1000,
6834 kFSVolInfoFlags = 0x2000,
6835 kFSVolInfoFSInfo = 0x4000,
6836 kFSVolInfoDriveInfo = 0x8000,
6837 kFSVolInfoGettableInfo =
6839 kFSVolInfoSettableInfo = 0x3004
6846 kFSVolFlagDefaultVolumeBit = 5,
6847 kFSVolFlagDefaultVolumeMask = 0x0020,
6848 kFSVolFlagFilesOpenBit = 6,
6849 kFSVolFlagFilesOpenMask = 0x0040,
6850 kFSVolFlagHardwareLockedBit =
6852 kFSVolFlagHardwareLockedMask = 0x0080,
6853 kFSVolFlagSoftwareLockedBit = 15,
6854 kFSVolFlagSoftwareLockedMask = 0x8000
6877 UInt32 nextAllocation;
6878 UInt32 rsrcClumpSize;
6879 UInt32 dataClumpSize;
6880 UInt32 nextCatalogID;
6882 UInt8 finderInfo[32];
6886 UInt16 filesystemID;
6899 IOCompletionUPP ioCompletion;
6900 volatile OSErr ioResult;
6902 FSVolumeRefNum ioVRefNum;
6905 FSVolumeInfoBitmap whichInfo;
6942 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
6943 #pragma parameter __D0 PBMakeFSRefSync(__A0)
6956 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
6957 #pragma parameter PBMakeFSRefAsync(__A0)
6984 const UniChar *name, TextEncoding textEncodingHint,
6995 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
6996 #pragma parameter __D0 PBMakeFSRefUnicodeSync(__A0)
7009 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7010 #pragma parameter PBMakeFSRefUnicodeAsync(__A0)
7044 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7045 #pragma parameter __D0 PBCompareFSRefsSync(__A0)
7058 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7059 #pragma parameter PBCompareFSRefsAsync(__A0)
7089 const UniChar *name, FSCatalogInfoBitmap whichInfo,
7102 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7103 #pragma parameter __D0 PBCreateFileUnicodeSync(__A0)
7116 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7117 #pragma parameter PBCreateFileUnicodeAsync(__A0)
7150 const FSRef *parentRef, UniCharCount nameLength,
const UniChar *name,
7151 FSCatalogInfoBitmap whichInfo,
7165 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7166 #pragma parameter __D0 PBCreateDirectoryUnicodeSync(__A0)
7179 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7180 #pragma parameter PBCreateDirectoryUnicodeAsync(__A0)
7211 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7212 #pragma parameter __D0 PBDeleteObjectSync(__A0)
7225 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7226 #pragma parameter PBDeleteObjectAsync(__A0)
7266 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7267 #pragma parameter __D0 PBMoveObjectSync(__A0)
7280 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7281 #pragma parameter PBMoveObjectAsync(__A0)
7313 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7314 #pragma parameter __D0 PBExchangeObjectsSync(__A0)
7327 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7328 #pragma parameter PBExchangeObjectsAsync(__A0)
7360 TextEncoding textEncodingHint,
7371 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7372 #pragma parameter __D0 PBRenameUnicodeSync(__A0)
7385 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7386 #pragma parameter PBRenameUnicodeAsync(__A0)
7431 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7432 #pragma parameter __D0 PBGetCatalogInfoSync(__A0)
7445 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7446 #pragma parameter PBGetCatalogInfoAsync(__A0)
7483 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7484 #pragma parameter __D0 PBSetCatalogInfoSync(__A0)
7497 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7498 #pragma parameter PBSetCatalogInfoAsync(__A0)
7525 FSIterator *iterator);
7535 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7536 #pragma parameter __D0 PBOpenIteratorSync(__A0)
7549 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7550 #pragma parameter PBOpenIteratorAsync(__A0)
7581 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7582 #pragma parameter __D0 PBCloseIteratorSync(__A0)
7595 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7596 #pragma parameter PBCloseIteratorAsync(__A0)
7631 FSIterator iterator, ItemCount maximumObjects, ItemCount *actualObjects,
7633 FSCatalogInfoBitmap whichInfo,
7647 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7648 #pragma parameter __D0 PBGetCatalogInfoBulkSync(__A0)
7661 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7662 #pragma parameter PBGetCatalogInfoBulkAsync(__A0)
7700 ItemCount maximumObjects, ItemCount *actualObjects,
7702 FSCatalogInfoBitmap whichInfo,
7716 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7717 #pragma parameter __D0 PBCatalogSearchSync(__A0)
7730 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7731 #pragma parameter PBCatalogSearchAsync(__A0)
7755 const UniChar *forkName) ;
7765 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7766 #pragma parameter __D0 PBCreateForkSync(__A0)
7779 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7780 #pragma parameter PBCreateForkAsync(__A0)
7804 const UniChar *forkName) ;
7814 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7815 #pragma parameter __D0 PBDeleteForkSync(__A0)
7828 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7829 #pragma parameter PBDeleteForkAsync(__A0)
7857 const FSRef *ref, CatPositionRec *forkIterator,
7860 UInt64 *forkPhysicalSize) ;
7870 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7871 #pragma parameter __D0 PBIterateForksSync(__A0)
7884 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7885 #pragma parameter PBIterateForksAsync(__A0)
7914 const UniChar *forkName,
7915 SInt8 permissions, SInt16 *forkRefNum);
7925 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7926 #pragma parameter __D0 PBOpenForkSync(__A0)
7939 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7940 #pragma parameter PBOpenForkAsync(__A0)
7968 ByteCount requestCount,
void *buffer,
7969 ByteCount *actualCount) ;
7979 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7980 #pragma parameter __D0 PBReadForkSync(__A0)
7993 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
7994 #pragma parameter PBReadForkAsync(__A0)
8022 ByteCount requestCount,
const void *buffer,
8023 ByteCount *actualCount) ;
8033 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
8034 #pragma parameter __D0 PBWriteForkSync(__A0)
8047 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
8048 #pragma parameter PBWriteForkAsync(__A0)
8081 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
8082 #pragma parameter __D0 PBGetForkPositionSync(__A0)
8095 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
8096 #pragma parameter PBGetForkPositionAsync(__A0)
8130 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
8131 #pragma parameter __D0 PBSetForkPositionSync(__A0)
8144 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
8145 #pragma parameter PBSetForkPositionAsync(__A0)
8177 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
8178 #pragma parameter __D0 PBGetForkSizeSync(__A0)
8191 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
8192 #pragma parameter PBGetForkSizeAsync(__A0)
8226 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
8227 #pragma parameter __D0 PBSetForkSizeSync(__A0)
8240 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
8241 #pragma parameter PBSetForkSizeAsync(__A0)
8292 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
8293 #pragma parameter __D0 PBAllocateForkSync(__A0)
8306 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
8307 #pragma parameter PBAllocateForkAsync(__A0)
8339 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
8340 #pragma parameter __D0 PBFlushForkSync(__A0)
8353 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
8354 #pragma parameter PBFlushForkAsync(__A0)
8387 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
8388 #pragma parameter __D0 PBCloseForkSync(__A0)
8401 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
8402 #pragma parameter PBCloseForkAsync(__A0)
8442 SInt16 desiredRefNum, FSVolumeRefNum volume,
8444 SInt16 *actualRefNum,
8457 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
8458 #pragma parameter __D0 PBGetForkCBInfoSync(__A0)
8471 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
8472 #pragma parameter PBGetForkCBInfoAsync(__A0)
8504 FSVolumeRefNum *actualVolume,
8505 FSVolumeInfoBitmap whichInfo,
8508 FSRef *rootDirectory) ;
8518 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
8519 #pragma parameter __D0 PBGetVolumeInfoSync(__A0)
8532 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
8533 #pragma parameter PBGetVolumeInfoAsync(__A0)
8570 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
8571 #pragma parameter __D0 PBSetVolumeInfoSync(__A0)
8584 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
8585 #pragma parameter PBSetVolumeInfoAsync(__A0)
8711 kFNDirectoryModifiedMessage = 1
8841 FNSubscriptionProcPtr)(
FNMessage message,
8842 OptionBits flags,
void *refcon,
8844 typedef TVECTOR_UPP_TYPE(FNSubscriptionProcPtr) FNSubscriptionUPP;
8855 #if !OPAQUE_UPP_TYPES
8858 uppFNSubscriptionProcInfo = 0x00003FC1
8861 inline FNSubscriptionUPP
8867 #define NewFNSubscriptionUPP(userRoutine) (userRoutine)
8881 #if !OPAQUE_UPP_TYPES
8885 #define DisposeFNSubscriptionUPP(userUPP)
8900 FNSubscriptionUPP userUPP);
8901 #if !OPAQUE_UPP_TYPES
8906 FNSubscriptionUPP userUPP)
8908 (*userUPP)(message, flags, refcon, subscription);
8911 #define InvokeFNSubscriptionUPP(message, flags, refcon, subscription, userUPP) \
8912 (*userUPP)(message, flags, refcon, subscription)
8982 void *refcon, OptionBits flags,
9034 #if PRAGMA_STRUCT_ALIGN
9035 #pragma options align = reset
9036 #elif PRAGMA_STRUCT_PACKPUSH
9038 #elif PRAGMA_STRUCT_PACK
9042 #ifdef PRAGMA_IMPORT_OFF
9045 #pragma import reset
9079 FNSubscriptionProcPtr)(
FNMessage message,
9080 OptionBits flags,
void *refcon,
9082 typedef TVECTOR_UPP_TYPE(FNSubscriptionProcPtr) FNSubscriptionUPP;
9093 #if !OPAQUE_UPP_TYPES
9096 uppFNSubscriptionProcInfo = 0x00003FC1
9099 inline FNSubscriptionUPP
9105 #define NewFNSubscriptionUPP(userRoutine) (userRoutine)
9118 #if !OPAQUE_UPP_TYPES
9122 #define DisposeFNSubscriptionUPP(userUPP)
9136 FNSubscriptionUPP userUPP);
9137 #if !OPAQUE_UPP_TYPES
9142 FNSubscriptionUPP userUPP)
9144 (*userUPP)(message, flags, refcon, subscription);
9147 #define InvokeFNSubscriptionUPP(message, flags, refcon, subscription, userUPP) \
9148 (*userUPP)(message, flags, refcon, subscription)
9183 FNSubscribe(
const FSRef *directoryRef, FNSubscriptionUPP callback,
void *refcon,
9218 void *refcon, OptionBits flags,
9270 #if PRAGMA_STRUCT_ALIGN
9271 #pragma options align = reset
9272 #elif PRAGMA_STRUCT_PACKPUSH
9274 #elif PRAGMA_STRUCT_PACK
9278 #ifdef PRAGMA_IMPORT_OFF
9281 #pragma import reset
9289 * */ * */ * */ * */ * */ * */ * */ * */ *
OSErr PBHGetVolAsync(WDPBPtr paramBlock)
OSErr UnmountVol(ConstStr63Param volName, short vRefNum)
Flush volume, close its files, release its memory.
OSErr PBSetFPosSync(ParmBlkPtr paramBlock)
OSErr FSpSetFInfo(const FSSpec *spec, const FInfo *fndrInfo)
Set the Finder information.
OSErr PBAllocContigAsync(ParmBlkPtr paramBlock)
OSStatus FNUnsubscribe(FNSubscriptionRef subscription)
OSErr PBXGetVolInfoSync(XVolumeParamPtr paramBlock)
void PBSetCatalogInfoAsync(FSRefParam *paramBlock)
void PBMoveObjectAsync(FSRefParam *paramBlock)
OSErr HOpen(short vRefNum, long dirID, ConstStr255Param fileName, SInt8 permission, short *refNum)
OSErr FSOpen(ConstStr255Param fileName, short vRefNum, short *refNum)
Open the data fork of an existing file.
OSErr PBAllocContigSync(ParmBlkPtr paramBlock)
OSErr PBAllocateAsync(ParmBlkPtr paramBlock)
OSErr PBCatalogSearchSync(FSCatalogBulkParam *paramBlock)
OSErr PBRenameUnicodeSync(FSRefParam *paramBlock)
OSErr PBSetFLockAsync(ParmBlkPtr paramBlock)
OSErr PBGetCatalogInfoBulkSync(FSCatalogBulkParam *paramBlock)
OSErr PBHMapIDSync(HParmBlkPtr paramBlock)
OSErr PBCatSearchAsync(CSParamPtr paramBlock)
void PBDeleteForkAsync(FSForkIOParam *paramBlock)
OSErr PBDTDeleteAsync(DTPBPtr paramBlock)
OSErr PBGetVolAsync(ParmBlkPtr paramBlock)
OSErr PBGetCatInfoAsync(CInfoPBPtr paramBlock)
OSErr unmountvol(const char *volName, short vRefNum)
void PBMakeFSRefAsync(FSRefParam *paramBlock)
OSErr PBGetForkPositionSync(FSForkIOParam *paramBlock)
OSErr PBUnlockRangeAsync(ParmBlkPtr paramBlock)
OSStatus FSRefMakePath(const FSRef *ref, UInt8 *path, UInt32 maxPathSize)
OSErr HSetFLock(short vRefNum, long dirID, ConstStr255Param fileName)
Lock a file (prevent changes, deletion, renaming, etc.)
OSErr PBUnmountVol(ParmBlkPtr paramBlock)
Flush volume, close its files, release its memory.
OSErr OpenWD(short vRefNum, long dirID, long procID, short *wdRefNum)
void PBRenameUnicodeAsync(FSRefParam *paramBlock)
typedef CALLBACK_API_C(void, FNSubscriptionProcPtr)(FNMessage message
void PBCloseIteratorAsync(FSCatalogBulkParam *paramBlock)
OSErr PBSetCatInfoAsync(CInfoPBPtr paramBlock)
OSErr PBGetFCBInfoSync(FCBPBPtr paramBlock)
void PBCreateForkAsync(FSForkIOParam *paramBlock)
OSErr PBHRstFLockSync(HParmBlkPtr paramBlock)
OSErr PBFlushFileSync(ParmBlkPtr paramBlock)
OSErr FSMakeFSRefUnicode(const FSRef *parentRef, UniCharCount nameLength, const UniChar *name, TextEncoding textEncodingHint, FSRef *newRef)
OSErr PBWriteForkSync(FSForkIOParam *paramBlock)
OSErr PBDTRemoveCommentAsync(DTPBPtr paramBlock)
OSErr PBGetFPosSync(ParmBlkPtr paramBlock)
OSErr PBRenameSync(ParmBlkPtr paramBlock)
OSErr getvinfo(short drvNum, char *volName, short *vRefNum, long *freeBytes)
OSErr FSpSetFLock(const FSSpec *spec)
Lock a file.
OSErr PBDeleteAsync(ParmBlkPtr paramBlock)
OSErr PBLockRangeAsync(ParmBlkPtr paramBlock)
OSStatus FSPathMakeRef(const UInt8 *path, FSRef *ref, Boolean *isDirectory)
void PBWriteForkAsync(FSForkIOParam *paramBlock)
OSErr PBCreateFileIDRefAsync(HParmBlkPtr paramBlock)
OSErr PBExchangeFilesSync(HParmBlkPtr paramBlock)
OSErr PBGetVolMountInfoSize(ParmBlkPtr paramBlock)
PBGetVolMountInfoSize Determine space allocation for volume-mounting record.
OSErr FSFlushFork(SInt16 forkRefNum)
OSErr openrf(const char *fileName, short vRefNum, short *refNum)
OSErr PBDTGetIconSync(DTPBPtr paramBlock)
union ParamBlockRec ParamBlockRec
Definition: Files.h:467
OSErr PBDirCreateSync(HParmBlkPtr paramBlock)
OSErr GetWDInfo(short wdRefNum, short *vRefNum, long *dirID, long *procID)
Query information about an existing working directory.
OSErr PBHOpenDFSync(HParmBlkPtr paramBlock)
OSErr PBDirCreateAsync(HParmBlkPtr paramBlock)
short rc
Obtain the size of an open file (logical EOF)
Definition: Files.h:2664
OSErr PBOpenDFSync(ParmBlkPtr paramBlock)
OSErr FSDeleteFork(const FSRef *ref, UniCharCount forkNameLength, const UniChar *forkName)
OSErr PBGetForeignPrivsAsync(HParmBlkPtr paramBlock)
OSErr PBRstFLockAsync(ParmBlkPtr paramBlock)
OSErr PBMakeFSRefUnicodeSync(FSRefParam *paramBlock)
OSErr PBSetVolSync(ParmBlkPtr paramBlock)
HIOParam * hipb
Definition: Files.h:1277
void PBGetForkPositionAsync(FSForkIOParam *paramBlock)
OSErr PBLockRangeSync(ParmBlkPtr paramBlock)
void DisposeIOCompletionUPP(IOCompletionUPP userUPP)
OSErr PBCreateSync(ParmBlkPtr paramBlock)
OSErr PBDTSetCommentAsync(DTPBPtr paramBlock)
OSErr PBSetForeignPrivsSync(HParmBlkPtr paramBlock)
OSErr HRstFLock(short vRefNum, long dirID, ConstStr255Param fileName)
Unlock a file (allow changes, deletion, renaming, etc.)
OSErr PBXGetVolInfoAsync(XVolumeParamPtr paramBlock)
void PBCatalogSearchAsync(FSCatalogBulkParam *paramBlock)
void PBSetForkSizeAsync(FSForkIOParam *paramBlock)
OSErr PBGetUGEntrySync(HParmBlkPtr paramBlock)
OSErr CloseWD(short wdRefNum)
Close and release a working directory.
Str255 volName
Get volume name, reference number and free bytes.
Definition: Files.h:2663
OSErr HOpenDF(short vRefNum, long dirID, ConstStr255Param fileName, SInt8 permission, short *refNum)
OSErr Create(ConstStr255Param fileName, short vRefNum, OSType creator, OSType fileType)
a new empty file (data fork only)
OSErr PBFlushVolAsync(ParmBlkPtr paramBlock)
OSErr PBSetCatalogInfoSync(FSRefParam *paramBlock)
void PBSetForkPositionAsync(FSForkIOParam *paramBlock)
OSErr PBHCopyFileSync(HParmBlkPtr paramBlock)
OSErr PBAllocateSync(ParmBlkPtr paramBlock)
OSErr eject(const char *volName, short vRefNum)
OSErr FSWriteFork(SInt16 forkRefNum, UInt16 positionMode, SInt64 positionOffset, ByteCount requestCount, const void *buffer, ByteCount *actualCount)
OSErr PBHSetFInfoSync(HParmBlkPtr paramBlock)
OSErr PBOpenRFSync(ParmBlkPtr paramBlock)
OSErr AllocContig(short refNum, long *count)
Allocate contiguous space on disk.
OSErr PBHMoveRenameAsync(HParmBlkPtr paramBlock)
OSErr PBSetFLockSync(ParmBlkPtr paramBlock)
OSStatus FNSubscribeByPath(const UInt8 *directoryPath, FNSubscriptionUPP callback, void *refcon, OptionBits flags, FNSubscriptionRef *subscription)
OSErr FSSetForkSize(SInt16 forkRefNum, UInt16 positionMode, SInt64 positionOffset)
void PBSetVolumeInfoAsync(FSVolumeInfoParam *paramBlock)
OSErr PBHSetDirAccessSync(HParmBlkPtr paramBlock)
OSErr PBGetVolumeInfoSync(FSVolumeInfoParam *paramBlock)
OSErr FSpOpenRF(const FSSpec *spec, SInt8 permission, short *refNum)
OSErr PBDTResetAsync(DTPBPtr paramBlock)
OSErr PBCreateDirectoryUnicodeSync(FSRefParam *paramBlock)
OSErr SetFPos(short refNum, short posMode, long posOff)
Position file mark for random-access read/write.
OSErr FSSetVolumeInfo(FSVolumeRefNum volume, FSVolumeInfoBitmap whichInfo, const FSVolumeInfo *info)
OSErr getvol(char *volName, short *vRefNum)
OSErr PBHGetVInfoSync(HParmBlkPtr paramBlock)
OSErr FSGetDataForkName(HFSUniStr255 *dataForkName)
OSErr HRename(short vRefNum, long dirID, ConstStr255Param oldName, ConstStr255Param newName)
Rename a file, volume, or directory.
OSErr PBGetCatInfoSync(CInfoPBPtr paramBlock)
OSErr PBUnshareSync(HParmBlkPtr paramBlock)
OSErr PBRstFLockSync(ParmBlkPtr paramBlock)
WDParam wdParam
Definition: Files.h:1304
OSErr PBVolumeMount(ParmBlkPtr paramBlock)
void PBCreateFileUnicodeAsync(FSRefParam *paramBlock)
void PBFlushForkAsync(FSForkIOParam *paramBlock)
void PBOpenForkAsync(FSForkIOParam *paramBlock)
OSErr FSGetCatalogInfoBulk(FSIterator iterator, ItemCount maximumObjects, ItemCount *actualObjects, Boolean *containerChanged, FSCatalogInfoBitmap whichInfo, FSCatalogInfo *catalogInfos, FSRef *refs, FSSpec *specs, HFSUniStr255 *names)
OSErr PBHGetFInfoSync(HParmBlkPtr paramBlock)
OSErr PBCompareFSRefsSync(FSRefParam *paramBlock)
OSErr PBOpenIteratorSync(FSCatalogBulkParam *paramBlock)
OSErr PBDTGetCommentSync(DTPBPtr paramBlock)
OSErr PBIterateForksSync(FSForkIOParam *paramBlock)
void DisposeFNSubscriptionUPP(FNSubscriptionUPP userUPP)
OSErr FSCompareFSRefs(const FSRef *ref1, const FSRef *ref2)
OSErr PBGetXCatInfoAsync(XCInfoPBPtr paramBlock)
OSErr PBHRstFLockAsync(HParmBlkPtr paramBlock)
OSErr PBOffLine(ParmBlkPtr paramBlock)
OSErr Eject(ConstStr63Param volName, short vRefNum)
OSErr PBGetWDInfoAsync(WDPBPtr paramBlock)
OSErr create(const char *fileName, short vRefNum, OSType creator, OSType fileType)
OSErr PBHOpenDFAsync(HParmBlkPtr paramBlock)
OSErr PBGetEOFAsync(ParmBlkPtr paramBlock)
OSStatus FNGetDirectoryForSubscription(FNSubscriptionRef subscription, FSRef *ref)
OSErr PBSetForeignPrivsAsync(HParmBlkPtr paramBlock)
OSErr PBShareSync(HParmBlkPtr paramBlock)
OSErr PBGetVolSync(ParmBlkPtr paramBlock)
OSErr PBGetForkCBInfoSync(FSForkCBInfoParam *paramBlock)
OSErr PBHSetVolAsync(WDPBPtr paramBlock)
OSErr PBSetForkSizeSync(FSForkIOParam *paramBlock)
OSErr PBHOpenAsync(HParmBlkPtr paramBlock)
OSErr PBHGetDirAccessSync(HParmBlkPtr paramBlock)
ForeignPrivParam foreignPrivParam
Definition: Files.h:1307
OSErr PBHMapIDAsync(HParmBlkPtr paramBlock)
OSErr fsrename(const char *oldName, short vRefNum, const char *newName)
OSErr PBSetCatInfoSync(CInfoPBPtr paramBlock)
OSErr flushvol(const char *volName, short vRefNum)
OSErr PBShareAsync(HParmBlkPtr paramBlock)
OSErr PBDTGetIconInfoSync(DTPBPtr paramBlock)
OSErr FSClose(short refNum)
Close a file.
OSErr PBDTResetSync(DTPBPtr paramBlock)
void FInitQueue(void)
Clear enqueued File Manager calls.
OSErr PBSetForkPositionSync(FSForkIOParam *paramBlock)
OSErr PBSetFInfoSync(ParmBlkPtr paramBlock)
OSErr PBHGetVolParmsSync(HParmBlkPtr paramBlock)
void PBGetForkCBInfoAsync(FSForkCBInfoParam *paramBlock)
OSErr CatMove(short vRefNum, long dirID, ConstStr255Param oldName, long newDirID, ConstStr255Param newName)
Transfer file or directory to another directory on the same volume.
OSErr PBDTRemoveCommentSync(DTPBPtr paramBlock)
OSErr FSpDelete(const FSSpec *spec)
Remove a closed file.
OSErr PBGetForeignPrivsSync(HParmBlkPtr paramBlock)
OSErr FSpDirCreate(const FSSpec *spec, ScriptCode scriptTag, long *createdDirID)
Create a new directory.
OSStatus FNNotifyAll(FNMessage message, OptionBits flags)
void PBCreateDirectoryUnicodeAsync(FSRefParam *paramBlock)
OSErr PBGetEOFSync(ParmBlkPtr paramBlock)
OSErr PBHGetLogInInfoAsync(HParmBlkPtr paramBlock)
OSErr FSIterateForks(const FSRef *ref, CatPositionRec *forkIterator, HFSUniStr255 *forkName, SInt64 *forkSize, UInt64 *forkPhysicalSize)
FIDParam fidParam
Definition: Files.h:1305
OSErr FSMoveObject(const FSRef *ref, const FSRef *destDirectory, FSRef *newRef)
OSErr PBCatMoveSync(CMovePBPtr paramBlock)
OSErr GetFInfo(ConstStr255Param fileName, short vRefNum, FInfo *fndrInfo)
Obtain file type, creator, icon position, etc.
@ kFNNoImplicitAllSubscription
Definition: Files.h:8816
OSErr PBEject(ParmBlkPtr paramBlock)
OSErr PBOpenWDSync(WDPBPtr paramBlock)
OSErr HSetFInfo(short vRefNum, long dirID, ConstStr255Param fileName, const FInfo *fndrInfo)
Change file type, creator, icon position, etc.
OSErr PBGetVInfoAsync(ParmBlkPtr paramBlock)
OSErr FSGetVolumeInfo(FSVolumeRefNum volume, ItemCount volumeIndex, FSVolumeRefNum *actualVolume, FSVolumeInfoBitmap whichInfo, FSVolumeInfo *info, HFSUniStr255 *volumeName, FSRef *rootDirectory)
OSErr PBHOpenDenySync(HParmBlkPtr paramBlock)
OSErr HSetVol(ConstStr63Param volName, short vRefNum, long dirID)
Select a default default volume/directory (HFS only)
OSErr PBHGetFInfoAsync(HParmBlkPtr paramBlock)
OSErr HOpenRF(short vRefNum, long dirID, ConstStr255Param fileName, SInt8 permission, short *refNum)
OSErr PBHMoveRenameSync(HParmBlkPtr paramBlock)
OSErr setfinfo(const char *fileName, short vRefNum, const FInfo *fndrInfo)
OSErr HGetFInfo(short vRefNum, long dirID, ConstStr255Param fileName, FInfo *fndrInfo)
Obtain file type, creator, icon position, etc.
FNSubscriptionUPP NewFNSubscriptionUPP(FNSubscriptionProcPtr userRoutine)
OSErr PBSetFInfoAsync(ParmBlkPtr paramBlock)
OSErr PBMountVol(ParmBlkPtr paramBlock)
OSErr SetFLock(ConstStr255Param fileName, short vRefNum)
Lock a file (prevent changes, deletion, renaming, etc.)
OSErr FSGetCatalogInfo(const FSRef *ref, FSCatalogInfoBitmap whichInfo, FSCatalogInfo *catalogInfo, HFSUniStr255 *outName, FSSpec *fsSpec, FSRef *parentRef)
OSErr PBGetVInfoSync(ParmBlkPtr paramBlock)
OSErr Rename(ConstStr255Param oldName, short vRefNum, ConstStr255Param newName)
Change the name of a file or directory.
OSErr PBExchangeFilesAsync(HParmBlkPtr paramBlock)
OSStatus FNSubscribe(const FSRef *directoryRef, FNSubscriptionUPP callback, void *refcon, OptionBits flags, FNSubscriptionRef *subscription)
OSErr PBMakeFSSpecAsync(HParmBlkPtr paramBlock)
OSErr PBUnshareAsync(HParmBlkPtr paramBlock)
OSErr PBDTSetCommentSync(DTPBPtr paramBlock)
OSErr FSRead(short refNum, long *count, void *buffPtr)
Read from an open file or device driver.
printf("First vcb is at = %lx\n", qhp->qHead)
Obtain pointer to the volume control block queue header.
OSErr PBHMapNameSync(HParmBlkPtr paramBlock)
void PBReadForkAsync(FSForkIOParam *paramBlock)
OSErr PBHRenameAsync(HParmBlkPtr paramBlock)
OSErr PBDeleteFileIDRefAsync(HParmBlkPtr paramBlock)
CopyParam copyParam
Definition: Files.h:1303
void PBGetForkSizeAsync(FSForkIOParam *paramBlock)
void InvokeIOCompletionUPP(ParmBlkPtr paramBlock, IOCompletionUPP userUPP)
OSErr PBGetFCBInfoAsync(FCBPBPtr paramBlock)
OSErr FSGetForkCBInfo(SInt16 desiredRefNum, FSVolumeRefNum volume, SInt16 *iterator, SInt16 *actualRefNum, FSForkInfo *forkInfo, FSRef *ref, HFSUniStr255 *outForkName)
OSErr PBHTrashVolumeCachesSync(ParmBlkPtr paramBlock)
OSErr PBHGetVolParmsAsync(HParmBlkPtr paramBlock)
OSErr PBHOpenSync(HParmBlkPtr paramBlock)
OSErr PBSetEOFSync(ParmBlkPtr paramBlock)
OSErr FSpOpenDF(const FSSpec *spec, SInt8 permission, short *refNum)
OSErr PBGetForkSizeSync(FSForkIOParam *paramBlock)
OSErr PBCreateFileUnicodeSync(FSRefParam *paramBlock)
OSErr PBDTAddAPPLAsync(DTPBPtr paramBlock)
OSErr setvol(const char *volName, short vRefNum)
OSErr PBHSetDirAccessAsync(HParmBlkPtr paramBlock)
OSErr FSGetResourceForkName(HFSUniStr255 *resourceForkName)
OSStatus FNNotifyByPath(const UInt8 *path, FNMessage message, OptionBits flags)
OSErr PBHOpenRFDenyAsync(HParmBlkPtr paramBlock)
OSErr FSAllocateFork(SInt16 forkRefNum, FSAllocationFlags flags, UInt16 positionMode, SInt64 positionOffset, UInt64 requestCount, UInt64 *actualCount)
OSErr HDelete(short vRefNum, long dirID, ConstStr255Param fileName)
Delete an unopened file or empty directory.
OSErr PBFlushFileAsync(ParmBlkPtr paramBlock)
ObjParam objParam
Definition: Files.h:1302
void PBAllocateForkAsync(FSForkIOParam *paramBlock)
OSErr GetVol(StringPtr volName, short *vRefNum)
Obtain name and reference number of default volume.
void PBGetCatalogInfoBulkAsync(FSCatalogBulkParam *paramBlock)
OSErr GetFPos(short refNum, long *filePos)
Obtain position of the file mark of an open file.
OSErr FSCloseFork(SInt16 forkRefNum)
OSErr rstflock(const char *fileName, short vRefNum)
OSErr FSSetForkPosition(SInt16 forkRefNum, UInt16 positionMode, SInt64 positionOffset)
OSErr PBCatMoveAsync(CMovePBPtr paramBlock)
OSErr PBGetUGEntryAsync(HParmBlkPtr paramBlock)
OSErr PBUnlockRangeSync(ParmBlkPtr paramBlock)
OSErr fsdelete(const char *fileName, short vRefNum)
OSErr PBFlushForkSync(FSForkIOParam *paramBlock)
OSErr PBDTGetAPPLSync(DTPBPtr paramBlock)
void PBExchangeObjectsAsync(FSRefParam *paramBlock)
OSErr PBHGetVInfoAsync(HParmBlkPtr paramBlock)
OSErr PBGetVolMountInfo(ParmBlkPtr paramBlock)
PBGetVolMountInfo Places volume mounting information into a buffer.
OSErr PBOpenRFAsync(ParmBlkPtr paramBlock)
OSErr PBDeleteFileIDRefSync(HParmBlkPtr paramBlock)
OSErr PBGetCatalogInfoSync(FSRefParam *paramBlock)
OSErr PBHCreateSync(HParmBlkPtr paramBlock)
QHdrPtr GetFSQHdr(void)
Obtain pointer to the file I/O queue header.
void PBGetVolumeInfoAsync(FSVolumeInfoParam *paramBlock)
OSErr PBDTGetIconInfoAsync(DTPBPtr paramBlock)
UInt32 FNMessage
Definition: Files.h:8708
OSErr getfinfo(const char *fileName, short vRefNum, FInfo *fndrInfo)
OSErr PBSetVInfoAsync(HParmBlkPtr paramBlock)
OSErr PBOpenDFAsync(ParmBlkPtr paramBlock)
OSErr PBDeleteSync(ParmBlkPtr paramBlock)
OSErr PBFlushVolSync(ParmBlkPtr paramBlock)
OSErr OpenRF(ConstStr255Param fileName, short vRefNum, short *refNum)
void PBCloseForkAsync(FSForkIOParam *paramBlock)
HFileParam fileParam
Definition: Files.h:1299
OSErr PBSetEOFAsync(ParmBlkPtr paramBlock)
OSErr PBHSetFLockAsync(HParmBlkPtr paramBlock)
OSErr FSRenameUnicode(const FSRef *ref, UniCharCount nameLength, const UniChar *name, TextEncoding textEncodingHint, FSRef *newRef)
OSErr FSReadFork(SInt16 forkRefNum, UInt16 positionMode, SInt64 positionOffset, ByteCount requestCount, void *buffer, ByteCount *actualCount)
CSParam csParam
Definition: Files.h:1306
OSErr PBMakeFSSpecSync(HParmBlkPtr paramBlock)
OSErr PBDTOpenInform(DTPBPtr paramBlock)
OSErr PBDTGetInfoAsync(DTPBPtr paramBlock)
OSErr SetFInfo(ConstStr255Param fileName, short vRefNum, const FInfo *fndrInfo)
Change file type, creator, icon position, etc.
OSErr PBResolveFileIDRefSync(HParmBlkPtr paramBlock)
OSErr FlushVol(ConstStr63Param volName, short vRefNum)
OSErr FSCreateFork(const FSRef *ref, UniCharCount forkNameLength, const UniChar *forkName)
This attempts to extend the file by byte
Increase the physical size of an open file.
Definition: Files.h:3115
OSErr FSDeleteObject(const FSRef *ref)
OSErr PBCreateFileIDRefSync(HParmBlkPtr paramBlock)
OSErr PBHOpenRFDenySync(HParmBlkPtr paramBlock)
OSErr PBHGetDirAccessAsync(HParmBlkPtr paramBlock)
OSErr OpenDF(ConstStr255Param fileName, short vRefNum, short *refNum)
OSErr PBHOpenDenyAsync(HParmBlkPtr paramBlock)
OSErr PBDTFlushAsync(DTPBPtr paramBlock)
OSErr PBDTGetInfoSync(DTPBPtr paramBlock)
OSErr PBSetFPosAsync(ParmBlkPtr paramBlock)
OSStatus FNNotify(const FSRef *ref, FNMessage message, OptionBits flags)
OSErr PBMoveObjectSync(FSRefParam *paramBlock)
OSErr PBOpenWDAsync(WDPBPtr paramBlock)
OSErr PBDeleteForkSync(FSForkIOParam *paramBlock)
OSErr FSCreateDirectoryUnicode(const FSRef *parentRef, UniCharCount nameLength, const UniChar *name, FSCatalogInfoBitmap whichInfo, const FSCatalogInfo *catalogInfo, FSRef *newRef, FSSpec *newSpec, UInt32 *newDirID)
OSErr PBCloseForkSync(FSForkIOParam *paramBlock)
OSErr PBGetFPosAsync(ParmBlkPtr paramBlock)
OSErr PBDTGetPath(DTPBPtr paramBlock)
void PBCompareFSRefsAsync(FSRefParam *paramBlock)
OSErr PBSetVolumeInfoSync(FSVolumeInfoParam *paramBlock)
OSErr PBAllocateForkSync(FSForkIOParam *paramBlock)
OSErr DirCreate(short vRefNum, long parentDirID, ConstStr255Param directoryName, long *createdDirID)
Create a directory.
OSErr FSWrite(short refNum, long *count, const void *buffPtr)
Write data from memory to a file.
OSErr PBHGetLogInInfoSync(HParmBlkPtr paramBlock)
OSErr PBSetFVersSync(ParmBlkPtr paramBlock)
OSErr PBHGetVolSync(WDPBPtr paramBlock)
OSErr PBResolveFileIDRefAsync(HParmBlkPtr paramBlock)
OSErr PBSetFVersAsync(ParmBlkPtr paramBlock)
OSErr PBDTGetCommentAsync(DTPBPtr paramBlock)
OSErr PBGetXCatInfoSync(XCInfoPBPtr paramBlock)
OSErr FSpExchangeFiles(const FSSpec *source, const FSSpec *dest)
FSpExchangeFiles Swap the files' data.
OSErr PBCreateAsync(ParmBlkPtr paramBlock)
OSErr PBHSetFInfoAsync(HParmBlkPtr paramBlock)
void PBIterateForksAsync(FSForkIOParam *paramBlock)
OSErr FSpRstFLock(const FSSpec *spec)
Unlock a file.
OSErr PBCloseWDAsync(WDPBPtr paramBlock)
OSErr PBDTAddAPPLSync(DTPBPtr paramBlock)
OSErr PBHCopyFileAsync(HParmBlkPtr paramBlock)
OSErr PBHRenameSync(HParmBlkPtr paramBlock)
OSErr PBHSetFLockSync(HParmBlkPtr paramBlock)
OSErr FSCreateFileUnicode(const FSRef *parentRef, UniCharCount nameLength, const UniChar *name, FSCatalogInfoBitmap whichInfo, const FSCatalogInfo *catalogInfo, FSRef *newRef, FSSpec *newSpec)
OSErr PBDTGetAPPLAsync(DTPBPtr paramBlock)
OSErr PBExchangeObjectsSync(FSRefParam *paramBlock)
OSErr setflock(const char *fileName, short vRefNum)
OSErr PBSetVInfoSync(HParmBlkPtr paramBlock)
OSErr PBHDeleteSync(HParmBlkPtr paramBlock)
OSErr FSGetForkSize(SInt16 forkRefNum, SInt64 *forkSize)
OSErr FSpCatMove(const FSSpec *source, const FSSpec *dest)
Change a file's location.
OSErr PBHCreateAsync(HParmBlkPtr paramBlock)
OSErr PBCatSearchSync(CSParamPtr paramBlock)
void PBOpenIteratorAsync(FSCatalogBulkParam *paramBlock)
OSErr PBHMapNameAsync(HParmBlkPtr paramBlock)
OSErr HCreate(short vRefNum, long dirID, ConstStr255Param fileName, OSType creator, OSType fileType)
Create a new file like PB and set type and creator.
void PBGetCatalogInfoAsync(FSRefParam *paramBlock)
OSErr PBHOpenRFAsync(HParmBlkPtr paramBlock)
union HParamBlockRec HParamBlockRec
Definition: Files.h:1310
OSErr FSpGetFInfo(const FSSpec *spec, FInfo *fndrInfo)
Get Finder information.
OSErr PBCreateForkSync(FSForkIOParam *paramBlock)
OSErr PBDTDeleteSync(DTPBPtr paramBlock)
OSErr fsopen(const char *fileName, short vRefNum, short *refNum)
OSErr PBHDeleteAsync(HParmBlkPtr paramBlock)
AccessParam accessParam
Definition: Files.h:1301
OSErr PBHOpenRFSync(HParmBlkPtr paramBlock)
OSErr HGetVol(StringPtr volName, short *vRefNum, long *dirID)
Obtain default volume/directory name and reference.
OSErr PBDeleteObjectSync(FSRefParam *paramBlock)
struct OpaqueFNSubscriptionRef * FNSubscriptionRef
Definition: Files.h:8801
OSErr FSpMakeFSRef(const FSSpec *source, FSRef *newRef)
OSErr FSGetForkPosition(SInt16 forkRefNum, SInt64 *position)
OSErr FSSetCatalogInfo(const FSRef *ref, FSCatalogInfoBitmap whichInfo, const FSCatalogInfo *catalogInfo)
OSErr PBDTGetIconAsync(DTPBPtr paramBlock)
OSErr PBGetFInfoAsync(ParmBlkPtr paramBlock)
OSErr FSExchangeObjects(const FSRef *ref, const FSRef *destRef)
void PBDeleteObjectAsync(FSRefParam *paramBlock)
OSErr RstFLock(ConstStr255Param fileName, short vRefNum)
Unlock a file (allow changes, deletion, renaming, etc.)
IOCompletionUPP NewIOCompletionUPP(IOCompletionProcPtr userRoutine)
OSErr PBDTAddIconAsync(DTPBPtr paramBlock)
OSErr FSMakeFSSpec(short vRefNum, long dirID, ConstStr255Param fileName, FSSpec *spec)
Convert a file or directory spec into an FSSpec record.
OSErr PBDTCloseDown(DTPBPtr paramBlock)
OSErr FSOpenFork(const FSRef *ref, UniCharCount forkNameLength, const UniChar *forkName, SInt8 permissions, SInt16 *forkRefNum)
OSErr PBRenameAsync(ParmBlkPtr paramBlock)
OSErr PBHSetVolSync(WDPBPtr paramBlock)
OSErr PBReadForkSync(FSForkIOParam *paramBlock)
OSErr PBOpenForkSync(FSForkIOParam *paramBlock)
OSErr FSpCreate(const FSSpec *spec, OSType creator, OSType fileType, ScriptCode scriptTag)
Create a new file and set the type and creator.
OSErr GetVRefNum(short fileRefNum, short *vRefNum)
Get volume reference number of an open file.
OSErr PBDTRemoveAPPLAsync(DTPBPtr paramBlock)
OSErr PBDTRemoveAPPLSync(DTPBPtr paramBlock)
OSErr PBGetWDInfoSync(WDPBPtr paramBlock)
OSErr FSpRename(const FSSpec *spec, ConstStr255Param newName)
Change a file's name.
OSErr PBGetFInfoSync(ParmBlkPtr paramBlock)
OSErr PBCloseWDSync(WDPBPtr paramBlock)
OSErr PBUnmountVolImmed(ParmBlkPtr paramBlock)
OSErr PBDTAddIconSync(DTPBPtr paramBlock)
OSErr PBCloseIteratorSync(FSCatalogBulkParam *paramBlock)
OSErr PBDTFlushSync(DTPBPtr paramBlock)
OSErr FSCloseIterator(FSIterator iterator)
OSErr FSCatalogSearch(FSIterator iterator, const FSSearchParams *searchCriteria, ItemCount maximumObjects, ItemCount *actualObjects, Boolean *containerChanged, FSCatalogInfoBitmap whichInfo, FSCatalogInfo *catalogInfos, FSRef *refs, FSSpec *specs, HFSUniStr255 *names)
void InvokeFNSubscriptionUPP(FNMessage message, OptionBits flags, void *refcon, FNSubscriptionRef subscription, FNSubscriptionUPP userUPP)
OSErr FSOpenIterator(const FSRef *container, FSIteratorFlags iteratorFlags, FSIterator *iterator)
HVolumeParam volumeParam
Definition: Files.h:1300
OSErr PBSetVolAsync(ParmBlkPtr paramBlock)
OSErr PBMakeFSRefSync(FSRefParam *paramBlock)
void PBMakeFSRefUnicodeAsync(FSRefParam *paramBlock)
OSErr SetEOF(short refNum, long logEOF)
Increase or decrease the logical size of a file.
Finder flags and container types.
Handle NewHandle(Size byteCount)
Basic Macintosh data types.
Str255 StrFileName
Definition: MacTypes.h:474
unsigned char * StringPtr
Definition: MacTypes.h:477
unsigned char Boolean
Definition: MacTypes.h:318
Mixed Mode Manager Interfaces.
void DisposeRoutineDescriptor(UniversalProcPtr theUPP)
UniversalProcPtr NewRoutineDescriptor(ProcPtr theProc, ProcInfoType theProcInfo, ISAType theISA)
typedef CALLBACK_API_REGISTER68K(void, SIInterruptProcPtr,(SPBPtr inParamPtr, Ptr dataBuffer, short peakAmplitude, long sampleSize))
TextEncoding-related types and constants, and prototypes for related functions.
typedef REGISTER_UPP_TYPE(HighHookProcPtr) HighHookUPP
Interface for UTC to Local Time conversion and 64 Bit Clock routines.
Definition: AEDataModel.h:175
Definition: Quickdraw.h:306
Definition: OSUtils.h:131
Definition: OSUtils.h:154
Definition: UTCUtils.h:60
Definition: MacTypes.h:110
Definition: MacTypes.h:104
VolumeParam volumeParam
Definition: Files.h:643
IOParam ioParam
Definition: Files.h:641
FileParam fileParam
Definition: Files.h:642