/haiku/headers/private/support/ |
H A D | DataPositionIOWrapper.h | 17 virtual ssize_t Read(void* buffer, size_t size); 18 virtual ssize_t Write(const void* buffer, size_t size); 21 size_t size); 23 size_t size); 28 virtual status_t SetSize(off_t size); 29 virtual status_t GetSize(off_t* size) const;
|
/haiku/headers/private/kernel/arch/ |
H A D | user_memory.h | 18 status_t _arch_cpu_user_memcpy(void* to, const void* from, size_t size, 20 ssize_t _arch_cpu_user_strlcpy(char* to, const char* from, size_t size, 29 arch_cpu_user_memcpy(void* to, const void* from, size_t size) argument 31 return _arch_cpu_user_memcpy(to, from, size, 37 arch_cpu_user_strlcpy(char* to, const char* from, size_t size) argument 39 return _arch_cpu_user_strlcpy(to, from, size,
|
/haiku/src/bin/ |
H A D | safemode.c | 21 size_t size = sizeof(buffer); local 39 status = _kern_get_safemode_option(optionName, buffer, &size); 45 if (!strncasecmp(buffer, "true", size) 46 || !strncasecmp(buffer, "yes", size) 47 || !strncasecmp(buffer, "on", size) 48 || !strncasecmp(buffer, "enabled", size)) {
|
/haiku/src/system/libroot/posix/malloc_hoard2/ |
H A D | arch-specific.cpp | 43 size_t size; member in struct:free_chunk 52 // the steps in which to increase the heap size (must be a power of 2) 92 // size of the heap is guaranteed until the space is really needed. 129 if (chunk->size < newChunk->size) 148 hoardSbrk(long size) argument 150 assert(size > 0); 151 CTRACE(("sbrk: size = %ld\n", size)); 153 // align size reques 292 hoardUnsbrk(void *ptr, long size) argument [all...] |
/haiku/src/add-ons/kernel/busses/scsi/ahci/ |
H A D | util.h | 14 area_id alloc_mem(void **virt, phys_addr_t *phy, size_t size, uint32 protection, 16 area_id map_mem(void **virt, phys_addr_t phy, size_t size, uint32 protection, 21 void swap_words(void *data, size_t size);
|
/haiku/src/kits/storage/ |
H A D | FileDescriptorIO.cpp | 31 BFileDescriptorIO::Read(void* buffer, size_t size) argument 33 ssize_t bytesRead = read(fFD, buffer, size); 39 BFileDescriptorIO::Write(const void* buffer, size_t size) argument 41 ssize_t bytesWritten = write(fFD, buffer, size); 47 BFileDescriptorIO::ReadAt(off_t position, void* buffer, size_t size) argument 49 ssize_t bytesRead = pread(fFD, buffer, size, position); 55 BFileDescriptorIO::WriteAt(off_t position, const void* buffer, size_t size) argument 57 ssize_t bytesWritten = pwrite(fFD, buffer, size, position); 79 BFileDescriptorIO::SetSize(off_t size) argument 81 return ftruncate(fFD, size) [all...] |
/haiku/src/apps/haikudepot/model/ |
H A D | IconTarPtr.h | 28 bool HasOffset(BitmapSize size) const; 29 off_t Offset(BitmapSize size) const; 30 void SetOffset(BitmapSize size, off_t value);
|
/haiku/src/apps/icon-o-matic/import_export/flat_icon/ |
H A D | SourceExporter.cpp | 50 size_t size = strlen(buffer); local 52 ssize_t written = stream->Write(buffer, size); 55 if (written < (ssize_t)size) 70 size = strlen(buffer); 71 written = stream->Write(buffer, size); 72 if (written != (ssize_t)size) { 90 size = strlen(buffer); 91 written = stream->Write(buffer, size); 92 if (written != (ssize_t)size) { 104 size [all...] |
/haiku/headers/cpp/ |
H A D | SFile.h | 38 long sz; // unit size for structured binary IO 42 SFile(int fd, int size); 43 SFile(const char *name, int size, int mode, int prot=0664); 44 void open(const char *name, int size, int mode, int prot=0664); 46 int size() { return sz; } function in class:SFile
|
/haiku/src/add-ons/kernel/file_systems/netfs/shared/ |
H A D | PortChannel.cpp | 95 PortChannel::Send(const void* _buffer, int32 size) argument 97 if (size == 0) 99 if (!_buffer || size < 0) 102 while (size > 0) { 103 int32 sendSize = min(size, fBufferSize); 104 status_t error = write_port(fSendPort, 0, buffer, size); 107 size -= sendSize; 115 PortChannel::Receive(void* _buffer, int32 size) argument 117 if (size == 0) 119 if (!_buffer || size < [all...] |
/haiku/src/add-ons/kernel/file_systems/userlandfs/private/ |
H A D | AreaSupport.cpp | 7 UserlandFSUtil::get_area_for_address(void* address, int32 size, area_id* area, argument 11 if (!area || !offset || size < 0) 27 // check the size 29 if (*offset + size > (int32)areaInfo.size)
|
/haiku/src/system/libroot/posix/glibc/libio/ |
H A D | iofread.c | 31 _IO_fread (buf, size, count, fp) 33 _IO_size_t size; 37 _IO_size_t bytes_requested = size * count; 47 return bytes_requested == bytes_read ? count : bytes_read / size;
|
/haiku/src/kits/network/libnetapi/ |
H A D | DynamicBuffer.cpp | 73 DynamicBuffer::Write(const void* data, size_t size) argument 78 status_t result = _GrowToFit(size); 82 memcpy(fBuffer + fDataEnd, data, size); 83 fDataEnd += size; 85 return (ssize_t)size; 90 DynamicBuffer::Read(void* data, size_t size) argument 95 size = std::min(size, Size()); 96 if (size == 0) 99 memcpy(data, fBuffer + fDataStart, size); 142 _GrowToFit(size_t size, bool exact) argument [all...] |
/haiku/src/system/boot/platform/bios_ia32/ |
H A D | mmu.h | 30 extern addr_t mmu_map_physical_memory(addr_t physicalAddress, size_t size, uint32 flags); 31 extern void *mmu_allocate(void *virtualAddress, size_t size); 33 extern bool mmu_allocate_physical(addr_t base, size_t size); 34 extern void mmu_free(void *virtualAddress, size_t size);
|
/haiku/src/tests/kits/media/nodetest/ |
H A D | misc.cpp | 20 void val_size(ssize_t size) argument 22 if (size >= 0) 25 out("failed, size %" B_PRIdSSIZE ", error %s\n", size, strerror(size));
|
/haiku/src/kits/debugger/model/ |
H A D | SymbolInfo.cpp | 19 SymbolInfo::SymbolInfo(target_addr_t address, target_size_t size, uint32 type, argument 23 fSize(size), 36 SymbolInfo::SetTo(target_addr_t address, target_size_t size, uint32 type, argument 40 fSize = size;
|
/haiku/src/add-ons/kernel/file_systems/bfs/ |
H A D | ResizeVisitor.cpp | 18 ResizeVisitor::Resize(off_t size, disk_job_id job) argument
|
/haiku/src/system/boot/platform/riscv/ |
H A D | fixed_font.S | 12 .size gFixedFont, .-gFixedFont
|
/haiku/headers/os/net/ |
H A D | NetDebug.h | 52 static void Dump(const char *data, size_t size, const char *title);
|
/haiku/src/libs/compat/freebsd_network/compat/vm/ |
H A D | vm_extern.h | 54 vm_addr_bound_ok(vm_paddr_t pa, vm_paddr_t size, vm_paddr_t boundary) argument 58 return (((pa ^ (pa + size - 1)) & -boundary) == 0); 62 vm_addr_ok(vm_paddr_t pa, vm_paddr_t size, u_long alignment, argument 66 vm_addr_bound_ok(pa, size, boundary));
|
/haiku/src/libs/agg/src/ |
H A D | agg_vcgen_markers_term.cpp | 37 if(m_markers.size() & 1) 53 if(m_markers.size() & 1) 58 m_markers.add(m_markers[m_markers.size() - 1]); 59 m_markers.add(m_markers[m_markers.size() - 3]); 63 if(m_markers.size()) 66 m_markers[m_markers.size() - 1] = m_markers[m_markers.size() - 2]; 67 m_markers[m_markers.size() - 2] = coord_type(x, y); 86 if(m_curr_id > 2 || m_curr_idx >= m_markers.size())
|
/haiku/src/system/kernel/device_manager/ |
H A D | io_requests.cpp | 15 transfer_io_request_data(io_request* request, void* buffer, size_t size, argument 19 || request->RemainingBytes() < size) { 35 ? request->CopyData(buffer, offset, size) 36 : request->CopyData(offset, buffer, size); 40 request->Advance(size); 88 Multiple calls to read_from_io_request() are allowed, but the total size 92 read_from_io_request(io_request* request, void* buffer, size_t size) argument 94 return transfer_io_request_data(request, buffer, size, false); 100 Multiple calls to write_to_io_request() are allowed, but the total size 104 write_to_io_request(io_request* request, const void* buffer, size_t size) argument [all...] |
/haiku/headers/private/kernel/boot/ |
H A D | addr_range.h | 15 uint64 size; member in struct:addr_range 24 uint32 maxRanges, uint64 start, uint64 size); 26 uint32 maxRanges, uint64 start, uint64 size); 28 uint64 size, uint64* _rangeBase); 30 uint64 size); 34 status_t insert_physical_memory_range(uint64 start, uint64 size); 35 status_t remove_physical_memory_range(uint64 start, uint64 size); 38 status_t insert_physical_allocated_range(uint64 start, uint64 size); 39 status_t insert_virtual_allocated_range(uint64 start, uint64 size);
|
/haiku/src/servers/app/ |
H A D | ClientMemoryAllocator.cpp | 67 ClientMemoryAllocator::Allocate(size_t size, block** _address, bool& newArea) argument 82 if (block->size >= size && (best == NULL || block->size < best->size)) 89 best = _AllocateChunk(size, newArea); 98 if (best->size == size) { 99 // The simple case: the free block has exactly the size we wanted to have 113 usedBlock->size 230 _AllocateChunk(size_t size, bool& newArea) argument 336 Allocate(ClientMemoryAllocator* allocator, size_t size, bool& newArea) argument [all...] |
/haiku/src/system/kernel/debug/ |
H A D | debug_heap.cpp | 25 uint32 size : 31; // size in allocation_header units member in struct:allocation_header 42 uint32 size = heapSize / 8; local 44 fEnd = size + 1; 49 fBase[1].size = size - 1; 67 if (fLastFree == 0 || fBase[fLastFree].size < 2) { 75 pool->Init(header + 1, header->size * 8); 94 void* Allocate(size_t size) argument 96 size 171 uint32 size = fBase[index].size; local 272 debug_malloc(size_t size) argument 282 debug_calloc(size_t num, size_t size) argument [all...] |