/haiku/src/libs/print/libprint/ |
H A D | DbgMsg.cpp | 53 int32 count = 0; local 67 for (i= 0; msg->GetInfo(B_ANY_TYPE, i, &name, &type, &count) == B_OK; i++) { 70 for (j = 0; j < count; j++) { 79 for (j = 0; j < count; j++) { 87 for (j = 0; j < count; j++) { 95 for (j = 0; j < count; j++) { 103 for (j = 0; j < count; j++) { 111 for (j = 0; j < count; j++) { 119 for (j = 0; j < count; j++) { 127 for (j = 0; j < count; [all...] |
/haiku/src/tests/kits/app/bmessage/ |
H A D | MessageSpeedTest.cpp | 39 #define MESSAGE_SPEED_TEST_CREATE(count, type, typeName, createValue) \ 41 TMessageSpeedTest::MessageSpeedTestCreate##count##type() \ 46 for (int32 i = 0; i < count; i++) { \ 53 cout << "Time to add " << count << " " << typeName \ 71 #define MESSAGE_SPEED_TEST_LOOKUP(count, type) \ 73 TMessageSpeedTest::MessageSpeedTestLookup##count##type() \ 78 for (int32 i = 0; i < count; i++) { \ 85 search << rand() % count; \ 92 cout << "Time to find a data in a message containing " << count \ 105 #define MESSAGE_SPEED_TEST_READ(count, typ [all...] |
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/ |
H A D | device.c | 193 * @count: number of bytes to read 196 * This function will read @count bytes from device @dev at position @pos into 200 * lower than @count this means that we have either reached end of file or 202 * end of file or nothing to read (@count is 0). 208 s64 ntfs_pread(struct ntfs_device *dev, const s64 pos, s64 count, void *b) argument 213 ntfs_log_trace("pos %lld, count %lld\n",(long long)pos,(long long)count); 215 if (!b || count < 0 || pos < 0) { 219 if (!count) 224 for (total = 0; count; coun 258 ntfs_pwrite(struct ntfs_device *dev, const s64 pos, s64 count, const void *b) argument 332 ntfs_mst_pread(struct ntfs_device *dev, const s64 pos, s64 count, const u32 bksize, void *b) argument 389 ntfs_mst_pwrite(struct ntfs_device *dev, const s64 pos, s64 count, const u32 bksize, void *b) argument 436 ntfs_cluster_read(const ntfs_volume *vol, const s64 lcn, const s64 count, void *b) argument 472 ntfs_cluster_write(const ntfs_volume *vol, const s64 lcn, const s64 count, const void *b) argument [all...] |
/haiku/src/tests/system/kernel/cache/ |
H A D | pages_io_test.cpp | 53 size_t count; member in struct:file_map 75 count = 0; 95 if (index >= count) 98 if (count > CACHED_FILE_EXTENTS) 112 if (vecCount <= CACHED_FILE_EXTENTS && count == 0) { 119 (count + vecCount) * sizeof(file_extent)); 125 if (count != 0) { 126 file_extent *extent = ExtentAt(count - 1); 131 int32 start = count; 132 count 174 size_t count = 0; local 296 vfs_read_pages(void *device, void *cookie, off_t offset, const iovec *vecs, size_t count, size_t *bytes, bool kernel) argument 309 vfs_write_pages(void *device, void *cookie, off_t offset, const iovec *vecs, size_t count, size_t *bytes, bool kernel) argument 445 pages_io(file_cache_ref *ref, off_t offset, const iovec *vecs, size_t count, size_t *_numBytes, bool doWrite) argument 652 size_t count = 1; local [all...] |
/haiku/src/apps/icon-o-matic/gui/ |
H A D | StyleListView.cpp | 321 int32 count = CountSelectedItems(); local 324 for (int32 i = 0; i < count; i++) { 336 int32 count = CountSelectedItems(); local 338 for (int32 i = 0; i < count; i++) { 346 count = gradients.CountItems(); 347 if (count <= 0) 350 Transformable* transformables[count]; 351 for (int32 i = 0; i < count; i++) { 357 = new ResetTransformationCommand(transformables, count); 429 int32 count local 472 int32 count = styles.CountItems(); local 582 int count = CountItems(); local 696 int32 count = fStyleContainer->CountItems(); local 777 int count = CountItems(); local 795 int32 count = CountItems(); local [all...] |
/haiku/src/add-ons/kernel/file_systems/nfs4/ |
H A D | RequestBuilder.h | 36 status_t Commit(uint64 offset, uint32 count); 38 AttrValue* attr, uint32 count, 41 status_t GetAttr(Attribute* attrs, uint32 count); 51 status_t Nverify(AttrValue* attr, uint32 count); 56 uint32 count = 0, bool excl = false, 74 AttrValue* attr, uint32 count); 77 status_t Verify(AttrValue* attr, uint32 count); 95 AttrValue* attr, uint32 count); 97 Attribute* attrs, uint32 count);
|
/haiku/src/servers/app/font/ |
H A D | FontFamily.cpp | 87 int32 count = fStyles.CountItems(); 88 for (int32 i = 0; i < count; i++) { 140 int32 count = fStyles.CountItems(); local 141 if (!name || count < 1) 144 for (int32 i = 0; i < count; i++) { 232 int32 count = fStyles.CountItems(); local 233 for (int32 i = 0; i < count; i++) { 250 int32 count = fStyles.CountItems(); local 251 for (int32 i = 0; i < count; i++) {
|
/haiku/src/kits/storage/disk_device/ |
H A D | PartitioningInfo.cpp | 236 BPartitioningInfo::_InsertSpaces(int32 index, int32 count) argument 238 if (index <= 0 || index > fCount || count <= 0) 243 if (fCount + count <= fCapacity) { 244 memmove(fSpaces + index + count, fSpaces + index, 246 fCount += count; 251 int32 capacity = (fCount + count) * 2; 261 memcpy(spaces + index + count, fSpaces + index, 267 fCount += count; 275 BPartitioningInfo::_RemoveSpaces(int32 index, int32 count) argument 277 if (index < 0 || count < [all...] |
/haiku/src/tests/servers/app/newerClipping/drawing/ |
H A D | AccelerantHWInterface.cpp | 153 int count = 0; local 157 while (count < deviceNumber && (entry = readdir(directory)) != NULL) { 170 count++; 174 if (count < deviceNumber) { 513 AccelerantHWInterface::GetModeList(display_mode** modes, uint32 *count) 517 if (!count || !modes) 525 *count = fModeCount; 528 *count = 0; 664 uint32 count, int32 xOffset, int32 yOffset) 670 blit_params* params = new blit_params[count]; 663 CopyRegion(const clipping_rect* sortedRectList, uint32 count, int32 xOffset, int32 yOffset) argument 707 uint32 count; local 735 uint32 count; local [all...] |
/haiku/src/kits/shared/ |
H A D | ArgumentVector.cpp | 176 int count = parser.ArgVector().size(); local 177 size_t arraySize = (count + 1) * sizeof(char*); 181 char* argument = (char*)(fArguments + count + 1); 182 for (int i = 0; i < count; i++) { 190 fArguments[count] = NULL; 191 fCount = count;
|
/haiku/src/libs/stdc++/legacy/ |
H A D | isgetline.cc | 103 _IO_size_t count = _IO_getline_info(sb, buf, CHUNK_SIZE, terminator, local 108 total += count; 113 memcpy(ptr + old_total, buf, count); 114 ptr[old_total+count] = ch; 122 memcpy(ptr + total - count, buf, count);
|
/haiku/src/tests/kits/app/bmessagerunner/ |
H A D | MessageRunnerTestHelpers.cpp | 77 int32 count) 79 return CheckMessages(0, startTime, interval, count); 85 bigtime_t interval, int32 count) 88 bool result = (fMessageInfos.CountItems() == count + skip); 91 count + skip); 93 for (int32 i = 0; result && i < count; i++) { 76 CheckMessages(bigtime_t startTime, bigtime_t interval, int32 count) argument 84 CheckMessages(int32 skip, bigtime_t startTime, bigtime_t interval, int32 count) argument
|
/haiku/src/kits/interface/ |
H A D | GroupLayoutBuilder.cpp | 49 int32 count = fLayoutStack.CountItems(); local 50 return (count > 0 51 ? (BGroupLayout*)fLayoutStack.ItemAt(count - 1) : NULL); 196 int32 count = fLayoutStack.CountItems(); local 197 if (count > 0) 198 fLayoutStack.RemoveItem(count - 1);
|
/haiku/src/system/kernel/fs/ |
H A D | unused_vnodes.h | 51 int32 count = std::min(sNextHotVnodeIndex, kMaxHotVnodes); local 52 for (int32 i = 0; i < count; i++) { 75 /*! To be called when the vnode's ref count drops to 0. 133 /*! To be called when the vnode's ref count is changed from 0 to 1. 167 int32 count = atomic_get(&sNextHotVnodeIndex); local 168 count = std::min(count, kMaxHotVnodes); 169 for (int32 i = 0; i < count; i++) {
|
/haiku/src/kits/tracker/ |
H A D | TemplatesMenu.cpp | 128 int32 count = CountItems(); local 129 while (count--) 144 count = 0; 159 if (count == 0) 162 count++; 199 return count > 0;
|
H A D | VirtualDirectoryEntryList.cpp | 101 int32 count) 103 if (count > 1) 104 count = 1; 106 int32 countRead = fMergedDirectory.GetNextDirents(buffer, length, count); 148 int32 count = directoryPaths.CountStrings(); 149 for (int32 i = 0; i < count; i++) 100 GetNextDirents(struct dirent* buffer, size_t length, int32 count) argument
|
/haiku/src/tests/kits/net/cookie/ |
H A D | cookie_test.cpp | 63 int32 count = 0; local 66 count++; 69 cout << "Count for " << host << ": " << count << endl; 96 int32 count = 0; local 99 count++; 100 cout << "Count : " << count << endl;
|
/haiku/src/kits/debugger/util/ |
H A D | BitBuffer.cpp | 38 uint8 ReadBits(uint32 count) argument 41 bitSize -= count; 42 bitOffset += count; 48 return byte & ((1 << count) - 1); 51 return (byte >> (8 - bitOffset)) & ((1 << count) - 1); 57 & ((1 << count) - 1);
|
/haiku/src/system/libnetwork/ |
H A D | interfaces.cpp | 95 int count = (int)config.ifc_value; local 96 ifreq* interfaces = (ifreq*)malloc(count * sizeof(struct ifreq)); 102 config.ifc_len = count * sizeof(struct ifreq); 108 sizeof(struct if_nameindex) * (count + 1)); 113 while (count > 0) { 128 count--;
|
/haiku/src/tests/system/kernel/util/ |
H A D | DoublyLinkedListTest.cpp | 106 // count items in list 108 int count = 0; local 113 count++; 115 CHK(count == valueCount); 151 // count again 153 count = 0; 156 count++; 158 CHK(count == (valueCount / 2) + 1);
|
/haiku/src/apps/icon-o-matic/transformable/ |
H A D | TransformPointsBox.cpp | 26 int32 count) 30 fIndices(path && count > 0 ? new (nothrow) int32[count] : NULL), 31 fCount(count), 32 fPoints(count > 0 ? new (nothrow) control_point[count] : NULL) 22 TransformPointsBox(CanvasView* view, PathManipulator* manipulator, VectorPath* path, const int32* indices, int32 count) argument
|
/haiku/src/apps/icon-o-matic/shape/commands/ |
H A D | FreezeTransformationCommand.cpp | 34 int32 count) 36 fShapes(shapes && count > 0 ? new (nothrow) PathSourceShape*[count] : NULL), 37 fOriginalTransformations(count > 0 ? new (nothrow) double[ 38 count * Transformable::matrix_size] 40 fCount(count) 32 FreezeTransformationCommand( PathSourceShape** const shapes, int32 count) argument
|
/haiku/src/tests/kits/shared/ |
H A D | FakeJsonDataGenerator.cpp | 22 FakeJsonStreamDataIO::FakeJsonStreamDataIO(int count, uint32 checksumLimit) argument 25 fItemCount(count), 89 FakeJsonStringStreamDataIO::FakeJsonStringStreamDataIO(int count, uint32 checksumLimit) argument 91 FakeJsonStreamDataIO(count, checksumLimit), 158 FakeJsonNumberStreamDataIO::FakeJsonNumberStreamDataIO(int count, uint32 checksumLimit) argument 160 FakeJsonStreamDataIO(count, checksumLimit),
|
/haiku/src/tests/add-ons/accelerants/intel_extreme/ |
H A D | intel_reg.cpp | 28 " --count <n> - Read n registers.\n" 53 uint32_t count = 1; local 61 } else if (strcmp(arg, "--count") == 0) { 62 count = strtol(argv[++argi], (char **)NULL, 10); 63 if (count == 0 && errno != 0) 84 if (strcmp(arg, "--count") == 0) { 85 count = strtol(programArgs[2], (char **)NULL, 10); 86 if (count == 0 && errno != 0) 141 for (uint32_t i = 0; i < count; i++) {
|
/haiku/src/servers/keystore/ |
H A D | Keyring.cpp | 213 int32 count; 215 if (fApplications.GetInfo(signature, &type, &count) != B_OK) 218 for (int32 i = 0; i < count; i++) { 266 int32 count; local 268 if (fApplications.GetInfo(signature, &type, &count) != B_OK) 271 for (int32 i = 0; i < count; i++) { 298 int32 count; 300 if (fData.GetInfo(identifier, &type, &count) != B_OK) 305 for (int32 i = 0; i < count; i++) { 345 int32 count local [all...] |