/macosx-10.10/hfs-285/fsck_hfs/dfalib/ |
H A D | SControl.c | 70 static void printVerifyStatus( SGlobPtr GPtr ); 72 static int ScavSetUp( SGlobPtr GPtr ); 73 static int ScavTerm( SGlobPtr GPtr ); 560 GPtr - pointer to scavenger global area 567 void ScavCtrl( SGlobPtr GPtr, UInt32 ScavOp, short *ScavRes ) argument 583 GPtr->ScavRes = 0; 595 if ( ( result = ScavSetUp( GPtr ) ) ) // set up BEFORE CheckForStop 597 if ( IsBlueBoxSharedDrive( GPtr->DrvPtr ) ) 599 if ( ( result = CheckForStop( GPtr ) ) ) // in order to initialize wrCnt 605 clean = CheckForClean(GPtr, kCheckVolum 1151 ScavSetUp( SGlob *GPtr) argument 1587 printVerifyStatus(SGlobPtr GPtr) argument [all...] |
H A D | SVerify2.c | 43 static int BTKeyChk( SGlobPtr GPtr, NodeDescPtr nodeP, BTreeControlBlock *btcb ); 52 Input: GPtr - pointer to scavenger global area. 64 OSErr ChkExtRec ( SGlobPtr GPtr, UInt32 fileID, const void *extents , unsigned int *lastExtentIndex ) argument 73 maxNABlks = GPtr->calculatedVCB->vcbTotalBlocks; 78 *lastExtentIndex = GPtr->numExtents; 80 for ( i=0 ; i<GPtr->numExtents ; i++ ) 96 RcdError( GPtr, E_ExtEnt ); 97 if (fsckGetVerbosity(GPtr->context) >= kDebugLog) { 107 RcdError( GPtr, E_ExtEnt ); 108 if (fsckGetVerbosity(GPtr 212 BTCheck(SGlobPtr GPtr, short refNum, CheckLeafRecordProcPtr checkLeafRecord) argument 794 BTMapChk( SGlobPtr GPtr, short fileRefNum ) argument 905 BTCheckUnusedNodes(SGlobPtr GPtr, short fileRefNum, UInt16 *btStat) argument 995 CmpBTH( SGlobPtr GPtr, SInt16 fileRefNum ) argument 1137 CmpBTM( SGlobPtr GPtr, short fileRefNum ) argument 1248 BTKeyChk( SGlobPtr GPtr, NodeDescPtr nodeP, BTreeControlBlock *btcb ) argument 1368 ChkCName( SGlobPtr GPtr, const CatalogName *name, Boolean unicode ) argument 1404 CmpMDB( SGlobPtr GPtr, HFSMasterDirectoryBlock * mdbP) argument 1578 CompareVolumeHeader( SGlobPtr GPtr, HFSPlusVolumeHeader *volumeHeader ) argument [all...] |
H A D | SVerify1.c | 52 static int RcdValErr( SGlobPtr GPtr, OSErr type, UInt32 correct, UInt32 incorrect, HFSCatalogNodeID parid ); 54 static int RcdNameLockedErr( SGlobPtr GPtr, OSErr type, UInt32 incorrect ); 56 static OSErr RcdMDBEmbededVolDescriptionErr( SGlobPtr GPtr, OSErr type, HFSMasterDirectoryBlock *mdb ); 58 static OSErr CheckNodesFirstOffset( SGlobPtr GPtr, BTreeControlBlock *btcb ); 60 static OSErr ScavengeVolumeType( SGlobPtr GPtr, HFSMasterDirectoryBlock *mdb, UInt32 *volumeType ); 61 static OSErr SeekVolumeHeader( SGlobPtr GPtr, UInt64 startSector, UInt32 numSectors, UInt64 *vHSector ); 64 static OSErr AddExtentToOverlapList( SGlobPtr GPtr, HFSCatalogNodeID fileNumber, const char *attrName, UInt32 extentStartBlock, UInt32 extentBlockCount, UInt8 forkType ); 68 static void CheckHFSPlusExtentRecords(SGlobPtr GPtr, UInt32 fileID, const char *attrname, HFSPlusExtentRecord extent, UInt8 forkType); 70 static void CheckHFSExtentRecords(SGlobPtr GPtr, UInt32 fileID, HFSExtentRecord extent, UInt8 forkType); 72 static Boolean DoesOverlap(SGlobPtr GPtr, UInt3 98 CheckIfJournaled(SGlobPtr GPtr, Boolean journal_bit_only) argument 184 GetJournalInfoBlock(SGlobPtr GPtr, JournalInfoBlock *jibp, UInt32 *bsizep) argument 331 IsJournalEmpty(SGlobPtr GPtr, fsckJournalInfo_t *jp) argument 453 CheckForClean(SGlobPtr GPtr, UInt8 operation, Boolean *modified) argument 828 ScavengeVolumeType( SGlobPtr GPtr, HFSMasterDirectoryBlock *mdb, UInt32 *volumeType ) argument 954 SeekVolumeHeader( SGlobPtr GPtr, UInt64 startSector, UInt32 numSectors, UInt64 *vHSector ) argument 1189 CheckNodesFirstOffset( SGlobPtr GPtr, BTreeControlBlock *btcb ) argument 2219 RecordLastAttrBits(SGlobPtr GPtr) argument 2264 setLastAttrAllocInfo(SGlobPtr GPtr, u_int32_t totalBlocks, u_int64_t logicalSize, u_int32_t calculatedTotalBlocks) argument 2287 CheckLastAttrAllocation(SGlobPtr GPtr) argument 2396 CheckAttributeRecord(SGlobPtr GPtr, const HFSPlusAttrKey *key, const HFSPlusAttrRecord *rec, UInt16 reclen) argument 2622 RecordXAttrBits(SGlobPtr GPtr, UInt16 flags, HFSCatalogNodeID fileid, UInt16 btreetype) argument 2684 CompareXattrPrimeBuckets(SGlobPtr GPtr, UInt16 BitMask) argument 2828 RcdValErr( SGlobPtr GPtr, OSErr type, UInt32 correct, UInt32 incorrect, HFSCatalogNodeID parid ) argument 2880 RcdHsFldCntErr( SGlobPtr GPtr, OSErr type, UInt32 correct, UInt32 incorrect, HFSCatalogNodeID fid ) argument 2917 RcdFCntErr( SGlobPtr GPtr, OSErr type, UInt32 correct, UInt32 incorrect, HFSCatalogNodeID fid ) argument 2955 RcdMDBEmbededVolDescriptionErr( SGlobPtr GPtr, OSErr type, HFSMasterDirectoryBlock *mdb ) argument 3503 RcdNameLockedErr( SGlobPtr GPtr, SInt16 type, UInt32 incorrect ) argument 3547 RecordBadExtent(SGlobPtr GPtr, UInt32 fileID, UInt8 forkType, UInt32 startBlock, UInt32 badExtentIndex) argument 3590 printpath(SGlobPtr GPtr, UInt32 fileID) argument 3683 dumpblocklist(SGlobPtr GPtr) argument 3765 CheckFileExtents( SGlobPtr GPtr, UInt32 fileNumber, UInt8 forkType, const unsigned char *attrname, const void *extents, UInt32 *blocksUsed) argument 3954 AddExtentToOverlapList( SGlobPtr GPtr, HFSCatalogNodeID fileNumber, const char *attrname, UInt32 extentStartBlock, UInt32 extentBlockCount, UInt8 forkType ) argument 4076 DoesOverlap(SGlobPtr GPtr, UInt32 fileID, const char *attrname, UInt32 startBlock, UInt32 blockCount, UInt8 forkType) argument 4123 CheckHFSPlusExtentRecords(SGlobPtr GPtr, UInt32 fileID, const char *attrname, HFSPlusExtentRecord extent, UInt8 forkType) argument 4152 CheckHFSExtentRecords(SGlobPtr GPtr, UInt32 fileID, HFSExtentRecord extent, UInt8 forkType) argument 4189 FindOrigOverlapFiles(SGlobPtr GPtr) argument 4377 PrintOverlapFiles(SGlobPtr GPtr) argument [all...] |
H A D | SRepair.c | 49 static int MRepair( SGlobPtr GPtr ); 53 static OSErr FixBTreeHeaderReservedFields( SGlobPtr GPtr, short refNum ); 54 static OSErr UpdBTM( SGlobPtr GPtr, short refNum); 55 static OSErr UpdateVolumeBitMap( SGlobPtr GPtr, Boolean preAllocateOverlappedExtents ); 56 static OSErr DoMinorOrders( SGlobPtr GPtr ); 57 static OSErr UpdVal( SGlobPtr GPtr, RepairOrderPtr rP ); 58 static int DelFThd( SGlobPtr GPtr, UInt32 fid ); 59 static OSErr FixDirThread( SGlobPtr GPtr, UInt32 did ); 60 static OSErr FixOrphanedFiles ( SGlobPtr GPtr ); 61 static OSErr RepairReservedBTreeFields ( SGlobPtr GPtr ); 688 FixBTreeHeaderReservedFields( SGlobPtr GPtr, short refNum ) argument 730 UpdBTM( SGlobPtr GPtr, short refNum ) argument 817 UpdateVolumeBitMap( SGlobPtr GPtr, Boolean preAllocateOverlappedExtents ) argument 835 FixBadLinkChainFirst(SGlobPtr GPtr, RepairOrderPtr p) argument 930 FixHardLinkBadDate(SGlobPtr GPtr, RepairOrderPtr p) argument 964 FixFileHardLinkFlag(SGlobPtr GPtr, RepairOrderPtr p) argument 996 FixPrivDirBadPerms(SGlobPtr GPtr, RepairOrderPtr p) argument 1045 FixOrphanLink(SGlobPtr GPtr, RepairOrderPtr p) argument 1076 FixOrphanInode(SGlobPtr GPtr, RepairOrderPtr p) argument 1126 FixDirLinkOwnerFlags(SGlobPtr GPtr, RepairOrderPtr p) argument 1169 FixBadFlags(SGlobPtr GPtr, RepairOrderPtr p) argument 1230 UpdFolderCount( SGlobPtr GPtr, RepairOrderPtr p) argument 1325 UpdHasFolderCount( SGlobPtr GPtr, RepairOrderPtr p) argument 1604 DelFThd( SGlobPtr GPtr, UInt32 fid ) argument 1659 FixDirThread( SGlobPtr GPtr, UInt32 did ) argument 1772 UpdVal( SGlobPtr GPtr, RepairOrderPtr p ) argument 1859 FixFinderFlags( SGlobPtr GPtr, RepairOrderPtr p ) argument 1925 FixHardLinkFinderInfo(SGlobPtr GPtr, RepairOrderPtr p) argument 1975 FixLinkChainPrev(SGlobPtr GPtr, RepairOrderPtr p) argument 2040 FixLinkChainNext(SGlobPtr GPtr, RepairOrderPtr p) argument 2105 FixLinkCount(SGlobPtr GPtr, RepairOrderPtr p) argument 2167 FixIllegalNames( SGlobPtr GPtr, RepairOrderPtr roPtr ) argument 2277 FixBSDInfo(SGlobPtr GPtr, RepairOrderPtr p) argument 2338 DeleteUnlinkedFile(SGlobPtr GPtr, RepairOrderPtr p) argument 2402 FixFileSize(SGlobPtr GPtr, RepairOrderPtr p) argument 2514 FixEmbededVolDescription( SGlobPtr GPtr, RepairOrderPtr p ) argument 2582 FixWrapperExtents( SGlobPtr GPtr, RepairOrderPtr p ) argument 2762 FixAttrSize(SGlobPtr GPtr, RepairOrderPtr p) argument 2865 FixBadExtent(SGlobPtr GPtr, RepairOrderPtr p) argument 3524 FixOrphanAttrRecord(SGlobPtr GPtr) argument 3590 GetCatalogRecord(SGlobPtr GPtr, UInt32 fileID, Boolean isHFSPlus, CatalogKey *catKey, CatalogRecord *catRecord, UInt16 *recordSize) argument 3679 RepairAttributesCheckABT(SGlobPtr GPtr, Boolean isHFSPlus) argument 3862 RepairAttributesCheckCBT(SGlobPtr GPtr, Boolean isHFSPlus) argument 3994 RepairAttributes(SGlobPtr GPtr) argument 4083 FixOverlappingExtents(SGlobPtr GPtr) argument 4263 MoveExtent(SGlobPtr GPtr, ExtentInfo *extentInfo) argument 4402 CreateCorruptFileSymlink(SGlobPtr GPtr, UInt32 fileID) argument 4553 SearchExtentInAttributeBT(SGlobPtr GPtr, ExtentInfo *extentInfo, HFSPlusAttrKey *attrKey, HFSPlusAttrRecord *attrRecord, UInt16 *recordSize, UInt32 *foundExtentIndex) argument 4675 UpdateExtentInAttributeBT(SGlobPtr GPtr, ExtentInfo *extentInfo, HFSPlusAttrKey *attrKey, HFSPlusAttrRecord *attrRecord, UInt16 *recordSize, UInt32 foundInExtentIndex) argument 4719 SearchExtentInVH(SGlobPtr GPtr, ExtentInfo *extentInfo, UInt32 *foundExtentIndex, Boolean *noMoreExtents) argument 4781 UpdateExtentInVH(SGlobPtr GPtr, ExtentInfo *extentInfo, UInt32 foundExtentIndex) argument 4843 SearchExtentInCatalogBT(SGlobPtr GPtr, ExtentInfo *extentInfo, CatalogKey *catKey, CatalogRecord *catRecord, UInt16 *recordSize, UInt32 *foundExtentIndex, Boolean *noMoreExtents) argument 4912 UpdateExtentInCatalogBT(SGlobPtr GPtr, ExtentInfo *extentInfo, CatalogKey *catKey, CatalogRecord *catRecord, UInt16 *recordSize, UInt32 foundInExtentIndex) argument 4963 SearchExtentInExtentBT(SGlobPtr GPtr, ExtentInfo *extentInfo, HFSPlusExtentKey *extentKey, HFSPlusExtentRecord *extentRecord, UInt16 *recordSize, UInt32 *foundExtentIndex) argument 5200 GetFileNamePathByID(SGlobPtr GPtr, UInt32 fileID, char *fullPath, unsigned int *fullPathLen, char *fileName, unsigned int *fileNameLen, u_int16_t *status) argument 5405 CopyDiskBlocks(SGlobPtr GPtr, const UInt32 startAllocationBlock, const UInt32 blockCount, const UInt32 newStartAllocationBlock ) argument 5441 WriteBufferToDisk(SGlobPtr GPtr, UInt32 startBlock, UInt32 blockCount, u_char *buffer, int bufLen) argument 5564 FixMissingDirectory( SGlob *GPtr, UInt32 theObjID, UInt32 theParID ) argument 5680 CreateFileByName(SGlobPtr GPtr, UInt32 parentID, UInt16 fileType, u_char *fileName, unsigned int filenameLen, u_char *data, unsigned int dataLen) argument 6009 CountFolderItems(SGlobPtr GPtr, UInt32 folderID, Boolean isHFSPlus, UInt32 *itemCount, UInt32 *folderCount) argument 6063 BuildFolderRec( SGlob *GPtr, u_int16_t theMode, UInt32 theObjID, Boolean isHFSPlus, CatalogRecord * theRecPtr ) argument 6249 DeleteCatalogRecordByID(SGlobPtr GPtr, uint32_t id, Boolean for_rename) argument 6299 MoveCatalogRecordByID(SGlobPtr GPtr, uint32_t id, uint32_t new_parentid) argument 6400 DeleteAllAttrsByID(SGlobPtr GPtr, uint32_t id) argument 6461 delete_attr_record(SGlobPtr GPtr, HFSPlusAttrKey *attr_key, HFSPlusAttrRecord *attr_record) argument 6500 ZeroFillUnusedNodes(SGlobPtr GPtr, short fileRefNum) argument [all...] |
H A D | SStubs.c | 103 OSErr GetVolumeFeatures( SGlobPtr GPtr ) 105 GPtr->volumeFeatures = supportsTrashVolumeCacheFeatureMask + supportsHFSPlusVolsFeatureMask; 194 void WriteError( SGlobPtr GPtr, short msgID, UInt32 tarID, UInt64 tarBlock ) argument 196 fsckPrint(GPtr->context, msgID); 198 if ((fsckGetVerbosity(GPtr->context) > 0) && 199 (fsckGetOutputStyle(GPtr->context) == fsckOutputTraditional) &&
|
H A D | SUtils.c | 35 static void CompareVolHeaderBTreeSizes( SGlobPtr GPtr, 39 static void GetEmbeddedVolumeHeaders( SGlobPtr GPtr, 171 OSErr GetFBlk( SGlobPtr GPtr, SInt16 fileRefNum, SInt32 blockNumber, void **bufferH ); 193 Input: GPtr - pointer to scavenger global area. 199 void RcdError( SGlobPtr GPtr, OSErr errorCode ) argument 201 GPtr->ErrCode = errorCode; 203 WriteError( GPtr, errorCode, GPtr->TarID, GPtr->TarBlock ); // log to summary window 213 Input: GPtr 220 IntError( SGlobPtr GPtr, OSErr errorCode ) argument 259 AllocBTN( SGlobPtr GPtr, SInt16 fileRefNum, UInt32 nodeNumber ) argument 285 GetBTreeHeader( SGlobPtr GPtr, SFCB *fcb, BTHeaderRec *header ) argument 355 IsDuplicateRepairOrder(SGlobPtr GPtr, RepairOrderPtr orig) argument 394 DeleteRepairOrder(SGlobPtr GPtr, RepairOrderPtr orig) argument 432 AllocMinorRepairOrder( SGlobPtr GPtr, size_t n ) argument 1380 GetEmbeddedVolumeHeaders( SGlobPtr GPtr, HFSMasterDirectoryBlock * theMDBPtr, Boolean isPrimaryMDB ) argument 1514 CompareVolHeaderBTreeSizes( SGlobPtr GPtr, VolumeObjectPtr theVOPtr, HFSPlusVolumeHeader * thePriVHPtr, HFSPlusVolumeHeader * theAltVHPtr ) argument 1749 VolumeObjectIsHFSX(SGlobPtr GPtr) argument 2106 CalculateItemCount( SGlob *GPtr, UInt64 *itemCount, UInt64 *onePercent ) argument [all...] |
H A D | Scavenger.h | 950 extern void WriteMsg( SGlobPtr GPtr, short messageID, short messageType ); 951 extern void WriteError( SGlobPtr GPtr, short msgID, UInt32 tarID, UInt64 tarBlock ); 956 void ScavCtrl( SGlobPtr GPtr, UInt32 ScavOp, short *ScavRes ); 958 extern short CheckForStop( SGlobPtr GPtr ); 963 extern OSErr RepairVolume( SGlobPtr GPtr ); 965 extern int FixDFCorruption( const SGlobPtr GPtr, RepairOrderPtr DFOrderP ); 967 extern OSErr ProcessFileExtents( SGlobPtr GPtr, SFCB *fcb, UInt8 forkType, UInt16 flags, Boolean isExtentsBTree, Boolean *hasOverflowExtents, UInt32 *blocksUsed ); 971 extern OSErr GetFileNamePathByID(SGlobPtr GPtr, UInt32 fileID, char *fullPath, unsigned int *fullPathLen, char *fileName, unsigned int *fileNameLen, u_int16_t *status); 980 extern int AllocBTN( SGlobPtr GPtr, short FilRefN, UInt32 NodeNum ); 982 extern int IntError( SGlobPtr GPtr, OSEr [all...] |
H A D | CatalogCheck.c | 30 extern int RcdFCntErr( SGlobPtr GPtr, OSErr type, UInt32 correct, UInt32 incorrect, HFSCatalogNodeID); 31 extern int RcdHsFldCntErr( SGlobPtr GPtr, OSErr type, UInt32 correct, UInt32 incorrect, HFSCatalogNodeID); 56 static int CheckCatalogRecord(SGlobPtr GPtr, const HFSPlusCatalogKey *key, 76 static OSErr UniqueDotName( SGlobPtr GPtr, 98 printSymLinkName(SGlobPtr GPtr, UInt32 fid) argument 104 if (GetFileNamePathByID(GPtr, fid, pathname, &path_len, filename, &fname_len, &status) == 0) { 105 fsckPrint(GPtr->context, E_BadSymLinkName, pathname); 122 CountFolderRecords(HFSPlusCatalogKey *myKey, HFSPlusCatalogFolder *folder, SGlobPtr GPtr) argument 124 SFCB *fcb = GPtr->calculatedCatalogFCB; 160 (key->parentID != GPtr 659 CheckCatalogRecord(SGlobPtr GPtr, const HFSPlusCatalogKey *key, const CatalogRecord *rec, UInt16 reclen) argument 1543 UniqueDotName( SGlobPtr GPtr, CatalogName * theNewNamePtr, UInt32 theParID, Boolean isSingleDotName, Boolean isHFSPlus ) argument [all...] |
H A D | dirhardlink.c | 36 OSErr GetCatalogRecordByID(SGlobPtr GPtr, UInt32 file_id, Boolean isHFSPlus, CatalogKey *key, CatalogRecord *rec, uint16_t *recsize) argument 46 fcb = GPtr->calculatedCatalogFCB; 113 RcdError(GPtr, E_IncorrectNumThdRcd); 114 if (fsckGetVerbosity(GPtr->context) >= kDebugLog) { 118 GPtr->CBTStat |= S_Orphan;
|
/macosx-10.10/tcl-105/tcl_ext/tcllib/tcllib/modules/struct/graph/ |
H A D | ds.h | 51 typedef struct G* GPtr; /* graph */ typedef in typeref:struct:G 85 GPtr graph; /* Graph the node/arc belongs to */
|
/macosx-10.10/llvmCore-3425.0.34/unittests/ExecutionEngine/JIT/ |
H A D | JITTest.cpp | 269 int32_t *GPtr = (int32_t*)JIT->getPointerToGlobalIfAvailable(G); local 270 ASSERT_NE((int32_t*)NULL, GPtr); 271 EXPECT_EQ(0, *GPtr); 275 EXPECT_EQ(1, *GPtr); 285 EXPECT_EQ(2, *GPtr); 292 EXPECT_EQ(3, *GPtr);
|