/haiku/src/add-ons/kernel/partitioning_systems/intel/ |
H A D | write_support.cpp | 150 off_t newSize = *size; local 152 if (newSize == partition->size) 155 if (newSize < 0) 156 newSize = 0; 158 newSize = sector_align(newSize, partition->block_size); 161 if (newSize > partition->size) { 162 *size = newSize; 168 // TODO: shouldn't be just: off_t currentEnd = newSize; ??? probably not 170 off_t currentEnd = partition->offset + newSize; [all...] |
/haiku/src/apps/diskprobe/ |
H A D | DataEditor.cpp | 1014 off_t newSize = fSize; local 1023 newSize = 0; 1025 newSize = info.size; 1029 if (fFile.GetSize(&newSize) != B_OK) 1033 if (fSize != newSize) { 1034 fSize = newSize; 1038 update.AddInt64("file_size", newSize);
|
/haiku/headers/private/net/ |
H A D | net_buffer.h | 67 status_t (*trim)(net_buffer* buffer, size_t newSize);
|
/haiku/src/tests/system/kernel/file_corruption/fs/ |
H A D | Node.cpp | 108 Node::Resize(uint64 newSize, bool fillWithZeroes, Transaction& transaction) argument
|
H A D | Node.h | 41 virtual status_t Resize(uint64 newSize, bool fillWithZeroes,
|
/haiku/src/add-ons/kernel/file_systems/ramfs/ |
H A D | Node.h | 59 virtual status_t SetSize(off_t newSize) = 0;
|
/haiku/src/add-ons/kernel/file_systems/bfs/ |
H A D | Index.cpp | 340 off_t newSize = inode->Size(); local 343 (uint8*)&oldSize, sizeof(int64), (uint8*)&newSize, sizeof(int64),
|
H A D | Inode.cpp | 104 Resize(Inode* inode, off_t oldSize, off_t newSize, bool trim) argument 109 fNewSize(newSize), 1669 Inode::FillGapWithZeros(off_t pos, off_t newSize) argument 1671 while (pos < newSize) { 1673 if (newSize > pos + 1024 * 1024 * 1024) 1676 size = newSize - pos;
|
H A D | Inode.h | 151 status_t FillGapWithZeros(off_t oldSize, off_t newSize);
|
/haiku/src/system/kernel/vm/ |
H A D | VMCache.cpp | 1171 VMCache::Resize(off_t newSize, int priority) argument 1173 TRACE(("VMCache::Resize(cache %p, newSize %" B_PRIdOFF ") old size %" 1174 B_PRIdOFF "\n", this, newSize, this->virtual_end)); 1177 T(Resize(this, newSize)); 1179 status_t status = Commit(newSize - virtual_base, priority); 1185 page_num_t newPageCount = (page_num_t)((newSize + B_PAGE_SIZE - 1) 1195 virtual_end = newSize;
|
H A D | vm.cpp | 5328 vm_resize_area(area_id areaID, size_t newSize, bool kernel) argument 5330 // is newSize a multiple of B_PAGE_SIZE? 5331 if (newSize & (B_PAGE_SIZE - 1)) 5367 if (newSize == oldSize) 5373 if (oldSize < newSize) { 5377 if (!current->address_space->CanResizeArea(current, newSize)) 5391 current->Base() + newSize, oldSize - newSize, &locker, 5407 if (oldSize < newSize) { 5409 status = cache->Resize(cache->virtual_base + newSize, priorit 6340 resize_area(area_id areaID, size_t newSize) argument 6575 _user_resize_area(area_id area, size_t newSize) argument [all...] |
H A D | VMAnonymousCache.cpp | 583 VMAnonymousCache::Resize(off_t newSize, int priority) argument 586 if (fNoSwapPages->Resize(PAGE_ALIGN(newSize) >> PAGE_SHIFT) != B_OK) 590 _FreeSwapPageRange(newSize + B_PAGE_SIZE - 1, 592 return VMCache::Resize(newSize, priority);
|
/haiku/src/add-ons/kernel/network/stack/ |
H A D | net_buffer.cpp | 159 static status_t trim_data(net_buffer* _buffer, size_t newSize); 1885 /*! Trims the buffer to the specified \a newSize by removing space from 1889 trim_data(net_buffer* _buffer, size_t newSize) argument 1892 TRACE(("%d: trim_data(buffer %p, newSize = %ld, buffer size = %" B_PRIu32 ")\n", 1893 find_thread(NULL), buffer, newSize, buffer->size)); 1894 T(Trim(buffer, newSize)); 1899 if (newSize > buffer->size) 1901 if (newSize == buffer->size) 1904 data_node* node = get_node_at_offset(buffer, newSize); 1910 int32 diff = node->used + node->offset - newSize; [all...] |
/haiku/src/add-ons/kernel/file_systems/ext2/ |
H A D | ext2.h | 642 void SetSize(off_t newSize) argument 644 size = B_HOST_TO_LENDIAN_INT32(newSize & 0xFFFFFFFF); 646 size_high = B_HOST_TO_LENDIAN_INT32(newSize >> 32); 666 void SetExtraInodeSize(uint16 newSize) argument 668 extra_inode_size = B_HOST_TO_LENDIAN_INT16(newSize);
|
/haiku/src/apps/serialconnect/ |
H A D | TermView.cpp | 185 VTermRect newSize = _PixelsToGlyphs(BRect(0, 0, width - 2 * kBorderSpacing, local 187 vterm_set_size(fTerm, newSize.end_row, newSize.end_col);
|
/haiku/src/system/kernel/cache/ |
H A D | file_cache.cpp | 1253 file_cache_set_size(void* _cacheRef, off_t newSize) argument 1257 TRACE(("file_cache_set_size(ref = %p, size = %lld)\n", ref, newSize)); 1266 status_t status = cache->Resize(newSize, VM_PRIORITY_USER); 1269 if (status == B_OK && newSize < oldSize) { 1272 uint32 partialBytes = newSize % B_PAGE_SIZE; 1274 vm_page* page = cache->LookupPage(newSize - partialBytes);
|
/haiku/src/bin/rc/ |
H A D | parser.y | 688 resize_data(data_t data, size_t newSize) 690 if (newSize == 0) { 691 abort_compile(RDEF_COMPILE_ERR, "invalid size %lu", newSize); 692 } else if (data.size != newSize) { 693 void* newBuffer = alloc_mem(newSize); 695 memset(newBuffer, 0, newSize); 696 memcpy(newBuffer, data.ptr, min(data.size, newSize)); 699 ((char*)newBuffer)[newSize - 1] = '\0'; 703 data.size = newSize;
|
/haiku/headers/posix/ |
H A D | unistd.h | 360 extern int ftruncate(int fd, off_t newSize); 361 extern int truncate(const char *path, off_t newSize);
|
H A D | stdlib.h | 53 extern void *realloc(void *oldPointer, size_t newSize);
|
/haiku/headers/private/kernel/vm/ |
H A D | vm.h | 185 status_t _user_resize_area(area_id area, size_t newSize);
|
H A D | VMCache.h | 133 virtual status_t Resize(off_t newSize, int priority);
|
/haiku/src/system/kernel/fs/ |
H A D | vfs.cpp | 3655 resize_monitor_table(struct io_context* context, const int newSize) argument 3659 if (newSize <= 0 || newSize > MAX_NODE_MONITORS) 3664 if ((size_t)newSize < context->num_monitors) { 3668 context->max_monitors = newSize; 5041 vfs_resize_fd_table(struct io_context* context, uint32 newSize) argument 5043 if (newSize == 0 || newSize > MAX_FD_TABLE_SIZE) 5046 TIOC(ResizeIOContext(context, newSize)); 5052 int newCloseOnExitBitmapSize = (newSize [all...] |
/haiku/src/apps/mediaplayer/ |
H A D | MainWin.cpp | 2067 int newSize = percent * (100 + percentDiff) / 100; local 2069 if (newSize < 25) 2070 newSize = 25; 2071 if (newSize > 400) 2072 newSize = 400; 2073 if (newSize != percent) { 2075 message.AddInt32("size", newSize);
|
/haiku/src/build/libroot/ |
H A D | fs.cpp | 1475 _haiku_build_ftruncate(int fd, off_t newSize) argument 1478 return ftruncate(fd, newSize); 1481 st.st_size = newSize;
|
/haiku/src/kits/interface/ |
H A D | TextControl.cpp | 1208 BSize newSize(Bounds().Size()); 1212 if (newSize != oldSize)
|