/haiku/src/tools/bfs_shell/ |
H A D | command_resizefs.cpp | 25 uint64 newSize; local 26 if (fssh_sscanf(argv[1], "%" B_SCNu64, &newSize) < 1) { 38 &newSize, sizeof(newSize));
|
/haiku/src/system/libroot/posix/unistd/ |
H A D | truncate.c | 19 truncate(const char *path, off_t newSize) argument 24 stat.st_size = newSize; 33 ftruncate(int fd, off_t newSize) argument 38 stat.st_size = newSize;
|
/haiku/src/add-ons/kernel/file_systems/ramfs/ |
H A D | SymLink.cpp | 28 SymLink::SetSize(off_t newSize) argument 30 status_t error = (newSize >= 0 && newSize < PATH_MAX ? B_OK : B_BAD_VALUE); 32 if (error == B_OK && newSize < oldSize) { 33 fLinkedPath.Truncate(newSize);
|
H A D | SymLink.h | 16 virtual status_t SetSize(off_t newSize);
|
H A D | File.cpp | 54 File::SetSize(off_t newSize) argument 58 if (newSize != oldSize) { 59 error = DataContainer::Resize(newSize);
|
H A D | File.h | 23 virtual status_t SetSize(off_t newSize);
|
/haiku/src/tests/system/libroot/posix/ |
H A D | truncate.cpp | 35 off_t newSize = strtoll(argv[2], NULL, 0); local 38 printf("wanted %10Ld\n", newSize); 46 if (truncate(argv[1], newSize) != 0) { 58 if (ftruncate(fd, newSize) == 0 || errno != EINVAL) {
|
/haiku/src/system/libroot/posix/malloc_hoard2/ |
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/headers/posix/ |
H A D | malloc.h | 17 extern void *realloc(void *oldPointer, size_t newSize);
|
/haiku/src/system/runtime_loader/ |
H A D | utility.h | 78 size_t newSize = std::max(fMaxSize * 2, size_t(4)); local 79 T* newBuffer = new T[newSize]; 85 fMaxSize = newSize;
|
H A D | heap.cpp | 203 size_t newSize = (addr_t)chunk - (addr_t)this; local 204 chunk->fSize = fSize - newSize; 207 fSize = newSize; 377 realloc(void* oldBuffer, size_t newSize) argument 379 if (newSize == 0) { 380 TRACE(("realloc(%p, %lu) -> NULL\n", oldBuffer, newSize)); 393 if (oldSize >= newSize 394 && (oldSize < 128 || newSize > oldSize / 3)) { 396 oldBuffer, newSize)); 401 void* newBuffer = malloc(newSize); [all...] |
/haiku/src/kits/network/libnetapi/ |
H A D | DynamicBuffer.cpp | 147 size_t newSize; 149 newSize = (fBufferSize + size) * 2; 151 newSize = size; 153 unsigned char* newBuffer = new (std::nothrow) unsigned char[newSize]; 164 fBufferSize = newSize;
|
/haiku/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/src/system/kernel/vm/ |
H A D | VMUserAddressSpace.h | 37 virtual bool CanResizeArea(VMArea* area, size_t newSize); 38 virtual status_t ResizeArea(VMArea* area, size_t newSize, 40 virtual status_t ShrinkAreaHead(VMArea* area, size_t newSize, 42 virtual status_t ShrinkAreaTail(VMArea* area, size_t newSize,
|
H A D | VMKernelAddressSpace.h | 42 virtual bool CanResizeArea(VMArea* area, size_t newSize); 43 virtual status_t ResizeArea(VMArea* area, size_t newSize, 45 virtual status_t ShrinkAreaHead(VMArea* area, size_t newSize, 47 virtual status_t ShrinkAreaTail(VMArea* area, size_t newSize,
|
/haiku/src/kits/interface/textview_support/ |
H A D | TextGapBuffer.cpp | 171 uint32 newSize = numChars * charLen; 173 if ((uint32)fScratchSize < newSize) { 174 fScratchBuffer = (char*)realloc(fScratchBuffer, newSize); 175 fScratchSize = newSize; 185 *_numBytes = newSize; 218 uint32 newSize = numChars * bulletCharLen + 1; 220 if ((uint32)fScratchSize < newSize) { 221 fScratchBuffer = (char*)realloc(fScratchBuffer, newSize); 222 fScratchSize = newSize;
|
/haiku/src/kits/interface/ |
H A D | Region.cpp | 436 \fn bool BRegion::_SetSize(int32 newSize) 439 \param newSize The amount of rectangles that the region should be 443 BRegion::_SetSize(int32 newSize) argument 446 newSize = max_c(fDataSize, newSize); 448 if (newSize == fDataSize) 451 // align newSize to multiple of kDataBlockSize 452 newSize = ((newSize + kDataBlockSize - 1) / kDataBlockSize) * kDataBlockSize; 454 if (newSize > [all...] |
/haiku/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);
|
/haiku/src/add-ons/kernel/file_systems/reiserfs/ |
H A D | List.h | 320 int32 newSize = count; local 321 if (newSize <= 0) 322 newSize = 1; 323 newSize = ((newSize - 1) / fChunkSize + 1) * fChunkSize; 325 if ((size_t)newSize != fCapacity) { 327 = (item_t*)realloc(fItems, newSize * sizeof(item_t)); 330 fCapacity = newSize;
|
/haiku/src/system/libroot/os/ |
H A D | area.c | 56 resize_area(area_id id, size_t newSize) argument 58 return _kern_resize_area(id, newSize);
|
/haiku/src/system/kernel/slab/ |
H A D | allocator.cpp | 259 realloc_etc(void* address, size_t newSize, uint32 flags) argument 261 if (newSize == 0) { 267 return block_alloc(newSize, 0, flags); 276 if (oldSize == newSize) 279 void* newBlock = block_alloc(newSize, 0, flags); 283 memcpy(newBlock, address, std::min(oldSize, newSize)); 292 realloc(void* address, size_t newSize) argument 294 return realloc_etc(address, newSize, 0);
|
/haiku/headers/private/kernel/util/ |
H A D | MultiHashTable.h | 155 bool _Resize(size_t newSize) argument 157 ValueType **newTable = new ValueType *[newSize]; 161 for (size_t i = 0; i < newSize; i++) 169 _Insert(newTable, newSize, bucket); 177 HashTable::fTableSize = newSize;
|
/haiku/src/libs/icon/flat_icon/ |
H A D | LittleEndianBuffer.cpp | 158 size_t newSize = fSize; local 159 while (newSize < neededSize) 160 newSize += CHUNK_SIZE; 163 if (newSize > fSize) 164 _SetSize(newSize);
|
/haiku/src/system/boot/loader/ |
H A D | heap.cpp | 321 size_t newSize = (addr_t)chunk - (addr_t)this; local 322 chunk->fSize = fSize - newSize; 325 fSize = newSize; 505 realloc(void* oldBuffer, size_t newSize) argument 507 if (newSize == 0) { 508 TRACE("realloc(%p, %lu) -> NULL\n", oldBuffer, newSize); 522 newSize); 529 if (oldSize >= newSize 530 && (oldSize < 128 || newSize > oldSize / 3)) { 532 oldBuffer, newSize); [all...] |
/haiku/src/kits/storage/ |
H A D | ResourceStrings.cpp | 266 \param newSize the new hash table size 272 BResourceStrings::_Rehash(int32 newSize) argument 275 if (newSize > 0 && newSize != fHashTableSize) { 278 = new(nothrow) _string_id_hash*[newSize]; 280 memset(newHashTable, 0, sizeof(_string_id_hash*) * newSize); 286 int32 newPos = entry->id % newSize; 295 fHashTableSize = newSize;
|