/haiku/src/libs/gnu/ |
H A D | crypt.cpp | 9 extern "C" char *_crypt_rn(const char* key, const char* setting, struct crypt_data* data, size_t size); 13 crypt_rn(const char* key, const char* setting, struct crypt_data* data, size_t size) argument 15 return _crypt_rn(key, setting, data, size);
|
/haiku/src/libs/compat/freebsd_network/compat/sys/ |
H A D | malloc.h | 35 void *_kernel_malloc(size_t size, int flags); 38 void *_kernel_contigmalloc(const char *file, int line, size_t size, int flags, 41 void _kernel_contigfree(void *addr, unsigned long size); 43 #define kernel_malloc(size, base, flags) \ 44 _kernel_malloc(size, flags) 49 #define kernel_contigmalloc(size, type, flags, low, high, alignment, boundary) \ 50 _kernel_contigmalloc(__FILE__, __LINE__, size, flags, low, high, \ 53 #define kernel_contigfree(addr, size, base) \ 54 _kernel_contigfree(addr, size) 57 # define malloc(size, ta [all...] |
/haiku/src/system/libroot/posix/glibc/libio/ |
H A D | iosetbuffer.c | 31 _IO_setbuffer (fp, buf, size) 34 _IO_size_t size; 41 size = 0; 42 (void) _IO_SETBUF (fp, buf, size); 45 (void) _IO_WSETBUF (fp, buf, size);
|
H A D | wfiledoalloc.c | 80 * optimisation) right after the _fstat() that finds the buffer size. 87 _IO_size_t size; local 99 size = _IO_BUFSIZ; 109 size = st.st_blksize <= 0 ? _IO_BUFSIZ : st.st_blksize; 111 size = _IO_BUFSIZ; 114 ALLOC_WBUF (p, size * sizeof (wchar_t), EOF); 115 INTUSE(_IO_wsetb) (fp, p, p + size, 1);
|
/haiku/src/tests/servers/input/comm/ |
H A D | port.cpp | 15 ssize_t size = port_buffer_size(port); local 16 printf("size : %ld\n", size); 18 char buffer[size]; 21 if ((newsize = read_port(port, &code, buffer, size))==size) {
|
/haiku/src/tests/system/libroot/posix/ |
H A D | test_confstr.c | 12 size_t size; local 14 size = confstr(i, NULL, (size_t) 0); 16 printf("%ld confstr %ld %s\n", i, size, strerror(errno)); 17 if (size != 0) { 18 size = confstr(i, string, sizeof(string));
|
/haiku/src/kits/support/ |
H A D | DataPositionIOWrapper.cpp | 27 BDataPositionIOWrapper::Read(void* buffer, size_t size) argument 29 ssize_t bytesRead = fIO->Read(buffer, size); 38 BDataPositionIOWrapper::Write(const void* buffer, size_t size) argument 40 ssize_t bytesWritten = fIO->Write(buffer, size); 49 BDataPositionIOWrapper::ReadAt(off_t position, void* buffer, size_t size) argument 54 return Read(buffer, size); 60 size_t size) 65 return Write(buffer, size); 93 BDataPositionIOWrapper::SetSize(off_t size) argument 95 return size 59 WriteAt(off_t position, const void* buffer, size_t size) argument [all...] |
/haiku/src/tests/servers/app/text_rendering/ |
H A D | main.cpp | 21 float size = 2.0f; local 24 while (size < 48 && y - size < bounds.bottom) { 25 font.SetSize(size); 29 textAndSize << " (" << size << ")"; local 33 y = (int)(y + size * 1.2f); 34 size *= 1.08;
|
/haiku/src/system/libroot/posix/glibc/arch/x86/ |
H A D | addmul_1.S | 34 #define size ecx define 48 movl SIZE(%esp), %size 51 shll $2, %size /* convert limbs to bytes */ 52 CHECK_BOUNDS_BOTH_WIDE (%res_ptr, RES(%esp), %size) 53 CHECK_BOUNDS_BOTH_WIDE (%s1_ptr, S1(%esp), %size) 54 shrl $2, %size 56 leal (%res_ptr,%size,4), %res_ptr 57 leal (%s1_ptr,%size,4), %s1_ptr 58 negl %size 63 movl (%s1_ptr,%size, [all...] |
/haiku/src/tools/restest/ |
H A D | OffsetFile.cpp | 57 //OffsetFile::Read(void *buffer, size_t size) 59 // return fFile.Read(buffer, size); 64 //OffsetFile::Write(const void *buffer, size_t size) 66 // return fFile.Write(buffer, size); 71 OffsetFile::ReadAt(off_t pos, void *buffer, size_t size) argument 73 //printf("ReadAt(%Lx + %Lx, %lu)\n", pos, fOffset, size); 74 return fFile.ReadAt(pos + fOffset, buffer, size); 79 OffsetFile::WriteAt(off_t pos, const void *buffer, size_t size) argument 81 return fFile.WriteAt(pos + fOffset, buffer, size); 100 off_t size; local 131 SetSize(off_t size) argument 141 GetSize(off_t* size) argument [all...] |
/haiku/src/libs/agg/src/ |
H A D | agg_vcgen_bspline.cpp | 72 if(m_status == initial && m_src_vertices.size() > 2) 76 m_spline_x.init(m_src_vertices.size() + 8); 77 m_spline_y.init(m_src_vertices.size() + 8); 78 m_spline_x.add_point(0.0, m_src_vertices.prev(m_src_vertices.size() - 3).x); 79 m_spline_y.add_point(0.0, m_src_vertices.prev(m_src_vertices.size() - 3).y); 80 m_spline_x.add_point(1.0, m_src_vertices[m_src_vertices.size() - 3].x); 81 m_spline_y.add_point(1.0, m_src_vertices[m_src_vertices.size() - 3].y); 82 m_spline_x.add_point(2.0, m_src_vertices[m_src_vertices.size() - 2].x); 83 m_spline_y.add_point(2.0, m_src_vertices[m_src_vertices.size() - 2].y); 84 m_spline_x.add_point(3.0, m_src_vertices[m_src_vertices.size() [all...] |
/haiku/src/system/kernel/slab/ |
H A D | allocator.cpp | 50 size_to_index(size_t size) argument 52 if (size <= 16) 54 if (size <= 32) 55 return 1 + (size - 16 - 1) / 8; 56 if (size <= 128) 57 return 3 + (size - 32 - 1) / 16; 58 if (size <= 256) 59 return 9 + (size - 128 - 1) / 32; 60 if (size <= 512) 61 return 13 + (size 74 block_alloc(size_t size, size_t alignment, uint32 flags) argument 108 block_alloc_early(size_t size) argument 172 size_t size = kBlockSizes[index]; local 209 memalign(size_t alignment, size_t size) argument 216 memalign_etc(size_t alignment, size_t size, uint32 flags) argument 223 posix_memalign(void** _pointer, size_t alignment, size_t size) argument 245 malloc(size_t size) argument [all...] |
/haiku/src/add-ons/kernel/bus_managers/ata/ |
H A D | ATAHelper.cpp | 20 size - number of bytes to copy 27 void *buffer, int size, bool toBuffer) 33 while (sgCount > 0 && offset >= sgList->size) { 34 offset -= sgList->size; 46 for (; size > 0 && requestSize > 0 && sgCount > 0; ++sgList, --sgCount) { 49 bytes = MIN(size, requestSize); 50 bytes = MIN(bytes, sgList->size); 61 size -= bytes; 65 return size == 0; 70 swap_words(void *data, size_t size) argument 26 copy_sg_data(scsi_ccb *ccb, uint offset, uint allocationLength, void *buffer, int size, bool toBuffer) argument [all...] |
/haiku/src/add-ons/media/media-add-ons/dvb/ |
H A D | Packet.cpp | 60 Packet::Packet(const void *data, size_t size, bigtime_t time_stamp) argument 61 : fBuffer(malloc(size)) 62 , fBufferSize(size) 63 , fBufferSizeMax(size) 66 memcpy(fBuffer, data, size); 77 Packet::AddData(const void *data, size_t size) argument 79 if (fBufferSize + size > fBufferSizeMax) { 80 fBufferSizeMax = (fBufferSize + size + 8191) & ~8191; 84 memcpy((char *)fBuffer + fBufferSize, data, size); 85 fBufferSize += size; [all...] |
/haiku/src/add-ons/media/media-add-ons/usb_webcam/ |
H A D | CamBufferedFilterInterface.cpp | 24 CamBufferedFilterInterface::Read(void *buffer, size_t size) argument 26 return fInternalBuffer.Read(buffer, size); 31 CamBufferedFilterInterface::ReadAt(off_t pos, void *buffer, size_t size) argument 33 return fInternalBuffer.ReadAt(pos, buffer, size); 38 CamBufferedFilterInterface::Write(const void *buffer, size_t size) argument 42 return fInternalBuffer.Write(buffer, size); 47 CamBufferedFilterInterface::WriteAt(off_t pos, const void *buffer, size_t size) argument 51 return fInternalBuffer.WriteAt(pos, buffer, size); 70 CamBufferedFilterInterface::SetSize(off_t size) argument 74 return fInternalBuffer.SetSize(size); [all...] |
/haiku/src/tests/system/kernel/ |
H A D | port_wakeup_test_2.cpp | 22 ssize_t size; local 27 size = read_port(id, &code, data, sizeof(data)); 28 printf("read port code %lx, size %ld (0x%08lx) (%s)\n", code, size, size, strerror(size)); 38 ssize_t size; local 47 size = read_port(id, &code, data, sizeof(data)); 48 printf("read port code %lx, size %ld (0x%08lx) (%s)\n", code, size, siz [all...] |
H A D | port_wakeup_test_6.cpp | 22 ssize_t size; local 26 size = read_port(id, &code, data, sizeof(data)); 27 printf("read port code %lx, size %ld (0x%08lx) (%s)\n", code, size, size, strerror(size)); 37 ssize_t size; local 46 size = read_port(id, &code, data, sizeof(data)); 47 printf("read port code %lx, size %ld (0x%08lx) (%s)\n", code, size, siz [all...] |
H A D | port_wakeup_test_7.cpp | 22 ssize_t size; local 26 size = read_port(id, &code, data, sizeof(data)); 27 printf("read port code %lx, size %ld (0x%08lx) (%s)\n", code, size, size, strerror(size)); 37 ssize_t size; local 46 size = read_port(id, &code, data, sizeof(data)); 47 printf("read port code %lx, size %ld (0x%08lx) (%s)\n", code, size, siz [all...] |
/haiku/src/add-ons/kernel/busses/scsi/virtio/ |
H A D | VirtioSCSIHelper.cpp | 21 size - number of bytes to copy 28 void *buffer, int size, bool toBuffer) 34 while (sgCount > 0 && offset >= sgList->size) { 35 offset -= sgList->size; 47 for (; size > 0 && requestSize > 0 && sgCount > 0; ++sgList, --sgCount) { 50 bytes = MIN(size, requestSize); 51 bytes = MIN(bytes, sgList->size); 62 size -= bytes; 66 return size == 0; 71 swap_words(void *data, size_t size) argument 27 copy_sg_data(scsi_ccb *ccb, uint offset, uint allocationLength, void *buffer, int size, bool toBuffer) argument [all...] |
/haiku/src/add-ons/kernel/drivers/dvb/cx23882/ |
H A D | util.c | 40 map_mem(void **virt, phys_addr_t phy, size_t size, uint32 protection, argument 49 phy, size, name); 53 size = ROUNDUP(size + offset, B_PAGE_SIZE); 54 area = map_physical_memory(name, phyadr, size, 65 ", phyadr = %" B_PRIxPHYSADDR ", mapadr = %p, size = %" B_PRIuSIZE 67 size, area); 74 alloc_mem(void **virt, phys_addr_t *phy, size_t size, uint32 protection, argument 82 TRACE("allocating %" B_PRIuSIZE " bytes for %s\n", size, name); 84 size [all...] |
/haiku/src/kits/storage/ |
H A D | OffsetFile.cpp | 74 OffsetFile::ReadAt(off_t pos, void *buffer, size_t size) argument 79 result = fFile->ReadAt(pos + fOffset, buffer, size); 85 OffsetFile::WriteAt(off_t pos, const void *buffer, size_t size) argument 90 result = fFile->WriteAt(pos + fOffset, buffer, size); 108 off_t size; local 109 error = GetSize(&size); 111 if (size + position >= 0) 112 result = fCurrentPosition = size + position; 136 OffsetFile::SetSize(off_t size) argument 138 status_t error = (size > [all...] |
/haiku/headers/private/storage/ |
H A D | FileDescriptorIO.h | 18 virtual ssize_t Read(void *buffer, size_t size); 19 virtual ssize_t Write(const void *buffer, size_t size); 22 size_t size); 24 size_t size); 29 virtual status_t SetSize(off_t size); 30 virtual status_t GetSize(off_t* size) const;
|
/haiku/src/libs/stdc++/legacy/ |
H A D | SFile.cc | 47 SFile::SFile(const char *filename, int size, int mode, int prot) argument 50 sz = size; 53 SFile::SFile(int fd, int size) argument 56 sz = size; 59 void SFile::open(const char *name, int size, int mode, int prot) argument 62 sz = size;
|
/haiku/headers/os/package/hpkg/v1/ |
H A D | PackageData.h | 36 void SetData(uint64 size, uint64 offset); 37 void SetData(uint8 size, const void* data); 41 void SetUncompressedSize(uint64 size) argument 42 { fUncompressedSize = size; } 43 void SetChunkSize(uint32 size) argument 44 { fChunkSize = size; }
|
/haiku/src/add-ons/screen_savers/gravity/ |
H A D | Particle.h | 23 static void Initialize(int32 size, int32 shade); 24 static void AddParticles(int32 size, int32 shade); 25 static void RemoveParticles(int32 size, int32 shade); 26 static void ColorParticles(int32 size, int32 shade); 48 static void _FillParticle(Particle* p, int32 size, 50 static void _ColorParticle(Particle* p, int32 size,
|