/haiku-fatelf/src/add-ons/kernel/file_systems/ramfs/ |
H A D | DataContainer.cpp | 34 DataContainer::Resize(off_t newSize) argument 37 if (newSize < 0) 38 newSize = 0; 39 if (newSize != fSize) { 43 error = _Resize(newSize); 44 if (error == B_NO_MEMORY && newSize > fSize) 107 off_t newSize = offset + size; local 109 if (newSize > fSize) { 110 error = Resize(newSize); 187 DataContainer::_Resize(off_t newSize) argument 341 _ResizeLastBlock(size_t newSize) argument 403 _SwitchToSmallBufferMode(size_t newSize) argument [all...] |
H A D | SymLink.cpp | 25 SymLink::SetSize(off_t newSize) argument 27 status_t error = (newSize >= 0 && newSize < PATH_MAX ? B_OK : B_BAD_VALUE); 29 if (error == B_OK && newSize < oldSize) { 30 fLinkedPath.Truncate(newSize);
|
H A D | DataContainer.h | 42 status_t Resize(off_t newSize); 69 status_t _Resize(off_t newSize); 70 status_t _ResizeLastBlock(size_t newSize); 73 void _SwitchToSmallBufferMode(size_t newSize);
|
H A D | SymLink.h | 14 virtual status_t SetSize(off_t newSize);
|
H A D | File.cpp | 51 File::SetSize(off_t newSize) argument 55 if (newSize != oldSize) { 56 error = DataContainer::Resize(newSize);
|
H A D | File.h | 21 virtual status_t SetSize(off_t newSize);
|
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/userlandfs/r5/src/test/ramfs/ |
H A D | DataContainer.cpp | 34 DataContainer::Resize(off_t newSize) argument 37 if (newSize < 0) 38 newSize = 0; 39 if (newSize != fSize) { 43 error = _Resize(newSize); 44 if (error == B_NO_MEMORY && newSize > fSize) 107 off_t newSize = offset + size; local 109 if (newSize > fSize) { 110 error = Resize(newSize); 187 DataContainer::_Resize(off_t newSize) argument 341 _ResizeLastBlock(size_t newSize) argument 403 _SwitchToSmallBufferMode(size_t newSize) argument [all...] |
H A D | SymLink.cpp | 25 SymLink::SetSize(off_t newSize) argument 27 status_t error = (newSize >= 0 && newSize < PATH_MAX ? B_OK : B_BAD_VALUE); 29 if (error == B_OK && newSize < oldSize) { 30 fLinkedPath.Truncate(newSize);
|
H A D | DataContainer.h | 42 status_t Resize(off_t newSize); 69 status_t _Resize(off_t newSize); 70 status_t _ResizeLastBlock(size_t newSize); 73 void _SwitchToSmallBufferMode(size_t newSize);
|
H A D | SymLink.h | 14 virtual status_t SetSize(off_t newSize);
|
H A D | File.cpp | 48 File::SetSize(off_t newSize) argument 52 if (newSize != oldSize) { 53 error = DataContainer::Resize(newSize);
|
H A D | File.h | 21 virtual status_t SetSize(off_t newSize);
|
/haiku-fatelf/src/system/libroot/posix/unistd/ |
H A D | truncate.c | 26 truncate(const char *path, off_t newSize) argument 31 stat.st_size = newSize; 40 ftruncate(int fd, off_t newSize) argument 45 stat.st_size = newSize;
|
/haiku-fatelf/src/tests/system/libroot/posix/ |
H A D | truncate.cpp | 34 off_t newSize = strtoll(argv[2], NULL, 0); local 37 printf("wanted %10Ld\n", newSize); 45 if (truncate(argv[1], newSize) != 0) {
|
/haiku-fatelf/headers/posix/ |
H A D | malloc.h | 17 extern void *realloc(void *oldPointer, size_t newSize);
|
/haiku-fatelf/src/system/kernel/vm/ |
H A D | VMUserAddressSpace.h | 35 virtual bool CanResizeArea(VMArea* area, size_t newSize); 36 virtual status_t ResizeArea(VMArea* area, size_t newSize, 38 virtual status_t ShrinkAreaHead(VMArea* area, size_t newSize, 40 virtual status_t ShrinkAreaTail(VMArea* area, size_t newSize,
|
H A D | VMKernelAddressSpace.h | 40 virtual bool CanResizeArea(VMArea* area, size_t newSize); 41 virtual status_t ResizeArea(VMArea* area, size_t newSize, 43 virtual status_t ShrinkAreaHead(VMArea* area, size_t newSize, 45 virtual status_t ShrinkAreaTail(VMArea* area, size_t newSize,
|
/haiku-fatelf/src/system/libroot/posix/malloc/ |
H A D | threadheap.h | 72 size_t newSize; local 86 newSize = size + sizeof(block) + alignment; 91 void *ptr = this->malloc(newSize); 135 assert(((unsigned long)ptr + newSize) >=
|
/haiku-fatelf/src/kits/network/libnetapi/ |
H A D | DynamicBuffer.cpp | 146 size_t newSize; 148 newSize = (fBufferSize + size) * 2; 150 newSize = size; 152 unsigned char* newBuffer = new (std::nothrow) unsigned char[newSize]; 164 fBufferSize = newSize;
|
/haiku-fatelf/src/kits/app/ |
H A D | LinkSender.cpp | 231 LinkSender::AdjustBuffer(size_t newSize, char **_oldBuffer) argument 234 if (newSize <= kInitialBufferSize) 235 newSize = kInitialBufferSize; 236 else if (newSize > kMaxBufferSize) 238 else if (newSize > kInitialBufferSize) 239 newSize = (newSize + B_PAGE_SIZE - 1) & ~(B_PAGE_SIZE - 1); 241 if (newSize == fBufferSize) { 249 char *buffer = (char *)malloc(newSize); 259 fBufferSize = newSize; [all...] |
/haiku-fatelf/src/system/kernel/slab/ |
H A D | allocator.cpp | 245 realloc(void* address, size_t newSize) argument 247 if (newSize == 0) { 253 return block_alloc(newSize, 0, 0); 262 if (oldSize == newSize) 265 void* newBlock = block_alloc(newSize, 0, 0); 269 memcpy(newBlock, address, std::min(oldSize, newSize));
|
/haiku-fatelf/src/kits/interface/textview_support/ |
H A D | TextGapBuffer.cpp | 169 uint32 newSize = numChars * charLen; local 171 if ((uint32)fScratchSize < newSize) { 172 fScratchBuffer = (char*)realloc(fScratchBuffer, newSize); 173 fScratchSize = newSize; 183 *_numBytes = newSize; 216 uint32 newSize = numChars * bulletCharLen + 1; local 218 if ((uint32)fScratchSize < newSize) { 219 fScratchBuffer = (char*)realloc(fScratchBuffer, newSize); 220 fScratchSize = newSize;
|
/haiku-fatelf/src/system/boot/loader/ |
H A D | heap.cpp | 333 realloc(void* oldBuffer, size_t newSize) argument 335 if (newSize == 0) { 336 TRACE("realloc(%p, %lu) -> NULL\n", oldBuffer, newSize); 341 size_t copySize = newSize; 346 if (oldChunk->Size() >= newSize 347 && (oldChunk->Size() < 128 || newSize > oldChunk->Size() / 3)) { 349 oldBuffer, newSize); 357 void* newBuffer = malloc(newSize); 366 TRACE("realloc(%p, %lu) -> %p\n", oldBuffer, newSize, newBuffer);
|
/haiku-fatelf/src/kits/interface/ |
H A D | Region.cpp | 544 \param newSize The amount of rectangles that the region should be 548 BRegion::_SetSize(int32 newSize) argument 551 newSize = max_c(fDataSize, newSize); 552 if (newSize == fDataSize) 555 // align newSize to multiple of kDataBlockSize 556 newSize = ((newSize + kDataBlockSize - 1) / kDataBlockSize) * kDataBlockSize; 558 if (newSize > 0) { 560 fData = (clipping_rect*)malloc(newSize * sizeo [all...] |
/haiku-fatelf/headers/private/fs_shell/ |
H A D | fssh_unistd.h | 57 extern int fssh_ftruncate(int fd, fssh_off_t newSize); 58 extern int fssh_truncate(const char *path, fssh_off_t newSize);
|