/haiku/src/tests/kits/net/ |
H A D | link_echo.cpp | 25 static const size_t kBufferSize = 1500; variable 45 char buffer[kBufferSize]; in link_client() 47 while (fgets(buffer, kBufferSize, stdin) != NULL) { in link_client() 59 ssize_t bytesRead = recvfrom(fd, buffer, kBufferSize - 1, 0, NULL, in link_client() 79 char buffer[kBufferSize]; in link_server() 80 ssize_t bytesRead = recvfrom(fd, buffer, kBufferSize - 1, 0, client, in link_server()
|
/haiku/src/tests/kits/app/messaging/ |
H A D | PortLinkTest.cpp | 8 const int32 kBufferSize = 2048; variable 50 char test[kBufferSize + 2048]; in main() 52 sender.Attach(test, kBufferSize - 40); in main()
|
/haiku/src/tools/ |
H A D | data_to_source.cpp | 62 const int kBufferSize = 16 * 1024; in main() local 63 unsigned char buffer[kBufferSize]; in main() 76 ssize_t bytesRead = read(inFD, buffer, kBufferSize); in main()
|
/haiku/src/bin/ |
H A D | mvattr.cpp | 37 static const size_t kBufferSize = 1024 * 1024; variable 38 static uint8 kBuffer[kBufferSize]; 92 size_t size = min_c(kBufferSize, bytesLeft); in moveAttribute()
|
/haiku/src/system/kernel/arch/arm64/ |
H A D | arch_debug.cpp | 116 static const size_t kBufferSize = 256; in print_demangled_call() local 117 char* buffer = (char*)debug_malloc(kBufferSize); in print_demangled_call() 122 const char* name = debug_demangle_symbol(symbol, buffer, kBufferSize, in print_demangled_call() 156 kBufferSize, &type, &length) == B_OK) { in print_demangled_call() 257 kBufferSize) < B_OK) { in print_demangled_call()
|
/haiku/src/system/boot/loader/ |
H A D | package_support.cpp | 356 static const size_t kBufferSize = 3 * B_FILE_NAME_LENGTH + 2; in _ParseActivatedPackagesFile() local 357 ArrayDeleter<char> path(new(std::nothrow) char[kBufferSize]); in _ParseActivatedPackagesFile() 360 snprintf(path.Get(), kBufferSize, "%s/%s/%s", in _ParseActivatedPackagesFile() 377 kBufferSize - remainingBytes - 1); in _ParseActivatedPackagesFile()
|
/haiku/src/system/kernel/arch/arm/ |
H A D | arch_debug.cpp | 124 static const size_t kBufferSize = 256; in print_demangled_call() local 125 char* buffer = (char*)debug_malloc(kBufferSize); in print_demangled_call() 130 const char* name = debug_demangle_symbol(symbol, buffer, kBufferSize, in print_demangled_call() 164 kBufferSize, &type, &length) == B_OK) { in print_demangled_call() 265 kBufferSize) < B_OK) { in print_demangled_call()
|
/haiku/src/kits/network/libnetapi/ |
H A D | NetworkDevice.cpp | 433 const size_t kBufferSize = 65535; in get_scan_results() local 434 uint8* buffer = (uint8*)malloc(kBufferSize); in get_scan_results() 439 int32 length = kBufferSize; in get_scan_results() 487 const size_t kBufferSize = 65535; in get_scan_result() local 488 uint8* buffer = (uint8*)malloc(kBufferSize); in get_scan_result() 494 int32 length = kBufferSize; in get_scan_result() 537 const size_t kBufferSize = 65535; in get_station() local 538 uint8* buffer = (uint8*)malloc(kBufferSize); in get_station() 551 int32 length = kBufferSize; in get_station()
|
/haiku/src/system/kernel/debug/ |
H A D | tracing.cpp | 48 static const size_t kBufferSize = MAX_TRACE_SIZE / sizeof(trace_entry); variable 146 static const size_t kBufferSize = 256; in print_stack_trace() local 147 char* buffer = (char*)debug_malloc(kBufferSize); in print_stack_trace() 164 kBufferSize, &isObjectMethod); in print_stack_trace() 265 entry = fBuffer + kBufferSize - entry->previous_size; in PreviousEntry() 316 if (start < (addr_t)fBuffer || end > (addr_t)(fBuffer + kBufferSize)) in IsInBuffer() 372 if (fAfterLastEntry + needed > fBuffer + kBufferSize) { in _MakeSpace() 394 fAfterLastEntry->previous_size = fBuffer + kBufferSize - wrapEntry; in _MakeSpace() 619 if (entry->size > uint32(fBuffer + kBufferSize - entry)) { in _InitPreviousTracingData() 637 if ((uint32)(fBuffer + kBufferSize - entry) in _InitPreviousTracingData() [all …]
|
H A D | core_dump.cpp | 50 static const size_t kBufferSize = 1024 * 1024; variable 585 fCapacity = kBufferSize; in Init()
|
/haiku/src/system/kernel/arch/x86/ |
H A D | arch_debug.cpp | 162 static const size_t kBufferSize = 256; in print_demangled_call() local 163 char* buffer = (char*)debug_malloc(kBufferSize); in print_demangled_call() 168 const char* name = debug_demangle_symbol(symbol, buffer, kBufferSize, in print_demangled_call() 202 kBufferSize, &type, &length) == B_OK) { in print_demangled_call() 303 kBufferSize) < B_OK) { in print_demangled_call() 333 static const size_t kBufferSize = 256; in print_demangled_call() local 334 char* buffer = (char*)debug_malloc(kBufferSize); in print_demangled_call() 339 const char* name = debug_demangle_symbol(symbol, buffer, kBufferSize, in print_demangled_call() 352 kBufferSize, &type, &length) == B_OK) { in print_demangled_call()
|
/haiku/headers/private/shared/ |
H A D | SettingsHandler.h | 58 const int32 kBufferSize = 1024; variable
|
/haiku/src/system/boot/loader/file_systems/tarfs/ |
H A D | tarfs.cpp | 744 static const int kBufferSize = 2048; in _Inflate() local 745 char* in = (char*)malloc(kBufferSize); in _Inflate() 751 kBufferSize, // avail in in _Inflate() 771 ssize_t bytesRead = partition->ReadAt(cookie, offset, in, kBufferSize); in _Inflate()
|
/haiku/src/kits/shared/ |
H A D | SettingsHandler.cpp | 80 fBuffer = new char [kBufferSize]; in ArgvParser() 162 if (fgets(fBuffer, kBufferSize, fFile) == 0) in GetCh()
|
/haiku/src/add-ons/kernel/file_systems/cdda/ |
H A D | cdda.cpp | 37 static const uint32 kBufferSize = 16384; variable 579 uint8 *buffer = (uint8 *)malloc(kBufferSize); in read_cdtext() 586 kBufferSize); in read_cdtext() 588 kBufferSize) != B_OK) { in read_cdtext()
|
/haiku/src/system/kernel/arch/riscv64/ |
H A D | arch_debug.cpp | 170 static const size_t kBufferSize = 256; in print_demangled_call() local 171 char* buffer = (char*)debug_malloc(kBufferSize); in print_demangled_call() 176 const char* name = debug_demangle_symbol(symbol, buffer, kBufferSize, in print_demangled_call() 189 kBufferSize, &type, &length) == B_OK) { in print_demangled_call()
|
/haiku/src/add-ons/kernel/drivers/disk/scsi/scsi_cd/ |
H A D | scsi_cd.cpp | 98 const size_t kBufferSize = blockSize * 4; in test_capacity() local 101 B_PRIu32", capacity %llu\n", kBufferSize, blockSize, in test_capacity() 124 (kBufferSize - 1 + B_PAGE_SIZE) / B_PAGE_SIZE, VM_PRIORITY_SYSTEM); in test_capacity() 126 for (size_t left = kBufferSize; numEntries < kMaxEntries && left > 0; in test_capacity()
|
/haiku/src/apps/debuganalyzer/model_loader/ |
H A D | ModelLoader.cpp | 554 const size_t kBufferSize = 1024 * 1024; in _ReadDebugEvents() local 555 void* buffer = malloc(kBufferSize); in _ReadDebugEvents() 562 ssize_t bytesRead = io->Read(buffer, kBufferSize); in _ReadDebugEvents()
|
/haiku/src/system/kernel/cache/ |
H A D | block_cache.cpp | 319 static const size_t kBufferSize = 64; member in __anon7a06ab4d0111::BlockWriter 322 cached_block* fBuffer[kBufferSize]; 1141 fCapacity(kBufferSize), in BlockWriter() 1184 memcpy(newBlocks, fBuffer, kBufferSize * sizeof(void*)); in Add()
|