Searched refs:newSize (Results 1 - 25 of 122) sorted by relevance

12345

/haiku-fatelf/src/add-ons/kernel/file_systems/ramfs/
H A DDataContainer.cpp34 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 DSymLink.cpp25 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 DDataContainer.h42 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 DSymLink.h14 virtual status_t SetSize(off_t newSize);
H A DFile.cpp51 File::SetSize(off_t newSize) argument
55 if (newSize != oldSize) {
56 error = DataContainer::Resize(newSize);
H A DFile.h21 virtual status_t SetSize(off_t newSize);
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/userlandfs/r5/src/test/ramfs/
H A DDataContainer.cpp34 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 DSymLink.cpp25 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 DDataContainer.h42 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 DSymLink.h14 virtual status_t SetSize(off_t newSize);
H A DFile.cpp48 File::SetSize(off_t newSize) argument
52 if (newSize != oldSize) {
53 error = DataContainer::Resize(newSize);
H A DFile.h21 virtual status_t SetSize(off_t newSize);
/haiku-fatelf/src/system/libroot/posix/unistd/
H A Dtruncate.c26 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 Dtruncate.cpp34 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 Dmalloc.h17 extern void *realloc(void *oldPointer, size_t newSize);
/haiku-fatelf/src/system/kernel/vm/
H A DVMUserAddressSpace.h35 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 DVMKernelAddressSpace.h40 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 Dthreadheap.h72 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 DDynamicBuffer.cpp146 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 DLinkSender.cpp231 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 Dallocator.cpp245 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 DTextGapBuffer.cpp169 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 Dheap.cpp333 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 DRegion.cpp544 \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 Dfssh_unistd.h57 extern int fssh_ftruncate(int fd, fssh_off_t newSize);
58 extern int fssh_truncate(const char *path, fssh_off_t newSize);

Completed in 197 milliseconds

12345