Searched refs:prefixLength (Results 1 – 7 of 7) sorted by relevance
/haiku/src/system/libroot/os/ |
H A D | find_paths.cpp | 351 size_t prefixLength = strlen(buffer); in normalize_longest_existing_path_prefix() local 360 const char* remainder = path + prefixLength + 1; in normalize_longest_existing_path_prefix() 781 size_t prefixLength = placeholder - basePath; in __guess_secondary_architecture_from_path() local 782 if (strncmp(relativePath, basePath, prefixLength) != 0 in __guess_secondary_architecture_from_path() 783 || relativePath[prefixLength] != '/') { in __guess_secondary_architecture_from_path() 788 const char* architecturePart = relativePath + prefixLength + 1; in __guess_secondary_architecture_from_path()
|
/haiku/src/kits/network/libnetapi/ |
H A D | NetworkAddress.cpp | 421 BNetworkAddress::SetToMask(int family, uint32 prefixLength) in SetToMask() argument 426 if (prefixLength > 32) in SetToMask() 435 for (uint8 i = 32; i > 32 - prefixLength; i--) in SetToMask() 444 if (prefixLength > 128) in SetToMask() 452 for (uint8 i = 0; i < sizeof(in6_addr); i++, prefixLength -= 8) { in SetToMask() 453 if (prefixLength < 8) { in SetToMask() 455 = (uint8)(0xff << (8 - prefixLength)); in SetToMask()
|
/haiku/src/kits/package/ |
H A D | PackageInfo.cpp | 93 size_t prefixLength = strlen(prefix); in FieldName() local 95 if (prefixLength + suffixLength >= sizeof(fFieldName)) { in FieldName() 100 memcpy(fFieldName, prefix, prefixLength); in FieldName() 101 memcpy(fFieldName + prefixLength, suffix, suffixLength); in FieldName() 102 fFieldName[prefixLength + suffixLength] = '\0'; in FieldName() 105 bool ReplaceSuffix(size_t prefixLength, const char* suffix) in ReplaceSuffix() 108 if (prefixLength + suffixLength >= sizeof(fFieldName)) { in ReplaceSuffix() 113 memcpy(fFieldName + prefixLength, suffix, suffixLength); in ReplaceSuffix() 114 fFieldName[prefixLength + suffixLength] = '\0'; in ReplaceSuffix()
|
/haiku/headers/os/net/ |
H A D | NetworkAddress.h | 70 status_t SetToMask(int family, uint32 prefixLength);
|
/haiku/src/bin/network/route/ |
H A D | route.cpp | 150 uint32 prefixLength = strtoul(argument, &end, 10); in prefix_length_to_mask() local 154 return mask.SetToMask(kFamilies[familyIndex].family, prefixLength) == B_OK; in prefix_length_to_mask()
|
/haiku/src/tests/add-ons/kernel/kernelland_emu/ |
H A D | module.cpp | 642 uint32 prefixLength = strlen(prefix); in _FindBuiltInModules() local 646 if (!strncmp(module->Info()->name, prefix, prefixLength) in _FindBuiltInModules()
|
/haiku/src/bin/network/ifconfig/ |
H A D | ifconfig.cpp | 180 uint32 prefixLength = strtoul(argument, &end, 10); in prefix_length_to_mask() local 184 return mask.SetToMask(family, prefixLength) == B_OK; in prefix_length_to_mask()
|