Home
last modified time | relevance | path

Searched refs:oldSize (Results 1 – 25 of 34) sorted by relevance

12

/haiku/src/add-ons/kernel/file_systems/ramfs/
H A DFile.cpp37 off_t oldSize = DataContainer::GetSize(); in WriteAt() local
43 if (oldSize != DataContainer::GetSize()) { in WriteAt()
47 index->Changed(this, oldSize); in WriteAt()
57 off_t oldSize = DataContainer::GetSize(); in SetSize() local
58 if (newSize != oldSize) { in SetSize()
63 index->Changed(this, oldSize); in SetSize()
H A DSymLink.cpp31 int32 oldSize = GetLinkedPathLength(); in SetSize() local
32 if (error == B_OK && newSize < oldSize) { in SetSize()
37 index->Changed(this, oldSize); in SetSize()
H A DSizeIndex.cpp146 SizeIndex::Changed(Node *node, off_t oldSize) in Changed() argument
151 Node **foundNode = fNodes->Find(SizeIndexPrimaryKey(node, oldSize), in Changed()
169 (const uint8*)&oldSize, sizeof(oldSize), (const uint8*)&newSize, in Changed()
H A DAttribute.cpp58 off_t oldSize = DataContainer::GetSize(); in SetSize() local
59 if (newSize != oldSize) { in SetSize()
H A DSizeIndex.h20 virtual status_t Changed(Node *node, off_t oldSize);
/haiku/src/kits/debugger/util/
H A DBitBuffer.cpp84 size_t oldSize = fBytes.Size(); in AddBytes() local
88 memcpy(fBytes.Elements() + oldSize, data, size); in AddBytes()
108 size_t oldSize = fBytes.Size(); in AddBits() local
112 fBytes[oldSize - 1] |= bits; in AddBits()
122 fBytes[oldSize - 1] |= reader.ReadBits(fMissingBits); in AddBits()
127 uint8* buffer = fBytes.Elements() + oldSize; in AddBits()
150 size_t oldSize = fBytes.Size(); in AddZeroBits() local
167 uint8* buffer = fBytes.Elements() + oldSize; in AddZeroBits()
/haiku/src/system/kernel/slab/
H A Dallocator.cpp268 size_t oldSize; in realloc_etc() local
269 ObjectCache* cache = MemoryManager::GetAllocationInfo(address, oldSize); in realloc_etc()
270 if (cache == NULL && oldSize == 0) { in realloc_etc()
275 if (oldSize == newSize) in realloc_etc()
282 memcpy(newBlock, address, std::min(oldSize, newSize)); in realloc_etc()
/haiku/src/add-ons/kernel/file_systems/packagefs/indices/
H A DSizeIndex.cpp204 off_t oldSize = oldAttributes.FileSize(); in NodeChanged() local
206 if (newSize == oldSize) in NodeChanged()
210 Node** foundNode = fNodes->Find(SizeIndexPrimaryKey(node, oldSize), node, in NodeChanged()
239 (const uint8*)&oldSize, sizeof(oldSize), (const uint8*)&newSize, in NodeChanged()
/haiku/src/system/runtime_loader/
H A Dheap.cpp387 size_t oldSize = 0; in realloc() local
390 oldSize = oldChunk->Size(); in realloc()
393 if (oldSize >= newSize in realloc()
394 && (oldSize < 128 || newSize > oldSize / 3)) { in realloc()
406 memcpy(newBuffer, oldBuffer, std::min(oldSize, newSize)); in realloc()
H A Delf_tls.cpp282 unsigned oldSize = _Size(); in _ResizeVector() local
283 if (size <= oldSize) in _ResizeVector()
291 memset((void*)(*fVector + oldSize + 1), 0, (size - oldSize) * sizeof(TLSBlock)); in _ResizeVector()
/haiku/src/add-ons/kernel/file_systems/ext2/
H A DInode.cpp280 off_t oldSize = Size(); in WriteAt() local
284 oldSize >> 32, oldSize & 0xFFFFFFFF, in WriteAt()
287 if (end > oldSize) { in WriteAt()
305 if (oldSize < pos) in WriteAt()
306 FillGapWithZeros(oldSize, pos); in WriteAt()
363 off_t oldSize = Size(); in Resize() local
365 if (size == oldSize) in Resize()
369 "\n", oldSize, size); in Resize()
372 if (size > oldSize) { in Resize()
376 _ShrinkDataStream(transaction, oldSize); in Resize()
[all …]
/haiku/src/system/boot/loader/
H A Dheap.cpp530 size_t oldSize = 0; in realloc() local
534 oldSize = oldChunk->Size(); in realloc()
542 oldSize = allocation->Size(); in realloc()
546 if (oldSize >= newSize in realloc()
547 && (oldSize < 128 || newSize > oldSize / 3)) { in realloc()
559 memcpy(newBuffer, oldBuffer, std::min(oldSize, newSize)); in realloc()
/haiku/src/preferences/time/
H A DNetworkTimeView.cpp174 ssize_t oldSize = fOldMessage.FlattenedSize(); in SettingsChanged() local
177 if (oldSize != newSize || oldSize < 0 || newSize < 0) in SettingsChanged()
180 char* oldBytes = new (std::nothrow) char[oldSize]; in SettingsChanged()
184 fOldMessage.Flatten(oldBytes, oldSize); in SettingsChanged()
192 int result = memcmp(oldBytes, newBytes, oldSize); in SettingsChanged()
/haiku/src/apps/mediaplayer/interface/
H A DSymbolButton.cpp110 BSize oldSize = MinSize(); in SetSymbol() local
115 if (MinSize() != oldSize) in SetSymbol()
H A DPlayPauseButton.cpp170 BSize oldSize = MinSize(); in SetSymbols() local
177 if (MinSize() != oldSize) in SetSymbols()
/haiku/src/add-ons/kernel/file_systems/nfs4/
H A DMetadataCache.cpp78 off_t oldSize = fStatCache.st_size; in GrowFile() local
81 if (oldSize != fStatCache.st_size) { in GrowFile()
/haiku/src/system/kernel/vm/
H A DVMUserAddressSpace.cpp286 size_t oldSize = area->Size(); in ShrinkAreaHead() local
287 if (size == oldSize) in ShrinkAreaHead()
290 area->SetBase(area->Base() + oldSize - size); in ShrinkAreaHead()
301 size_t oldSize = area->Size(); in ShrinkAreaTail() local
302 if (size == oldSize) in ShrinkAreaTail()
H A Dvm.cpp779 const addr_t oldSize = area->Size(); in cut_area() local
793 addressSpace->ShrinkAreaTail(area, oldSize, allocationFlags); in cut_area()
842 size_t oldBytes = area_page_protections_size(oldSize); in cut_area()
843 ssize_t pagesShifted = (oldSize - area->Size()) / B_PAGE_SIZE; in cut_area()
903 addressSpace->ShrinkAreaTail(area, oldSize, allocationFlags); in cut_area()
923 addressSpace->ShrinkAreaTail(area, oldSize, allocationFlags); in cut_area()
958 cache->Resize(cache->virtual_base + oldSize, priority); in cut_area()
975 addressSpace->ShrinkAreaTail(area, oldSize, allocationFlags); in cut_area()
990 addressSpace->ShrinkAreaTail(area, oldSize, allocationFlags); in cut_area()
1009 const size_t oldBytes = area_page_protections_size(oldSize); in cut_area()
[all …]
/haiku/src/add-ons/kernel/file_systems/bfs/
H A DIndex.cpp339 off_t oldSize = inode->OldSize(); in UpdateSize() local
343 (uint8*)&oldSize, sizeof(int64), (uint8*)&newSize, sizeof(int64), in UpdateSize()
H A DInode.cpp104 Resize(Inode* inode, off_t oldSize, off_t newSize, bool trim) in Resize() argument
108 fOldSize(oldSize), in Resize()
1619 off_t oldSize = Size(); in WriteAt() local
1621 if ((uint64)pos + (uint64)length > (uint64)oldSize) { in WriteAt()
1645 if (oldSize < pos) in WriteAt()
1646 FillGapWithZeros(oldSize, pos); in WriteAt()
2275 off_t oldSize = Size(); in SetFileSize() local
2277 if (size == oldSize) in SetFileSize()
2280 T(Resize(this, oldSize, size, false)); in SetFileSize()
2284 if (size > oldSize) { in SetFileSize()
[all …]
H A DInode.h151 status_t FillGapWithZeros(off_t oldSize, off_t newSize);
/haiku/src/system/libroot/posix/malloc/debug/
H A Dguarded_heap.cpp766 size_t oldSize; in guarded_heap_realloc() local
775 oldSize = page.allocation_size; in guarded_heap_realloc()
783 oldSize = page->allocation_size; in guarded_heap_realloc()
786 if (oldSize == newSize) in guarded_heap_realloc()
794 memcpy(newBlock, address, min_c(oldSize, newSize)); in guarded_heap_realloc()
/haiku/src/apps/remotedesktop/
H A DRemoteView.cpp1164 float oldSize = offscreen->PenSize(); in _DrawThread() local
1175 offscreen->SetPenSize(oldSize); in _DrawThread()
1195 float oldSize = PenSize(); in _DrawThread() local
1198 offscreen->SetPenSize(oldSize); in _DrawThread()
/haiku/src/system/kernel/
H A Dguarded_heap.cpp559 size_t oldSize = page.allocation_size; in guarded_heap_realloc() local
562 if (oldSize == newSize) in guarded_heap_realloc()
569 memcpy(newBlock, address, min_c(oldSize, newSize)); in guarded_heap_realloc()
/haiku/src/kits/tracker/
H A DStatusWindow.cpp725 float oldSize = font.Size(); in _StatusString() local
735 font.SetSize(oldSize); in _StatusString()

12