/foundation/distributeddatamgr/kv_store/frameworks/native/kv_store/src/kvstore_common/ |
H A D | kvstore_common.c | 41 size_t valueLen = strnlen(value, MAX_VALUE_LEN);
in IsValidValue() 53 size_t keyLen = strnlen(key, MAX_KEY_LEN);
in IsValidKey() 113 size_t keyLen = strnlen(key, MAX_KEY_LEN);
in AddKVCache() 114 size_t valueLen = strnlen(value, MAX_VALUE_LEN);
in AddKVCache() 171 size_t valueLen = strnlen(item->value, MAX_VALUE_LEN);
in GetValueByCache()
|
/third_party/musl/src/network/ |
H A D | res_querydomain.c | 7 size_t nl = strnlen(name, 255); in res_querydomain() 8 size_t dl = strnlen(domain, 255); in res_querydomain()
|
/third_party/musl/libc-test/src/functionalext/supplement/string/string_gtest/ |
H A D | string_strnlen_test.cpp | 22 EXPECT_EQ(STR_SIZE_ONE, strnlen(srcChar, srcLen)); in HWTEST_F() 26 EXPECT_EQ(srcLen, strnlen(dstChar, srcLen)); in HWTEST_F()
|
/third_party/musl/libc-test/src/functionalext/supplement/string/ |
H A D | strnlen.c | 22 * @tc.desc : Test strnlen function to get string length 29 size_t result = strnlen(str, 5); in strnlen_0100() 31 t_error("%s strnlen get result is %d are not 5\n", __func__, result); in strnlen_0100() 44 size_t result = strnlen(str, 9); in strnlen_0200() 46 t_error("%s strnlen get result is %d are not 6\n", __func__, result); in strnlen_0200()
|
/third_party/jerryscript/jerry-port/default/ |
H A D | default-module.c | 138 ret = strnlen (norm_p, out_buf_size); in jerry_port_normalize_path() 155 const size_t len = strnlen (norm_p, out_buf_size); in jerry_port_normalize_path() 169 const size_t len = strnlen (in_path_p, out_buf_size); in jerry_port_normalize_path()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/api/ |
H A D | vktApiToolingInfoTests.cpp | 195 size_t nameSize = strnlen(deviceToolPropertiesEXTArray[i].name, VK_MAX_EXTENSION_NAME_SIZE); in validateToolsProperties() 196 size_t versionSize = strnlen(deviceToolPropertiesEXTArray[i].version, VK_MAX_EXTENSION_NAME_SIZE); in validateToolsProperties() 197 size_t descSize = strnlen(deviceToolPropertiesEXTArray[i].description, VK_MAX_DESCRIPTION_SIZE); in validateToolsProperties() 198 size_t layerSize = strnlen(deviceToolPropertiesEXTArray[i].layer, VK_MAX_EXTENSION_NAME_SIZE); in validateToolsProperties()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/api/ |
H A D | vktApiToolingInfoTests.cpp | 195 size_t nameSize = strnlen(deviceToolPropertiesEXTArray[i].name, VK_MAX_EXTENSION_NAME_SIZE); in validateToolsProperties() 196 size_t versionSize = strnlen(deviceToolPropertiesEXTArray[i].version, VK_MAX_EXTENSION_NAME_SIZE); in validateToolsProperties() 197 size_t descSize = strnlen(deviceToolPropertiesEXTArray[i].description, VK_MAX_DESCRIPTION_SIZE); in validateToolsProperties() 198 size_t layerSize = strnlen(deviceToolPropertiesEXTArray[i].layer, VK_MAX_EXTENSION_NAME_SIZE); in validateToolsProperties()
|
/third_party/musl/src/process/ |
H A D | execvp.c | 22 k = strnlen(file, NAME_MAX+1); in __execvpe() 27 l = strnlen(path, PATH_MAX-1)+1; in __execvpe()
|
/foundation/communication/dsoftbus/core/common/dfx/event/src/convert/ |
H A D | softbus_event_converter.h | 78 if (value == NULL || value[0] == '\0' || strnlen(value, PARAM_STRING_VALUE_MAX_LEN) == PARAM_STRING_VALUE_MAX_LEN) { in AssignerString() 89 if (value == NULL || value[0] == '\0' || strnlen(value, in AssignerLongString() 101 if (value == NULL || value[0] == '\0' || strnlen(value, PARAM_STRING_VALUE_MAX_LEN) == PARAM_STRING_VALUE_MAX_LEN) { in AssignerAnonymizeString()
|
/foundation/communication/dsoftbus/core/bus_center/utils/src/ |
H A D | lnn_connection_addr_utils.c | 275 if (strnlen(addr->info.ip.ip, IP_STR_MAX_LEN) == 0 || in LnnIsConnectionAddrInvalid() 276 strnlen(addr->info.ip.ip, IP_STR_MAX_LEN) == IP_STR_MAX_LEN) { in LnnIsConnectionAddrInvalid() 282 if (strnlen(addr->info.br.brMac, BT_MAC_LEN) == 0 || in LnnIsConnectionAddrInvalid() 283 strnlen(addr->info.br.brMac, BT_MAC_LEN) == BT_MAC_LEN) { in LnnIsConnectionAddrInvalid() 289 if (strnlen(addr->info.ble.bleMac, BT_MAC_LEN) == 0 || in LnnIsConnectionAddrInvalid() 290 strnlen(addr->info.ble.bleMac, BT_MAC_LEN) == BT_MAC_LEN) { in LnnIsConnectionAddrInvalid()
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/ |
H A D | xattr.cpp | 35 bool isIllegalKey = strnlen(key, MAX_XATTR_SIZE + 1) > MAX_XATTR_SIZE;
in IsIllegalXattr() 39 bool isIllegalValue = strnlen(value, MAX_XATTR_SIZE + 1) > MAX_XATTR_SIZE;
in IsIllegalXattr() 95 if (setxattr(path.get(), key.get(), value.get(), strnlen(value.get(), MAX_XATTR_SIZE), 0) < 0) {
in SetSync() 215 if (setxattr(path.c_str(), key.c_str(), value.c_str(), strnlen(value.c_str(), MAX_XATTR_SIZE), 0) < 0) {
in SetAsync()
|
/third_party/musl/porting/linux/user/src/locale/ |
H A D | dcngettext.c | 77 size_t domlen = strnlen(domainname, NAME_MAX+1); in bindtextdomain() 78 size_t dirlen = strnlen(dirname, PATH_MAX); in bindtextdomain() 179 domlen = strnlen(domainname, NAME_MAX+1); in dcngettext() 324 size_t l = strnlen(trans, rem); in dcngettext()
|
/third_party/musl/src/locale/ |
H A D | dcngettext.c | 53 size_t domlen = strnlen(domainname, NAME_MAX+1); in bindtextdomain() 54 size_t dirlen = strnlen(dirname, PATH_MAX); in bindtextdomain() 161 domlen = strnlen(domainname, NAME_MAX+1); in dcngettext() 279 size_t l = strnlen(trans, rem); in dcngettext()
|
/third_party/musl/porting/uniproton/kernel/src/string/ |
H A D | strnlen.c | 3 size_t strnlen(const char *s, size_t n) in strnlen() function
|
/third_party/musl/src/string/ |
H A D | strnlen.c | 3 size_t strnlen(const char *s, size_t n) in strnlen() function
|
H A D | strlcat.c | 6 size_t l = strnlen(d, n); in strlcat()
|
H A D | strndup.c | 6 size_t l = strnlen(s, n); in strndup()
|
/third_party/musl/porting/liteos_a/kernel/src/string/ |
H A D | strnlen.c | 3 size_t strnlen(const char *s, size_t n) in strnlen() function
|
H A D | strlcat.c | 6 size_t l = strnlen(d, n); in strlcat()
|
H A D | strndup.c | 6 size_t l = strnlen(s, n); in strndup()
|
/third_party/musl/porting/liteos_m/kernel/src/string/ |
H A D | strnlen.c | 3 size_t strnlen(const char *s, size_t n) in strnlen() function
|
/third_party/elfutils/lib/ |
H A D | xstrndup.c | 43 size_t len = strnlen (string, n); in xstrndup()
|
/foundation/filemanagement/dfs_service/services/cloudsyncservice/src/transport/ |
H A D | message_handler.cpp | 113 srcNetworkId_ = string(deviceInfo->sourceNetworkId, strnlen(deviceInfo->sourceNetworkId, NETWORK_ID_SIZE_MAX)); in UnPackData() 114 dstNetworkId_ = string(deviceInfo->tartgeNetworkId, strnlen(deviceInfo->tartgeNetworkId, NETWORK_ID_SIZE_MAX)); in UnPackData()
|
/third_party/musl/Benchmark/musl/ |
H A D | libc_hilog.cpp | 138 size_t tagLen = strnlen(tag, MAX_TAG_LEN - 1); in HiLogAdapterPrintArgs1() 139 size_t logLen = strnlen(buf, MAX_LOG_LEN - 1); in HiLogAdapterPrintArgs1()
|
/third_party/mesa3d/src/util/ |
H A D | strndup.h | 45 n = strnlen(str, max); in strndup()
|